1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
   9 #
  10 #
  11 # This configure script is free software; the Free Software Foundation
  12 # gives unlimited permission to copy, distribute and modify it.
  13 ## -------------------- ##
  14 ## M4sh Initialization. ##
  15 ## -------------------- ##
  16 
  17 # Be more Bourne compatible
  18 DUALCASE=1; export DUALCASE # for MKS sh
  19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20   emulate sh
  21   NULLCMD=:
  22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23   # is contrary to our usage.  Disable this feature.
  24   alias -g '${1+"$@"}'='"$@"'
  25   setopt NO_GLOB_SUBST
  26 else
  27   case `(set -o) 2>/dev/null` in #(
  28   *posix*) :
  29     set -o posix ;; #(
  30   *) :
  31      ;;
  32 esac
  33 fi
  34 
  35 
  36 as_nl='
  37 '
  38 export as_nl
  39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43 # Prefer a ksh shell builtin over an external printf program on Solaris,
  44 # but without wasting forks for bash or zsh.
  45 if test -z "$BASH_VERSION$ZSH_VERSION" \
  46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47   as_echo='print -r --'
  48   as_echo_n='print -rn --'
  49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50   as_echo='printf %s\n'
  51   as_echo_n='printf %s'
  52 else
  53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55     as_echo_n='/usr/ucb/echo -n'
  56   else
  57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58     as_echo_n_body='eval
  59       arg=$1;
  60       case $arg in #(
  61       *"$as_nl"*)
  62         expr "X$arg" : "X\\(.*\\)$as_nl";
  63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64       esac;
  65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66     '
  67     export as_echo_n_body
  68     as_echo_n='sh -c $as_echo_n_body as_echo'
  69   fi
  70   export as_echo_body
  71   as_echo='sh -c $as_echo_body as_echo'
  72 fi
  73 
  74 # The user is always right.
  75 if test "${PATH_SEPARATOR+set}" != set; then
  76   PATH_SEPARATOR=:
  77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79       PATH_SEPARATOR=';'
  80   }
  81 fi
  82 
  83 
  84 # IFS
  85 # We need space, tab and new line, in precisely that order.  Quoting is
  86 # there to prevent editors from complaining about space-tab.
  87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88 # splitting by setting IFS to empty value.)
  89 IFS=" ""        $as_nl"
  90 
  91 # Find who we are.  Look in the path if we contain no directory separator.
  92 as_myself=
  93 case $0 in #((
  94   *[\\/]* ) as_myself=$0 ;;
  95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96 for as_dir in $PATH
  97 do
  98   IFS=$as_save_IFS
  99   test -z "$as_dir" && as_dir=.
 100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 101   done
 102 IFS=$as_save_IFS
 103 
 104      ;;
 105 esac
 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
 107 # in which case we are not to be found in the path.
 108 if test "x$as_myself" = x; then
 109   as_myself=$0
 110 fi
 111 if test ! -f "$as_myself"; then
 112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 113   exit 1
 114 fi
 115 
 116 # Unset variables that we do not need and which cause bugs (e.g. in
 117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 118 # suppresses any "Segmentation fault" message there.  '((' could
 119 # trigger a bug in pdksh 5.2.14.
 120 for as_var in BASH_ENV ENV MAIL MAILPATH
 121 do eval test x\${$as_var+set} = xset \
 122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 123 done
 124 PS1='$ '
 125 PS2='> '
 126 PS4='+ '
 127 
 128 # NLS nuisances.
 129 LC_ALL=C
 130 export LC_ALL
 131 LANGUAGE=C
 132 export LANGUAGE
 133 
 134 # CDPATH.
 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 136 
 137 # Use a proper internal environment variable to ensure we don't fall
 138   # into an infinite loop, continuously re-executing ourselves.
 139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 140     _as_can_reexec=no; export _as_can_reexec;
 141     # We cannot yet assume a decent shell, so we have to provide a
 142 # neutralization value for shells without unset; and this also
 143 # works around shells that cannot unset nonexistent variables.
 144 # Preserve -v and -x to the replacement shell.
 145 BASH_ENV=/dev/null
 146 ENV=/dev/null
 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 148 case $- in # ((((
 149   *v*x* | *x*v* ) as_opts=-vx ;;
 150   *v* ) as_opts=-v ;;
 151   *x* ) as_opts=-x ;;
 152   * ) as_opts= ;;
 153 esac
 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 155 # Admittedly, this is quite paranoid, since all the known shells bail
 156 # out after a failed `exec'.
 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 158 as_fn_exit 255
 159   fi
 160   # We don't want this to propagate to other subprocesses.
 161           { _as_can_reexec=; unset _as_can_reexec;}
 162 if test "x$CONFIG_SHELL" = x; then
 163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 164   emulate sh
 165   NULLCMD=:
 166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 167   # is contrary to our usage.  Disable this feature.
 168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 169   setopt NO_GLOB_SUBST
 170 else
 171   case \`(set -o) 2>/dev/null\` in #(
 172   *posix*) :
 173     set -o posix ;; #(
 174   *) :
 175      ;;
 176 esac
 177 fi
 178 "
 179   as_required="as_fn_return () { (exit \$1); }
 180 as_fn_success () { as_fn_return 0; }
 181 as_fn_failure () { as_fn_return 1; }
 182 as_fn_ret_success () { return 0; }
 183 as_fn_ret_failure () { return 1; }
 184 
 185 exitcode=0
 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 191 
 192 else
 193   exitcode=1; echo positional parameters were not saved.
 194 fi
 195 test x\$exitcode = x0 || exit 1
 196 test -x / || exit 1"
 197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 201 test \$(( 1 + 1 )) = 2 || exit 1"
 202   if (eval "$as_required") 2>/dev/null; then :
 203   as_have_required=yes
 204 else
 205   as_have_required=no
 206 fi
 207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 208 
 209 else
 210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 211 as_found=false
 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 213 do
 214   IFS=$as_save_IFS
 215   test -z "$as_dir" && as_dir=.
 216   as_found=:
 217   case $as_dir in #(
 218          /*)
 219            for as_base in sh bash ksh sh5; do
 220              # Try only shells that exist, to save several forks.
 221              as_shell=$as_dir/$as_base
 222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 224   CONFIG_SHELL=$as_shell as_have_required=yes
 225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 226   break 2
 227 fi
 228 fi
 229            done;;
 230        esac
 231   as_found=false
 232 done
 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 235   CONFIG_SHELL=$SHELL as_have_required=yes
 236 fi; }
 237 IFS=$as_save_IFS
 238 
 239 
 240       if test "x$CONFIG_SHELL" != x; then :
 241   export CONFIG_SHELL
 242              # We cannot yet assume a decent shell, so we have to provide a
 243 # neutralization value for shells without unset; and this also
 244 # works around shells that cannot unset nonexistent variables.
 245 # Preserve -v and -x to the replacement shell.
 246 BASH_ENV=/dev/null
 247 ENV=/dev/null
 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 249 case $- in # ((((
 250   *v*x* | *x*v* ) as_opts=-vx ;;
 251   *v* ) as_opts=-v ;;
 252   *x* ) as_opts=-x ;;
 253   * ) as_opts= ;;
 254 esac
 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 256 # Admittedly, this is quite paranoid, since all the known shells bail
 257 # out after a failed `exec'.
 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 259 exit 255
 260 fi
 261 
 262     if test x$as_have_required = xno; then :
 263   $as_echo "$0: This script requires a shell more modern than all"
 264   $as_echo "$0: the shells that I found on your system."
 265   if test x${ZSH_VERSION+set} = xset ; then
 266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 268   else
 269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 270 $0: build-dev@openjdk.java.net about your system, including
 271 $0: any error possibly output before this message. Then
 272 $0: install a modern shell, or manually run the script
 273 $0: under such a shell if you do have one."
 274   fi
 275   exit 1
 276 fi
 277 fi
 278 fi
 279 SHELL=${CONFIG_SHELL-/bin/sh}
 280 export SHELL
 281 # Unset more variables known to interfere with behavior of common tools.
 282 CLICOLOR_FORCE= GREP_OPTIONS=
 283 unset CLICOLOR_FORCE GREP_OPTIONS
 284 
 285 ## --------------------- ##
 286 ## M4sh Shell Functions. ##
 287 ## --------------------- ##
 288 # as_fn_unset VAR
 289 # ---------------
 290 # Portably unset VAR.
 291 as_fn_unset ()
 292 {
 293   { eval $1=; unset $1;}
 294 }
 295 as_unset=as_fn_unset
 296 
 297 # as_fn_set_status STATUS
 298 # -----------------------
 299 # Set $? to STATUS, without forking.
 300 as_fn_set_status ()
 301 {
 302   return $1
 303 } # as_fn_set_status
 304 
 305 # as_fn_exit STATUS
 306 # -----------------
 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 308 as_fn_exit ()
 309 {
 310   set +e
 311   as_fn_set_status $1
 312   exit $1
 313 } # as_fn_exit
 314 
 315 # as_fn_mkdir_p
 316 # -------------
 317 # Create "$as_dir" as a directory, including parents if necessary.
 318 as_fn_mkdir_p ()
 319 {
 320 
 321   case $as_dir in #(
 322   -*) as_dir=./$as_dir;;
 323   esac
 324   test -d "$as_dir" || eval $as_mkdir_p || {
 325     as_dirs=
 326     while :; do
 327       case $as_dir in #(
 328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 329       *) as_qdir=$as_dir;;
 330       esac
 331       as_dirs="'$as_qdir' $as_dirs"
 332       as_dir=`$as_dirname -- "$as_dir" ||
 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 334          X"$as_dir" : 'X\(//\)[^/]' \| \
 335          X"$as_dir" : 'X\(//\)$' \| \
 336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 337 $as_echo X"$as_dir" |
 338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 339             s//\1/
 340             q
 341           }
 342           /^X\(\/\/\)[^/].*/{
 343             s//\1/
 344             q
 345           }
 346           /^X\(\/\/\)$/{
 347             s//\1/
 348             q
 349           }
 350           /^X\(\/\).*/{
 351             s//\1/
 352             q
 353           }
 354           s/.*/./; q'`
 355       test -d "$as_dir" && break
 356     done
 357     test -z "$as_dirs" || eval "mkdir $as_dirs"
 358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 359 
 360 
 361 } # as_fn_mkdir_p
 362 
 363 # as_fn_executable_p FILE
 364 # -----------------------
 365 # Test if FILE is an executable regular file.
 366 as_fn_executable_p ()
 367 {
 368   test -f "$1" && test -x "$1"
 369 } # as_fn_executable_p
 370 # as_fn_append VAR VALUE
 371 # ----------------------
 372 # Append the text in VALUE to the end of the definition contained in VAR. Take
 373 # advantage of any shell optimizations that allow amortized linear growth over
 374 # repeated appends, instead of the typical quadratic growth present in naive
 375 # implementations.
 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 377   eval 'as_fn_append ()
 378   {
 379     eval $1+=\$2
 380   }'
 381 else
 382   as_fn_append ()
 383   {
 384     eval $1=\$$1\$2
 385   }
 386 fi # as_fn_append
 387 
 388 # as_fn_arith ARG...
 389 # ------------------
 390 # Perform arithmetic evaluation on the ARGs, and store the result in the
 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 392 # must be portable across $(()) and expr.
 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 394   eval 'as_fn_arith ()
 395   {
 396     as_val=$(( $* ))
 397   }'
 398 else
 399   as_fn_arith ()
 400   {
 401     as_val=`expr "$@" || test $? -eq 1`
 402   }
 403 fi # as_fn_arith
 404 
 405 
 406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 407 # ----------------------------------------
 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 410 # script with STATUS, using 1 if that was 0.
 411 as_fn_error ()
 412 {
 413   as_status=$1; test $as_status -eq 0 && as_status=1
 414   if test "$4"; then
 415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 417   fi
 418   $as_echo "$as_me: error: $2" >&2
 419   as_fn_exit $as_status
 420 } # as_fn_error
 421 
 422 if expr a : '\(a\)' >/dev/null 2>&1 &&
 423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 424   as_expr=expr
 425 else
 426   as_expr=false
 427 fi
 428 
 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 430   as_basename=basename
 431 else
 432   as_basename=false
 433 fi
 434 
 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 436   as_dirname=dirname
 437 else
 438   as_dirname=false
 439 fi
 440 
 441 as_me=`$as_basename -- "$0" ||
 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 443          X"$0" : 'X\(//\)$' \| \
 444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 445 $as_echo X/"$0" |
 446     sed '/^.*\/\([^/][^/]*\)\/*$/{
 447             s//\1/
 448             q
 449           }
 450           /^X\/\(\/\/\)$/{
 451             s//\1/
 452             q
 453           }
 454           /^X\/\(\/\).*/{
 455             s//\1/
 456             q
 457           }
 458           s/.*/./; q'`
 459 
 460 # Avoid depending upon Character Ranges.
 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 464 as_cr_digits='0123456789'
 465 as_cr_alnum=$as_cr_Letters$as_cr_digits
 466 
 467 
 468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 473   sed -n '
 474     p
 475     /[$]LINENO/=
 476   ' <$as_myself |
 477     sed '
 478       s/[$]LINENO.*/&-/
 479       t lineno
 480       b
 481       :lineno
 482       N
 483       :loop
 484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 485       t loop
 486       s/-\n.*//
 487     ' >$as_me.lineno &&
 488   chmod +x "$as_me.lineno" ||
 489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 490 
 491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 492   # already done that, so ensure we don't try to do so again and fall
 493   # in an infinite loop.  This has already happened in practice.
 494   _as_can_reexec=no; export _as_can_reexec
 495   # Don't try to exec as it changes $[0], causing all sort of problems
 496   # (the dirname of $[0] is not the place where we might find the
 497   # original and so on.  Autoconf is especially sensitive to this).
 498   . "./$as_me.lineno"
 499   # Exit status is that of the last command.
 500   exit
 501 }
 502 
 503 ECHO_C= ECHO_N= ECHO_T=
 504 case `echo -n x` in #(((((
 505 -n*)
 506   case `echo 'xy\c'` in
 507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 508   xy)  ECHO_C='\c';;
 509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 510        ECHO_T=' ';;
 511   esac;;
 512 *)
 513   ECHO_N='-n';;
 514 esac
 515 
 516 rm -f conf$$ conf$$.exe conf$$.file
 517 if test -d conf$$.dir; then
 518   rm -f conf$$.dir/conf$$.file
 519 else
 520   rm -f conf$$.dir
 521   mkdir conf$$.dir 2>/dev/null
 522 fi
 523 if (echo >conf$$.file) 2>/dev/null; then
 524   if ln -s conf$$.file conf$$ 2>/dev/null; then
 525     as_ln_s='ln -s'
 526     # ... but there are two gotchas:
 527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 529     # In both cases, we have to default to `cp -pR'.
 530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 531       as_ln_s='cp -pR'
 532   elif ln conf$$.file conf$$ 2>/dev/null; then
 533     as_ln_s=ln
 534   else
 535     as_ln_s='cp -pR'
 536   fi
 537 else
 538   as_ln_s='cp -pR'
 539 fi
 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 541 rmdir conf$$.dir 2>/dev/null
 542 
 543 if mkdir -p . 2>/dev/null; then
 544   as_mkdir_p='mkdir -p "$as_dir"'
 545 else
 546   test -d ./-p && rmdir ./-p
 547   as_mkdir_p=false
 548 fi
 549 
 550 as_test_x='test -x'
 551 as_executable_p=as_fn_executable_p
 552 
 553 # Sed expression to map a string onto a valid CPP name.
 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 555 
 556 # Sed expression to map a string onto a valid variable name.
 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 558 
 559 
 560 test -n "$DJDIR" || exec 7<&0 </dev/null
 561 exec 6>&1
 562 
 563 # Name of the host.
 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 565 # so uname gets run too.
 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 567 
 568 #
 569 # Initializations.
 570 #
 571 ac_default_prefix=/usr/local
 572 ac_clean_files=
 573 ac_config_libobj_dir=.
 574 LIBOBJS=
 575 cross_compiling=no
 576 subdirs=
 577 MFLAGS=
 578 MAKEFLAGS=
 579 
 580 # Identity of this package.
 581 PACKAGE_NAME='OpenJDK'
 582 PACKAGE_TARNAME='openjdk'
 583 PACKAGE_VERSION='jdk8'
 584 PACKAGE_STRING='OpenJDK jdk8'
 585 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 586 PACKAGE_URL='http://openjdk.java.net'
 587 
 588 # Factoring default headers for most tests.
 589 ac_includes_default="\
 590 #include <stdio.h>
 591 #ifdef HAVE_SYS_TYPES_H
 592 # include <sys/types.h>
 593 #endif
 594 #ifdef HAVE_SYS_STAT_H
 595 # include <sys/stat.h>
 596 #endif
 597 #ifdef STDC_HEADERS
 598 # include <stdlib.h>
 599 # include <stddef.h>
 600 #else
 601 # ifdef HAVE_STDLIB_H
 602 #  include <stdlib.h>
 603 # endif
 604 #endif
 605 #ifdef HAVE_STRING_H
 606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 607 #  include <memory.h>
 608 # endif
 609 # include <string.h>
 610 #endif
 611 #ifdef HAVE_STRINGS_H
 612 # include <strings.h>
 613 #endif
 614 #ifdef HAVE_INTTYPES_H
 615 # include <inttypes.h>
 616 #endif
 617 #ifdef HAVE_STDINT_H
 618 # include <stdint.h>
 619 #endif
 620 #ifdef HAVE_UNISTD_H
 621 # include <unistd.h>
 622 #endif"
 623 
 624 ac_subst_vars='LTLIBOBJS
 625 LIBOBJS
 626 CCACHE
 627 USE_PRECOMPILED_HEADER
 628 SJAVAC_SERVER_DIR
 629 ENABLE_SJAVAC
 630 SJAVAC_SERVER_JAVA
 631 JOBS
 632 MEMORY_SIZE
 633 NUM_CORES
 634 ENABLE_INTREE_EC
 635 SALIB_NAME
 636 HOTSPOT_MAKE_ARGS
 637 LIBCXX
 638 LLVM_LIBS
 639 LLVM_LDFLAGS
 640 LLVM_CFLAGS
 641 LLVM_CONFIG
 642 LIBFFI_LIBS
 643 LIBFFI_CFLAGS
 644 STATIC_CXX_SETTING
 645 LIBDL
 646 LIBM
 647 LIBZIP_CAN_USE_MMAP
 648 USE_EXTERNAL_LIBZ
 649 USE_EXTERNAL_LIBGIF
 650 USE_EXTERNAL_LIBJPEG
 651 ALSA_LIBS
 652 ALSA_CFLAGS
 653 FREETYPE_BUNDLE_LIB_PATH
 654 FREETYPE_LIBS
 655 FREETYPE_CFLAGS
 656 CUPS_CFLAGS
 657 OPENWIN_HOME
 658 X_EXTRA_LIBS
 659 X_LIBS
 660 X_PRE_LIBS
 661 X_CFLAGS
 662 XMKMF
 663 FIXPATH
 664 CXXFLAGS_DEBUG_SYMBOLS
 665 CFLAGS_DEBUG_SYMBOLS
 666 ZIP_DEBUGINFO_FILES
 667 ENABLE_DEBUG_SYMBOLS
 668 USING_BROKEN_SUSE_LD
 669 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 670 ZERO_ARCHFLAG
 671 LDFLAGS_CXX_JDK
 672 LDFLAGS_JDKEXE_SUFFIX
 673 LDFLAGS_JDKLIB_SUFFIX
 674 LDFLAGS_JDKEXE
 675 LDFLAGS_JDKLIB
 676 CXXFLAGS_JDKEXE
 677 CXXFLAGS_JDKLIB
 678 CFLAGS_JDKEXE
 679 CFLAGS_JDKLIB
 680 MACOSX_VERSION_MIN
 681 PACKAGE_PATH
 682 LEGACY_EXTRA_LDFLAGS
 683 LEGACY_EXTRA_CXXFLAGS
 684 LEGACY_EXTRA_CFLAGS
 685 CXX_FLAG_DEPS
 686 C_FLAG_DEPS
 687 CXX_O_FLAG_NONE
 688 CXX_O_FLAG_NORM
 689 CXX_O_FLAG_HI
 690 CXX_O_FLAG_HIGHEST
 691 C_O_FLAG_NONE
 692 C_O_FLAG_NORM
 693 C_O_FLAG_HI
 694 C_O_FLAG_HIGHEST
 695 POST_MCS_CMD
 696 POST_STRIP_CMD
 697 SET_EXECUTABLE_ORIGIN
 698 SET_SHARED_LIBRARY_ORIGIN
 699 CXX_FLAG_REORDER
 700 C_FLAG_REORDER
 701 SET_SHARED_LIBRARY_MAPFILE
 702 SET_SHARED_LIBRARY_NAME
 703 SHARED_LIBRARY_FLAGS
 704 EXE_SUFFIX
 705 STATIC_LIBRARY_SUFFIX
 706 SHARED_LIBRARY_SUFFIX
 707 LIBRARY_PREFIX
 708 STATIC_LIBRARY
 709 SHARED_LIBRARY
 710 OBJ_SUFFIX
 711 COMPILER_NAME
 712 JT_HOME
 713 JTREGEXE
 714 LIPO
 715 ac_ct_OBJDUMP
 716 OBJDUMP
 717 ac_ct_OBJCOPY
 718 OBJCOPY
 719 ac_ct_STRIP
 720 ac_ct_NM
 721 MCS
 722 STRIP
 723 GNM
 724 NM
 725 AS
 726 CXXCPP
 727 CPP
 728 COMPILER_TYPE
 729 RC_FLAGS
 730 DUMPBIN
 731 WINAR
 732 HOTSPOT_RC
 733 HOTSPOT_MT
 734 RC
 735 MT
 736 WINLD
 737 HOTSPOT_LD
 738 HOTSPOT_CXX
 739 ARFLAGS
 740 ac_ct_AR
 741 AR
 742 LDEXECXX
 743 LDCXX
 744 LDEXE
 745 LD
 746 ac_ct_OBJC
 747 OBJCFLAGS
 748 OBJC
 749 ac_ct_CXX
 750 CXXFLAGS
 751 CXX
 752 ac_ct_PROPER_COMPILER_CXX
 753 PROPER_COMPILER_CXX
 754 TOOLS_DIR_CXX
 755 POTENTIAL_CXX
 756 COMPILER_TARGET_BITS_FLAG
 757 OBJEXT
 758 EXEEXT
 759 ac_ct_CC
 760 CPPFLAGS
 761 LDFLAGS
 762 CFLAGS
 763 CC
 764 ac_ct_PROPER_COMPILER_CC
 765 PROPER_COMPILER_CC
 766 TOOLS_DIR_CC
 767 POTENTIAL_CC
 768 BUILD_LD
 769 BUILD_CXX
 770 BUILD_CC
 771 MSVCR_DLL
 772 VS_PATH
 773 VS_LIB
 774 VS_INCLUDE
 775 CYGWIN_LINK
 776 AR_OUT_OPTION
 777 LD_OUT_OPTION
 778 EXE_OUT_OPTION
 779 CC_OUT_OPTION
 780 BUILD_HOTSPOT
 781 HOTSPOT_DIST
 782 BUILD_OUTPUT
 783 OVERRIDE_SRC_ROOT
 784 ADD_SRC_ROOT
 785 JDK_TOPDIR
 786 NASHORN_TOPDIR
 787 HOTSPOT_TOPDIR
 788 JAXWS_TOPDIR
 789 JAXP_TOPDIR
 790 CORBA_TOPDIR
 791 LANGTOOLS_TOPDIR
 792 BOOT_JDK_JVMARGS
 793 JAVAC_FLAGS
 794 BOOT_JDK_SOURCETARGET
 795 JARSIGNER
 796 NATIVE2ASCII
 797 JAR
 798 JAVAH
 799 JAVAC
 800 JAVA
 801 BOOT_JDK
 802 BOOT_TOOLSJAR
 803 BOOT_RTJAR
 804 JAVA_CHECK
 805 JAVAC_CHECK
 806 COOKED_BUILD_NUMBER
 807 JDK_VERSION
 808 COPYRIGHT_YEAR
 809 MACOSX_BUNDLE_ID_BASE
 810 MACOSX_BUNDLE_NAME_BASE
 811 COMPANY_NAME
 812 JDK_RC_PLATFORM_NAME
 813 PRODUCT_SUFFIX
 814 PRODUCT_NAME
 815 LAUNCHER_NAME
 816 MILESTONE
 817 JDK_BUILD_NUMBER
 818 JDK_UPDATE_VERSION
 819 JDK_MICRO_VERSION
 820 JDK_MINOR_VERSION
 821 JDK_MAJOR_VERSION
 822 USER_RELEASE_SUFFIX
 823 COMPRESS_JARS
 824 UNLIMITED_CRYPTO
 825 CACERTS_FILE
 826 TEST_IN_BUILD
 827 BUILD_HEADLESS
 828 SUPPORT_HEADFUL
 829 SUPPORT_HEADLESS
 830 BDEPS_FTP
 831 BDEPS_UNZIP
 832 OS_VERSION_MICRO
 833 OS_VERSION_MINOR
 834 OS_VERSION_MAJOR
 835 PKG_CONFIG
 836 CODESIGN
 837 XATTR
 838 DSYMUTIL
 839 IS_GNU_TIME
 840 TIME
 841 STAT
 842 HG
 843 READELF
 844 OTOOL
 845 LDD
 846 ZIP
 847 UNZIP
 848 FIND_DELETE
 849 MAKE
 850 CHECK_TOOLSDIR_MAKE
 851 CHECK_TOOLSDIR_GMAKE
 852 CHECK_MAKE
 853 CHECK_GMAKE
 854 PKGHANDLER
 855 OUTPUT_ROOT
 856 CONF_NAME
 857 SPEC
 858 BUILD_VARIANT_RELEASE
 859 DEBUG_CLASSFILES
 860 FASTDEBUG
 861 VARIANT
 862 DEBUG_LEVEL
 863 MACOSX_UNIVERSAL
 864 INCLUDE_SA
 865 JVM_VARIANT_CORE
 866 JVM_VARIANT_ZEROSHARK
 867 JVM_VARIANT_ZERO
 868 JVM_VARIANT_KERNEL
 869 JVM_VARIANT_MINIMAL1
 870 JVM_VARIANT_CLIENT
 871 JVM_VARIANT_SERVER
 872 JVM_VARIANTS
 873 JVM_INTERPRETER
 874 JDK_VARIANT
 875 SET_OPENJDK
 876 BUILD_LOG_WRAPPER
 877 BUILD_LOG_PREVIOUS
 878 BUILD_LOG
 879 SYS_ROOT
 880 PATH_SEP
 881 SRC_ROOT
 882 ZERO_ARCHDEF
 883 DEFINE_CROSS_COMPILE_ARCH
 884 LP64
 885 OPENJDK_TARGET_OS_EXPORT_DIR
 886 OPENJDK_TARGET_OS_API_DIR
 887 OPENJDK_TARGET_CPU_JLI_CFLAGS
 888 OPENJDK_TARGET_CPU_OSARCH
 889 OPENJDK_TARGET_CPU_ISADIR
 890 OPENJDK_TARGET_CPU_LIBDIR
 891 OPENJDK_TARGET_CPU_LEGACY_LIB
 892 OPENJDK_TARGET_CPU_LEGACY
 893 REQUIRED_OS_VERSION
 894 REQUIRED_OS_NAME
 895 COMPILE_TYPE
 896 OPENJDK_TARGET_CPU_ENDIAN
 897 OPENJDK_TARGET_CPU_BITS
 898 OPENJDK_TARGET_CPU_ARCH
 899 OPENJDK_TARGET_CPU
 900 OPENJDK_TARGET_OS_API
 901 OPENJDK_TARGET_OS
 902 OPENJDK_BUILD_CPU_ENDIAN
 903 OPENJDK_BUILD_CPU_BITS
 904 OPENJDK_BUILD_CPU_ARCH
 905 OPENJDK_BUILD_CPU
 906 OPENJDK_BUILD_OS_API
 907 OPENJDK_BUILD_OS
 908 OPENJDK_BUILD_AUTOCONF_NAME
 909 OPENJDK_TARGET_AUTOCONF_NAME
 910 target_os
 911 target_vendor
 912 target_cpu
 913 target
 914 host_os
 915 host_vendor
 916 host_cpu
 917 host
 918 build_os
 919 build_vendor
 920 build_cpu
 921 build
 922 SETFILE
 923 DF
 924 READLINK
 925 CYGPATH
 926 SED
 927 FGREP
 928 EGREP
 929 GREP
 930 AWK
 931 XARGS
 932 WHICH
 933 WC
 934 UNIQ
 935 UNAME
 936 TR
 937 TOUCH
 938 TEE
 939 TAR
 940 TAIL
 941 SORT
 942 SH
 943 RM
 944 PRINTF
 945 NAWK
 946 MV
 947 MKTEMP
 948 MKDIR
 949 LS
 950 LN
 951 HEAD
 952 FIND
 953 FILE
 954 EXPR
 955 ECHO
 956 DIRNAME
 957 DIFF
 958 DATE
 959 CUT
 960 CPIO
 961 CP
 962 COMM
 963 CMP
 964 CHMOD
 965 CAT
 966 BASH
 967 BASENAME
 968 DATE_WHEN_CONFIGURED
 969 CONFIGURE_COMMAND_LINE
 970 CUSTOM_MAKE_DIR
 971 target_alias
 972 host_alias
 973 build_alias
 974 LIBS
 975 ECHO_T
 976 ECHO_N
 977 ECHO_C
 978 DEFS
 979 mandir
 980 localedir
 981 libdir
 982 psdir
 983 pdfdir
 984 dvidir
 985 htmldir
 986 infodir
 987 docdir
 988 oldincludedir
 989 includedir
 990 localstatedir
 991 sharedstatedir
 992 sysconfdir
 993 datadir
 994 datarootdir
 995 libexecdir
 996 sbindir
 997 bindir
 998 program_transform_name
 999 prefix
1000 exec_prefix
1001 PACKAGE_URL
1002 PACKAGE_BUGREPORT
1003 PACKAGE_STRING
1004 PACKAGE_VERSION
1005 PACKAGE_TARNAME
1006 PACKAGE_NAME
1007 PATH_SEPARATOR
1008 SHELL'
1009 ac_subst_files=''
1010 ac_user_opts='
1011 enable_option_checking
1012 with_custom_make_dir
1013 with_target_bits
1014 with_sys_root
1015 with_tools_dir
1016 with_devkit
1017 enable_openjdk_only
1018 with_jdk_variant
1019 with_jvm_interpreter
1020 with_jvm_variants
1021 enable_debug
1022 with_debug_level
1023 with_conf_name
1024 with_builddeps_conf
1025 with_builddeps_server
1026 with_builddeps_dir
1027 with_builddeps_group
1028 enable_headful
1029 enable_hotspot_test_in_build
1030 with_cacerts_file
1031 enable_unlimited_crypto
1032 with_milestone
1033 with_update_version
1034 with_user_release_suffix
1035 with_build_number
1036 with_boot_jdk
1037 with_boot_jdk_jvmargs
1038 with_add_source_root
1039 with_override_source_root
1040 with_adds_and_overrides
1041 with_override_langtools
1042 with_override_corba
1043 with_override_jaxp
1044 with_override_jaxws
1045 with_override_hotspot
1046 with_override_nashorn
1047 with_override_jdk
1048 with_import_hotspot
1049 with_msvcr_dll
1050 with_dxsdk
1051 with_dxsdk_lib
1052 with_dxsdk_include
1053 with_jtreg
1054 with_extra_cflags
1055 with_extra_cxxflags
1056 with_extra_ldflags
1057 enable_debug_symbols
1058 enable_zip_debug_info
1059 enable_macosx_runtime_support
1060 with_x
1061 with_cups
1062 with_cups_include
1063 with_freetype
1064 with_freetype_include
1065 with_freetype_lib
1066 enable_freetype_bundling
1067 with_alsa
1068 with_alsa_include
1069 with_alsa_lib
1070 with_giflib
1071 with_zlib
1072 with_stdc__lib
1073 with_num_cores
1074 with_memory_size
1075 with_jobs
1076 with_sjavac_server_java
1077 enable_sjavac
1078 enable_precompiled_headers
1079 enable_ccache
1080 with_ccache_dir
1081 '
1082       ac_precious_vars='build_alias
1083 host_alias
1084 target_alias
1085 BASENAME
1086 BASH
1087 CAT
1088 CHMOD
1089 CMP
1090 COMM
1091 CP
1092 CPIO
1093 CUT
1094 DATE
1095 DIFF
1096 DIRNAME
1097 ECHO
1098 EXPR
1099 FILE
1100 FIND
1101 HEAD
1102 LN
1103 LS
1104 MKDIR
1105 MKTEMP
1106 MV
1107 NAWK
1108 PRINTF
1109 RM
1110 SH
1111 SORT
1112 TAIL
1113 TAR
1114 TEE
1115 TOUCH
1116 TR
1117 UNAME
1118 UNIQ
1119 WC
1120 WHICH
1121 XARGS
1122 AWK
1123 GREP
1124 EGREP
1125 FGREP
1126 SED
1127 CYGPATH
1128 READLINK
1129 DF
1130 SETFILE
1131 UNZIP
1132 ZIP
1133 LDD
1134 OTOOL
1135 READELF
1136 HG
1137 STAT
1138 TIME
1139 DSYMUTIL
1140 XATTR
1141 CODESIGN
1142 PKG_CONFIG
1143 JAVA
1144 JAVAC
1145 JAVAH
1146 JAR
1147 NATIVE2ASCII
1148 JARSIGNER
1149 BUILD_CC
1150 BUILD_CXX
1151 BUILD_LD
1152 CC
1153 CFLAGS
1154 LDFLAGS
1155 LIBS
1156 CPPFLAGS
1157 CXX
1158 CXXFLAGS
1159 CCC
1160 OBJC
1161 OBJCFLAGS
1162 AR
1163 CPP
1164 CXXCPP
1165 AS
1166 NM
1167 GNM
1168 STRIP
1169 MCS
1170 OBJCOPY
1171 OBJDUMP
1172 LIPO
1173 JTREGEXE
1174 XMKMF
1175 FREETYPE_CFLAGS
1176 FREETYPE_LIBS
1177 ALSA_CFLAGS
1178 ALSA_LIBS
1179 LIBFFI_CFLAGS
1180 LIBFFI_LIBS
1181 CCACHE'
1182 
1183 
1184 # Initialize some variables set by options.
1185 ac_init_help=
1186 ac_init_version=false
1187 ac_unrecognized_opts=
1188 ac_unrecognized_sep=
1189 # The variables have the same names as the options, with
1190 # dashes changed to underlines.
1191 cache_file=/dev/null
1192 exec_prefix=NONE
1193 no_create=
1194 no_recursion=
1195 prefix=NONE
1196 program_prefix=NONE
1197 program_suffix=NONE
1198 program_transform_name=s,x,x,
1199 silent=
1200 site=
1201 srcdir=
1202 verbose=
1203 x_includes=NONE
1204 x_libraries=NONE
1205 
1206 # Installation directory options.
1207 # These are left unexpanded so users can "make install exec_prefix=/foo"
1208 # and all the variables that are supposed to be based on exec_prefix
1209 # by default will actually change.
1210 # Use braces instead of parens because sh, perl, etc. also accept them.
1211 # (The list follows the same order as the GNU Coding Standards.)
1212 bindir='${exec_prefix}/bin'
1213 sbindir='${exec_prefix}/sbin'
1214 libexecdir='${exec_prefix}/libexec'
1215 datarootdir='${prefix}/share'
1216 datadir='${datarootdir}'
1217 sysconfdir='${prefix}/etc'
1218 sharedstatedir='${prefix}/com'
1219 localstatedir='${prefix}/var'
1220 includedir='${prefix}/include'
1221 oldincludedir='/usr/include'
1222 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1223 infodir='${datarootdir}/info'
1224 htmldir='${docdir}'
1225 dvidir='${docdir}'
1226 pdfdir='${docdir}'
1227 psdir='${docdir}'
1228 libdir='${exec_prefix}/lib'
1229 localedir='${datarootdir}/locale'
1230 mandir='${datarootdir}/man'
1231 
1232 ac_prev=
1233 ac_dashdash=
1234 for ac_option
1235 do
1236   # If the previous option needs an argument, assign it.
1237   if test -n "$ac_prev"; then
1238     eval $ac_prev=\$ac_option
1239     ac_prev=
1240     continue
1241   fi
1242 
1243   case $ac_option in
1244   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1245   *=)   ac_optarg= ;;
1246   *)    ac_optarg=yes ;;
1247   esac
1248 
1249   # Accept the important Cygnus configure options, so we can diagnose typos.
1250 
1251   case $ac_dashdash$ac_option in
1252   --)
1253     ac_dashdash=yes ;;
1254 
1255   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1256     ac_prev=bindir ;;
1257   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1258     bindir=$ac_optarg ;;
1259 
1260   -build | --build | --buil | --bui | --bu)
1261     ac_prev=build_alias ;;
1262   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1263     build_alias=$ac_optarg ;;
1264 
1265   -cache-file | --cache-file | --cache-fil | --cache-fi \
1266   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1267     ac_prev=cache_file ;;
1268   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1269   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1270     cache_file=$ac_optarg ;;
1271 
1272   --config-cache | -C)
1273     cache_file=config.cache ;;
1274 
1275   -datadir | --datadir | --datadi | --datad)
1276     ac_prev=datadir ;;
1277   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1278     datadir=$ac_optarg ;;
1279 
1280   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1281   | --dataroo | --dataro | --datar)
1282     ac_prev=datarootdir ;;
1283   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1284   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1285     datarootdir=$ac_optarg ;;
1286 
1287   -disable-* | --disable-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error $? "invalid feature name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "enable_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval enable_$ac_useropt=no ;;
1302 
1303   -docdir | --docdir | --docdi | --doc | --do)
1304     ac_prev=docdir ;;
1305   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1306     docdir=$ac_optarg ;;
1307 
1308   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1309     ac_prev=dvidir ;;
1310   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1311     dvidir=$ac_optarg ;;
1312 
1313   -enable-* | --enable-*)
1314     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317       as_fn_error $? "invalid feature name: $ac_useropt"
1318     ac_useropt_orig=$ac_useropt
1319     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320     case $ac_user_opts in
1321       *"
1322 "enable_$ac_useropt"
1323 "*) ;;
1324       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1325          ac_unrecognized_sep=', ';;
1326     esac
1327     eval enable_$ac_useropt=\$ac_optarg ;;
1328 
1329   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1330   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1331   | --exec | --exe | --ex)
1332     ac_prev=exec_prefix ;;
1333   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1334   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1335   | --exec=* | --exe=* | --ex=*)
1336     exec_prefix=$ac_optarg ;;
1337 
1338   -gas | --gas | --ga | --g)
1339     # Obsolete; use --with-gas.
1340     with_gas=yes ;;
1341 
1342   -help | --help | --hel | --he | -h)
1343     ac_init_help=long ;;
1344   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1345     ac_init_help=recursive ;;
1346   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1347     ac_init_help=short ;;
1348 
1349   -host | --host | --hos | --ho)
1350     ac_prev=host_alias ;;
1351   -host=* | --host=* | --hos=* | --ho=*)
1352     host_alias=$ac_optarg ;;
1353 
1354   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1355     ac_prev=htmldir ;;
1356   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1357   | --ht=*)
1358     htmldir=$ac_optarg ;;
1359 
1360   -includedir | --includedir | --includedi | --included | --include \
1361   | --includ | --inclu | --incl | --inc)
1362     ac_prev=includedir ;;
1363   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1364   | --includ=* | --inclu=* | --incl=* | --inc=*)
1365     includedir=$ac_optarg ;;
1366 
1367   -infodir | --infodir | --infodi | --infod | --info | --inf)
1368     ac_prev=infodir ;;
1369   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1370     infodir=$ac_optarg ;;
1371 
1372   -libdir | --libdir | --libdi | --libd)
1373     ac_prev=libdir ;;
1374   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1375     libdir=$ac_optarg ;;
1376 
1377   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1378   | --libexe | --libex | --libe)
1379     ac_prev=libexecdir ;;
1380   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1381   | --libexe=* | --libex=* | --libe=*)
1382     libexecdir=$ac_optarg ;;
1383 
1384   -localedir | --localedir | --localedi | --localed | --locale)
1385     ac_prev=localedir ;;
1386   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1387     localedir=$ac_optarg ;;
1388 
1389   -localstatedir | --localstatedir | --localstatedi | --localstated \
1390   | --localstate | --localstat | --localsta | --localst | --locals)
1391     ac_prev=localstatedir ;;
1392   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1393   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1394     localstatedir=$ac_optarg ;;
1395 
1396   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1397     ac_prev=mandir ;;
1398   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1399     mandir=$ac_optarg ;;
1400 
1401   -nfp | --nfp | --nf)
1402     # Obsolete; use --without-fp.
1403     with_fp=no ;;
1404 
1405   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1406   | --no-cr | --no-c | -n)
1407     no_create=yes ;;
1408 
1409   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1410   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1411     no_recursion=yes ;;
1412 
1413   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1414   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1415   | --oldin | --oldi | --old | --ol | --o)
1416     ac_prev=oldincludedir ;;
1417   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1418   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1419   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1420     oldincludedir=$ac_optarg ;;
1421 
1422   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1423     ac_prev=prefix ;;
1424   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1425     prefix=$ac_optarg ;;
1426 
1427   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1428   | --program-pre | --program-pr | --program-p)
1429     ac_prev=program_prefix ;;
1430   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1431   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1432     program_prefix=$ac_optarg ;;
1433 
1434   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1435   | --program-suf | --program-su | --program-s)
1436     ac_prev=program_suffix ;;
1437   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1438   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1439     program_suffix=$ac_optarg ;;
1440 
1441   -program-transform-name | --program-transform-name \
1442   | --program-transform-nam | --program-transform-na \
1443   | --program-transform-n | --program-transform- \
1444   | --program-transform | --program-transfor \
1445   | --program-transfo | --program-transf \
1446   | --program-trans | --program-tran \
1447   | --progr-tra | --program-tr | --program-t)
1448     ac_prev=program_transform_name ;;
1449   -program-transform-name=* | --program-transform-name=* \
1450   | --program-transform-nam=* | --program-transform-na=* \
1451   | --program-transform-n=* | --program-transform-=* \
1452   | --program-transform=* | --program-transfor=* \
1453   | --program-transfo=* | --program-transf=* \
1454   | --program-trans=* | --program-tran=* \
1455   | --progr-tra=* | --program-tr=* | --program-t=*)
1456     program_transform_name=$ac_optarg ;;
1457 
1458   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1459     ac_prev=pdfdir ;;
1460   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1461     pdfdir=$ac_optarg ;;
1462 
1463   -psdir | --psdir | --psdi | --psd | --ps)
1464     ac_prev=psdir ;;
1465   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1466     psdir=$ac_optarg ;;
1467 
1468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469   | -silent | --silent | --silen | --sile | --sil)
1470     silent=yes ;;
1471 
1472   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1473     ac_prev=sbindir ;;
1474   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1475   | --sbi=* | --sb=*)
1476     sbindir=$ac_optarg ;;
1477 
1478   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1479   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1480   | --sharedst | --shareds | --shared | --share | --shar \
1481   | --sha | --sh)
1482     ac_prev=sharedstatedir ;;
1483   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1484   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1485   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1486   | --sha=* | --sh=*)
1487     sharedstatedir=$ac_optarg ;;
1488 
1489   -site | --site | --sit)
1490     ac_prev=site ;;
1491   -site=* | --site=* | --sit=*)
1492     site=$ac_optarg ;;
1493 
1494   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1495     ac_prev=srcdir ;;
1496   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1497     srcdir=$ac_optarg ;;
1498 
1499   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1500   | --syscon | --sysco | --sysc | --sys | --sy)
1501     ac_prev=sysconfdir ;;
1502   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1503   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1504     sysconfdir=$ac_optarg ;;
1505 
1506   -target | --target | --targe | --targ | --tar | --ta | --t)
1507     ac_prev=target_alias ;;
1508   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1509     target_alias=$ac_optarg ;;
1510 
1511   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1512     verbose=yes ;;
1513 
1514   -version | --version | --versio | --versi | --vers | -V)
1515     ac_init_version=: ;;
1516 
1517   -with-* | --with-*)
1518     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1519     # Reject names that are not valid shell variable names.
1520     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1521       as_fn_error $? "invalid package name: $ac_useropt"
1522     ac_useropt_orig=$ac_useropt
1523     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1524     case $ac_user_opts in
1525       *"
1526 "with_$ac_useropt"
1527 "*) ;;
1528       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1529          ac_unrecognized_sep=', ';;
1530     esac
1531     eval with_$ac_useropt=\$ac_optarg ;;
1532 
1533   -without-* | --without-*)
1534     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1535     # Reject names that are not valid shell variable names.
1536     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537       as_fn_error $? "invalid package name: $ac_useropt"
1538     ac_useropt_orig=$ac_useropt
1539     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1540     case $ac_user_opts in
1541       *"
1542 "with_$ac_useropt"
1543 "*) ;;
1544       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1545          ac_unrecognized_sep=', ';;
1546     esac
1547     eval with_$ac_useropt=no ;;
1548 
1549   --x)
1550     # Obsolete; use --with-x.
1551     with_x=yes ;;
1552 
1553   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1554   | --x-incl | --x-inc | --x-in | --x-i)
1555     ac_prev=x_includes ;;
1556   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1557   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1558     x_includes=$ac_optarg ;;
1559 
1560   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1561   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1562     ac_prev=x_libraries ;;
1563   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1564   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1565     x_libraries=$ac_optarg ;;
1566 
1567   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1568 Try \`$0 --help' for more information"
1569     ;;
1570 
1571   *=*)
1572     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1573     # Reject names that are not valid shell variable names.
1574     case $ac_envvar in #(
1575       '' | [0-9]* | *[!_$as_cr_alnum]* )
1576       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1577     esac
1578     eval $ac_envvar=\$ac_optarg
1579     export $ac_envvar ;;
1580 
1581   *)
1582     # FIXME: should be removed in autoconf 3.0.
1583     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1584     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1585       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1586     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1587     ;;
1588 
1589   esac
1590 done
1591 
1592 if test -n "$ac_prev"; then
1593   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1594   as_fn_error $? "missing argument to $ac_option"
1595 fi
1596 
1597 if test -n "$ac_unrecognized_opts"; then
1598   case $enable_option_checking in
1599     no) ;;
1600     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1601     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1602   esac
1603 fi
1604 
1605 # Check all directory arguments for consistency.
1606 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1607                 datadir sysconfdir sharedstatedir localstatedir includedir \
1608                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1609                 libdir localedir mandir
1610 do
1611   eval ac_val=\$$ac_var
1612   # Remove trailing slashes.
1613   case $ac_val in
1614     */ )
1615       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1616       eval $ac_var=\$ac_val;;
1617   esac
1618   # Be sure to have absolute directory names.
1619   case $ac_val in
1620     [\\/$]* | ?:[\\/]* )  continue;;
1621     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1622   esac
1623   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1624 done
1625 
1626 # There might be people who depend on the old broken behavior: `$host'
1627 # used to hold the argument of --host etc.
1628 # FIXME: To remove some day.
1629 build=$build_alias
1630 host=$host_alias
1631 target=$target_alias
1632 
1633 # FIXME: To remove some day.
1634 if test "x$host_alias" != x; then
1635   if test "x$build_alias" = x; then
1636     cross_compiling=maybe
1637   elif test "x$build_alias" != "x$host_alias"; then
1638     cross_compiling=yes
1639   fi
1640 fi
1641 
1642 ac_tool_prefix=
1643 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1644 
1645 test "$silent" = yes && exec 6>/dev/null
1646 
1647 
1648 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1649 ac_ls_di=`ls -di .` &&
1650 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1651   as_fn_error $? "working directory cannot be determined"
1652 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1653   as_fn_error $? "pwd does not report name of working directory"
1654 
1655 
1656 # Find the source files, if location was not specified.
1657 if test -z "$srcdir"; then
1658   ac_srcdir_defaulted=yes
1659   # Try the directory containing this script, then the parent directory.
1660   ac_confdir=`$as_dirname -- "$as_myself" ||
1661 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1662          X"$as_myself" : 'X\(//\)[^/]' \| \
1663          X"$as_myself" : 'X\(//\)$' \| \
1664          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1665 $as_echo X"$as_myself" |
1666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1667             s//\1/
1668             q
1669           }
1670           /^X\(\/\/\)[^/].*/{
1671             s//\1/
1672             q
1673           }
1674           /^X\(\/\/\)$/{
1675             s//\1/
1676             q
1677           }
1678           /^X\(\/\).*/{
1679             s//\1/
1680             q
1681           }
1682           s/.*/./; q'`
1683   srcdir=$ac_confdir
1684   if test ! -r "$srcdir/$ac_unique_file"; then
1685     srcdir=..
1686   fi
1687 else
1688   ac_srcdir_defaulted=no
1689 fi
1690 if test ! -r "$srcdir/$ac_unique_file"; then
1691   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1692   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1693 fi
1694 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1695 ac_abs_confdir=`(
1696         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1697         pwd)`
1698 # When building in place, set srcdir=.
1699 if test "$ac_abs_confdir" = "$ac_pwd"; then
1700   srcdir=.
1701 fi
1702 # Remove unnecessary trailing slashes from srcdir.
1703 # Double slashes in file names in object file debugging info
1704 # mess up M-x gdb in Emacs.
1705 case $srcdir in
1706 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1707 esac
1708 for ac_var in $ac_precious_vars; do
1709   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1710   eval ac_env_${ac_var}_value=\$${ac_var}
1711   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1712   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1713 done
1714 
1715 #
1716 # Report the --help message.
1717 #
1718 if test "$ac_init_help" = "long"; then
1719   # Omit some internal or obsolete options to make the list less imposing.
1720   # This message is too long to be a string in the A/UX 3.1 sh.
1721   cat <<_ACEOF
1722 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1723 
1724 Usage: $0 [OPTION]... [VAR=VALUE]...
1725 
1726 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1727 VAR=VALUE.  See below for descriptions of some of the useful variables.
1728 
1729 Defaults for the options are specified in brackets.
1730 
1731 Configuration:
1732   -h, --help              display this help and exit
1733       --help=short        display options specific to this package
1734       --help=recursive    display the short help of all the included packages
1735   -V, --version           display version information and exit
1736   -q, --quiet, --silent   do not print \`checking ...' messages
1737       --cache-file=FILE   cache test results in FILE [disabled]
1738   -C, --config-cache      alias for \`--cache-file=config.cache'
1739   -n, --no-create         do not create output files
1740       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1741 
1742 Installation directories:
1743   --prefix=PREFIX         install architecture-independent files in PREFIX
1744                           [$ac_default_prefix]
1745   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1746                           [PREFIX]
1747 
1748 By default, \`make install' will install all the files in
1749 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1750 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1751 for instance \`--prefix=\$HOME'.
1752 
1753 For better control, use the options below.
1754 
1755 Fine tuning of the installation directories:
1756   --bindir=DIR            user executables [EPREFIX/bin]
1757   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1758   --libexecdir=DIR        program executables [EPREFIX/libexec]
1759   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1760   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1761   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1762   --libdir=DIR            object code libraries [EPREFIX/lib]
1763   --includedir=DIR        C header files [PREFIX/include]
1764   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1765   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1766   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1767   --infodir=DIR           info documentation [DATAROOTDIR/info]
1768   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1769   --mandir=DIR            man documentation [DATAROOTDIR/man]
1770   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1771   --htmldir=DIR           html documentation [DOCDIR]
1772   --dvidir=DIR            dvi documentation [DOCDIR]
1773   --pdfdir=DIR            pdf documentation [DOCDIR]
1774   --psdir=DIR             ps documentation [DOCDIR]
1775 _ACEOF
1776 
1777   cat <<\_ACEOF
1778 
1779 X features:
1780   --x-includes=DIR    X include files are in DIR
1781   --x-libraries=DIR   X library files are in DIR
1782 
1783 System types:
1784   --build=BUILD     configure for building on BUILD [guessed]
1785   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1786   --target=TARGET   configure for building compilers for TARGET [HOST]
1787 _ACEOF
1788 fi
1789 
1790 if test -n "$ac_init_help"; then
1791   case $ac_init_help in
1792      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1793    esac
1794   cat <<\_ACEOF
1795 
1796 Optional Features:
1797   --disable-option-checking  ignore unrecognized --enable/--with options
1798   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1799   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1800   --enable-openjdk-only   suppress building custom source even if present
1801                           [disabled]
1802   --enable-debug          set the debug level to fastdebug (shorthand for
1803                           --with-debug-level=fastdebug) [disabled]
1804   --disable-headful       disable building headful support (graphical UI
1805                           support) [enabled]
1806   --enable-hotspot-test-in-build
1807                           run the Queens test after Hotspot build [disabled]
1808   --enable-unlimited-crypto
1809                           Enable unlimited crypto policy [disabled]
1810   --disable-debug-symbols disable generation of debug symbols [enabled]
1811   --disable-zip-debug-info
1812                           disable zipping of debug-info files [enabled]
1813   --enable-macosx-runtime-support
1814                           Deprecated. Option is kept for backwards
1815                           compatibility and is ignored
1816   --disable-freetype-bundling
1817                           disable bundling of the freetype library with the
1818                           build result [enabled on Windows or when using
1819                           --with-freetype, disabled otherwise]
1820   --enable-sjavac         use sjavac to do fast incremental compiles
1821                           [disabled]
1822   --disable-precompiled-headers
1823                           disable using precompiled headers when compiling C++
1824                           [enabled]
1825   --enable-ccache         enable using ccache to speed up recompilations
1826                           [disabled]
1827 
1828 Optional Packages:
1829   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1830   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1831   --with-custom-make-dir  use this directory for custom build/make files
1832   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1833                           support it), e.g. --with-target-bits=32 [guessed]
1834   --with-sys-root         pass this sys-root to the compilers and tools (for
1835                           cross-compiling)
1836   --with-tools-dir        search this directory for compilers and tools (for
1837                           cross-compiling)
1838   --with-devkit           use this directory as base for tools-dir and
1839                           sys-root (for cross-compiling)
1840   --with-jdk-variant      JDK variant to build (normal) [normal]
1841   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1842   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1843                           client, minimal1, kernel, zero, zeroshark, core)
1844                           [server]
1845   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1846                           [release]
1847   --with-conf-name        use this as the name of the configuration [generated
1848                           from important configuration options]
1849   --with-builddeps-conf   use this configuration file for the builddeps
1850   --with-builddeps-server download and use build dependencies from this server
1851                           url
1852   --with-builddeps-dir    store downloaded build dependencies here
1853                           [/localhome/builddeps]
1854   --with-builddeps-group  chgrp the downloaded build dependencies to this
1855                           group
1856   --with-cacerts-file     specify alternative cacerts file
1857   --with-milestone        Set milestone value for build [internal]
1858   --with-update-version   Set update version value for build [b00]
1859   --with-user-release-suffix
1860                           Add a custom string to the version string if build
1861                           number isn't set.[username_builddateb00]
1862   --with-build-number     Set build number value for build [b00]
1863   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1864   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1865                           invocations of the Boot JDK, overriding the default
1866                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1867                           -enableassertions"
1868   --with-add-source-root  for each and every source directory, look in this
1869                           additional source root for the same directory; if it
1870                           exists and have files in it, include it in the build
1871   --with-override-source-root
1872                           for each and every source directory, look in this
1873                           override source root for the same directory; if it
1874                           exists, use that directory instead and ignore the
1875                           directory in the original source root
1876   --with-adds-and-overrides
1877                           use the subdirs 'adds' and 'overrides' in the
1878                           specified directory as add-source-root and
1879                           override-source-root
1880   --with-override-langtools
1881                           use this langtools dir for the build
1882   --with-override-corba   use this corba dir for the build
1883   --with-override-jaxp    use this jaxp dir for the build
1884   --with-override-jaxws   use this jaxws dir for the build
1885   --with-override-hotspot use this hotspot dir for the build
1886   --with-override-nashorn use this nashorn dir for the build
1887   --with-override-jdk     use this jdk dir for the build
1888   --with-import-hotspot   import hotspot binaries from this jdk image or
1889                           hotspot build dist dir instead of building from
1890                           source
1891   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1892                           only) [probed]
1893   --with-dxsdk            Deprecated. Option is kept for backwards
1894                           compatibility and is ignored
1895   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1896                           compatibility and is ignored
1897   --with-dxsdk-include    Deprecated. Option is kept for backwards
1898                           compatibility and is ignored
1899   --with-jtreg            Regression Test Harness [probed]
1900   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1901   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1902   --with-extra-ldflags    extra flags to be used when linking jdk
1903   --with-x                use the X Window System
1904   --with-cups             specify prefix directory for the cups package
1905                           (expecting the headers under PATH/include)
1906   --with-cups-include     specify directory for the cups include files
1907   --with-freetype         specify prefix directory for the freetype package
1908                           (expecting the libraries under PATH/lib and the
1909                           headers under PATH/include)
1910   --with-freetype-include specify directory for the freetype include files
1911   --with-freetype-lib     specify directory for the freetype library
1912   --with-alsa             specify prefix directory for the alsa package
1913                           (expecting the libraries under PATH/lib and the
1914                           headers under PATH/include)
1915   --with-alsa-include     specify directory for the alsa include files
1916   --with-alsa-lib         specify directory for the alsa library
1917   --with-giflib           use giflib from build system or OpenJDK source
1918                           (system, bundled) [bundled]
1919   --with-zlib             use zlib from build system or OpenJDK source
1920                           (system, bundled) [bundled]
1921   --with-stdc++lib=<static>,<dynamic>,<default>
1922                           force linking of the C++ runtime on Linux to either
1923                           static or dynamic, default is static with dynamic as
1924                           fallback
1925   --with-num-cores        number of cores in the build system, e.g.
1926                           --with-num-cores=8 [probed]
1927   --with-memory-size      memory (in MB) available in the build system, e.g.
1928                           --with-memory-size=1024 [probed]
1929   --with-jobs             number of parallel jobs to let make run [calculated
1930                           based on cores and memory]
1931   --with-sjavac-server-java
1932                           use this java binary for running the sjavac
1933                           background server [Boot JDK java]
1934   --with-ccache-dir       where to store ccache files [~/.ccache]
1935 
1936 Some influential environment variables:
1937   BASENAME    Override default value for BASENAME
1938   BASH        Override default value for BASH
1939   CAT         Override default value for CAT
1940   CHMOD       Override default value for CHMOD
1941   CMP         Override default value for CMP
1942   COMM        Override default value for COMM
1943   CP          Override default value for CP
1944   CPIO        Override default value for CPIO
1945   CUT         Override default value for CUT
1946   DATE        Override default value for DATE
1947   DIFF        Override default value for DIFF
1948   DIRNAME     Override default value for DIRNAME
1949   ECHO        Override default value for ECHO
1950   EXPR        Override default value for EXPR
1951   FILE        Override default value for FILE
1952   FIND        Override default value for FIND
1953   HEAD        Override default value for HEAD
1954   LN          Override default value for LN
1955   LS          Override default value for LS
1956   MKDIR       Override default value for MKDIR
1957   MKTEMP      Override default value for MKTEMP
1958   MV          Override default value for MV
1959   NAWK        Override default value for NAWK
1960   PRINTF      Override default value for PRINTF
1961   RM          Override default value for RM
1962   SH          Override default value for SH
1963   SORT        Override default value for SORT
1964   TAIL        Override default value for TAIL
1965   TAR         Override default value for TAR
1966   TEE         Override default value for TEE
1967   TOUCH       Override default value for TOUCH
1968   TR          Override default value for TR
1969   UNAME       Override default value for UNAME
1970   UNIQ        Override default value for UNIQ
1971   WC          Override default value for WC
1972   WHICH       Override default value for WHICH
1973   XARGS       Override default value for XARGS
1974   AWK         Override default value for AWK
1975   GREP        Override default value for GREP
1976   EGREP       Override default value for EGREP
1977   FGREP       Override default value for FGREP
1978   SED         Override default value for SED
1979   CYGPATH     Override default value for CYGPATH
1980   READLINK    Override default value for READLINK
1981   DF          Override default value for DF
1982   SETFILE     Override default value for SETFILE
1983   UNZIP       Override default value for UNZIP
1984   ZIP         Override default value for ZIP
1985   LDD         Override default value for LDD
1986   OTOOL       Override default value for OTOOL
1987   READELF     Override default value for READELF
1988   HG          Override default value for HG
1989   STAT        Override default value for STAT
1990   TIME        Override default value for TIME
1991   DSYMUTIL    Override default value for DSYMUTIL
1992   XATTR       Override default value for XATTR
1993   CODESIGN    Override default value for CODESIGN
1994   PKG_CONFIG  path to pkg-config utility
1995   JAVA        Override default value for JAVA
1996   JAVAC       Override default value for JAVAC
1997   JAVAH       Override default value for JAVAH
1998   JAR         Override default value for JAR
1999   NATIVE2ASCII
2000               Override default value for NATIVE2ASCII
2001   JARSIGNER   Override default value for JARSIGNER
2002   BUILD_CC    Override default value for BUILD_CC
2003   BUILD_CXX   Override default value for BUILD_CXX
2004   BUILD_LD    Override default value for BUILD_LD
2005   CC          C compiler command
2006   CFLAGS      C compiler flags
2007   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2008               nonstandard directory <lib dir>
2009   LIBS        libraries to pass to the linker, e.g. -l<library>
2010   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2011               you have headers in a nonstandard directory <include dir>
2012   CXX         C++ compiler command
2013   CXXFLAGS    C++ compiler flags
2014   OBJC        Objective C compiler command
2015   OBJCFLAGS   Objective C compiler flags
2016   AR          Override default value for AR
2017   CPP         C preprocessor
2018   CXXCPP      C++ preprocessor
2019   AS          Override default value for AS
2020   NM          Override default value for NM
2021   GNM         Override default value for GNM
2022   STRIP       Override default value for STRIP
2023   MCS         Override default value for MCS
2024   OBJCOPY     Override default value for OBJCOPY
2025   OBJDUMP     Override default value for OBJDUMP
2026   LIPO        Override default value for LIPO
2027   JTREGEXE    Override default value for JTREGEXE
2028   XMKMF       Path to xmkmf, Makefile generator for X Window System
2029   FREETYPE_CFLAGS
2030               C compiler flags for FREETYPE, overriding pkg-config
2031   FREETYPE_LIBS
2032               linker flags for FREETYPE, overriding pkg-config
2033   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2034   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2035   LIBFFI_CFLAGS
2036               C compiler flags for LIBFFI, overriding pkg-config
2037   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2038   CCACHE      Override default value for CCACHE
2039 
2040 Use these variables to override the choices made by `configure' or to help
2041 it to find libraries and programs with nonstandard names/locations.
2042 
2043 Report bugs to <build-dev@openjdk.java.net>.
2044 OpenJDK home page: <http://openjdk.java.net>.
2045 _ACEOF
2046 ac_status=$?
2047 fi
2048 
2049 if test "$ac_init_help" = "recursive"; then
2050   # If there are subdirs, report their specific --help.
2051   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2052     test -d "$ac_dir" ||
2053       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2054       continue
2055     ac_builddir=.
2056 
2057 case "$ac_dir" in
2058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059 *)
2060   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2061   # A ".." for each directory in $ac_dir_suffix.
2062   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2063   case $ac_top_builddir_sub in
2064   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066   esac ;;
2067 esac
2068 ac_abs_top_builddir=$ac_pwd
2069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070 # for backward compatibility:
2071 ac_top_builddir=$ac_top_build_prefix
2072 
2073 case $srcdir in
2074   .)  # We are building in place.
2075     ac_srcdir=.
2076     ac_top_srcdir=$ac_top_builddir_sub
2077     ac_abs_top_srcdir=$ac_pwd ;;
2078   [\\/]* | ?:[\\/]* )  # Absolute name.
2079     ac_srcdir=$srcdir$ac_dir_suffix;
2080     ac_top_srcdir=$srcdir
2081     ac_abs_top_srcdir=$srcdir ;;
2082   *) # Relative name.
2083     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084     ac_top_srcdir=$ac_top_build_prefix$srcdir
2085     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086 esac
2087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088 
2089     cd "$ac_dir" || { ac_status=$?; continue; }
2090     # Check for guested configure.
2091     if test -f "$ac_srcdir/configure.gnu"; then
2092       echo &&
2093       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094     elif test -f "$ac_srcdir/configure"; then
2095       echo &&
2096       $SHELL "$ac_srcdir/configure" --help=recursive
2097     else
2098       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099     fi || ac_status=$?
2100     cd "$ac_pwd" || { ac_status=$?; break; }
2101   done
2102 fi
2103 
2104 test -n "$ac_init_help" && exit $ac_status
2105 if $ac_init_version; then
2106   cat <<\_ACEOF
2107 OpenJDK configure jdk8
2108 generated by GNU Autoconf 2.69
2109 
2110 Copyright (C) 2012 Free Software Foundation, Inc.
2111 This configure script is free software; the Free Software Foundation
2112 gives unlimited permission to copy, distribute and modify it.
2113 _ACEOF
2114   exit
2115 fi
2116 
2117 ## ------------------------ ##
2118 ## Autoconf initialization. ##
2119 ## ------------------------ ##
2120 
2121 # ac_fn_c_try_compile LINENO
2122 # --------------------------
2123 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_c_try_compile ()
2125 {
2126   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127   rm -f conftest.$ac_objext
2128   if { { ac_try="$ac_compile"
2129 case "(($ac_try" in
2130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131   *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135   (eval "$ac_compile") 2>conftest.err
2136   ac_status=$?
2137   if test -s conftest.err; then
2138     grep -v '^ *+' conftest.err >conftest.er1
2139     cat conftest.er1 >&5
2140     mv -f conftest.er1 conftest.err
2141   fi
2142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143   test $ac_status = 0; } && {
2144          test -z "$ac_c_werror_flag" ||
2145          test ! -s conftest.err
2146        } && test -s conftest.$ac_objext; then :
2147   ac_retval=0
2148 else
2149   $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151 
2152         ac_retval=1
2153 fi
2154   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155   as_fn_set_status $ac_retval
2156 
2157 } # ac_fn_c_try_compile
2158 
2159 # ac_fn_cxx_try_compile LINENO
2160 # ----------------------------
2161 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2162 ac_fn_cxx_try_compile ()
2163 {
2164   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165   rm -f conftest.$ac_objext
2166   if { { ac_try="$ac_compile"
2167 case "(($ac_try" in
2168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169   *) ac_try_echo=$ac_try;;
2170 esac
2171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173   (eval "$ac_compile") 2>conftest.err
2174   ac_status=$?
2175   if test -s conftest.err; then
2176     grep -v '^ *+' conftest.err >conftest.er1
2177     cat conftest.er1 >&5
2178     mv -f conftest.er1 conftest.err
2179   fi
2180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181   test $ac_status = 0; } && {
2182          test -z "$ac_cxx_werror_flag" ||
2183          test ! -s conftest.err
2184        } && test -s conftest.$ac_objext; then :
2185   ac_retval=0
2186 else
2187   $as_echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189 
2190         ac_retval=1
2191 fi
2192   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193   as_fn_set_status $ac_retval
2194 
2195 } # ac_fn_cxx_try_compile
2196 
2197 # ac_fn_objc_try_compile LINENO
2198 # -----------------------------
2199 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2200 ac_fn_objc_try_compile ()
2201 {
2202   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203   rm -f conftest.$ac_objext
2204   if { { ac_try="$ac_compile"
2205 case "(($ac_try" in
2206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207   *) ac_try_echo=$ac_try;;
2208 esac
2209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210 $as_echo "$ac_try_echo"; } >&5
2211   (eval "$ac_compile") 2>conftest.err
2212   ac_status=$?
2213   if test -s conftest.err; then
2214     grep -v '^ *+' conftest.err >conftest.er1
2215     cat conftest.er1 >&5
2216     mv -f conftest.er1 conftest.err
2217   fi
2218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2219   test $ac_status = 0; } && {
2220          test -z "$ac_objc_werror_flag" ||
2221          test ! -s conftest.err
2222        } && test -s conftest.$ac_objext; then :
2223   ac_retval=0
2224 else
2225   $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227 
2228         ac_retval=1
2229 fi
2230   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231   as_fn_set_status $ac_retval
2232 
2233 } # ac_fn_objc_try_compile
2234 
2235 # ac_fn_c_try_cpp LINENO
2236 # ----------------------
2237 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2238 ac_fn_c_try_cpp ()
2239 {
2240   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241   if { { ac_try="$ac_cpp conftest.$ac_ext"
2242 case "(($ac_try" in
2243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244   *) ac_try_echo=$ac_try;;
2245 esac
2246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2247 $as_echo "$ac_try_echo"; } >&5
2248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2249   ac_status=$?
2250   if test -s conftest.err; then
2251     grep -v '^ *+' conftest.err >conftest.er1
2252     cat conftest.er1 >&5
2253     mv -f conftest.er1 conftest.err
2254   fi
2255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256   test $ac_status = 0; } > conftest.i && {
2257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2258          test ! -s conftest.err
2259        }; then :
2260   ac_retval=0
2261 else
2262   $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264 
2265     ac_retval=1
2266 fi
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268   as_fn_set_status $ac_retval
2269 
2270 } # ac_fn_c_try_cpp
2271 
2272 # ac_fn_cxx_try_cpp LINENO
2273 # ------------------------
2274 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2275 ac_fn_cxx_try_cpp ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   if { { ac_try="$ac_cpp conftest.$ac_ext"
2279 case "(($ac_try" in
2280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281   *) ac_try_echo=$ac_try;;
2282 esac
2283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284 $as_echo "$ac_try_echo"; } >&5
2285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2286   ac_status=$?
2287   if test -s conftest.err; then
2288     grep -v '^ *+' conftest.err >conftest.er1
2289     cat conftest.er1 >&5
2290     mv -f conftest.er1 conftest.err
2291   fi
2292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2293   test $ac_status = 0; } > conftest.i && {
2294          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2295          test ! -s conftest.err
2296        }; then :
2297   ac_retval=0
2298 else
2299   $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301 
2302     ac_retval=1
2303 fi
2304   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305   as_fn_set_status $ac_retval
2306 
2307 } # ac_fn_cxx_try_cpp
2308 
2309 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2310 # ---------------------------------------------------------
2311 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2312 # the include files in INCLUDES and setting the cache variable VAR
2313 # accordingly.
2314 ac_fn_cxx_check_header_mongrel ()
2315 {
2316   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317   if eval \${$3+:} false; then :
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319 $as_echo_n "checking for $2... " >&6; }
2320 if eval \${$3+:} false; then :
2321   $as_echo_n "(cached) " >&6
2322 fi
2323 eval ac_res=\$$3
2324                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 else
2327   # Is the header compilable?
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2329 $as_echo_n "checking $2 usability... " >&6; }
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 #include <$2>
2334 _ACEOF
2335 if ac_fn_cxx_try_compile "$LINENO"; then :
2336   ac_header_compiler=yes
2337 else
2338   ac_header_compiler=no
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2342 $as_echo "$ac_header_compiler" >&6; }
2343 
2344 # Is the header present?
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2346 $as_echo_n "checking $2 presence... " >&6; }
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 #include <$2>
2350 _ACEOF
2351 if ac_fn_cxx_try_cpp "$LINENO"; then :
2352   ac_header_preproc=yes
2353 else
2354   ac_header_preproc=no
2355 fi
2356 rm -f conftest.err conftest.i conftest.$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2358 $as_echo "$ac_header_preproc" >&6; }
2359 
2360 # So?  What about this header?
2361 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2362   yes:no: )
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2364 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2365     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2366 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2367     ;;
2368   no:yes:* )
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2370 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2372 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2374 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2376 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2378 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2379 ( $as_echo "## ----------------------------------------- ##
2380 ## Report this to build-dev@openjdk.java.net ##
2381 ## ----------------------------------------- ##"
2382      ) | sed "s/^/$as_me: WARNING:     /" >&2
2383     ;;
2384 esac
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if eval \${$3+:} false; then :
2388   $as_echo_n "(cached) " >&6
2389 else
2390   eval "$3=\$ac_header_compiler"
2391 fi
2392 eval ac_res=\$$3
2393                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395 fi
2396   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397 
2398 } # ac_fn_cxx_check_header_mongrel
2399 
2400 # ac_fn_cxx_try_run LINENO
2401 # ------------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2403 # that executables *can* be run.
2404 ac_fn_cxx_try_run ()
2405 {
2406   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407   if { { ac_try="$ac_link"
2408 case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414   (eval "$ac_link") 2>&5
2415   ac_status=$?
2416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2417   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2418   { { case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424   (eval "$ac_try") 2>&5
2425   ac_status=$?
2426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427   test $ac_status = 0; }; }; then :
2428   ac_retval=0
2429 else
2430   $as_echo "$as_me: program exited with status $ac_status" >&5
2431        $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433 
2434        ac_retval=$ac_status
2435 fi
2436   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2437   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438   as_fn_set_status $ac_retval
2439 
2440 } # ac_fn_cxx_try_run
2441 
2442 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2443 # ---------------------------------------------------------
2444 # Tests whether HEADER exists and can be compiled using the include files in
2445 # INCLUDES, setting the cache variable VAR accordingly.
2446 ac_fn_cxx_check_header_compile ()
2447 {
2448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if eval \${$3+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h.  */
2456 $4
2457 #include <$2>
2458 _ACEOF
2459 if ac_fn_cxx_try_compile "$LINENO"; then :
2460   eval "$3=yes"
2461 else
2462   eval "$3=no"
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466 eval ac_res=\$$3
2467                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 
2471 } # ac_fn_cxx_check_header_compile
2472 
2473 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2474 # ----------------------------------------------
2475 # Tries to find the compile-time value of EXPR in a program that includes
2476 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2477 # computed
2478 ac_fn_cxx_compute_int ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   if test "$cross_compiling" = yes; then
2482     # Depending upon the size, compute the lo and hi bounds.
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h.  */
2485 $4
2486 int
2487 main ()
2488 {
2489 static int test_array [1 - 2 * !(($2) >= 0)];
2490 test_array [0] = 0;
2491 return test_array [0];
2492 
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_cxx_try_compile "$LINENO"; then :
2498   ac_lo=0 ac_mid=0
2499   while :; do
2500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 $4
2503 int
2504 main ()
2505 {
2506 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2507 test_array [0] = 0;
2508 return test_array [0];
2509 
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 if ac_fn_cxx_try_compile "$LINENO"; then :
2515   ac_hi=$ac_mid; break
2516 else
2517   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2518                         if test $ac_lo -le $ac_mid; then
2519                           ac_lo= ac_hi=
2520                           break
2521                         fi
2522                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525   done
2526 else
2527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h.  */
2529 $4
2530 int
2531 main ()
2532 {
2533 static int test_array [1 - 2 * !(($2) < 0)];
2534 test_array [0] = 0;
2535 return test_array [0];
2536 
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_cxx_try_compile "$LINENO"; then :
2542   ac_hi=-1 ac_mid=-1
2543   while :; do
2544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 int
2548 main ()
2549 {
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2551 test_array [0] = 0;
2552 return test_array [0];
2553 
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_cxx_try_compile "$LINENO"; then :
2559   ac_lo=$ac_mid; break
2560 else
2561   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2562                         if test $ac_mid -le $ac_hi; then
2563                           ac_lo= ac_hi=
2564                           break
2565                         fi
2566                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569   done
2570 else
2571   ac_lo= ac_hi=
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 fi
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 # Binary search between lo and hi bounds.
2577 while test "x$ac_lo" != "x$ac_hi"; do
2578   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int
2583 main ()
2584 {
2585 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2586 test_array [0] = 0;
2587 return test_array [0];
2588 
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2594   ac_hi=$ac_mid
2595 else
2596   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 done
2600 case $ac_lo in #((
2601 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2602 '') ac_retval=1 ;;
2603 esac
2604   else
2605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h.  */
2607 $4
2608 static long int longval () { return $2; }
2609 static unsigned long int ulongval () { return $2; }
2610 #include <stdio.h>
2611 #include <stdlib.h>
2612 int
2613 main ()
2614 {
2615 
2616   FILE *f = fopen ("conftest.val", "w");
2617   if (! f)
2618     return 1;
2619   if (($2) < 0)
2620     {
2621       long int i = longval ();
2622       if (i != ($2))
2623         return 1;
2624       fprintf (f, "%ld", i);
2625     }
2626   else
2627     {
2628       unsigned long int i = ulongval ();
2629       if (i != ($2))
2630         return 1;
2631       fprintf (f, "%lu", i);
2632     }
2633   /* Do not output a trailing newline, as this causes \r\n confusion
2634      on some platforms.  */
2635   return ferror (f) || fclose (f) != 0;
2636 
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_cxx_try_run "$LINENO"; then :
2642   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2643 else
2644   ac_retval=1
2645 fi
2646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2647   conftest.$ac_objext conftest.beam conftest.$ac_ext
2648 rm -f conftest.val
2649 
2650   fi
2651   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652   as_fn_set_status $ac_retval
2653 
2654 } # ac_fn_cxx_compute_int
2655 
2656 # ac_fn_cxx_try_link LINENO
2657 # -------------------------
2658 # Try to link conftest.$ac_ext, and return whether this succeeded.
2659 ac_fn_cxx_try_link ()
2660 {
2661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662   rm -f conftest.$ac_objext conftest$ac_exeext
2663   if { { ac_try="$ac_link"
2664 case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670   (eval "$ac_link") 2>conftest.err
2671   ac_status=$?
2672   if test -s conftest.err; then
2673     grep -v '^ *+' conftest.err >conftest.er1
2674     cat conftest.er1 >&5
2675     mv -f conftest.er1 conftest.err
2676   fi
2677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678   test $ac_status = 0; } && {
2679          test -z "$ac_cxx_werror_flag" ||
2680          test ! -s conftest.err
2681        } && test -s conftest$ac_exeext && {
2682          test "$cross_compiling" = yes ||
2683          test -x conftest$ac_exeext
2684        }; then :
2685   ac_retval=0
2686 else
2687   $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689 
2690         ac_retval=1
2691 fi
2692   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2693   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2694   # interfere with the next link command; also delete a directory that is
2695   # left behind by Apple's compiler.  We do this before executing the actions.
2696   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2697   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698   as_fn_set_status $ac_retval
2699 
2700 } # ac_fn_cxx_try_link
2701 
2702 # ac_fn_cxx_check_func LINENO FUNC VAR
2703 # ------------------------------------
2704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2705 ac_fn_cxx_check_func ()
2706 {
2707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2709 $as_echo_n "checking for $2... " >&6; }
2710 if eval \${$3+:} false; then :
2711   $as_echo_n "(cached) " >&6
2712 else
2713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h.  */
2715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2717 #define $2 innocuous_$2
2718 
2719 /* System header to define __stub macros and hopefully few prototypes,
2720     which can conflict with char $2 (); below.
2721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2722     <limits.h> exists even on freestanding compilers.  */
2723 
2724 #ifdef __STDC__
2725 # include <limits.h>
2726 #else
2727 # include <assert.h>
2728 #endif
2729 
2730 #undef $2
2731 
2732 /* Override any GCC internal prototype to avoid an error.
2733    Use char because int might match the return type of a GCC
2734    builtin and then its argument prototype would still apply.  */
2735 #ifdef __cplusplus
2736 extern "C"
2737 #endif
2738 char $2 ();
2739 /* The GNU C library defines this for functions which it implements
2740     to always fail with ENOSYS.  Some functions are actually named
2741     something starting with __ and the normal name is an alias.  */
2742 #if defined __stub_$2 || defined __stub___$2
2743 choke me
2744 #endif
2745 
2746 int
2747 main ()
2748 {
2749 return $2 ();
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 if ac_fn_cxx_try_link "$LINENO"; then :
2755   eval "$3=yes"
2756 else
2757   eval "$3=no"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext \
2760     conftest$ac_exeext conftest.$ac_ext
2761 fi
2762 eval ac_res=\$$3
2763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766 
2767 } # ac_fn_cxx_check_func
2768 
2769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2770 # -------------------------------------------------------
2771 # Tests whether HEADER exists and can be compiled using the include files in
2772 # INCLUDES, setting the cache variable VAR accordingly.
2773 ac_fn_c_check_header_compile ()
2774 {
2775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2777 $as_echo_n "checking for $2... " >&6; }
2778 if eval \${$3+:} false; then :
2779   $as_echo_n "(cached) " >&6
2780 else
2781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h.  */
2783 $4
2784 #include <$2>
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787   eval "$3=yes"
2788 else
2789   eval "$3=no"
2790 fi
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 fi
2793 eval ac_res=\$$3
2794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2797 
2798 } # ac_fn_c_check_header_compile
2799 cat >config.log <<_ACEOF
2800 This file contains any messages produced by compilers while
2801 running configure, to aid debugging if configure makes a mistake.
2802 
2803 It was created by OpenJDK $as_me jdk8, which was
2804 generated by GNU Autoconf 2.69.  Invocation command line was
2805 
2806   $ $0 $@
2807 
2808 _ACEOF
2809 exec 5>>config.log
2810 {
2811 cat <<_ASUNAME
2812 ## --------- ##
2813 ## Platform. ##
2814 ## --------- ##
2815 
2816 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2817 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2818 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2819 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2820 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2821 
2822 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2823 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2824 
2825 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2826 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2827 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2828 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2829 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2830 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2831 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2832 
2833 _ASUNAME
2834 
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838   IFS=$as_save_IFS
2839   test -z "$as_dir" && as_dir=.
2840     $as_echo "PATH: $as_dir"
2841   done
2842 IFS=$as_save_IFS
2843 
2844 } >&5
2845 
2846 cat >&5 <<_ACEOF
2847 
2848 
2849 ## ----------- ##
2850 ## Core tests. ##
2851 ## ----------- ##
2852 
2853 _ACEOF
2854 
2855 
2856 # Keep a trace of the command line.
2857 # Strip out --no-create and --no-recursion so they do not pile up.
2858 # Strip out --silent because we don't want to record it for future runs.
2859 # Also quote any args containing shell meta-characters.
2860 # Make two passes to allow for proper duplicate-argument suppression.
2861 ac_configure_args=
2862 ac_configure_args0=
2863 ac_configure_args1=
2864 ac_must_keep_next=false
2865 for ac_pass in 1 2
2866 do
2867   for ac_arg
2868   do
2869     case $ac_arg in
2870     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2871     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2872     | -silent | --silent | --silen | --sile | --sil)
2873       continue ;;
2874     *\'*)
2875       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2876     esac
2877     case $ac_pass in
2878     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2879     2)
2880       as_fn_append ac_configure_args1 " '$ac_arg'"
2881       if test $ac_must_keep_next = true; then
2882         ac_must_keep_next=false # Got value, back to normal.
2883       else
2884         case $ac_arg in
2885           *=* | --config-cache | -C | -disable-* | --disable-* \
2886           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2887           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2888           | -with-* | --with-* | -without-* | --without-* | --x)
2889             case "$ac_configure_args0 " in
2890               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2891             esac
2892             ;;
2893           -* ) ac_must_keep_next=true ;;
2894         esac
2895       fi
2896       as_fn_append ac_configure_args " '$ac_arg'"
2897       ;;
2898     esac
2899   done
2900 done
2901 { ac_configure_args0=; unset ac_configure_args0;}
2902 { ac_configure_args1=; unset ac_configure_args1;}
2903 
2904 # When interrupted or exit'd, cleanup temporary files, and complete
2905 # config.log.  We remove comments because anyway the quotes in there
2906 # would cause problems or look ugly.
2907 # WARNING: Use '\'' to represent an apostrophe within the trap.
2908 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2909 trap 'exit_status=$?
2910   # Save into config.log some information that might help in debugging.
2911   {
2912     echo
2913 
2914     $as_echo "## ---------------- ##
2915 ## Cache variables. ##
2916 ## ---------------- ##"
2917     echo
2918     # The following way of writing the cache mishandles newlines in values,
2919 (
2920   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2921     eval ac_val=\$$ac_var
2922     case $ac_val in #(
2923     *${as_nl}*)
2924       case $ac_var in #(
2925       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2927       esac
2928       case $ac_var in #(
2929       _ | IFS | as_nl) ;; #(
2930       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2931       *) { eval $ac_var=; unset $ac_var;} ;;
2932       esac ;;
2933     esac
2934   done
2935   (set) 2>&1 |
2936     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2937     *${as_nl}ac_space=\ *)
2938       sed -n \
2939         "s/'\''/'\''\\\\'\'''\''/g;
2940           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2941       ;; #(
2942     *)
2943       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2944       ;;
2945     esac |
2946     sort
2947 )
2948     echo
2949 
2950     $as_echo "## ----------------- ##
2951 ## Output variables. ##
2952 ## ----------------- ##"
2953     echo
2954     for ac_var in $ac_subst_vars
2955     do
2956       eval ac_val=\$$ac_var
2957       case $ac_val in
2958       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2959       esac
2960       $as_echo "$ac_var='\''$ac_val'\''"
2961     done | sort
2962     echo
2963 
2964     if test -n "$ac_subst_files"; then
2965       $as_echo "## ------------------- ##
2966 ## File substitutions. ##
2967 ## ------------------- ##"
2968       echo
2969       for ac_var in $ac_subst_files
2970       do
2971         eval ac_val=\$$ac_var
2972         case $ac_val in
2973         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2974         esac
2975         $as_echo "$ac_var='\''$ac_val'\''"
2976       done | sort
2977       echo
2978     fi
2979 
2980     if test -s confdefs.h; then
2981       $as_echo "## ----------- ##
2982 ## confdefs.h. ##
2983 ## ----------- ##"
2984       echo
2985       cat confdefs.h
2986       echo
2987     fi
2988     test "$ac_signal" != 0 &&
2989       $as_echo "$as_me: caught signal $ac_signal"
2990     $as_echo "$as_me: exit $exit_status"
2991   } >&5
2992   rm -f core *.core core.conftest.* &&
2993     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2994     exit $exit_status
2995 ' 0
2996 for ac_signal in 1 2 13 15; do
2997   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2998 done
2999 ac_signal=0
3000 
3001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3002 rm -f -r conftest* confdefs.h
3003 
3004 $as_echo "/* confdefs.h */" > confdefs.h
3005 
3006 # Predefined preprocessor variables.
3007 
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_NAME "$PACKAGE_NAME"
3010 _ACEOF
3011 
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3014 _ACEOF
3015 
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3018 _ACEOF
3019 
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_STRING "$PACKAGE_STRING"
3022 _ACEOF
3023 
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3026 _ACEOF
3027 
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_URL "$PACKAGE_URL"
3030 _ACEOF
3031 
3032 
3033 # Let the site file select an alternate cache file if it wants to.
3034 # Prefer an explicitly selected file to automatically selected ones.
3035 ac_site_file1=NONE
3036 ac_site_file2=NONE
3037 if test -n "$CONFIG_SITE"; then
3038   # We do not want a PATH search for config.site.
3039   case $CONFIG_SITE in #((
3040     -*)  ac_site_file1=./$CONFIG_SITE;;
3041     */*) ac_site_file1=$CONFIG_SITE;;
3042     *)   ac_site_file1=./$CONFIG_SITE;;
3043   esac
3044 elif test "x$prefix" != xNONE; then
3045   ac_site_file1=$prefix/share/config.site
3046   ac_site_file2=$prefix/etc/config.site
3047 else
3048   ac_site_file1=$ac_default_prefix/share/config.site
3049   ac_site_file2=$ac_default_prefix/etc/config.site
3050 fi
3051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3052 do
3053   test "x$ac_site_file" = xNONE && continue
3054   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3055     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3057     sed 's/^/| /' "$ac_site_file" >&5
3058     . "$ac_site_file" \
3059       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3061 as_fn_error $? "failed to load site script $ac_site_file
3062 See \`config.log' for more details" "$LINENO" 5; }
3063   fi
3064 done
3065 
3066 if test -r "$cache_file"; then
3067   # Some versions of bash will fail to source /dev/null (special files
3068   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3069   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3070     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3071 $as_echo "$as_me: loading cache $cache_file" >&6;}
3072     case $cache_file in
3073       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3074       *)                      . "./$cache_file";;
3075     esac
3076   fi
3077 else
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3079 $as_echo "$as_me: creating cache $cache_file" >&6;}
3080   >$cache_file
3081 fi
3082 
3083 # Check that the precious variables saved in the cache have kept the same
3084 # value.
3085 ac_cache_corrupted=false
3086 for ac_var in $ac_precious_vars; do
3087   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3088   eval ac_new_set=\$ac_env_${ac_var}_set
3089   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3090   eval ac_new_val=\$ac_env_${ac_var}_value
3091   case $ac_old_set,$ac_new_set in
3092     set,)
3093       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3094 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3095       ac_cache_corrupted=: ;;
3096     ,set)
3097       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3098 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3099       ac_cache_corrupted=: ;;
3100     ,);;
3101     *)
3102       if test "x$ac_old_val" != "x$ac_new_val"; then
3103         # differences in whitespace do not lead to failure.
3104         ac_old_val_w=`echo x $ac_old_val`
3105         ac_new_val_w=`echo x $ac_new_val`
3106         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3107           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3108 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3109           ac_cache_corrupted=:
3110         else
3111           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3112 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3113           eval $ac_var=\$ac_old_val
3114         fi
3115         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3116 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3117         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3118 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3119       fi;;
3120   esac
3121   # Pass precious variables to config.status.
3122   if test "$ac_new_set" = set; then
3123     case $ac_new_val in
3124     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3125     *) ac_arg=$ac_var=$ac_new_val ;;
3126     esac
3127     case " $ac_configure_args " in
3128       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3129       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3130     esac
3131   fi
3132 done
3133 if $ac_cache_corrupted; then
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3137 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3138   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3139 fi
3140 ## -------------------- ##
3141 ## Main body of script. ##
3142 ## -------------------- ##
3143 
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 
3150 
3151 
3152 ac_aux_dir=
3153 for ac_dir in build-aux "$srcdir"/build-aux; do
3154   if test -f "$ac_dir/install-sh"; then
3155     ac_aux_dir=$ac_dir
3156     ac_install_sh="$ac_aux_dir/install-sh -c"
3157     break
3158   elif test -f "$ac_dir/install.sh"; then
3159     ac_aux_dir=$ac_dir
3160     ac_install_sh="$ac_aux_dir/install.sh -c"
3161     break
3162   elif test -f "$ac_dir/shtool"; then
3163     ac_aux_dir=$ac_dir
3164     ac_install_sh="$ac_aux_dir/shtool install -c"
3165     break
3166   fi
3167 done
3168 if test -z "$ac_aux_dir"; then
3169   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3170 fi
3171 
3172 # These three variables are undocumented and unsupported,
3173 # and are intended to be withdrawn in a future Autoconf release.
3174 # They can cause serious problems if a builder's source tree is in a directory
3175 # whose full name contains unusual characters.
3176 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3177 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3178 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3179 
3180 
3181 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3182 
3183 #
3184 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3185 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3186 #
3187 # This code is free software; you can redistribute it and/or modify it
3188 # under the terms of the GNU General Public License version 2 only, as
3189 # published by the Free Software Foundation.  Oracle designates this
3190 # particular file as subject to the "Classpath" exception as provided
3191 # by Oracle in the LICENSE file that accompanied this code.
3192 #
3193 # This code is distributed in the hope that it will be useful, but WITHOUT
3194 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3195 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3196 # version 2 for more details (a copy is included in the LICENSE file that
3197 # accompanied this code).
3198 #
3199 # You should have received a copy of the GNU General Public License version
3200 # 2 along with this work; if not, write to the Free Software Foundation,
3201 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3202 #
3203 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3204 # or visit www.oracle.com if you need additional information or have any
3205 # questions.
3206 #
3207 
3208 #
3209 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3210 #
3211 # This program is free software; you can redistribute it and/or modify
3212 # it under the terms of the GNU General Public License as published by
3213 # the Free Software Foundation; either version 2 of the License, or
3214 # (at your option) any later version.
3215 #
3216 # This program is distributed in the hope that it will be useful, but
3217 # WITHOUT ANY WARRANTY; without even the implied warranty of
3218 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3219 # General Public License for more details.
3220 #
3221 # You should have received a copy of the GNU General Public License
3222 # along with this program; if not, write to the Free Software
3223 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3224 #
3225 # As a special exception to the GNU General Public License, if you
3226 # distribute this file as part of a program that contains a
3227 # configuration script generated by Autoconf, you may include it under
3228 # the same distribution terms that you use for the rest of that program.
3229 
3230 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3231 # ----------------------------------
3232 # PKG_PROG_PKG_CONFIG
3233 
3234 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3235 #
3236 # Check to see whether a particular set of modules exists.  Similar
3237 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3238 #
3239 #
3240 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3241 # this or PKG_CHECK_MODULES is called, or make sure to call
3242 # PKG_CHECK_EXISTS manually
3243 # --------------------------------------------------------------
3244 
3245 
3246 
3247 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3248 # ---------------------------------------------
3249 # _PKG_CONFIG
3250 
3251 # _PKG_SHORT_ERRORS_SUPPORTED
3252 # -----------------------------
3253 # _PKG_SHORT_ERRORS_SUPPORTED
3254 
3255 
3256 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3257 # [ACTION-IF-NOT-FOUND])
3258 #
3259 #
3260 # Note that if there is a possibility the first call to
3261 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3262 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3263 #
3264 #
3265 # --------------------------------------------------------------
3266 # PKG_CHECK_MODULES
3267 
3268 
3269 # Include these first...
3270 #
3271 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3272 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3273 #
3274 # This code is free software; you can redistribute it and/or modify it
3275 # under the terms of the GNU General Public License version 2 only, as
3276 # published by the Free Software Foundation.  Oracle designates this
3277 # particular file as subject to the "Classpath" exception as provided
3278 # by Oracle in the LICENSE file that accompanied this code.
3279 #
3280 # This code is distributed in the hope that it will be useful, but WITHOUT
3281 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3282 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3283 # version 2 for more details (a copy is included in the LICENSE file that
3284 # accompanied this code).
3285 #
3286 # You should have received a copy of the GNU General Public License version
3287 # 2 along with this work; if not, write to the Free Software Foundation,
3288 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3289 #
3290 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3291 # or visit www.oracle.com if you need additional information or have any
3292 # questions.
3293 #
3294 
3295 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3296 # If so, then append $1 to $2 \
3297 # Also set JVM_ARG_OK to true/false depending on outcome.
3298 
3299 
3300 # Appends a string to a path variable, only adding the : when needed.
3301 
3302 
3303 # This will make sure the given variable points to a full and proper
3304 # path. This means:
3305 # 1) There will be no spaces in the path. On posix platforms,
3306 #    spaces in the path will result in an error. On Windows,
3307 #    the path will be rewritten using short-style to be space-free.
3308 # 2) The path will be absolute, and it will be in unix-style (on
3309 #     cygwin).
3310 # $1: The name of the variable to fix
3311 
3312 
3313 # This will make sure the given variable points to a executable
3314 # with a full and proper path. This means:
3315 # 1) There will be no spaces in the path. On posix platforms,
3316 #    spaces in the path will result in an error. On Windows,
3317 #    the path will be rewritten using short-style to be space-free.
3318 # 2) The path will be absolute, and it will be in unix-style (on
3319 #     cygwin).
3320 # Any arguments given to the executable is preserved.
3321 # If the input variable does not have a directory specification, then
3322 # it need to be in the PATH.
3323 # $1: The name of the variable to fix
3324 
3325 
3326 
3327 
3328 # Register a --with argument but mark it as deprecated
3329 # $1: The name of the with argument to deprecate, not including --with-
3330 
3331 
3332 # Register a --enable argument but mark it as deprecated
3333 # $1: The name of the with argument to deprecate, not including --enable-
3334 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3335 
3336 
3337 
3338 
3339 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3340 # $1: variable to check
3341 
3342 
3343 # Check that there are no unprocessed overridden variables left.
3344 # If so, they are an incorrect argument and we will exit with an error.
3345 
3346 
3347 # Setup a tool for the given variable. If correctly specified by the user,
3348 # use that value, otherwise search for the tool using the supplied code snippet.
3349 # $1: variable to set
3350 # $2: code snippet to call to look for the tool
3351 
3352 
3353 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3354 # $1: variable to set
3355 # $2: executable name (or list of names) to look for
3356 
3357 
3358 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3359 # $1: variable to set
3360 # $2: executable name (or list of names) to look for
3361 
3362 
3363 # Like BASIC_PATH_PROGS but fails if no tool was found.
3364 # $1: variable to set
3365 # $2: executable name (or list of names) to look for
3366 
3367 
3368 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3369 # $1: variable to set
3370 # $2: autoconf macro to call to look for the special tool
3371 
3372 
3373 # Setup the most fundamental tools that relies on not much else to set up,
3374 # but is used by much of the early bootstrap code.
3375 
3376 
3377 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3378 
3379 
3380 
3381 
3382 
3383 
3384 
3385 #%%% Simple tools %%%
3386 
3387 # Check if we have found a usable version of make
3388 # $1: the path to a potential make binary (or empty)
3389 # $2: the description on how we found this
3390 
3391 
3392 # Goes looking for a usable version of GNU make.
3393 
3394 
3395 
3396 
3397 
3398 
3399 # Check if build directory is on local disk. If not possible to determine,
3400 # we prefer to claim it's local.
3401 # Argument 1: directory to test
3402 # Argument 2: what to do if it is on local disk
3403 # Argument 3: what to do otherwise (remote disk or failure)
3404 
3405 
3406 # Check that source files have basic read permissions set. This might
3407 # not be the case in cygwin in certain conditions.
3408 
3409 
3410 
3411 
3412 #
3413 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3414 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3415 #
3416 # This code is free software; you can redistribute it and/or modify it
3417 # under the terms of the GNU General Public License version 2 only, as
3418 # published by the Free Software Foundation.  Oracle designates this
3419 # particular file as subject to the "Classpath" exception as provided
3420 # by Oracle in the LICENSE file that accompanied this code.
3421 #
3422 # This code is distributed in the hope that it will be useful, but WITHOUT
3423 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3424 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3425 # version 2 for more details (a copy is included in the LICENSE file that
3426 # accompanied this code).
3427 #
3428 # You should have received a copy of the GNU General Public License version
3429 # 2 along with this work; if not, write to the Free Software Foundation,
3430 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3431 #
3432 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3433 # or visit www.oracle.com if you need additional information or have any
3434 # questions.
3435 #
3436 
3437 
3438 
3439 
3440 
3441 # Helper function which possibly converts a path using DOS-style short mode.
3442 # If so, the updated path is stored in $new_path.
3443 # $1: The path to check
3444 
3445 
3446 # Helper function which possibly converts a path using DOS-style short mode.
3447 # If so, the updated path is stored in $new_path.
3448 # $1: The path to check
3449 
3450 
3451 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3452 # and could probably be heavily simplified. However, all changes in this
3453 # area tend to need lot of testing in different scenarios, and in lack of
3454 # proper unit testing, cleaning this up has not been deemed worth the effort
3455 # at the moment.
3456 
3457 
3458 
3459 
3460 
3461 
3462 
3463 
3464 
3465 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3466 
3467 
3468 
3469 
3470 #
3471 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3472 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3473 #
3474 # This code is free software; you can redistribute it and/or modify it
3475 # under the terms of the GNU General Public License version 2 only, as
3476 # published by the Free Software Foundation.  Oracle designates this
3477 # particular file as subject to the "Classpath" exception as provided
3478 # by Oracle in the LICENSE file that accompanied this code.
3479 #
3480 # This code is distributed in the hope that it will be useful, but WITHOUT
3481 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3482 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3483 # version 2 for more details (a copy is included in the LICENSE file that
3484 # accompanied this code).
3485 #
3486 # You should have received a copy of the GNU General Public License version
3487 # 2 along with this work; if not, write to the Free Software Foundation,
3488 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3489 #
3490 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3491 # or visit www.oracle.com if you need additional information or have any
3492 # questions.
3493 #
3494 
3495 
3496 
3497 
3498 
3499 
3500 
3501 
3502 
3503 
3504 
3505 # ... then the rest
3506 #
3507 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3508 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3509 #
3510 # This code is free software; you can redistribute it and/or modify it
3511 # under the terms of the GNU General Public License version 2 only, as
3512 # published by the Free Software Foundation.  Oracle designates this
3513 # particular file as subject to the "Classpath" exception as provided
3514 # by Oracle in the LICENSE file that accompanied this code.
3515 #
3516 # This code is distributed in the hope that it will be useful, but WITHOUT
3517 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3518 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3519 # version 2 for more details (a copy is included in the LICENSE file that
3520 # accompanied this code).
3521 #
3522 # You should have received a copy of the GNU General Public License version
3523 # 2 along with this work; if not, write to the Free Software Foundation,
3524 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3525 #
3526 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3527 # or visit www.oracle.com if you need additional information or have any
3528 # questions.
3529 #
3530 
3531 ########################################################################
3532 # This file handles detection of the Boot JDK. The Boot JDK detection
3533 # process has been developed as a response to solve a complex real-world
3534 # problem. Initially, it was simple, but it has grown as platform after
3535 # platform, idiosyncracy after idiosyncracy has been supported.
3536 #
3537 # The basic idea is this:
3538 # 1) You need an acceptable *) JDK to use as a Boot JDK
3539 # 2) There are several ways to locate a JDK, that are mostly platform
3540 #    dependent **)
3541 # 3) You can have multiple JDKs installed
3542 # 4) If possible, configure should try to dig out an acceptable JDK
3543 #    automatically, without having to resort to command-line options
3544 #
3545 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3546 #     javac) and not a JRE, etc.
3547 #
3548 # **) On Windows we typically use a well-known path.
3549 #     On MacOSX we typically use the tool java_home.
3550 #     On Linux we typically find javac in the $PATH, and then follow a
3551 #     chain of symlinks that often ends up in a real JDK.
3552 #
3553 # This leads to the code where we check in different ways to locate a
3554 # JDK, and if one is found, check if it is acceptable. If not, we print
3555 # our reasons for rejecting it (useful when debugging non-working
3556 # configure situations) and continue checking the next one.
3557 ########################################################################
3558 
3559 # Execute the check given as argument, and verify the result
3560 # If the Boot JDK was previously found, do nothing
3561 # $1 A command line (typically autoconf macro) to execute
3562 
3563 
3564 # Test: Is bootjdk explicitely set by command line arguments?
3565 
3566 
3567 # Test: Is bootjdk available from builddeps?
3568 
3569 
3570 # Test: Is $JAVA_HOME set?
3571 
3572 
3573 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3574 
3575 
3576 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3577 # $1: Argument to the java_home binary (optional)
3578 
3579 
3580 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3581 
3582 
3583 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3584 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3585 # $1 = Path to directory containing jdk installations.
3586 # $2 = String to append to the found JDK directory to get the proper JDK home
3587 
3588 
3589 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3590 # environmental variable as base for where to look.
3591 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3592 
3593 
3594 # Test: Is there a JDK installed in default, well-known locations?
3595 
3596 
3597 # Check that a command-line tool in the Boot JDK is correct
3598 # $1 = name of variable to assign
3599 # $2 = name of binary
3600 
3601 
3602 ###############################################################################
3603 #
3604 # We need a Boot JDK to bootstrap the build.
3605 #
3606 
3607 
3608 
3609 
3610 
3611 #
3612 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3613 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3614 #
3615 # This code is free software; you can redistribute it and/or modify it
3616 # under the terms of the GNU General Public License version 2 only, as
3617 # published by the Free Software Foundation.  Oracle designates this
3618 # particular file as subject to the "Classpath" exception as provided
3619 # by Oracle in the LICENSE file that accompanied this code.
3620 #
3621 # This code is distributed in the hope that it will be useful, but WITHOUT
3622 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3623 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3624 # version 2 for more details (a copy is included in the LICENSE file that
3625 # accompanied this code).
3626 #
3627 # You should have received a copy of the GNU General Public License version
3628 # 2 along with this work; if not, write to the Free Software Foundation,
3629 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3630 #
3631 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3632 # or visit www.oracle.com if you need additional information or have any
3633 # questions.
3634 #
3635 
3636 
3637 
3638 
3639 
3640 
3641 
3642 
3643 
3644 
3645 
3646 
3647 
3648 
3649 
3650 
3651 
3652 
3653 
3654 
3655 #
3656 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3657 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3658 #
3659 # This code is free software; you can redistribute it and/or modify it
3660 # under the terms of the GNU General Public License version 2 only, as
3661 # published by the Free Software Foundation.  Oracle designates this
3662 # particular file as subject to the "Classpath" exception as provided
3663 # by Oracle in the LICENSE file that accompanied this code.
3664 #
3665 # This code is distributed in the hope that it will be useful, but WITHOUT
3666 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3667 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3668 # version 2 for more details (a copy is included in the LICENSE file that
3669 # accompanied this code).
3670 #
3671 # You should have received a copy of the GNU General Public License version
3672 # 2 along with this work; if not, write to the Free Software Foundation,
3673 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3674 #
3675 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3676 # or visit www.oracle.com if you need additional information or have any
3677 # questions.
3678 #
3679 
3680 
3681 
3682 
3683 
3684 cygwin_help() {
3685   case $1 in
3686     unzip)
3687       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3688       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3689       ;;
3690     zip)
3691       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3692       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3693       ;;
3694     make)
3695       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3696       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3697       ;;
3698     freetype)
3699       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3700         HELP_MSG="To install freetype, run:
3701 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3702 chmod +x /tmp/freetype-setup.exe
3703 /tmp/freetype-setup.exe
3704 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3705 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3706       else
3707         HELP_MSG="You need to build a 64-bit version of freetype.
3708 This is not readily available.
3709 You can find source code and build instructions on
3710 http://www.freetype.org/
3711 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3712       fi
3713       ;;
3714   esac
3715 }
3716 
3717 msys_help() {
3718   PKGHANDLER_COMMAND=""
3719 }
3720 
3721 apt_help() {
3722   case $1 in
3723     devkit)
3724       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3725     openjdk)
3726       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3727     alsa)
3728       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3729     cups)
3730       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3731     freetype)
3732       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3733     pulse)
3734       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3735     x11)
3736       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3737     ccache)
3738       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3739   esac
3740 }
3741 
3742 yum_help() {
3743   case $1 in
3744     devkit)
3745       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3746     openjdk)
3747       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3748     alsa)
3749       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3750     cups)
3751       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3752     freetype)
3753       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3754     pulse)
3755       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3756     x11)
3757       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3758     ccache)
3759       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3760   esac
3761 }
3762 
3763 port_help() {
3764   PKGHANDLER_COMMAND=""
3765 }
3766 
3767 pkgutil_help() {
3768   PKGHANDLER_COMMAND=""
3769 }
3770 
3771 pkgadd_help() {
3772   PKGHANDLER_COMMAND=""
3773 }
3774 
3775 
3776 
3777 #
3778 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3779 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3780 #
3781 # This code is free software; you can redistribute it and/or modify it
3782 # under the terms of the GNU General Public License version 2 only, as
3783 # published by the Free Software Foundation.  Oracle designates this
3784 # particular file as subject to the "Classpath" exception as provided
3785 # by Oracle in the LICENSE file that accompanied this code.
3786 #
3787 # This code is distributed in the hope that it will be useful, but WITHOUT
3788 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3789 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3790 # version 2 for more details (a copy is included in the LICENSE file that
3791 # accompanied this code).
3792 #
3793 # You should have received a copy of the GNU General Public License version
3794 # 2 along with this work; if not, write to the Free Software Foundation,
3795 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3796 #
3797 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3798 # or visit www.oracle.com if you need additional information or have any
3799 # questions.
3800 #
3801 
3802 
3803 
3804 
3805 
3806 
3807 
3808 
3809 
3810 
3811 ###############################################################################
3812 #
3813 # Should we build only OpenJDK even if closed sources are present?
3814 #
3815 
3816 
3817 
3818 
3819 ###############################################################################
3820 #
3821 # Setup version numbers
3822 #
3823 
3824 
3825 
3826 
3827 
3828 
3829 # Support for customization of the build process. Some build files
3830 # will include counterparts from this location, if they exist. This allows
3831 # for a degree of customization of the build targets and the rules/recipes
3832 # to create them
3833 
3834 # Check whether --with-custom-make-dir was given.
3835 if test "${with_custom_make_dir+set}" = set; then :
3836   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3837 fi
3838 
3839 
3840 
3841 #
3842 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3843 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3844 #
3845 # This code is free software; you can redistribute it and/or modify it
3846 # under the terms of the GNU General Public License version 2 only, as
3847 # published by the Free Software Foundation.  Oracle designates this
3848 # particular file as subject to the "Classpath" exception as provided
3849 # by Oracle in the LICENSE file that accompanied this code.
3850 #
3851 # This code is distributed in the hope that it will be useful, but WITHOUT
3852 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3853 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3854 # version 2 for more details (a copy is included in the LICENSE file that
3855 # accompanied this code).
3856 #
3857 # You should have received a copy of the GNU General Public License version
3858 # 2 along with this work; if not, write to the Free Software Foundation,
3859 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3860 #
3861 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3862 # or visit www.oracle.com if you need additional information or have any
3863 # questions.
3864 #
3865 
3866 
3867 
3868 
3869 
3870 
3871 
3872 
3873 
3874 
3875 
3876 
3877 
3878 
3879 
3880 
3881 
3882 #
3883 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3884 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3885 #
3886 # This code is free software; you can redistribute it and/or modify it
3887 # under the terms of the GNU General Public License version 2 only, as
3888 # published by the Free Software Foundation.  Oracle designates this
3889 # particular file as subject to the "Classpath" exception as provided
3890 # by Oracle in the LICENSE file that accompanied this code.
3891 #
3892 # This code is distributed in the hope that it will be useful, but WITHOUT
3893 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3894 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3895 # version 2 for more details (a copy is included in the LICENSE file that
3896 # accompanied this code).
3897 #
3898 # You should have received a copy of the GNU General Public License version
3899 # 2 along with this work; if not, write to the Free Software Foundation,
3900 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3901 #
3902 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3903 # or visit www.oracle.com if you need additional information or have any
3904 # questions.
3905 #
3906 
3907 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3908 # Converts autoconf style CPU name to OpenJDK style, into
3909 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3910 
3911 
3912 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3913 # Converts autoconf style OS name to OpenJDK style, into
3914 # VAR_OS and VAR_OS_API.
3915 
3916 
3917 # Expects $host_os $host_cpu $build_os and $build_cpu
3918 # and $with_target_bits to have been setup!
3919 #
3920 # Translate the standard triplet(quadruplet) definition
3921 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3922 # OPENJDK_BUILD_OS, etc.
3923 
3924 
3925 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3926 # accordingly. Must be done after setting up build and target system, but before
3927 # doing anything else with these values.
3928 
3929 
3930 # Setup the legacy variables, for controlling the old makefiles.
3931 #
3932 
3933 
3934 
3935 
3936 #%%% Build and target systems %%%
3937 
3938 
3939 
3940 
3941 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3942 # Add -mX to various FLAGS variables.
3943 
3944 
3945 
3946 
3947 
3948 
3949 #
3950 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3951 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3952 #
3953 # This code is free software; you can redistribute it and/or modify it
3954 # under the terms of the GNU General Public License version 2 only, as
3955 # published by the Free Software Foundation.  Oracle designates this
3956 # particular file as subject to the "Classpath" exception as provided
3957 # by Oracle in the LICENSE file that accompanied this code.
3958 #
3959 # This code is distributed in the hope that it will be useful, but WITHOUT
3960 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3961 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3962 # version 2 for more details (a copy is included in the LICENSE file that
3963 # accompanied this code).
3964 #
3965 # You should have received a copy of the GNU General Public License version
3966 # 2 along with this work; if not, write to the Free Software Foundation,
3967 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3968 #
3969 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3970 # or visit www.oracle.com if you need additional information or have any
3971 # questions.
3972 #
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 #
3982 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3983 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3984 #
3985 # This code is free software; you can redistribute it and/or modify it
3986 # under the terms of the GNU General Public License version 2 only, as
3987 # published by the Free Software Foundation.  Oracle designates this
3988 # particular file as subject to the "Classpath" exception as provided
3989 # by Oracle in the LICENSE file that accompanied this code.
3990 #
3991 # This code is distributed in the hope that it will be useful, but WITHOUT
3992 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3993 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3994 # version 2 for more details (a copy is included in the LICENSE file that
3995 # accompanied this code).
3996 #
3997 # You should have received a copy of the GNU General Public License version
3998 # 2 along with this work; if not, write to the Free Software Foundation,
3999 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4000 #
4001 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4002 # or visit www.oracle.com if you need additional information or have any
4003 # questions.
4004 #
4005 
4006 # $1 = compiler to test (CC or CXX)
4007 # $2 = human readable name of compiler (C or C++)
4008 
4009 
4010 
4011 
4012 
4013 # $1 = compiler to test (CC or CXX)
4014 # $2 = human readable name of compiler (C or C++)
4015 # $3 = list of compiler names to search for
4016 
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 
4025 
4026 
4027 
4028 
4029 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4030 #                                   [RUN-IF-FALSE])
4031 # ------------------------------------------------------------
4032 # Check that the c and c++ compilers support an argument
4033 
4034 
4035 
4036 
4037 # Setup the JTREG paths
4038 
4039 
4040 #
4041 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4042 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4043 #
4044 # This code is free software; you can redistribute it and/or modify it
4045 # under the terms of the GNU General Public License version 2 only, as
4046 # published by the Free Software Foundation.  Oracle designates this
4047 # particular file as subject to the "Classpath" exception as provided
4048 # by Oracle in the LICENSE file that accompanied this code.
4049 #
4050 # This code is distributed in the hope that it will be useful, but WITHOUT
4051 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4052 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4053 # version 2 for more details (a copy is included in the LICENSE file that
4054 # accompanied this code).
4055 #
4056 # You should have received a copy of the GNU General Public License version
4057 # 2 along with this work; if not, write to the Free Software Foundation,
4058 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4059 #
4060 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4061 # or visit www.oracle.com if you need additional information or have any
4062 # questions.
4063 #
4064 
4065 
4066 
4067 
4068 
4069 
4070 
4071 # Check if the VS env variables were setup prior to running configure.
4072 # If not, then find vcvarsall.bat and run it automatically, and integrate
4073 # the set env variables into the spec file.
4074 
4075 
4076 
4077 
4078 
4079 
4080 
4081 
4082 
4083 
4084 # This line needs to be here, verbatim, after all includes and the dummy hook
4085 # definitions. It is replaced with custom functionality when building
4086 # custom sources.
4087 #CUSTOM_AUTOCONF_INCLUDE
4088 
4089 # Do not change or remove the following line, it is needed for consistency checks:
4090 DATE_WHEN_GENERATED=1391160222
4091 
4092 ###############################################################################
4093 #
4094 # Initialization / Boot-strapping
4095 #
4096 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4097 # thus it jumps back and forth, each time gaining something needed later on.
4098 #
4099 ###############################################################################
4100 
4101 # Basic initialization that must happen first of all
4102 
4103   # Save the original command line. This is passed to us by the wrapper configure script.
4104 
4105   DATE_WHEN_CONFIGURED=`LANG=C date`
4106 
4107   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4108 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4110 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4111 
4112 
4113   # Start with tools that do not need have cross compilation support
4114   # and can be expected to be found in the default PATH. These tools are
4115   # used by configure. Nor are these tools expected to be found in the
4116   # devkit from the builddeps server either, since they are
4117   # needed to download the devkit.
4118 
4119   # First are all the simple required tools.
4120 
4121 
4122 
4123   # Publish this variable in the help.
4124 
4125 
4126   if test "x$BASENAME" = x; then
4127     # The variable is not set by user, try to locate tool using the code snippet
4128     for ac_prog in basename
4129 do
4130   # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_path_BASENAME+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   case $BASENAME in
4138   [\\/]* | ?:[\\/]*)
4139   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4140   ;;
4141   *)
4142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145   IFS=$as_save_IFS
4146   test -z "$as_dir" && as_dir=.
4147     for ac_exec_ext in '' $ac_executable_extensions; do
4148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151     break 2
4152   fi
4153 done
4154   done
4155 IFS=$as_save_IFS
4156 
4157   ;;
4158 esac
4159 fi
4160 BASENAME=$ac_cv_path_BASENAME
4161 if test -n "$BASENAME"; then
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4163 $as_echo "$BASENAME" >&6; }
4164 else
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 fi
4168 
4169 
4170   test -n "$BASENAME" && break
4171 done
4172 
4173   else
4174     # The variable is set, but is it from the command line or the environment?
4175 
4176     # Try to remove the string !BASENAME! from our list.
4177     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4178     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4179       # If it failed, the variable was not from the command line. Ignore it,
4180       # but warn the user (except for BASH, which is always set by the calling BASH).
4181       if test "xBASENAME" != xBASH; then
4182         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4183 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4184       fi
4185       # Try to locate tool using the code snippet
4186       for ac_prog in basename
4187 do
4188   # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_path_BASENAME+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   case $BASENAME in
4196   [\\/]* | ?:[\\/]*)
4197   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4198   ;;
4199   *)
4200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212   done
4213 IFS=$as_save_IFS
4214 
4215   ;;
4216 esac
4217 fi
4218 BASENAME=$ac_cv_path_BASENAME
4219 if test -n "$BASENAME"; then
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4221 $as_echo "$BASENAME" >&6; }
4222 else
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226 
4227 
4228   test -n "$BASENAME" && break
4229 done
4230 
4231     else
4232       # If it succeeded, then it was overridden by the user. We will use it
4233       # for the tool.
4234 
4235       # First remove it from the list of overridden variables, so we can test
4236       # for unknown variables in the end.
4237       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4238 
4239       # Check if the provided tool contains a complete path.
4240       tool_specified="$BASENAME"
4241       tool_basename="${tool_specified##*/}"
4242       if test "x$tool_basename" = "x$tool_specified"; then
4243         # A command without a complete path is provided, search $PATH.
4244         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4245 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4246         # Extract the first word of "$tool_basename", so it can be a program name with args.
4247 set dummy $tool_basename; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_path_BASENAME+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   case $BASENAME in
4254   [\\/]* | ?:[\\/]*)
4255   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4256   ;;
4257   *)
4258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263     for ac_exec_ext in '' $ac_executable_extensions; do
4264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270   done
4271 IFS=$as_save_IFS
4272 
4273   ;;
4274 esac
4275 fi
4276 BASENAME=$ac_cv_path_BASENAME
4277 if test -n "$BASENAME"; then
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4279 $as_echo "$BASENAME" >&6; }
4280 else
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284 
4285 
4286         if test "x$BASENAME" = x; then
4287           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4288         fi
4289       else
4290         # Otherwise we believe it is a complete path. Use it as it is.
4291         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4292 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4294 $as_echo_n "checking for BASENAME... " >&6; }
4295         if test ! -x "$tool_specified"; then
4296           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4297 $as_echo "not found" >&6; }
4298           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4299         fi
4300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4301 $as_echo "$tool_specified" >&6; }
4302       fi
4303     fi
4304   fi
4305 
4306 
4307 
4308   if test "x$BASENAME" = x; then
4309     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4310   fi
4311 
4312 
4313 
4314 
4315 
4316   # Publish this variable in the help.
4317 
4318 
4319   if test "x$BASH" = x; then
4320     # The variable is not set by user, try to locate tool using the code snippet
4321     for ac_prog in bash
4322 do
4323   # Extract the first word of "$ac_prog", so it can be a program name with args.
4324 set dummy $ac_prog; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_path_BASH+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   case $BASH in
4331   [\\/]* | ?:[\\/]*)
4332   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4333   ;;
4334   *)
4335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338   IFS=$as_save_IFS
4339   test -z "$as_dir" && as_dir=.
4340     for ac_exec_ext in '' $ac_executable_extensions; do
4341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347   done
4348 IFS=$as_save_IFS
4349 
4350   ;;
4351 esac
4352 fi
4353 BASH=$ac_cv_path_BASH
4354 if test -n "$BASH"; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4356 $as_echo "$BASH" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361 
4362 
4363   test -n "$BASH" && break
4364 done
4365 
4366   else
4367     # The variable is set, but is it from the command line or the environment?
4368 
4369     # Try to remove the string !BASH! from our list.
4370     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4371     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4372       # If it failed, the variable was not from the command line. Ignore it,
4373       # but warn the user (except for BASH, which is always set by the calling BASH).
4374       if test "xBASH" != xBASH; then
4375         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4376 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4377       fi
4378       # Try to locate tool using the code snippet
4379       for ac_prog in bash
4380 do
4381   # Extract the first word of "$ac_prog", so it can be a program name with args.
4382 set dummy $ac_prog; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_path_BASH+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   case $BASH in
4389   [\\/]* | ?:[\\/]*)
4390   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4391   ;;
4392   *)
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405   done
4406 IFS=$as_save_IFS
4407 
4408   ;;
4409 esac
4410 fi
4411 BASH=$ac_cv_path_BASH
4412 if test -n "$BASH"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4414 $as_echo "$BASH" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419 
4420 
4421   test -n "$BASH" && break
4422 done
4423 
4424     else
4425       # If it succeeded, then it was overridden by the user. We will use it
4426       # for the tool.
4427 
4428       # First remove it from the list of overridden variables, so we can test
4429       # for unknown variables in the end.
4430       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4431 
4432       # Check if the provided tool contains a complete path.
4433       tool_specified="$BASH"
4434       tool_basename="${tool_specified##*/}"
4435       if test "x$tool_basename" = "x$tool_specified"; then
4436         # A command without a complete path is provided, search $PATH.
4437         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4438 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4439         # Extract the first word of "$tool_basename", so it can be a program name with args.
4440 set dummy $tool_basename; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_path_BASH+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   case $BASH in
4447   [\\/]* | ?:[\\/]*)
4448   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4449   ;;
4450   *)
4451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456     for ac_exec_ext in '' $ac_executable_extensions; do
4457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463   done
4464 IFS=$as_save_IFS
4465 
4466   ;;
4467 esac
4468 fi
4469 BASH=$ac_cv_path_BASH
4470 if test -n "$BASH"; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4472 $as_echo "$BASH" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477 
4478 
4479         if test "x$BASH" = x; then
4480           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4481         fi
4482       else
4483         # Otherwise we believe it is a complete path. Use it as it is.
4484         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4485 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4487 $as_echo_n "checking for BASH... " >&6; }
4488         if test ! -x "$tool_specified"; then
4489           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4490 $as_echo "not found" >&6; }
4491           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4492         fi
4493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4494 $as_echo "$tool_specified" >&6; }
4495       fi
4496     fi
4497   fi
4498 
4499 
4500 
4501   if test "x$BASH" = x; then
4502     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4503   fi
4504 
4505 
4506 
4507 
4508 
4509   # Publish this variable in the help.
4510 
4511 
4512   if test "x$CAT" = x; then
4513     # The variable is not set by user, try to locate tool using the code snippet
4514     for ac_prog in cat
4515 do
4516   # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_path_CAT+:} false; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   case $CAT in
4524   [\\/]* | ?:[\\/]*)
4525   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4526   ;;
4527   *)
4528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533     for ac_exec_ext in '' $ac_executable_extensions; do
4534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540   done
4541 IFS=$as_save_IFS
4542 
4543   ;;
4544 esac
4545 fi
4546 CAT=$ac_cv_path_CAT
4547 if test -n "$CAT"; then
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4549 $as_echo "$CAT" >&6; }
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554 
4555 
4556   test -n "$CAT" && break
4557 done
4558 
4559   else
4560     # The variable is set, but is it from the command line or the environment?
4561 
4562     # Try to remove the string !CAT! from our list.
4563     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4564     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4565       # If it failed, the variable was not from the command line. Ignore it,
4566       # but warn the user (except for BASH, which is always set by the calling BASH).
4567       if test "xCAT" != xBASH; then
4568         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4569 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4570       fi
4571       # Try to locate tool using the code snippet
4572       for ac_prog in cat
4573 do
4574   # Extract the first word of "$ac_prog", so it can be a program name with args.
4575 set dummy $ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_path_CAT+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   case $CAT in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591     for ac_exec_ext in '' $ac_executable_extensions; do
4592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598   done
4599 IFS=$as_save_IFS
4600 
4601   ;;
4602 esac
4603 fi
4604 CAT=$ac_cv_path_CAT
4605 if test -n "$CAT"; then
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4607 $as_echo "$CAT" >&6; }
4608 else
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612 
4613 
4614   test -n "$CAT" && break
4615 done
4616 
4617     else
4618       # If it succeeded, then it was overridden by the user. We will use it
4619       # for the tool.
4620 
4621       # First remove it from the list of overridden variables, so we can test
4622       # for unknown variables in the end.
4623       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4624 
4625       # Check if the provided tool contains a complete path.
4626       tool_specified="$CAT"
4627       tool_basename="${tool_specified##*/}"
4628       if test "x$tool_basename" = "x$tool_specified"; then
4629         # A command without a complete path is provided, search $PATH.
4630         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4631 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4632         # Extract the first word of "$tool_basename", so it can be a program name with args.
4633 set dummy $tool_basename; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_path_CAT+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   case $CAT in
4640   [\\/]* | ?:[\\/]*)
4641   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4642   ;;
4643   *)
4644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649     for ac_exec_ext in '' $ac_executable_extensions; do
4650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653     break 2
4654   fi
4655 done
4656   done
4657 IFS=$as_save_IFS
4658 
4659   ;;
4660 esac
4661 fi
4662 CAT=$ac_cv_path_CAT
4663 if test -n "$CAT"; then
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4665 $as_echo "$CAT" >&6; }
4666 else
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670 
4671 
4672         if test "x$CAT" = x; then
4673           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4674         fi
4675       else
4676         # Otherwise we believe it is a complete path. Use it as it is.
4677         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4678 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4680 $as_echo_n "checking for CAT... " >&6; }
4681         if test ! -x "$tool_specified"; then
4682           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4683 $as_echo "not found" >&6; }
4684           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4685         fi
4686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4687 $as_echo "$tool_specified" >&6; }
4688       fi
4689     fi
4690   fi
4691 
4692 
4693 
4694   if test "x$CAT" = x; then
4695     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4696   fi
4697 
4698 
4699 
4700 
4701 
4702   # Publish this variable in the help.
4703 
4704 
4705   if test "x$CHMOD" = x; then
4706     # The variable is not set by user, try to locate tool using the code snippet
4707     for ac_prog in chmod
4708 do
4709   # Extract the first word of "$ac_prog", so it can be a program name with args.
4710 set dummy $ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_path_CHMOD+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   case $CHMOD in
4717   [\\/]* | ?:[\\/]*)
4718   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4719   ;;
4720   *)
4721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726     for ac_exec_ext in '' $ac_executable_extensions; do
4727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733   done
4734 IFS=$as_save_IFS
4735 
4736   ;;
4737 esac
4738 fi
4739 CHMOD=$ac_cv_path_CHMOD
4740 if test -n "$CHMOD"; then
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4742 $as_echo "$CHMOD" >&6; }
4743 else
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4746 fi
4747 
4748 
4749   test -n "$CHMOD" && break
4750 done
4751 
4752   else
4753     # The variable is set, but is it from the command line or the environment?
4754 
4755     # Try to remove the string !CHMOD! from our list.
4756     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4757     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4758       # If it failed, the variable was not from the command line. Ignore it,
4759       # but warn the user (except for BASH, which is always set by the calling BASH).
4760       if test "xCHMOD" != xBASH; then
4761         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4762 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4763       fi
4764       # Try to locate tool using the code snippet
4765       for ac_prog in chmod
4766 do
4767   # Extract the first word of "$ac_prog", so it can be a program name with args.
4768 set dummy $ac_prog; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_path_CHMOD+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   case $CHMOD in
4775   [\\/]* | ?:[\\/]*)
4776   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4777   ;;
4778   *)
4779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784     for ac_exec_ext in '' $ac_executable_extensions; do
4785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791   done
4792 IFS=$as_save_IFS
4793 
4794   ;;
4795 esac
4796 fi
4797 CHMOD=$ac_cv_path_CHMOD
4798 if test -n "$CHMOD"; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4800 $as_echo "$CHMOD" >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805 
4806 
4807   test -n "$CHMOD" && break
4808 done
4809 
4810     else
4811       # If it succeeded, then it was overridden by the user. We will use it
4812       # for the tool.
4813 
4814       # First remove it from the list of overridden variables, so we can test
4815       # for unknown variables in the end.
4816       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4817 
4818       # Check if the provided tool contains a complete path.
4819       tool_specified="$CHMOD"
4820       tool_basename="${tool_specified##*/}"
4821       if test "x$tool_basename" = "x$tool_specified"; then
4822         # A command without a complete path is provided, search $PATH.
4823         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4824 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4825         # Extract the first word of "$tool_basename", so it can be a program name with args.
4826 set dummy $tool_basename; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if ${ac_cv_path_CHMOD+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   case $CHMOD in
4833   [\\/]* | ?:[\\/]*)
4834   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4835   ;;
4836   *)
4837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842     for ac_exec_ext in '' $ac_executable_extensions; do
4843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849   done
4850 IFS=$as_save_IFS
4851 
4852   ;;
4853 esac
4854 fi
4855 CHMOD=$ac_cv_path_CHMOD
4856 if test -n "$CHMOD"; then
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4858 $as_echo "$CHMOD" >&6; }
4859 else
4860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863 
4864 
4865         if test "x$CHMOD" = x; then
4866           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4867         fi
4868       else
4869         # Otherwise we believe it is a complete path. Use it as it is.
4870         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
4871 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
4872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
4873 $as_echo_n "checking for CHMOD... " >&6; }
4874         if test ! -x "$tool_specified"; then
4875           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4876 $as_echo "not found" >&6; }
4877           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
4878         fi
4879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4880 $as_echo "$tool_specified" >&6; }
4881       fi
4882     fi
4883   fi
4884 
4885 
4886 
4887   if test "x$CHMOD" = x; then
4888     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
4889   fi
4890 
4891 
4892 
4893 
4894 
4895   # Publish this variable in the help.
4896 
4897 
4898   if test "x$CMP" = x; then
4899     # The variable is not set by user, try to locate tool using the code snippet
4900     for ac_prog in cmp
4901 do
4902   # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_path_CMP+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   case $CMP in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926   done
4927 IFS=$as_save_IFS
4928 
4929   ;;
4930 esac
4931 fi
4932 CMP=$ac_cv_path_CMP
4933 if test -n "$CMP"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4935 $as_echo "$CMP" >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940 
4941 
4942   test -n "$CMP" && break
4943 done
4944 
4945   else
4946     # The variable is set, but is it from the command line or the environment?
4947 
4948     # Try to remove the string !CMP! from our list.
4949     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
4950     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4951       # If it failed, the variable was not from the command line. Ignore it,
4952       # but warn the user (except for BASH, which is always set by the calling BASH).
4953       if test "xCMP" != xBASH; then
4954         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
4955 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
4956       fi
4957       # Try to locate tool using the code snippet
4958       for ac_prog in cmp
4959 do
4960   # Extract the first word of "$ac_prog", so it can be a program name with args.
4961 set dummy $ac_prog; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if ${ac_cv_path_CMP+:} false; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   case $CMP in
4968   [\\/]* | ?:[\\/]*)
4969   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4970   ;;
4971   *)
4972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986 
4987   ;;
4988 esac
4989 fi
4990 CMP=$ac_cv_path_CMP
4991 if test -n "$CMP"; then
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4993 $as_echo "$CMP" >&6; }
4994 else
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998 
4999 
5000   test -n "$CMP" && break
5001 done
5002 
5003     else
5004       # If it succeeded, then it was overridden by the user. We will use it
5005       # for the tool.
5006 
5007       # First remove it from the list of overridden variables, so we can test
5008       # for unknown variables in the end.
5009       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5010 
5011       # Check if the provided tool contains a complete path.
5012       tool_specified="$CMP"
5013       tool_basename="${tool_specified##*/}"
5014       if test "x$tool_basename" = "x$tool_specified"; then
5015         # A command without a complete path is provided, search $PATH.
5016         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5017 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5018         # Extract the first word of "$tool_basename", so it can be a program name with args.
5019 set dummy $tool_basename; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_path_CMP+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   case $CMP in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042   done
5043 IFS=$as_save_IFS
5044 
5045   ;;
5046 esac
5047 fi
5048 CMP=$ac_cv_path_CMP
5049 if test -n "$CMP"; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5051 $as_echo "$CMP" >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056 
5057 
5058         if test "x$CMP" = x; then
5059           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5060         fi
5061       else
5062         # Otherwise we believe it is a complete path. Use it as it is.
5063         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5064 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5065         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5066 $as_echo_n "checking for CMP... " >&6; }
5067         if test ! -x "$tool_specified"; then
5068           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5069 $as_echo "not found" >&6; }
5070           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5071         fi
5072         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5073 $as_echo "$tool_specified" >&6; }
5074       fi
5075     fi
5076   fi
5077 
5078 
5079 
5080   if test "x$CMP" = x; then
5081     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5082   fi
5083 
5084 
5085 
5086 
5087 
5088   # Publish this variable in the help.
5089 
5090 
5091   if test "x$COMM" = x; then
5092     # The variable is not set by user, try to locate tool using the code snippet
5093     for ac_prog in comm
5094 do
5095   # Extract the first word of "$ac_prog", so it can be a program name with args.
5096 set dummy $ac_prog; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_path_COMM+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   case $COMM in
5103   [\\/]* | ?:[\\/]*)
5104   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5105   ;;
5106   *)
5107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112     for ac_exec_ext in '' $ac_executable_extensions; do
5113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116     break 2
5117   fi
5118 done
5119   done
5120 IFS=$as_save_IFS
5121 
5122   ;;
5123 esac
5124 fi
5125 COMM=$ac_cv_path_COMM
5126 if test -n "$COMM"; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5128 $as_echo "$COMM" >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133 
5134 
5135   test -n "$COMM" && break
5136 done
5137 
5138   else
5139     # The variable is set, but is it from the command line or the environment?
5140 
5141     # Try to remove the string !COMM! from our list.
5142     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5143     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5144       # If it failed, the variable was not from the command line. Ignore it,
5145       # but warn the user (except for BASH, which is always set by the calling BASH).
5146       if test "xCOMM" != xBASH; then
5147         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5148 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5149       fi
5150       # Try to locate tool using the code snippet
5151       for ac_prog in comm
5152 do
5153   # Extract the first word of "$ac_prog", so it can be a program name with args.
5154 set dummy $ac_prog; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_path_COMM+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   case $COMM in
5161   [\\/]* | ?:[\\/]*)
5162   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5163   ;;
5164   *)
5165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177   done
5178 IFS=$as_save_IFS
5179 
5180   ;;
5181 esac
5182 fi
5183 COMM=$ac_cv_path_COMM
5184 if test -n "$COMM"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5186 $as_echo "$COMM" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191 
5192 
5193   test -n "$COMM" && break
5194 done
5195 
5196     else
5197       # If it succeeded, then it was overridden by the user. We will use it
5198       # for the tool.
5199 
5200       # First remove it from the list of overridden variables, so we can test
5201       # for unknown variables in the end.
5202       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5203 
5204       # Check if the provided tool contains a complete path.
5205       tool_specified="$COMM"
5206       tool_basename="${tool_specified##*/}"
5207       if test "x$tool_basename" = "x$tool_specified"; then
5208         # A command without a complete path is provided, search $PATH.
5209         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5210 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5211         # Extract the first word of "$tool_basename", so it can be a program name with args.
5212 set dummy $tool_basename; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_path_COMM+:} false; then :
5216   $as_echo_n "(cached) " >&6
5217 else
5218   case $COMM in
5219   [\\/]* | ?:[\\/]*)
5220   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5221   ;;
5222   *)
5223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228     for ac_exec_ext in '' $ac_executable_extensions; do
5229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235   done
5236 IFS=$as_save_IFS
5237 
5238   ;;
5239 esac
5240 fi
5241 COMM=$ac_cv_path_COMM
5242 if test -n "$COMM"; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5244 $as_echo "$COMM" >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249 
5250 
5251         if test "x$COMM" = x; then
5252           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5253         fi
5254       else
5255         # Otherwise we believe it is a complete path. Use it as it is.
5256         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5257 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5259 $as_echo_n "checking for COMM... " >&6; }
5260         if test ! -x "$tool_specified"; then
5261           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5262 $as_echo "not found" >&6; }
5263           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5264         fi
5265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5266 $as_echo "$tool_specified" >&6; }
5267       fi
5268     fi
5269   fi
5270 
5271 
5272 
5273   if test "x$COMM" = x; then
5274     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5275   fi
5276 
5277 
5278 
5279 
5280 
5281   # Publish this variable in the help.
5282 
5283 
5284   if test "x$CP" = x; then
5285     # The variable is not set by user, try to locate tool using the code snippet
5286     for ac_prog in cp
5287 do
5288   # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_path_CP+:} false; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   case $CP in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314 
5315   ;;
5316 esac
5317 fi
5318 CP=$ac_cv_path_CP
5319 if test -n "$CP"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5321 $as_echo "$CP" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326 
5327 
5328   test -n "$CP" && break
5329 done
5330 
5331   else
5332     # The variable is set, but is it from the command line or the environment?
5333 
5334     # Try to remove the string !CP! from our list.
5335     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5336     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5337       # If it failed, the variable was not from the command line. Ignore it,
5338       # but warn the user (except for BASH, which is always set by the calling BASH).
5339       if test "xCP" != xBASH; then
5340         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5341 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5342       fi
5343       # Try to locate tool using the code snippet
5344       for ac_prog in cp
5345 do
5346   # Extract the first word of "$ac_prog", so it can be a program name with args.
5347 set dummy $ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_path_CP+:} false; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   case $CP in
5354   [\\/]* | ?:[\\/]*)
5355   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5356   ;;
5357   *)
5358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363     for ac_exec_ext in '' $ac_executable_extensions; do
5364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370   done
5371 IFS=$as_save_IFS
5372 
5373   ;;
5374 esac
5375 fi
5376 CP=$ac_cv_path_CP
5377 if test -n "$CP"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5379 $as_echo "$CP" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384 
5385 
5386   test -n "$CP" && break
5387 done
5388 
5389     else
5390       # If it succeeded, then it was overridden by the user. We will use it
5391       # for the tool.
5392 
5393       # First remove it from the list of overridden variables, so we can test
5394       # for unknown variables in the end.
5395       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5396 
5397       # Check if the provided tool contains a complete path.
5398       tool_specified="$CP"
5399       tool_basename="${tool_specified##*/}"
5400       if test "x$tool_basename" = "x$tool_specified"; then
5401         # A command without a complete path is provided, search $PATH.
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5403 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5404         # Extract the first word of "$tool_basename", so it can be a program name with args.
5405 set dummy $tool_basename; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_path_CP+:} false; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   case $CP in
5412   [\\/]* | ?:[\\/]*)
5413   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5414   ;;
5415   *)
5416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430 
5431   ;;
5432 esac
5433 fi
5434 CP=$ac_cv_path_CP
5435 if test -n "$CP"; then
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5437 $as_echo "$CP" >&6; }
5438 else
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442 
5443 
5444         if test "x$CP" = x; then
5445           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5446         fi
5447       else
5448         # Otherwise we believe it is a complete path. Use it as it is.
5449         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5450 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5452 $as_echo_n "checking for CP... " >&6; }
5453         if test ! -x "$tool_specified"; then
5454           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5455 $as_echo "not found" >&6; }
5456           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5457         fi
5458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5459 $as_echo "$tool_specified" >&6; }
5460       fi
5461     fi
5462   fi
5463 
5464 
5465 
5466   if test "x$CP" = x; then
5467     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5468   fi
5469 
5470 
5471 
5472 
5473 
5474   # Publish this variable in the help.
5475 
5476 
5477   if test "x$CPIO" = x; then
5478     # The variable is not set by user, try to locate tool using the code snippet
5479     for ac_prog in cpio
5480 do
5481   # Extract the first word of "$ac_prog", so it can be a program name with args.
5482 set dummy $ac_prog; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_CPIO+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   case $CPIO in
5489   [\\/]* | ?:[\\/]*)
5490   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5491   ;;
5492   *)
5493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507 
5508   ;;
5509 esac
5510 fi
5511 CPIO=$ac_cv_path_CPIO
5512 if test -n "$CPIO"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5514 $as_echo "$CPIO" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519 
5520 
5521   test -n "$CPIO" && break
5522 done
5523 
5524   else
5525     # The variable is set, but is it from the command line or the environment?
5526 
5527     # Try to remove the string !CPIO! from our list.
5528     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5529     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5530       # If it failed, the variable was not from the command line. Ignore it,
5531       # but warn the user (except for BASH, which is always set by the calling BASH).
5532       if test "xCPIO" != xBASH; then
5533         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5534 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5535       fi
5536       # Try to locate tool using the code snippet
5537       for ac_prog in cpio
5538 do
5539   # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_path_CPIO+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   case $CPIO in
5547   [\\/]* | ?:[\\/]*)
5548   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5549   ;;
5550   *)
5551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565 
5566   ;;
5567 esac
5568 fi
5569 CPIO=$ac_cv_path_CPIO
5570 if test -n "$CPIO"; then
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5572 $as_echo "$CPIO" >&6; }
5573 else
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5576 fi
5577 
5578 
5579   test -n "$CPIO" && break
5580 done
5581 
5582     else
5583       # If it succeeded, then it was overridden by the user. We will use it
5584       # for the tool.
5585 
5586       # First remove it from the list of overridden variables, so we can test
5587       # for unknown variables in the end.
5588       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5589 
5590       # Check if the provided tool contains a complete path.
5591       tool_specified="$CPIO"
5592       tool_basename="${tool_specified##*/}"
5593       if test "x$tool_basename" = "x$tool_specified"; then
5594         # A command without a complete path is provided, search $PATH.
5595         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5596 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5597         # Extract the first word of "$tool_basename", so it can be a program name with args.
5598 set dummy $tool_basename; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_path_CPIO+:} false; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   case $CPIO in
5605   [\\/]* | ?:[\\/]*)
5606   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5607   ;;
5608   *)
5609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623 
5624   ;;
5625 esac
5626 fi
5627 CPIO=$ac_cv_path_CPIO
5628 if test -n "$CPIO"; then
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5630 $as_echo "$CPIO" >&6; }
5631 else
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635 
5636 
5637         if test "x$CPIO" = x; then
5638           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5639         fi
5640       else
5641         # Otherwise we believe it is a complete path. Use it as it is.
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5643 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5645 $as_echo_n "checking for CPIO... " >&6; }
5646         if test ! -x "$tool_specified"; then
5647           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5648 $as_echo "not found" >&6; }
5649           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5650         fi
5651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5652 $as_echo "$tool_specified" >&6; }
5653       fi
5654     fi
5655   fi
5656 
5657 
5658 
5659   if test "x$CPIO" = x; then
5660     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5661   fi
5662 
5663 
5664 
5665 
5666 
5667   # Publish this variable in the help.
5668 
5669 
5670   if test "x$CUT" = x; then
5671     # The variable is not set by user, try to locate tool using the code snippet
5672     for ac_prog in cut
5673 do
5674   # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 set dummy $ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_path_CUT+:} false; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   case $CUT in
5682   [\\/]* | ?:[\\/]*)
5683   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5684   ;;
5685   *)
5686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5700 
5701   ;;
5702 esac
5703 fi
5704 CUT=$ac_cv_path_CUT
5705 if test -n "$CUT"; then
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5707 $as_echo "$CUT" >&6; }
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712 
5713 
5714   test -n "$CUT" && break
5715 done
5716 
5717   else
5718     # The variable is set, but is it from the command line or the environment?
5719 
5720     # Try to remove the string !CUT! from our list.
5721     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5722     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5723       # If it failed, the variable was not from the command line. Ignore it,
5724       # but warn the user (except for BASH, which is always set by the calling BASH).
5725       if test "xCUT" != xBASH; then
5726         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5727 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5728       fi
5729       # Try to locate tool using the code snippet
5730       for ac_prog in cut
5731 do
5732   # Extract the first word of "$ac_prog", so it can be a program name with args.
5733 set dummy $ac_prog; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_path_CUT+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   case $CUT in
5740   [\\/]* | ?:[\\/]*)
5741   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5742   ;;
5743   *)
5744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747   IFS=$as_save_IFS
5748   test -z "$as_dir" && as_dir=.
5749     for ac_exec_ext in '' $ac_executable_extensions; do
5750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753     break 2
5754   fi
5755 done
5756   done
5757 IFS=$as_save_IFS
5758 
5759   ;;
5760 esac
5761 fi
5762 CUT=$ac_cv_path_CUT
5763 if test -n "$CUT"; then
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5765 $as_echo "$CUT" >&6; }
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770 
5771 
5772   test -n "$CUT" && break
5773 done
5774 
5775     else
5776       # If it succeeded, then it was overridden by the user. We will use it
5777       # for the tool.
5778 
5779       # First remove it from the list of overridden variables, so we can test
5780       # for unknown variables in the end.
5781       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5782 
5783       # Check if the provided tool contains a complete path.
5784       tool_specified="$CUT"
5785       tool_basename="${tool_specified##*/}"
5786       if test "x$tool_basename" = "x$tool_specified"; then
5787         # A command without a complete path is provided, search $PATH.
5788         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5789 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5790         # Extract the first word of "$tool_basename", so it can be a program name with args.
5791 set dummy $tool_basename; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_path_CUT+:} false; then :
5795   $as_echo_n "(cached) " >&6
5796 else
5797   case $CUT in
5798   [\\/]* | ?:[\\/]*)
5799   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5800   ;;
5801   *)
5802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807     for ac_exec_ext in '' $ac_executable_extensions; do
5808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814   done
5815 IFS=$as_save_IFS
5816 
5817   ;;
5818 esac
5819 fi
5820 CUT=$ac_cv_path_CUT
5821 if test -n "$CUT"; then
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5823 $as_echo "$CUT" >&6; }
5824 else
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828 
5829 
5830         if test "x$CUT" = x; then
5831           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5832         fi
5833       else
5834         # Otherwise we believe it is a complete path. Use it as it is.
5835         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5836 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5838 $as_echo_n "checking for CUT... " >&6; }
5839         if test ! -x "$tool_specified"; then
5840           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5841 $as_echo "not found" >&6; }
5842           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5843         fi
5844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5845 $as_echo "$tool_specified" >&6; }
5846       fi
5847     fi
5848   fi
5849 
5850 
5851 
5852   if test "x$CUT" = x; then
5853     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5854   fi
5855 
5856 
5857 
5858 
5859 
5860   # Publish this variable in the help.
5861 
5862 
5863   if test "x$DATE" = x; then
5864     # The variable is not set by user, try to locate tool using the code snippet
5865     for ac_prog in date
5866 do
5867   # Extract the first word of "$ac_prog", so it can be a program name with args.
5868 set dummy $ac_prog; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_path_DATE+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   case $DATE in
5875   [\\/]* | ?:[\\/]*)
5876   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5877   ;;
5878   *)
5879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893 
5894   ;;
5895 esac
5896 fi
5897 DATE=$ac_cv_path_DATE
5898 if test -n "$DATE"; then
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5900 $as_echo "$DATE" >&6; }
5901 else
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905 
5906 
5907   test -n "$DATE" && break
5908 done
5909 
5910   else
5911     # The variable is set, but is it from the command line or the environment?
5912 
5913     # Try to remove the string !DATE! from our list.
5914     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5915     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5916       # If it failed, the variable was not from the command line. Ignore it,
5917       # but warn the user (except for BASH, which is always set by the calling BASH).
5918       if test "xDATE" != xBASH; then
5919         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5920 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5921       fi
5922       # Try to locate tool using the code snippet
5923       for ac_prog in date
5924 do
5925   # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_path_DATE+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   case $DATE in
5933   [\\/]* | ?:[\\/]*)
5934   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5935   ;;
5936   *)
5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951 
5952   ;;
5953 esac
5954 fi
5955 DATE=$ac_cv_path_DATE
5956 if test -n "$DATE"; then
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5958 $as_echo "$DATE" >&6; }
5959 else
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5962 fi
5963 
5964 
5965   test -n "$DATE" && break
5966 done
5967 
5968     else
5969       # If it succeeded, then it was overridden by the user. We will use it
5970       # for the tool.
5971 
5972       # First remove it from the list of overridden variables, so we can test
5973       # for unknown variables in the end.
5974       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5975 
5976       # Check if the provided tool contains a complete path.
5977       tool_specified="$DATE"
5978       tool_basename="${tool_specified##*/}"
5979       if test "x$tool_basename" = "x$tool_specified"; then
5980         # A command without a complete path is provided, search $PATH.
5981         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
5982 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
5983         # Extract the first word of "$tool_basename", so it can be a program name with args.
5984 set dummy $tool_basename; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_path_DATE+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   case $DATE in
5991   [\\/]* | ?:[\\/]*)
5992   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5993   ;;
5994   *)
5995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000     for ac_exec_ext in '' $ac_executable_extensions; do
6001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007   done
6008 IFS=$as_save_IFS
6009 
6010   ;;
6011 esac
6012 fi
6013 DATE=$ac_cv_path_DATE
6014 if test -n "$DATE"; then
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6016 $as_echo "$DATE" >&6; }
6017 else
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6020 fi
6021 
6022 
6023         if test "x$DATE" = x; then
6024           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6025         fi
6026       else
6027         # Otherwise we believe it is a complete path. Use it as it is.
6028         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6029 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6031 $as_echo_n "checking for DATE... " >&6; }
6032         if test ! -x "$tool_specified"; then
6033           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6034 $as_echo "not found" >&6; }
6035           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6036         fi
6037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6038 $as_echo "$tool_specified" >&6; }
6039       fi
6040     fi
6041   fi
6042 
6043 
6044 
6045   if test "x$DATE" = x; then
6046     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6047   fi
6048 
6049 
6050 
6051 
6052 
6053   # Publish this variable in the help.
6054 
6055 
6056   if test "x$DIFF" = x; then
6057     # The variable is not set by user, try to locate tool using the code snippet
6058     for ac_prog in gdiff diff
6059 do
6060   # Extract the first word of "$ac_prog", so it can be a program name with args.
6061 set dummy $ac_prog; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_path_DIFF+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   case $DIFF in
6068   [\\/]* | ?:[\\/]*)
6069   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6070   ;;
6071   *)
6072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077     for ac_exec_ext in '' $ac_executable_extensions; do
6078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084   done
6085 IFS=$as_save_IFS
6086 
6087   ;;
6088 esac
6089 fi
6090 DIFF=$ac_cv_path_DIFF
6091 if test -n "$DIFF"; then
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6093 $as_echo "$DIFF" >&6; }
6094 else
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098 
6099 
6100   test -n "$DIFF" && break
6101 done
6102 
6103   else
6104     # The variable is set, but is it from the command line or the environment?
6105 
6106     # Try to remove the string !DIFF! from our list.
6107     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6108     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6109       # If it failed, the variable was not from the command line. Ignore it,
6110       # but warn the user (except for BASH, which is always set by the calling BASH).
6111       if test "xDIFF" != xBASH; then
6112         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6113 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6114       fi
6115       # Try to locate tool using the code snippet
6116       for ac_prog in gdiff diff
6117 do
6118   # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_path_DIFF+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   case $DIFF in
6126   [\\/]* | ?:[\\/]*)
6127   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6128   ;;
6129   *)
6130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142   done
6143 IFS=$as_save_IFS
6144 
6145   ;;
6146 esac
6147 fi
6148 DIFF=$ac_cv_path_DIFF
6149 if test -n "$DIFF"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6151 $as_echo "$DIFF" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156 
6157 
6158   test -n "$DIFF" && break
6159 done
6160 
6161     else
6162       # If it succeeded, then it was overridden by the user. We will use it
6163       # for the tool.
6164 
6165       # First remove it from the list of overridden variables, so we can test
6166       # for unknown variables in the end.
6167       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6168 
6169       # Check if the provided tool contains a complete path.
6170       tool_specified="$DIFF"
6171       tool_basename="${tool_specified##*/}"
6172       if test "x$tool_basename" = "x$tool_specified"; then
6173         # A command without a complete path is provided, search $PATH.
6174         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6175 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6176         # Extract the first word of "$tool_basename", so it can be a program name with args.
6177 set dummy $tool_basename; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_path_DIFF+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   case $DIFF in
6184   [\\/]* | ?:[\\/]*)
6185   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6186   ;;
6187   *)
6188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193     for ac_exec_ext in '' $ac_executable_extensions; do
6194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197     break 2
6198   fi
6199 done
6200   done
6201 IFS=$as_save_IFS
6202 
6203   ;;
6204 esac
6205 fi
6206 DIFF=$ac_cv_path_DIFF
6207 if test -n "$DIFF"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6209 $as_echo "$DIFF" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214 
6215 
6216         if test "x$DIFF" = x; then
6217           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6218         fi
6219       else
6220         # Otherwise we believe it is a complete path. Use it as it is.
6221         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6222 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6223         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6224 $as_echo_n "checking for DIFF... " >&6; }
6225         if test ! -x "$tool_specified"; then
6226           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6227 $as_echo "not found" >&6; }
6228           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6229         fi
6230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6231 $as_echo "$tool_specified" >&6; }
6232       fi
6233     fi
6234   fi
6235 
6236 
6237 
6238   if test "x$DIFF" = x; then
6239     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6240   fi
6241 
6242 
6243 
6244 
6245 
6246   # Publish this variable in the help.
6247 
6248 
6249   if test "x$DIRNAME" = x; then
6250     # The variable is not set by user, try to locate tool using the code snippet
6251     for ac_prog in dirname
6252 do
6253   # Extract the first word of "$ac_prog", so it can be a program name with args.
6254 set dummy $ac_prog; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_path_DIRNAME+:} false; then :
6258   $as_echo_n "(cached) " >&6
6259 else
6260   case $DIRNAME in
6261   [\\/]* | ?:[\\/]*)
6262   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6263   ;;
6264   *)
6265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270     for ac_exec_ext in '' $ac_executable_extensions; do
6271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277   done
6278 IFS=$as_save_IFS
6279 
6280   ;;
6281 esac
6282 fi
6283 DIRNAME=$ac_cv_path_DIRNAME
6284 if test -n "$DIRNAME"; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6286 $as_echo "$DIRNAME" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291 
6292 
6293   test -n "$DIRNAME" && break
6294 done
6295 
6296   else
6297     # The variable is set, but is it from the command line or the environment?
6298 
6299     # Try to remove the string !DIRNAME! from our list.
6300     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6301     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6302       # If it failed, the variable was not from the command line. Ignore it,
6303       # but warn the user (except for BASH, which is always set by the calling BASH).
6304       if test "xDIRNAME" != xBASH; then
6305         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6306 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6307       fi
6308       # Try to locate tool using the code snippet
6309       for ac_prog in dirname
6310 do
6311   # Extract the first word of "$ac_prog", so it can be a program name with args.
6312 set dummy $ac_prog; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_path_DIRNAME+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   case $DIRNAME in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328     for ac_exec_ext in '' $ac_executable_extensions; do
6329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335   done
6336 IFS=$as_save_IFS
6337 
6338   ;;
6339 esac
6340 fi
6341 DIRNAME=$ac_cv_path_DIRNAME
6342 if test -n "$DIRNAME"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6344 $as_echo "$DIRNAME" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349 
6350 
6351   test -n "$DIRNAME" && break
6352 done
6353 
6354     else
6355       # If it succeeded, then it was overridden by the user. We will use it
6356       # for the tool.
6357 
6358       # First remove it from the list of overridden variables, so we can test
6359       # for unknown variables in the end.
6360       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6361 
6362       # Check if the provided tool contains a complete path.
6363       tool_specified="$DIRNAME"
6364       tool_basename="${tool_specified##*/}"
6365       if test "x$tool_basename" = "x$tool_specified"; then
6366         # A command without a complete path is provided, search $PATH.
6367         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6368 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6369         # Extract the first word of "$tool_basename", so it can be a program name with args.
6370 set dummy $tool_basename; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_path_DIRNAME+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   case $DIRNAME in
6377   [\\/]* | ?:[\\/]*)
6378   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6379   ;;
6380   *)
6381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386     for ac_exec_ext in '' $ac_executable_extensions; do
6387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393   done
6394 IFS=$as_save_IFS
6395 
6396   ;;
6397 esac
6398 fi
6399 DIRNAME=$ac_cv_path_DIRNAME
6400 if test -n "$DIRNAME"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6402 $as_echo "$DIRNAME" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407 
6408 
6409         if test "x$DIRNAME" = x; then
6410           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6411         fi
6412       else
6413         # Otherwise we believe it is a complete path. Use it as it is.
6414         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6415 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6417 $as_echo_n "checking for DIRNAME... " >&6; }
6418         if test ! -x "$tool_specified"; then
6419           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6420 $as_echo "not found" >&6; }
6421           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6422         fi
6423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6424 $as_echo "$tool_specified" >&6; }
6425       fi
6426     fi
6427   fi
6428 
6429 
6430 
6431   if test "x$DIRNAME" = x; then
6432     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6433   fi
6434 
6435 
6436 
6437 
6438 
6439   # Publish this variable in the help.
6440 
6441 
6442   if test "x$ECHO" = x; then
6443     # The variable is not set by user, try to locate tool using the code snippet
6444     for ac_prog in echo
6445 do
6446   # Extract the first word of "$ac_prog", so it can be a program name with args.
6447 set dummy $ac_prog; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_path_ECHO+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   case $ECHO in
6454   [\\/]* | ?:[\\/]*)
6455   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6456   ;;
6457   *)
6458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472 
6473   ;;
6474 esac
6475 fi
6476 ECHO=$ac_cv_path_ECHO
6477 if test -n "$ECHO"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6479 $as_echo "$ECHO" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484 
6485 
6486   test -n "$ECHO" && break
6487 done
6488 
6489   else
6490     # The variable is set, but is it from the command line or the environment?
6491 
6492     # Try to remove the string !ECHO! from our list.
6493     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6494     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6495       # If it failed, the variable was not from the command line. Ignore it,
6496       # but warn the user (except for BASH, which is always set by the calling BASH).
6497       if test "xECHO" != xBASH; then
6498         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6499 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6500       fi
6501       # Try to locate tool using the code snippet
6502       for ac_prog in echo
6503 do
6504   # Extract the first word of "$ac_prog", so it can be a program name with args.
6505 set dummy $ac_prog; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_path_ECHO+:} false; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511   case $ECHO in
6512   [\\/]* | ?:[\\/]*)
6513   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6514   ;;
6515   *)
6516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521     for ac_exec_ext in '' $ac_executable_extensions; do
6522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528   done
6529 IFS=$as_save_IFS
6530 
6531   ;;
6532 esac
6533 fi
6534 ECHO=$ac_cv_path_ECHO
6535 if test -n "$ECHO"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6537 $as_echo "$ECHO" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542 
6543 
6544   test -n "$ECHO" && break
6545 done
6546 
6547     else
6548       # If it succeeded, then it was overridden by the user. We will use it
6549       # for the tool.
6550 
6551       # First remove it from the list of overridden variables, so we can test
6552       # for unknown variables in the end.
6553       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6554 
6555       # Check if the provided tool contains a complete path.
6556       tool_specified="$ECHO"
6557       tool_basename="${tool_specified##*/}"
6558       if test "x$tool_basename" = "x$tool_specified"; then
6559         # A command without a complete path is provided, search $PATH.
6560         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6561 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6562         # Extract the first word of "$tool_basename", so it can be a program name with args.
6563 set dummy $tool_basename; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_path_ECHO+:} false; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   case $ECHO in
6570   [\\/]* | ?:[\\/]*)
6571   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6572   ;;
6573   *)
6574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_exec_ext in '' $ac_executable_extensions; do
6580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586   done
6587 IFS=$as_save_IFS
6588 
6589   ;;
6590 esac
6591 fi
6592 ECHO=$ac_cv_path_ECHO
6593 if test -n "$ECHO"; then
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6595 $as_echo "$ECHO" >&6; }
6596 else
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600 
6601 
6602         if test "x$ECHO" = x; then
6603           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6604         fi
6605       else
6606         # Otherwise we believe it is a complete path. Use it as it is.
6607         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6608 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6610 $as_echo_n "checking for ECHO... " >&6; }
6611         if test ! -x "$tool_specified"; then
6612           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6613 $as_echo "not found" >&6; }
6614           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6615         fi
6616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6617 $as_echo "$tool_specified" >&6; }
6618       fi
6619     fi
6620   fi
6621 
6622 
6623 
6624   if test "x$ECHO" = x; then
6625     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6626   fi
6627 
6628 
6629 
6630 
6631 
6632   # Publish this variable in the help.
6633 
6634 
6635   if test "x$EXPR" = x; then
6636     # The variable is not set by user, try to locate tool using the code snippet
6637     for ac_prog in expr
6638 do
6639   # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_path_EXPR+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   case $EXPR in
6647   [\\/]* | ?:[\\/]*)
6648   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6649   ;;
6650   *)
6651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665 
6666   ;;
6667 esac
6668 fi
6669 EXPR=$ac_cv_path_EXPR
6670 if test -n "$EXPR"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6672 $as_echo "$EXPR" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677 
6678 
6679   test -n "$EXPR" && break
6680 done
6681 
6682   else
6683     # The variable is set, but is it from the command line or the environment?
6684 
6685     # Try to remove the string !EXPR! from our list.
6686     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6687     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6688       # If it failed, the variable was not from the command line. Ignore it,
6689       # but warn the user (except for BASH, which is always set by the calling BASH).
6690       if test "xEXPR" != xBASH; then
6691         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6692 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6693       fi
6694       # Try to locate tool using the code snippet
6695       for ac_prog in expr
6696 do
6697   # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_path_EXPR+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   case $EXPR in
6705   [\\/]* | ?:[\\/]*)
6706   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6707   ;;
6708   *)
6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723 
6724   ;;
6725 esac
6726 fi
6727 EXPR=$ac_cv_path_EXPR
6728 if test -n "$EXPR"; then
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6730 $as_echo "$EXPR" >&6; }
6731 else
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735 
6736 
6737   test -n "$EXPR" && break
6738 done
6739 
6740     else
6741       # If it succeeded, then it was overridden by the user. We will use it
6742       # for the tool.
6743 
6744       # First remove it from the list of overridden variables, so we can test
6745       # for unknown variables in the end.
6746       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6747 
6748       # Check if the provided tool contains a complete path.
6749       tool_specified="$EXPR"
6750       tool_basename="${tool_specified##*/}"
6751       if test "x$tool_basename" = "x$tool_specified"; then
6752         # A command without a complete path is provided, search $PATH.
6753         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6754 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6755         # Extract the first word of "$tool_basename", so it can be a program name with args.
6756 set dummy $tool_basename; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_path_EXPR+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   case $EXPR in
6763   [\\/]* | ?:[\\/]*)
6764   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6765   ;;
6766   *)
6767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770   IFS=$as_save_IFS
6771   test -z "$as_dir" && as_dir=.
6772     for ac_exec_ext in '' $ac_executable_extensions; do
6773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779   done
6780 IFS=$as_save_IFS
6781 
6782   ;;
6783 esac
6784 fi
6785 EXPR=$ac_cv_path_EXPR
6786 if test -n "$EXPR"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6788 $as_echo "$EXPR" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793 
6794 
6795         if test "x$EXPR" = x; then
6796           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6797         fi
6798       else
6799         # Otherwise we believe it is a complete path. Use it as it is.
6800         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6801 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6803 $as_echo_n "checking for EXPR... " >&6; }
6804         if test ! -x "$tool_specified"; then
6805           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6806 $as_echo "not found" >&6; }
6807           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6808         fi
6809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6810 $as_echo "$tool_specified" >&6; }
6811       fi
6812     fi
6813   fi
6814 
6815 
6816 
6817   if test "x$EXPR" = x; then
6818     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6819   fi
6820 
6821 
6822 
6823 
6824 
6825   # Publish this variable in the help.
6826 
6827 
6828   if test "x$FILE" = x; then
6829     # The variable is not set by user, try to locate tool using the code snippet
6830     for ac_prog in file
6831 do
6832   # Extract the first word of "$ac_prog", so it can be a program name with args.
6833 set dummy $ac_prog; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_path_FILE+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839   case $FILE in
6840   [\\/]* | ?:[\\/]*)
6841   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6842   ;;
6843   *)
6844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858 
6859   ;;
6860 esac
6861 fi
6862 FILE=$ac_cv_path_FILE
6863 if test -n "$FILE"; then
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6865 $as_echo "$FILE" >&6; }
6866 else
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870 
6871 
6872   test -n "$FILE" && break
6873 done
6874 
6875   else
6876     # The variable is set, but is it from the command line or the environment?
6877 
6878     # Try to remove the string !FILE! from our list.
6879     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6880     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6881       # If it failed, the variable was not from the command line. Ignore it,
6882       # but warn the user (except for BASH, which is always set by the calling BASH).
6883       if test "xFILE" != xBASH; then
6884         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6885 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6886       fi
6887       # Try to locate tool using the code snippet
6888       for ac_prog in file
6889 do
6890   # Extract the first word of "$ac_prog", so it can be a program name with args.
6891 set dummy $ac_prog; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_path_FILE+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   case $FILE in
6898   [\\/]* | ?:[\\/]*)
6899   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6900   ;;
6901   *)
6902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916 
6917   ;;
6918 esac
6919 fi
6920 FILE=$ac_cv_path_FILE
6921 if test -n "$FILE"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6923 $as_echo "$FILE" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928 
6929 
6930   test -n "$FILE" && break
6931 done
6932 
6933     else
6934       # If it succeeded, then it was overridden by the user. We will use it
6935       # for the tool.
6936 
6937       # First remove it from the list of overridden variables, so we can test
6938       # for unknown variables in the end.
6939       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6940 
6941       # Check if the provided tool contains a complete path.
6942       tool_specified="$FILE"
6943       tool_basename="${tool_specified##*/}"
6944       if test "x$tool_basename" = "x$tool_specified"; then
6945         # A command without a complete path is provided, search $PATH.
6946         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6947 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6948         # Extract the first word of "$tool_basename", so it can be a program name with args.
6949 set dummy $tool_basename; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_path_FILE+:} false; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   case $FILE in
6956   [\\/]* | ?:[\\/]*)
6957   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6958   ;;
6959   *)
6960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974 
6975   ;;
6976 esac
6977 fi
6978 FILE=$ac_cv_path_FILE
6979 if test -n "$FILE"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6981 $as_echo "$FILE" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986 
6987 
6988         if test "x$FILE" = x; then
6989           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6990         fi
6991       else
6992         # Otherwise we believe it is a complete path. Use it as it is.
6993         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
6994 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
6995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
6996 $as_echo_n "checking for FILE... " >&6; }
6997         if test ! -x "$tool_specified"; then
6998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6999 $as_echo "not found" >&6; }
7000           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7001         fi
7002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7003 $as_echo "$tool_specified" >&6; }
7004       fi
7005     fi
7006   fi
7007 
7008 
7009 
7010   if test "x$FILE" = x; then
7011     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7012   fi
7013 
7014 
7015 
7016 
7017 
7018   # Publish this variable in the help.
7019 
7020 
7021   if test "x$FIND" = x; then
7022     # The variable is not set by user, try to locate tool using the code snippet
7023     for ac_prog in find
7024 do
7025   # Extract the first word of "$ac_prog", so it can be a program name with args.
7026 set dummy $ac_prog; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_path_FIND+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   case $FIND in
7033   [\\/]* | ?:[\\/]*)
7034   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7035   ;;
7036   *)
7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042     for ac_exec_ext in '' $ac_executable_extensions; do
7043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046     break 2
7047   fi
7048 done
7049   done
7050 IFS=$as_save_IFS
7051 
7052   ;;
7053 esac
7054 fi
7055 FIND=$ac_cv_path_FIND
7056 if test -n "$FIND"; then
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7058 $as_echo "$FIND" >&6; }
7059 else
7060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063 
7064 
7065   test -n "$FIND" && break
7066 done
7067 
7068   else
7069     # The variable is set, but is it from the command line or the environment?
7070 
7071     # Try to remove the string !FIND! from our list.
7072     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7073     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7074       # If it failed, the variable was not from the command line. Ignore it,
7075       # but warn the user (except for BASH, which is always set by the calling BASH).
7076       if test "xFIND" != xBASH; then
7077         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7078 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7079       fi
7080       # Try to locate tool using the code snippet
7081       for ac_prog in find
7082 do
7083   # Extract the first word of "$ac_prog", so it can be a program name with args.
7084 set dummy $ac_prog; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_path_FIND+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   case $FIND in
7091   [\\/]* | ?:[\\/]*)
7092   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7093   ;;
7094   *)
7095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100     for ac_exec_ext in '' $ac_executable_extensions; do
7101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107   done
7108 IFS=$as_save_IFS
7109 
7110   ;;
7111 esac
7112 fi
7113 FIND=$ac_cv_path_FIND
7114 if test -n "$FIND"; then
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7116 $as_echo "$FIND" >&6; }
7117 else
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121 
7122 
7123   test -n "$FIND" && break
7124 done
7125 
7126     else
7127       # If it succeeded, then it was overridden by the user. We will use it
7128       # for the tool.
7129 
7130       # First remove it from the list of overridden variables, so we can test
7131       # for unknown variables in the end.
7132       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7133 
7134       # Check if the provided tool contains a complete path.
7135       tool_specified="$FIND"
7136       tool_basename="${tool_specified##*/}"
7137       if test "x$tool_basename" = "x$tool_specified"; then
7138         # A command without a complete path is provided, search $PATH.
7139         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7140 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7141         # Extract the first word of "$tool_basename", so it can be a program name with args.
7142 set dummy $tool_basename; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_path_FIND+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   case $FIND in
7149   [\\/]* | ?:[\\/]*)
7150   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7151   ;;
7152   *)
7153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158     for ac_exec_ext in '' $ac_executable_extensions; do
7159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165   done
7166 IFS=$as_save_IFS
7167 
7168   ;;
7169 esac
7170 fi
7171 FIND=$ac_cv_path_FIND
7172 if test -n "$FIND"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7174 $as_echo "$FIND" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179 
7180 
7181         if test "x$FIND" = x; then
7182           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7183         fi
7184       else
7185         # Otherwise we believe it is a complete path. Use it as it is.
7186         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7187 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7189 $as_echo_n "checking for FIND... " >&6; }
7190         if test ! -x "$tool_specified"; then
7191           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7192 $as_echo "not found" >&6; }
7193           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7194         fi
7195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7196 $as_echo "$tool_specified" >&6; }
7197       fi
7198     fi
7199   fi
7200 
7201 
7202 
7203   if test "x$FIND" = x; then
7204     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7205   fi
7206 
7207 
7208 
7209 
7210 
7211   # Publish this variable in the help.
7212 
7213 
7214   if test "x$HEAD" = x; then
7215     # The variable is not set by user, try to locate tool using the code snippet
7216     for ac_prog in head
7217 do
7218   # Extract the first word of "$ac_prog", so it can be a program name with args.
7219 set dummy $ac_prog; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_path_HEAD+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   case $HEAD in
7226   [\\/]* | ?:[\\/]*)
7227   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7228   ;;
7229   *)
7230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235     for ac_exec_ext in '' $ac_executable_extensions; do
7236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242   done
7243 IFS=$as_save_IFS
7244 
7245   ;;
7246 esac
7247 fi
7248 HEAD=$ac_cv_path_HEAD
7249 if test -n "$HEAD"; then
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7251 $as_echo "$HEAD" >&6; }
7252 else
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256 
7257 
7258   test -n "$HEAD" && break
7259 done
7260 
7261   else
7262     # The variable is set, but is it from the command line or the environment?
7263 
7264     # Try to remove the string !HEAD! from our list.
7265     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7266     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7267       # If it failed, the variable was not from the command line. Ignore it,
7268       # but warn the user (except for BASH, which is always set by the calling BASH).
7269       if test "xHEAD" != xBASH; then
7270         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7271 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7272       fi
7273       # Try to locate tool using the code snippet
7274       for ac_prog in head
7275 do
7276   # Extract the first word of "$ac_prog", so it can be a program name with args.
7277 set dummy $ac_prog; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_path_HEAD+:} false; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283   case $HEAD in
7284   [\\/]* | ?:[\\/]*)
7285   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7286   ;;
7287   *)
7288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300   done
7301 IFS=$as_save_IFS
7302 
7303   ;;
7304 esac
7305 fi
7306 HEAD=$ac_cv_path_HEAD
7307 if test -n "$HEAD"; then
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7309 $as_echo "$HEAD" >&6; }
7310 else
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314 
7315 
7316   test -n "$HEAD" && break
7317 done
7318 
7319     else
7320       # If it succeeded, then it was overridden by the user. We will use it
7321       # for the tool.
7322 
7323       # First remove it from the list of overridden variables, so we can test
7324       # for unknown variables in the end.
7325       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7326 
7327       # Check if the provided tool contains a complete path.
7328       tool_specified="$HEAD"
7329       tool_basename="${tool_specified##*/}"
7330       if test "x$tool_basename" = "x$tool_specified"; then
7331         # A command without a complete path is provided, search $PATH.
7332         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7333 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7334         # Extract the first word of "$tool_basename", so it can be a program name with args.
7335 set dummy $tool_basename; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_path_HEAD+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   case $HEAD in
7342   [\\/]* | ?:[\\/]*)
7343   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7344   ;;
7345   *)
7346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351     for ac_exec_ext in '' $ac_executable_extensions; do
7352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358   done
7359 IFS=$as_save_IFS
7360 
7361   ;;
7362 esac
7363 fi
7364 HEAD=$ac_cv_path_HEAD
7365 if test -n "$HEAD"; then
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7367 $as_echo "$HEAD" >&6; }
7368 else
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372 
7373 
7374         if test "x$HEAD" = x; then
7375           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7376         fi
7377       else
7378         # Otherwise we believe it is a complete path. Use it as it is.
7379         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7380 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7382 $as_echo_n "checking for HEAD... " >&6; }
7383         if test ! -x "$tool_specified"; then
7384           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7385 $as_echo "not found" >&6; }
7386           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7387         fi
7388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7389 $as_echo "$tool_specified" >&6; }
7390       fi
7391     fi
7392   fi
7393 
7394 
7395 
7396   if test "x$HEAD" = x; then
7397     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7398   fi
7399 
7400 
7401 
7402 
7403 
7404   # Publish this variable in the help.
7405 
7406 
7407   if test "x$LN" = x; then
7408     # The variable is not set by user, try to locate tool using the code snippet
7409     for ac_prog in ln
7410 do
7411   # Extract the first word of "$ac_prog", so it can be a program name with args.
7412 set dummy $ac_prog; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_path_LN+:} false; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   case $LN in
7419   [\\/]* | ?:[\\/]*)
7420   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7421   ;;
7422   *)
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435   done
7436 IFS=$as_save_IFS
7437 
7438   ;;
7439 esac
7440 fi
7441 LN=$ac_cv_path_LN
7442 if test -n "$LN"; then
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7444 $as_echo "$LN" >&6; }
7445 else
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449 
7450 
7451   test -n "$LN" && break
7452 done
7453 
7454   else
7455     # The variable is set, but is it from the command line or the environment?
7456 
7457     # Try to remove the string !LN! from our list.
7458     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7459     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7460       # If it failed, the variable was not from the command line. Ignore it,
7461       # but warn the user (except for BASH, which is always set by the calling BASH).
7462       if test "xLN" != xBASH; then
7463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7464 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7465       fi
7466       # Try to locate tool using the code snippet
7467       for ac_prog in ln
7468 do
7469   # Extract the first word of "$ac_prog", so it can be a program name with args.
7470 set dummy $ac_prog; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_path_LN+:} false; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   case $LN in
7477   [\\/]* | ?:[\\/]*)
7478   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7479   ;;
7480   *)
7481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486     for ac_exec_ext in '' $ac_executable_extensions; do
7487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493   done
7494 IFS=$as_save_IFS
7495 
7496   ;;
7497 esac
7498 fi
7499 LN=$ac_cv_path_LN
7500 if test -n "$LN"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7502 $as_echo "$LN" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507 
7508 
7509   test -n "$LN" && break
7510 done
7511 
7512     else
7513       # If it succeeded, then it was overridden by the user. We will use it
7514       # for the tool.
7515 
7516       # First remove it from the list of overridden variables, so we can test
7517       # for unknown variables in the end.
7518       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7519 
7520       # Check if the provided tool contains a complete path.
7521       tool_specified="$LN"
7522       tool_basename="${tool_specified##*/}"
7523       if test "x$tool_basename" = "x$tool_specified"; then
7524         # A command without a complete path is provided, search $PATH.
7525         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7526 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7527         # Extract the first word of "$tool_basename", so it can be a program name with args.
7528 set dummy $tool_basename; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_path_LN+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   case $LN in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7537   ;;
7538   *)
7539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544     for ac_exec_ext in '' $ac_executable_extensions; do
7545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551   done
7552 IFS=$as_save_IFS
7553 
7554   ;;
7555 esac
7556 fi
7557 LN=$ac_cv_path_LN
7558 if test -n "$LN"; then
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7560 $as_echo "$LN" >&6; }
7561 else
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565 
7566 
7567         if test "x$LN" = x; then
7568           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7569         fi
7570       else
7571         # Otherwise we believe it is a complete path. Use it as it is.
7572         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7573 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7575 $as_echo_n "checking for LN... " >&6; }
7576         if test ! -x "$tool_specified"; then
7577           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7578 $as_echo "not found" >&6; }
7579           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7580         fi
7581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7582 $as_echo "$tool_specified" >&6; }
7583       fi
7584     fi
7585   fi
7586 
7587 
7588 
7589   if test "x$LN" = x; then
7590     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7591   fi
7592 
7593 
7594 
7595 
7596 
7597   # Publish this variable in the help.
7598 
7599 
7600   if test "x$LS" = x; then
7601     # The variable is not set by user, try to locate tool using the code snippet
7602     for ac_prog in ls
7603 do
7604   # Extract the first word of "$ac_prog", so it can be a program name with args.
7605 set dummy $ac_prog; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_path_LS+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   case $LS in
7612   [\\/]* | ?:[\\/]*)
7613   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7614   ;;
7615   *)
7616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619   IFS=$as_save_IFS
7620   test -z "$as_dir" && as_dir=.
7621     for ac_exec_ext in '' $ac_executable_extensions; do
7622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625     break 2
7626   fi
7627 done
7628   done
7629 IFS=$as_save_IFS
7630 
7631   ;;
7632 esac
7633 fi
7634 LS=$ac_cv_path_LS
7635 if test -n "$LS"; then
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7637 $as_echo "$LS" >&6; }
7638 else
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642 
7643 
7644   test -n "$LS" && break
7645 done
7646 
7647   else
7648     # The variable is set, but is it from the command line or the environment?
7649 
7650     # Try to remove the string !LS! from our list.
7651     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7652     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7653       # If it failed, the variable was not from the command line. Ignore it,
7654       # but warn the user (except for BASH, which is always set by the calling BASH).
7655       if test "xLS" != xBASH; then
7656         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7657 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7658       fi
7659       # Try to locate tool using the code snippet
7660       for ac_prog in ls
7661 do
7662   # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_path_LS+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   case $LS in
7670   [\\/]* | ?:[\\/]*)
7671   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7672   ;;
7673   *)
7674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679     for ac_exec_ext in '' $ac_executable_extensions; do
7680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686   done
7687 IFS=$as_save_IFS
7688 
7689   ;;
7690 esac
7691 fi
7692 LS=$ac_cv_path_LS
7693 if test -n "$LS"; then
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7695 $as_echo "$LS" >&6; }
7696 else
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700 
7701 
7702   test -n "$LS" && break
7703 done
7704 
7705     else
7706       # If it succeeded, then it was overridden by the user. We will use it
7707       # for the tool.
7708 
7709       # First remove it from the list of overridden variables, so we can test
7710       # for unknown variables in the end.
7711       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7712 
7713       # Check if the provided tool contains a complete path.
7714       tool_specified="$LS"
7715       tool_basename="${tool_specified##*/}"
7716       if test "x$tool_basename" = "x$tool_specified"; then
7717         # A command without a complete path is provided, search $PATH.
7718         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7719 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7720         # Extract the first word of "$tool_basename", so it can be a program name with args.
7721 set dummy $tool_basename; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_path_LS+:} false; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   case $LS in
7728   [\\/]* | ?:[\\/]*)
7729   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7730   ;;
7731   *)
7732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737     for ac_exec_ext in '' $ac_executable_extensions; do
7738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744   done
7745 IFS=$as_save_IFS
7746 
7747   ;;
7748 esac
7749 fi
7750 LS=$ac_cv_path_LS
7751 if test -n "$LS"; then
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7753 $as_echo "$LS" >&6; }
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758 
7759 
7760         if test "x$LS" = x; then
7761           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7762         fi
7763       else
7764         # Otherwise we believe it is a complete path. Use it as it is.
7765         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7766 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7768 $as_echo_n "checking for LS... " >&6; }
7769         if test ! -x "$tool_specified"; then
7770           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7771 $as_echo "not found" >&6; }
7772           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7773         fi
7774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7775 $as_echo "$tool_specified" >&6; }
7776       fi
7777     fi
7778   fi
7779 
7780 
7781 
7782   if test "x$LS" = x; then
7783     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7784   fi
7785 
7786 
7787 
7788 
7789 
7790   # Publish this variable in the help.
7791 
7792 
7793   if test "x$MKDIR" = x; then
7794     # The variable is not set by user, try to locate tool using the code snippet
7795     for ac_prog in mkdir
7796 do
7797   # Extract the first word of "$ac_prog", so it can be a program name with args.
7798 set dummy $ac_prog; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_path_MKDIR+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   case $MKDIR in
7805   [\\/]* | ?:[\\/]*)
7806   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7807   ;;
7808   *)
7809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814     for ac_exec_ext in '' $ac_executable_extensions; do
7815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821   done
7822 IFS=$as_save_IFS
7823 
7824   ;;
7825 esac
7826 fi
7827 MKDIR=$ac_cv_path_MKDIR
7828 if test -n "$MKDIR"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7830 $as_echo "$MKDIR" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835 
7836 
7837   test -n "$MKDIR" && break
7838 done
7839 
7840   else
7841     # The variable is set, but is it from the command line or the environment?
7842 
7843     # Try to remove the string !MKDIR! from our list.
7844     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7845     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7846       # If it failed, the variable was not from the command line. Ignore it,
7847       # but warn the user (except for BASH, which is always set by the calling BASH).
7848       if test "xMKDIR" != xBASH; then
7849         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7850 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7851       fi
7852       # Try to locate tool using the code snippet
7853       for ac_prog in mkdir
7854 do
7855   # Extract the first word of "$ac_prog", so it can be a program name with args.
7856 set dummy $ac_prog; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_path_MKDIR+:} false; then :
7860   $as_echo_n "(cached) " >&6
7861 else
7862   case $MKDIR in
7863   [\\/]* | ?:[\\/]*)
7864   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7865   ;;
7866   *)
7867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881 
7882   ;;
7883 esac
7884 fi
7885 MKDIR=$ac_cv_path_MKDIR
7886 if test -n "$MKDIR"; then
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7888 $as_echo "$MKDIR" >&6; }
7889 else
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893 
7894 
7895   test -n "$MKDIR" && break
7896 done
7897 
7898     else
7899       # If it succeeded, then it was overridden by the user. We will use it
7900       # for the tool.
7901 
7902       # First remove it from the list of overridden variables, so we can test
7903       # for unknown variables in the end.
7904       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7905 
7906       # Check if the provided tool contains a complete path.
7907       tool_specified="$MKDIR"
7908       tool_basename="${tool_specified##*/}"
7909       if test "x$tool_basename" = "x$tool_specified"; then
7910         # A command without a complete path is provided, search $PATH.
7911         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7912 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7913         # Extract the first word of "$tool_basename", so it can be a program name with args.
7914 set dummy $tool_basename; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_path_MKDIR+:} false; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920   case $MKDIR in
7921   [\\/]* | ?:[\\/]*)
7922   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7923   ;;
7924   *)
7925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930     for ac_exec_ext in '' $ac_executable_extensions; do
7931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934     break 2
7935   fi
7936 done
7937   done
7938 IFS=$as_save_IFS
7939 
7940   ;;
7941 esac
7942 fi
7943 MKDIR=$ac_cv_path_MKDIR
7944 if test -n "$MKDIR"; then
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7946 $as_echo "$MKDIR" >&6; }
7947 else
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951 
7952 
7953         if test "x$MKDIR" = x; then
7954           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7955         fi
7956       else
7957         # Otherwise we believe it is a complete path. Use it as it is.
7958         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7959 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
7961 $as_echo_n "checking for MKDIR... " >&6; }
7962         if test ! -x "$tool_specified"; then
7963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7964 $as_echo "not found" >&6; }
7965           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
7966         fi
7967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7968 $as_echo "$tool_specified" >&6; }
7969       fi
7970     fi
7971   fi
7972 
7973 
7974 
7975   if test "x$MKDIR" = x; then
7976     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
7977   fi
7978 
7979 
7980 
7981 
7982 
7983   # Publish this variable in the help.
7984 
7985 
7986   if test "x$MKTEMP" = x; then
7987     # The variable is not set by user, try to locate tool using the code snippet
7988     for ac_prog in mktemp
7989 do
7990   # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_path_MKTEMP+:} false; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   case $MKTEMP in
7998   [\\/]* | ?:[\\/]*)
7999   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8000   ;;
8001   *)
8002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007     for ac_exec_ext in '' $ac_executable_extensions; do
8008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014   done
8015 IFS=$as_save_IFS
8016 
8017   ;;
8018 esac
8019 fi
8020 MKTEMP=$ac_cv_path_MKTEMP
8021 if test -n "$MKTEMP"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8023 $as_echo "$MKTEMP" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028 
8029 
8030   test -n "$MKTEMP" && break
8031 done
8032 
8033   else
8034     # The variable is set, but is it from the command line or the environment?
8035 
8036     # Try to remove the string !MKTEMP! from our list.
8037     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8038     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8039       # If it failed, the variable was not from the command line. Ignore it,
8040       # but warn the user (except for BASH, which is always set by the calling BASH).
8041       if test "xMKTEMP" != xBASH; then
8042         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8043 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8044       fi
8045       # Try to locate tool using the code snippet
8046       for ac_prog in mktemp
8047 do
8048   # Extract the first word of "$ac_prog", so it can be a program name with args.
8049 set dummy $ac_prog; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_path_MKTEMP+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   case $MKTEMP in
8056   [\\/]* | ?:[\\/]*)
8057   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8058   ;;
8059   *)
8060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8062 do
8063   IFS=$as_save_IFS
8064   test -z "$as_dir" && as_dir=.
8065     for ac_exec_ext in '' $ac_executable_extensions; do
8066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069     break 2
8070   fi
8071 done
8072   done
8073 IFS=$as_save_IFS
8074 
8075   ;;
8076 esac
8077 fi
8078 MKTEMP=$ac_cv_path_MKTEMP
8079 if test -n "$MKTEMP"; then
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8081 $as_echo "$MKTEMP" >&6; }
8082 else
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086 
8087 
8088   test -n "$MKTEMP" && break
8089 done
8090 
8091     else
8092       # If it succeeded, then it was overridden by the user. We will use it
8093       # for the tool.
8094 
8095       # First remove it from the list of overridden variables, so we can test
8096       # for unknown variables in the end.
8097       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8098 
8099       # Check if the provided tool contains a complete path.
8100       tool_specified="$MKTEMP"
8101       tool_basename="${tool_specified##*/}"
8102       if test "x$tool_basename" = "x$tool_specified"; then
8103         # A command without a complete path is provided, search $PATH.
8104         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8105 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8106         # Extract the first word of "$tool_basename", so it can be a program name with args.
8107 set dummy $tool_basename; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_path_MKTEMP+:} false; then :
8111   $as_echo_n "(cached) " >&6
8112 else
8113   case $MKTEMP in
8114   [\\/]* | ?:[\\/]*)
8115   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8116   ;;
8117   *)
8118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121   IFS=$as_save_IFS
8122   test -z "$as_dir" && as_dir=.
8123     for ac_exec_ext in '' $ac_executable_extensions; do
8124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127     break 2
8128   fi
8129 done
8130   done
8131 IFS=$as_save_IFS
8132 
8133   ;;
8134 esac
8135 fi
8136 MKTEMP=$ac_cv_path_MKTEMP
8137 if test -n "$MKTEMP"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8139 $as_echo "$MKTEMP" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144 
8145 
8146         if test "x$MKTEMP" = x; then
8147           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8148         fi
8149       else
8150         # Otherwise we believe it is a complete path. Use it as it is.
8151         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8152 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8154 $as_echo_n "checking for MKTEMP... " >&6; }
8155         if test ! -x "$tool_specified"; then
8156           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8157 $as_echo "not found" >&6; }
8158           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8159         fi
8160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8161 $as_echo "$tool_specified" >&6; }
8162       fi
8163     fi
8164   fi
8165 
8166 
8167 
8168   if test "x$MKTEMP" = x; then
8169     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8170   fi
8171 
8172 
8173 
8174 
8175 
8176   # Publish this variable in the help.
8177 
8178 
8179   if test "x$MV" = x; then
8180     # The variable is not set by user, try to locate tool using the code snippet
8181     for ac_prog in mv
8182 do
8183   # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_path_MV+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   case $MV in
8191   [\\/]* | ?:[\\/]*)
8192   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8193   ;;
8194   *)
8195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200     for ac_exec_ext in '' $ac_executable_extensions; do
8201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207   done
8208 IFS=$as_save_IFS
8209 
8210   ;;
8211 esac
8212 fi
8213 MV=$ac_cv_path_MV
8214 if test -n "$MV"; then
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8216 $as_echo "$MV" >&6; }
8217 else
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221 
8222 
8223   test -n "$MV" && break
8224 done
8225 
8226   else
8227     # The variable is set, but is it from the command line or the environment?
8228 
8229     # Try to remove the string !MV! from our list.
8230     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8231     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8232       # If it failed, the variable was not from the command line. Ignore it,
8233       # but warn the user (except for BASH, which is always set by the calling BASH).
8234       if test "xMV" != xBASH; then
8235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8236 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8237       fi
8238       # Try to locate tool using the code snippet
8239       for ac_prog in mv
8240 do
8241   # Extract the first word of "$ac_prog", so it can be a program name with args.
8242 set dummy $ac_prog; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_path_MV+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   case $MV in
8249   [\\/]* | ?:[\\/]*)
8250   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8251   ;;
8252   *)
8253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258     for ac_exec_ext in '' $ac_executable_extensions; do
8259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265   done
8266 IFS=$as_save_IFS
8267 
8268   ;;
8269 esac
8270 fi
8271 MV=$ac_cv_path_MV
8272 if test -n "$MV"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8274 $as_echo "$MV" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279 
8280 
8281   test -n "$MV" && break
8282 done
8283 
8284     else
8285       # If it succeeded, then it was overridden by the user. We will use it
8286       # for the tool.
8287 
8288       # First remove it from the list of overridden variables, so we can test
8289       # for unknown variables in the end.
8290       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8291 
8292       # Check if the provided tool contains a complete path.
8293       tool_specified="$MV"
8294       tool_basename="${tool_specified##*/}"
8295       if test "x$tool_basename" = "x$tool_specified"; then
8296         # A command without a complete path is provided, search $PATH.
8297         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8298 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8299         # Extract the first word of "$tool_basename", so it can be a program name with args.
8300 set dummy $tool_basename; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_path_MV+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   case $MV in
8307   [\\/]* | ?:[\\/]*)
8308   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8309   ;;
8310   *)
8311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316     for ac_exec_ext in '' $ac_executable_extensions; do
8317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323   done
8324 IFS=$as_save_IFS
8325 
8326   ;;
8327 esac
8328 fi
8329 MV=$ac_cv_path_MV
8330 if test -n "$MV"; then
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8332 $as_echo "$MV" >&6; }
8333 else
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337 
8338 
8339         if test "x$MV" = x; then
8340           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8341         fi
8342       else
8343         # Otherwise we believe it is a complete path. Use it as it is.
8344         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8345 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8347 $as_echo_n "checking for MV... " >&6; }
8348         if test ! -x "$tool_specified"; then
8349           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8350 $as_echo "not found" >&6; }
8351           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8352         fi
8353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8354 $as_echo "$tool_specified" >&6; }
8355       fi
8356     fi
8357   fi
8358 
8359 
8360 
8361   if test "x$MV" = x; then
8362     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8363   fi
8364 
8365 
8366 
8367 
8368 
8369   # Publish this variable in the help.
8370 
8371 
8372   if test "x$NAWK" = x; then
8373     # The variable is not set by user, try to locate tool using the code snippet
8374     for ac_prog in nawk gawk awk
8375 do
8376   # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_path_NAWK+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   case $NAWK in
8384   [\\/]* | ?:[\\/]*)
8385   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8386   ;;
8387   *)
8388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391   IFS=$as_save_IFS
8392   test -z "$as_dir" && as_dir=.
8393     for ac_exec_ext in '' $ac_executable_extensions; do
8394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397     break 2
8398   fi
8399 done
8400   done
8401 IFS=$as_save_IFS
8402 
8403   ;;
8404 esac
8405 fi
8406 NAWK=$ac_cv_path_NAWK
8407 if test -n "$NAWK"; then
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8409 $as_echo "$NAWK" >&6; }
8410 else
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414 
8415 
8416   test -n "$NAWK" && break
8417 done
8418 
8419   else
8420     # The variable is set, but is it from the command line or the environment?
8421 
8422     # Try to remove the string !NAWK! from our list.
8423     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8424     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8425       # If it failed, the variable was not from the command line. Ignore it,
8426       # but warn the user (except for BASH, which is always set by the calling BASH).
8427       if test "xNAWK" != xBASH; then
8428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8429 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8430       fi
8431       # Try to locate tool using the code snippet
8432       for ac_prog in nawk gawk awk
8433 do
8434   # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if ${ac_cv_path_NAWK+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   case $NAWK in
8442   [\\/]* | ?:[\\/]*)
8443   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8444   ;;
8445   *)
8446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449   IFS=$as_save_IFS
8450   test -z "$as_dir" && as_dir=.
8451     for ac_exec_ext in '' $ac_executable_extensions; do
8452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455     break 2
8456   fi
8457 done
8458   done
8459 IFS=$as_save_IFS
8460 
8461   ;;
8462 esac
8463 fi
8464 NAWK=$ac_cv_path_NAWK
8465 if test -n "$NAWK"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8467 $as_echo "$NAWK" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472 
8473 
8474   test -n "$NAWK" && break
8475 done
8476 
8477     else
8478       # If it succeeded, then it was overridden by the user. We will use it
8479       # for the tool.
8480 
8481       # First remove it from the list of overridden variables, so we can test
8482       # for unknown variables in the end.
8483       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8484 
8485       # Check if the provided tool contains a complete path.
8486       tool_specified="$NAWK"
8487       tool_basename="${tool_specified##*/}"
8488       if test "x$tool_basename" = "x$tool_specified"; then
8489         # A command without a complete path is provided, search $PATH.
8490         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8491 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8492         # Extract the first word of "$tool_basename", so it can be a program name with args.
8493 set dummy $tool_basename; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_path_NAWK+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   case $NAWK in
8500   [\\/]* | ?:[\\/]*)
8501   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8502   ;;
8503   *)
8504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507   IFS=$as_save_IFS
8508   test -z "$as_dir" && as_dir=.
8509     for ac_exec_ext in '' $ac_executable_extensions; do
8510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513     break 2
8514   fi
8515 done
8516   done
8517 IFS=$as_save_IFS
8518 
8519   ;;
8520 esac
8521 fi
8522 NAWK=$ac_cv_path_NAWK
8523 if test -n "$NAWK"; then
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8525 $as_echo "$NAWK" >&6; }
8526 else
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8530 
8531 
8532         if test "x$NAWK" = x; then
8533           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8534         fi
8535       else
8536         # Otherwise we believe it is a complete path. Use it as it is.
8537         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8538 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8540 $as_echo_n "checking for NAWK... " >&6; }
8541         if test ! -x "$tool_specified"; then
8542           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8543 $as_echo "not found" >&6; }
8544           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8545         fi
8546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8547 $as_echo "$tool_specified" >&6; }
8548       fi
8549     fi
8550   fi
8551 
8552 
8553 
8554   if test "x$NAWK" = x; then
8555     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8556   fi
8557 
8558 
8559 
8560 
8561 
8562   # Publish this variable in the help.
8563 
8564 
8565   if test "x$PRINTF" = x; then
8566     # The variable is not set by user, try to locate tool using the code snippet
8567     for ac_prog in printf
8568 do
8569   # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_path_PRINTF+:} false; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   case $PRINTF in
8577   [\\/]* | ?:[\\/]*)
8578   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8579   ;;
8580   *)
8581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   test -z "$as_dir" && as_dir=.
8586     for ac_exec_ext in '' $ac_executable_extensions; do
8587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590     break 2
8591   fi
8592 done
8593   done
8594 IFS=$as_save_IFS
8595 
8596   ;;
8597 esac
8598 fi
8599 PRINTF=$ac_cv_path_PRINTF
8600 if test -n "$PRINTF"; then
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8602 $as_echo "$PRINTF" >&6; }
8603 else
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607 
8608 
8609   test -n "$PRINTF" && break
8610 done
8611 
8612   else
8613     # The variable is set, but is it from the command line or the environment?
8614 
8615     # Try to remove the string !PRINTF! from our list.
8616     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8617     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8618       # If it failed, the variable was not from the command line. Ignore it,
8619       # but warn the user (except for BASH, which is always set by the calling BASH).
8620       if test "xPRINTF" != xBASH; then
8621         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8622 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8623       fi
8624       # Try to locate tool using the code snippet
8625       for ac_prog in printf
8626 do
8627   # Extract the first word of "$ac_prog", so it can be a program name with args.
8628 set dummy $ac_prog; ac_word=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if ${ac_cv_path_PRINTF+:} false; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   case $PRINTF in
8635   [\\/]* | ?:[\\/]*)
8636   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8637   ;;
8638   *)
8639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644     for ac_exec_ext in '' $ac_executable_extensions; do
8645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651   done
8652 IFS=$as_save_IFS
8653 
8654   ;;
8655 esac
8656 fi
8657 PRINTF=$ac_cv_path_PRINTF
8658 if test -n "$PRINTF"; then
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8660 $as_echo "$PRINTF" >&6; }
8661 else
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8664 fi
8665 
8666 
8667   test -n "$PRINTF" && break
8668 done
8669 
8670     else
8671       # If it succeeded, then it was overridden by the user. We will use it
8672       # for the tool.
8673 
8674       # First remove it from the list of overridden variables, so we can test
8675       # for unknown variables in the end.
8676       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8677 
8678       # Check if the provided tool contains a complete path.
8679       tool_specified="$PRINTF"
8680       tool_basename="${tool_specified##*/}"
8681       if test "x$tool_basename" = "x$tool_specified"; then
8682         # A command without a complete path is provided, search $PATH.
8683         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8684 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8685         # Extract the first word of "$tool_basename", so it can be a program name with args.
8686 set dummy $tool_basename; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if ${ac_cv_path_PRINTF+:} false; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   case $PRINTF in
8693   [\\/]* | ?:[\\/]*)
8694   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8695   ;;
8696   *)
8697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700   IFS=$as_save_IFS
8701   test -z "$as_dir" && as_dir=.
8702     for ac_exec_ext in '' $ac_executable_extensions; do
8703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706     break 2
8707   fi
8708 done
8709   done
8710 IFS=$as_save_IFS
8711 
8712   ;;
8713 esac
8714 fi
8715 PRINTF=$ac_cv_path_PRINTF
8716 if test -n "$PRINTF"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8718 $as_echo "$PRINTF" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723 
8724 
8725         if test "x$PRINTF" = x; then
8726           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8727         fi
8728       else
8729         # Otherwise we believe it is a complete path. Use it as it is.
8730         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8731 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8732         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8733 $as_echo_n "checking for PRINTF... " >&6; }
8734         if test ! -x "$tool_specified"; then
8735           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8736 $as_echo "not found" >&6; }
8737           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8738         fi
8739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8740 $as_echo "$tool_specified" >&6; }
8741       fi
8742     fi
8743   fi
8744 
8745 
8746 
8747   if test "x$PRINTF" = x; then
8748     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8749   fi
8750 
8751 
8752 
8753 
8754 
8755   # Publish this variable in the help.
8756 
8757 
8758   if test "x$RM" = x; then
8759     # The variable is not set by user, try to locate tool using the code snippet
8760     for ac_prog in rm
8761 do
8762   # Extract the first word of "$ac_prog", so it can be a program name with args.
8763 set dummy $ac_prog; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_path_RM+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   case $RM in
8770   [\\/]* | ?:[\\/]*)
8771   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8772   ;;
8773   *)
8774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777   IFS=$as_save_IFS
8778   test -z "$as_dir" && as_dir=.
8779     for ac_exec_ext in '' $ac_executable_extensions; do
8780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783     break 2
8784   fi
8785 done
8786   done
8787 IFS=$as_save_IFS
8788 
8789   ;;
8790 esac
8791 fi
8792 RM=$ac_cv_path_RM
8793 if test -n "$RM"; then
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8795 $as_echo "$RM" >&6; }
8796 else
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800 
8801 
8802   test -n "$RM" && break
8803 done
8804 
8805   else
8806     # The variable is set, but is it from the command line or the environment?
8807 
8808     # Try to remove the string !RM! from our list.
8809     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8810     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8811       # If it failed, the variable was not from the command line. Ignore it,
8812       # but warn the user (except for BASH, which is always set by the calling BASH).
8813       if test "xRM" != xBASH; then
8814         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8815 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8816       fi
8817       # Try to locate tool using the code snippet
8818       for ac_prog in rm
8819 do
8820   # Extract the first word of "$ac_prog", so it can be a program name with args.
8821 set dummy $ac_prog; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if ${ac_cv_path_RM+:} false; then :
8825   $as_echo_n "(cached) " >&6
8826 else
8827   case $RM in
8828   [\\/]* | ?:[\\/]*)
8829   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8830   ;;
8831   *)
8832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835   IFS=$as_save_IFS
8836   test -z "$as_dir" && as_dir=.
8837     for ac_exec_ext in '' $ac_executable_extensions; do
8838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841     break 2
8842   fi
8843 done
8844   done
8845 IFS=$as_save_IFS
8846 
8847   ;;
8848 esac
8849 fi
8850 RM=$ac_cv_path_RM
8851 if test -n "$RM"; then
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8853 $as_echo "$RM" >&6; }
8854 else
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8858 
8859 
8860   test -n "$RM" && break
8861 done
8862 
8863     else
8864       # If it succeeded, then it was overridden by the user. We will use it
8865       # for the tool.
8866 
8867       # First remove it from the list of overridden variables, so we can test
8868       # for unknown variables in the end.
8869       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8870 
8871       # Check if the provided tool contains a complete path.
8872       tool_specified="$RM"
8873       tool_basename="${tool_specified##*/}"
8874       if test "x$tool_basename" = "x$tool_specified"; then
8875         # A command without a complete path is provided, search $PATH.
8876         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8877 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8878         # Extract the first word of "$tool_basename", so it can be a program name with args.
8879 set dummy $tool_basename; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_path_RM+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   case $RM in
8886   [\\/]* | ?:[\\/]*)
8887   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8888   ;;
8889   *)
8890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8892 do
8893   IFS=$as_save_IFS
8894   test -z "$as_dir" && as_dir=.
8895     for ac_exec_ext in '' $ac_executable_extensions; do
8896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899     break 2
8900   fi
8901 done
8902   done
8903 IFS=$as_save_IFS
8904 
8905   ;;
8906 esac
8907 fi
8908 RM=$ac_cv_path_RM
8909 if test -n "$RM"; then
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8911 $as_echo "$RM" >&6; }
8912 else
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916 
8917 
8918         if test "x$RM" = x; then
8919           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8920         fi
8921       else
8922         # Otherwise we believe it is a complete path. Use it as it is.
8923         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8924 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8926 $as_echo_n "checking for RM... " >&6; }
8927         if test ! -x "$tool_specified"; then
8928           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8929 $as_echo "not found" >&6; }
8930           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8931         fi
8932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8933 $as_echo "$tool_specified" >&6; }
8934       fi
8935     fi
8936   fi
8937 
8938 
8939 
8940   if test "x$RM" = x; then
8941     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8942   fi
8943 
8944 
8945 
8946 
8947 
8948   # Publish this variable in the help.
8949 
8950 
8951   if test "x$SH" = x; then
8952     # The variable is not set by user, try to locate tool using the code snippet
8953     for ac_prog in sh
8954 do
8955   # Extract the first word of "$ac_prog", so it can be a program name with args.
8956 set dummy $ac_prog; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if ${ac_cv_path_SH+:} false; then :
8960   $as_echo_n "(cached) " >&6
8961 else
8962   case $SH in
8963   [\\/]* | ?:[\\/]*)
8964   ac_cv_path_SH="$SH" # Let the user override the test with a path.
8965   ;;
8966   *)
8967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 for as_dir in $PATH
8969 do
8970   IFS=$as_save_IFS
8971   test -z "$as_dir" && as_dir=.
8972     for ac_exec_ext in '' $ac_executable_extensions; do
8973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8974     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
8975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976     break 2
8977   fi
8978 done
8979   done
8980 IFS=$as_save_IFS
8981 
8982   ;;
8983 esac
8984 fi
8985 SH=$ac_cv_path_SH
8986 if test -n "$SH"; then
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
8988 $as_echo "$SH" >&6; }
8989 else
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8993 
8994 
8995   test -n "$SH" && break
8996 done
8997 
8998   else
8999     # The variable is set, but is it from the command line or the environment?
9000 
9001     # Try to remove the string !SH! from our list.
9002     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9003     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9004       # If it failed, the variable was not from the command line. Ignore it,
9005       # but warn the user (except for BASH, which is always set by the calling BASH).
9006       if test "xSH" != xBASH; then
9007         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9008 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9009       fi
9010       # Try to locate tool using the code snippet
9011       for ac_prog in sh
9012 do
9013   # Extract the first word of "$ac_prog", so it can be a program name with args.
9014 set dummy $ac_prog; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if ${ac_cv_path_SH+:} false; then :
9018   $as_echo_n "(cached) " >&6
9019 else
9020   case $SH in
9021   [\\/]* | ?:[\\/]*)
9022   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9023   ;;
9024   *)
9025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028   IFS=$as_save_IFS
9029   test -z "$as_dir" && as_dir=.
9030     for ac_exec_ext in '' $ac_executable_extensions; do
9031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034     break 2
9035   fi
9036 done
9037   done
9038 IFS=$as_save_IFS
9039 
9040   ;;
9041 esac
9042 fi
9043 SH=$ac_cv_path_SH
9044 if test -n "$SH"; then
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9046 $as_echo "$SH" >&6; }
9047 else
9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 fi
9051 
9052 
9053   test -n "$SH" && break
9054 done
9055 
9056     else
9057       # If it succeeded, then it was overridden by the user. We will use it
9058       # for the tool.
9059 
9060       # First remove it from the list of overridden variables, so we can test
9061       # for unknown variables in the end.
9062       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9063 
9064       # Check if the provided tool contains a complete path.
9065       tool_specified="$SH"
9066       tool_basename="${tool_specified##*/}"
9067       if test "x$tool_basename" = "x$tool_specified"; then
9068         # A command without a complete path is provided, search $PATH.
9069         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9070 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9071         # Extract the first word of "$tool_basename", so it can be a program name with args.
9072 set dummy $tool_basename; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if ${ac_cv_path_SH+:} false; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   case $SH in
9079   [\\/]* | ?:[\\/]*)
9080   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9081   ;;
9082   *)
9083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084 for as_dir in $PATH
9085 do
9086   IFS=$as_save_IFS
9087   test -z "$as_dir" && as_dir=.
9088     for ac_exec_ext in '' $ac_executable_extensions; do
9089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9090     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9092     break 2
9093   fi
9094 done
9095   done
9096 IFS=$as_save_IFS
9097 
9098   ;;
9099 esac
9100 fi
9101 SH=$ac_cv_path_SH
9102 if test -n "$SH"; then
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9104 $as_echo "$SH" >&6; }
9105 else
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107 $as_echo "no" >&6; }
9108 fi
9109 
9110 
9111         if test "x$SH" = x; then
9112           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9113         fi
9114       else
9115         # Otherwise we believe it is a complete path. Use it as it is.
9116         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9117 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9119 $as_echo_n "checking for SH... " >&6; }
9120         if test ! -x "$tool_specified"; then
9121           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9122 $as_echo "not found" >&6; }
9123           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9124         fi
9125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9126 $as_echo "$tool_specified" >&6; }
9127       fi
9128     fi
9129   fi
9130 
9131 
9132 
9133   if test "x$SH" = x; then
9134     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9135   fi
9136 
9137 
9138 
9139 
9140 
9141   # Publish this variable in the help.
9142 
9143 
9144   if test "x$SORT" = x; then
9145     # The variable is not set by user, try to locate tool using the code snippet
9146     for ac_prog in sort
9147 do
9148   # Extract the first word of "$ac_prog", so it can be a program name with args.
9149 set dummy $ac_prog; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_path_SORT+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   case $SORT in
9156   [\\/]* | ?:[\\/]*)
9157   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9158   ;;
9159   *)
9160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in $PATH
9162 do
9163   IFS=$as_save_IFS
9164   test -z "$as_dir" && as_dir=.
9165     for ac_exec_ext in '' $ac_executable_extensions; do
9166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9167     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169     break 2
9170   fi
9171 done
9172   done
9173 IFS=$as_save_IFS
9174 
9175   ;;
9176 esac
9177 fi
9178 SORT=$ac_cv_path_SORT
9179 if test -n "$SORT"; then
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9181 $as_echo "$SORT" >&6; }
9182 else
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9185 fi
9186 
9187 
9188   test -n "$SORT" && break
9189 done
9190 
9191   else
9192     # The variable is set, but is it from the command line or the environment?
9193 
9194     # Try to remove the string !SORT! from our list.
9195     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9196     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9197       # If it failed, the variable was not from the command line. Ignore it,
9198       # but warn the user (except for BASH, which is always set by the calling BASH).
9199       if test "xSORT" != xBASH; then
9200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9201 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9202       fi
9203       # Try to locate tool using the code snippet
9204       for ac_prog in sort
9205 do
9206   # Extract the first word of "$ac_prog", so it can be a program name with args.
9207 set dummy $ac_prog; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if ${ac_cv_path_SORT+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   case $SORT in
9214   [\\/]* | ?:[\\/]*)
9215   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9216   ;;
9217   *)
9218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9220 do
9221   IFS=$as_save_IFS
9222   test -z "$as_dir" && as_dir=.
9223     for ac_exec_ext in '' $ac_executable_extensions; do
9224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9225     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227     break 2
9228   fi
9229 done
9230   done
9231 IFS=$as_save_IFS
9232 
9233   ;;
9234 esac
9235 fi
9236 SORT=$ac_cv_path_SORT
9237 if test -n "$SORT"; then
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9239 $as_echo "$SORT" >&6; }
9240 else
9241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 fi
9244 
9245 
9246   test -n "$SORT" && break
9247 done
9248 
9249     else
9250       # If it succeeded, then it was overridden by the user. We will use it
9251       # for the tool.
9252 
9253       # First remove it from the list of overridden variables, so we can test
9254       # for unknown variables in the end.
9255       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9256 
9257       # Check if the provided tool contains a complete path.
9258       tool_specified="$SORT"
9259       tool_basename="${tool_specified##*/}"
9260       if test "x$tool_basename" = "x$tool_specified"; then
9261         # A command without a complete path is provided, search $PATH.
9262         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9263 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9264         # Extract the first word of "$tool_basename", so it can be a program name with args.
9265 set dummy $tool_basename; ac_word=$2
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9267 $as_echo_n "checking for $ac_word... " >&6; }
9268 if ${ac_cv_path_SORT+:} false; then :
9269   $as_echo_n "(cached) " >&6
9270 else
9271   case $SORT in
9272   [\\/]* | ?:[\\/]*)
9273   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9274   ;;
9275   *)
9276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290 
9291   ;;
9292 esac
9293 fi
9294 SORT=$ac_cv_path_SORT
9295 if test -n "$SORT"; then
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9297 $as_echo "$SORT" >&6; }
9298 else
9299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9301 fi
9302 
9303 
9304         if test "x$SORT" = x; then
9305           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9306         fi
9307       else
9308         # Otherwise we believe it is a complete path. Use it as it is.
9309         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9310 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9312 $as_echo_n "checking for SORT... " >&6; }
9313         if test ! -x "$tool_specified"; then
9314           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9315 $as_echo "not found" >&6; }
9316           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9317         fi
9318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9319 $as_echo "$tool_specified" >&6; }
9320       fi
9321     fi
9322   fi
9323 
9324 
9325 
9326   if test "x$SORT" = x; then
9327     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9328   fi
9329 
9330 
9331 
9332 
9333 
9334   # Publish this variable in the help.
9335 
9336 
9337   if test "x$TAIL" = x; then
9338     # The variable is not set by user, try to locate tool using the code snippet
9339     for ac_prog in tail
9340 do
9341   # Extract the first word of "$ac_prog", so it can be a program name with args.
9342 set dummy $ac_prog; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if ${ac_cv_path_TAIL+:} false; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   case $TAIL in
9349   [\\/]* | ?:[\\/]*)
9350   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9351   ;;
9352   *)
9353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9355 do
9356   IFS=$as_save_IFS
9357   test -z "$as_dir" && as_dir=.
9358     for ac_exec_ext in '' $ac_executable_extensions; do
9359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362     break 2
9363   fi
9364 done
9365   done
9366 IFS=$as_save_IFS
9367 
9368   ;;
9369 esac
9370 fi
9371 TAIL=$ac_cv_path_TAIL
9372 if test -n "$TAIL"; then
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9374 $as_echo "$TAIL" >&6; }
9375 else
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9378 fi
9379 
9380 
9381   test -n "$TAIL" && break
9382 done
9383 
9384   else
9385     # The variable is set, but is it from the command line or the environment?
9386 
9387     # Try to remove the string !TAIL! from our list.
9388     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9389     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9390       # If it failed, the variable was not from the command line. Ignore it,
9391       # but warn the user (except for BASH, which is always set by the calling BASH).
9392       if test "xTAIL" != xBASH; then
9393         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9394 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9395       fi
9396       # Try to locate tool using the code snippet
9397       for ac_prog in tail
9398 do
9399   # Extract the first word of "$ac_prog", so it can be a program name with args.
9400 set dummy $ac_prog; ac_word=$2
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 $as_echo_n "checking for $ac_word... " >&6; }
9403 if ${ac_cv_path_TAIL+:} false; then :
9404   $as_echo_n "(cached) " >&6
9405 else
9406   case $TAIL in
9407   [\\/]* | ?:[\\/]*)
9408   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9409   ;;
9410   *)
9411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9413 do
9414   IFS=$as_save_IFS
9415   test -z "$as_dir" && as_dir=.
9416     for ac_exec_ext in '' $ac_executable_extensions; do
9417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9418     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420     break 2
9421   fi
9422 done
9423   done
9424 IFS=$as_save_IFS
9425 
9426   ;;
9427 esac
9428 fi
9429 TAIL=$ac_cv_path_TAIL
9430 if test -n "$TAIL"; then
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9432 $as_echo "$TAIL" >&6; }
9433 else
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9436 fi
9437 
9438 
9439   test -n "$TAIL" && break
9440 done
9441 
9442     else
9443       # If it succeeded, then it was overridden by the user. We will use it
9444       # for the tool.
9445 
9446       # First remove it from the list of overridden variables, so we can test
9447       # for unknown variables in the end.
9448       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9449 
9450       # Check if the provided tool contains a complete path.
9451       tool_specified="$TAIL"
9452       tool_basename="${tool_specified##*/}"
9453       if test "x$tool_basename" = "x$tool_specified"; then
9454         # A command without a complete path is provided, search $PATH.
9455         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9456 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9457         # Extract the first word of "$tool_basename", so it can be a program name with args.
9458 set dummy $tool_basename; ac_word=$2
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9460 $as_echo_n "checking for $ac_word... " >&6; }
9461 if ${ac_cv_path_TAIL+:} false; then :
9462   $as_echo_n "(cached) " >&6
9463 else
9464   case $TAIL in
9465   [\\/]* | ?:[\\/]*)
9466   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9467   ;;
9468   *)
9469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9471 do
9472   IFS=$as_save_IFS
9473   test -z "$as_dir" && as_dir=.
9474     for ac_exec_ext in '' $ac_executable_extensions; do
9475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9476     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478     break 2
9479   fi
9480 done
9481   done
9482 IFS=$as_save_IFS
9483 
9484   ;;
9485 esac
9486 fi
9487 TAIL=$ac_cv_path_TAIL
9488 if test -n "$TAIL"; then
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9490 $as_echo "$TAIL" >&6; }
9491 else
9492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9494 fi
9495 
9496 
9497         if test "x$TAIL" = x; then
9498           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9499         fi
9500       else
9501         # Otherwise we believe it is a complete path. Use it as it is.
9502         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9503 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9505 $as_echo_n "checking for TAIL... " >&6; }
9506         if test ! -x "$tool_specified"; then
9507           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9508 $as_echo "not found" >&6; }
9509           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9510         fi
9511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9512 $as_echo "$tool_specified" >&6; }
9513       fi
9514     fi
9515   fi
9516 
9517 
9518 
9519   if test "x$TAIL" = x; then
9520     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9521   fi
9522 
9523 
9524 
9525 
9526 
9527   # Publish this variable in the help.
9528 
9529 
9530   if test "x$TAR" = x; then
9531     # The variable is not set by user, try to locate tool using the code snippet
9532     for ac_prog in tar
9533 do
9534   # Extract the first word of "$ac_prog", so it can be a program name with args.
9535 set dummy $ac_prog; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if ${ac_cv_path_TAR+:} false; then :
9539   $as_echo_n "(cached) " >&6
9540 else
9541   case $TAR in
9542   [\\/]* | ?:[\\/]*)
9543   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9544   ;;
9545   *)
9546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547 for as_dir in $PATH
9548 do
9549   IFS=$as_save_IFS
9550   test -z "$as_dir" && as_dir=.
9551     for ac_exec_ext in '' $ac_executable_extensions; do
9552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9553     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9555     break 2
9556   fi
9557 done
9558   done
9559 IFS=$as_save_IFS
9560 
9561   ;;
9562 esac
9563 fi
9564 TAR=$ac_cv_path_TAR
9565 if test -n "$TAR"; then
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9567 $as_echo "$TAR" >&6; }
9568 else
9569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570 $as_echo "no" >&6; }
9571 fi
9572 
9573 
9574   test -n "$TAR" && break
9575 done
9576 
9577   else
9578     # The variable is set, but is it from the command line or the environment?
9579 
9580     # Try to remove the string !TAR! from our list.
9581     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9582     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9583       # If it failed, the variable was not from the command line. Ignore it,
9584       # but warn the user (except for BASH, which is always set by the calling BASH).
9585       if test "xTAR" != xBASH; then
9586         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9587 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9588       fi
9589       # Try to locate tool using the code snippet
9590       for ac_prog in tar
9591 do
9592   # Extract the first word of "$ac_prog", so it can be a program name with args.
9593 set dummy $ac_prog; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if ${ac_cv_path_TAR+:} false; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   case $TAR in
9600   [\\/]* | ?:[\\/]*)
9601   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9602   ;;
9603   *)
9604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607   IFS=$as_save_IFS
9608   test -z "$as_dir" && as_dir=.
9609     for ac_exec_ext in '' $ac_executable_extensions; do
9610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613     break 2
9614   fi
9615 done
9616   done
9617 IFS=$as_save_IFS
9618 
9619   ;;
9620 esac
9621 fi
9622 TAR=$ac_cv_path_TAR
9623 if test -n "$TAR"; then
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9625 $as_echo "$TAR" >&6; }
9626 else
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9629 fi
9630 
9631 
9632   test -n "$TAR" && break
9633 done
9634 
9635     else
9636       # If it succeeded, then it was overridden by the user. We will use it
9637       # for the tool.
9638 
9639       # First remove it from the list of overridden variables, so we can test
9640       # for unknown variables in the end.
9641       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9642 
9643       # Check if the provided tool contains a complete path.
9644       tool_specified="$TAR"
9645       tool_basename="${tool_specified##*/}"
9646       if test "x$tool_basename" = "x$tool_specified"; then
9647         # A command without a complete path is provided, search $PATH.
9648         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9649 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9650         # Extract the first word of "$tool_basename", so it can be a program name with args.
9651 set dummy $tool_basename; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if ${ac_cv_path_TAR+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   case $TAR in
9658   [\\/]* | ?:[\\/]*)
9659   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9660   ;;
9661   *)
9662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665   IFS=$as_save_IFS
9666   test -z "$as_dir" && as_dir=.
9667     for ac_exec_ext in '' $ac_executable_extensions; do
9668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671     break 2
9672   fi
9673 done
9674   done
9675 IFS=$as_save_IFS
9676 
9677   ;;
9678 esac
9679 fi
9680 TAR=$ac_cv_path_TAR
9681 if test -n "$TAR"; then
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9683 $as_echo "$TAR" >&6; }
9684 else
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9687 fi
9688 
9689 
9690         if test "x$TAR" = x; then
9691           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9692         fi
9693       else
9694         # Otherwise we believe it is a complete path. Use it as it is.
9695         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9696 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9698 $as_echo_n "checking for TAR... " >&6; }
9699         if test ! -x "$tool_specified"; then
9700           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9701 $as_echo "not found" >&6; }
9702           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9703         fi
9704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9705 $as_echo "$tool_specified" >&6; }
9706       fi
9707     fi
9708   fi
9709 
9710 
9711 
9712   if test "x$TAR" = x; then
9713     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9714   fi
9715 
9716 
9717 
9718 
9719 
9720   # Publish this variable in the help.
9721 
9722 
9723   if test "x$TEE" = x; then
9724     # The variable is not set by user, try to locate tool using the code snippet
9725     for ac_prog in tee
9726 do
9727   # Extract the first word of "$ac_prog", so it can be a program name with args.
9728 set dummy $ac_prog; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_path_TEE+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   case $TEE in
9735   [\\/]* | ?:[\\/]*)
9736   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9737   ;;
9738   *)
9739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9741 do
9742   IFS=$as_save_IFS
9743   test -z "$as_dir" && as_dir=.
9744     for ac_exec_ext in '' $ac_executable_extensions; do
9745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748     break 2
9749   fi
9750 done
9751   done
9752 IFS=$as_save_IFS
9753 
9754   ;;
9755 esac
9756 fi
9757 TEE=$ac_cv_path_TEE
9758 if test -n "$TEE"; then
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9760 $as_echo "$TEE" >&6; }
9761 else
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9764 fi
9765 
9766 
9767   test -n "$TEE" && break
9768 done
9769 
9770   else
9771     # The variable is set, but is it from the command line or the environment?
9772 
9773     # Try to remove the string !TEE! from our list.
9774     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9775     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9776       # If it failed, the variable was not from the command line. Ignore it,
9777       # but warn the user (except for BASH, which is always set by the calling BASH).
9778       if test "xTEE" != xBASH; then
9779         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9780 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9781       fi
9782       # Try to locate tool using the code snippet
9783       for ac_prog in tee
9784 do
9785   # Extract the first word of "$ac_prog", so it can be a program name with args.
9786 set dummy $ac_prog; ac_word=$2
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9788 $as_echo_n "checking for $ac_word... " >&6; }
9789 if ${ac_cv_path_TEE+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   case $TEE in
9793   [\\/]* | ?:[\\/]*)
9794   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9795   ;;
9796   *)
9797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 for as_dir in $PATH
9799 do
9800   IFS=$as_save_IFS
9801   test -z "$as_dir" && as_dir=.
9802     for ac_exec_ext in '' $ac_executable_extensions; do
9803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9804     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806     break 2
9807   fi
9808 done
9809   done
9810 IFS=$as_save_IFS
9811 
9812   ;;
9813 esac
9814 fi
9815 TEE=$ac_cv_path_TEE
9816 if test -n "$TEE"; then
9817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9818 $as_echo "$TEE" >&6; }
9819 else
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9822 fi
9823 
9824 
9825   test -n "$TEE" && break
9826 done
9827 
9828     else
9829       # If it succeeded, then it was overridden by the user. We will use it
9830       # for the tool.
9831 
9832       # First remove it from the list of overridden variables, so we can test
9833       # for unknown variables in the end.
9834       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9835 
9836       # Check if the provided tool contains a complete path.
9837       tool_specified="$TEE"
9838       tool_basename="${tool_specified##*/}"
9839       if test "x$tool_basename" = "x$tool_specified"; then
9840         # A command without a complete path is provided, search $PATH.
9841         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9842 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9843         # Extract the first word of "$tool_basename", so it can be a program name with args.
9844 set dummy $tool_basename; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if ${ac_cv_path_TEE+:} false; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   case $TEE in
9851   [\\/]* | ?:[\\/]*)
9852   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9853   ;;
9854   *)
9855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858   IFS=$as_save_IFS
9859   test -z "$as_dir" && as_dir=.
9860     for ac_exec_ext in '' $ac_executable_extensions; do
9861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864     break 2
9865   fi
9866 done
9867   done
9868 IFS=$as_save_IFS
9869 
9870   ;;
9871 esac
9872 fi
9873 TEE=$ac_cv_path_TEE
9874 if test -n "$TEE"; then
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9876 $as_echo "$TEE" >&6; }
9877 else
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9880 fi
9881 
9882 
9883         if test "x$TEE" = x; then
9884           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9885         fi
9886       else
9887         # Otherwise we believe it is a complete path. Use it as it is.
9888         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9889 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9891 $as_echo_n "checking for TEE... " >&6; }
9892         if test ! -x "$tool_specified"; then
9893           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9894 $as_echo "not found" >&6; }
9895           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9896         fi
9897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9898 $as_echo "$tool_specified" >&6; }
9899       fi
9900     fi
9901   fi
9902 
9903 
9904 
9905   if test "x$TEE" = x; then
9906     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9907   fi
9908 
9909 
9910 
9911 
9912 
9913   # Publish this variable in the help.
9914 
9915 
9916   if test "x$TOUCH" = x; then
9917     # The variable is not set by user, try to locate tool using the code snippet
9918     for ac_prog in touch
9919 do
9920   # Extract the first word of "$ac_prog", so it can be a program name with args.
9921 set dummy $ac_prog; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_path_TOUCH+:} false; then :
9925   $as_echo_n "(cached) " >&6
9926 else
9927   case $TOUCH in
9928   [\\/]* | ?:[\\/]*)
9929   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9930   ;;
9931   *)
9932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9934 do
9935   IFS=$as_save_IFS
9936   test -z "$as_dir" && as_dir=.
9937     for ac_exec_ext in '' $ac_executable_extensions; do
9938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9939     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941     break 2
9942   fi
9943 done
9944   done
9945 IFS=$as_save_IFS
9946 
9947   ;;
9948 esac
9949 fi
9950 TOUCH=$ac_cv_path_TOUCH
9951 if test -n "$TOUCH"; then
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9953 $as_echo "$TOUCH" >&6; }
9954 else
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958 
9959 
9960   test -n "$TOUCH" && break
9961 done
9962 
9963   else
9964     # The variable is set, but is it from the command line or the environment?
9965 
9966     # Try to remove the string !TOUCH! from our list.
9967     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
9968     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9969       # If it failed, the variable was not from the command line. Ignore it,
9970       # but warn the user (except for BASH, which is always set by the calling BASH).
9971       if test "xTOUCH" != xBASH; then
9972         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
9973 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
9974       fi
9975       # Try to locate tool using the code snippet
9976       for ac_prog in touch
9977 do
9978   # Extract the first word of "$ac_prog", so it can be a program name with args.
9979 set dummy $ac_prog; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if ${ac_cv_path_TOUCH+:} false; then :
9983   $as_echo_n "(cached) " >&6
9984 else
9985   case $TOUCH in
9986   [\\/]* | ?:[\\/]*)
9987   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9988   ;;
9989   *)
9990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9992 do
9993   IFS=$as_save_IFS
9994   test -z "$as_dir" && as_dir=.
9995     for ac_exec_ext in '' $ac_executable_extensions; do
9996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999     break 2
10000   fi
10001 done
10002   done
10003 IFS=$as_save_IFS
10004 
10005   ;;
10006 esac
10007 fi
10008 TOUCH=$ac_cv_path_TOUCH
10009 if test -n "$TOUCH"; then
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10011 $as_echo "$TOUCH" >&6; }
10012 else
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015 fi
10016 
10017 
10018   test -n "$TOUCH" && break
10019 done
10020 
10021     else
10022       # If it succeeded, then it was overridden by the user. We will use it
10023       # for the tool.
10024 
10025       # First remove it from the list of overridden variables, so we can test
10026       # for unknown variables in the end.
10027       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10028 
10029       # Check if the provided tool contains a complete path.
10030       tool_specified="$TOUCH"
10031       tool_basename="${tool_specified##*/}"
10032       if test "x$tool_basename" = "x$tool_specified"; then
10033         # A command without a complete path is provided, search $PATH.
10034         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10035 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10036         # Extract the first word of "$tool_basename", so it can be a program name with args.
10037 set dummy $tool_basename; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_path_TOUCH+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   case $TOUCH in
10044   [\\/]* | ?:[\\/]*)
10045   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10046   ;;
10047   *)
10048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10050 do
10051   IFS=$as_save_IFS
10052   test -z "$as_dir" && as_dir=.
10053     for ac_exec_ext in '' $ac_executable_extensions; do
10054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057     break 2
10058   fi
10059 done
10060   done
10061 IFS=$as_save_IFS
10062 
10063   ;;
10064 esac
10065 fi
10066 TOUCH=$ac_cv_path_TOUCH
10067 if test -n "$TOUCH"; then
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10069 $as_echo "$TOUCH" >&6; }
10070 else
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10073 fi
10074 
10075 
10076         if test "x$TOUCH" = x; then
10077           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10078         fi
10079       else
10080         # Otherwise we believe it is a complete path. Use it as it is.
10081         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10082 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10084 $as_echo_n "checking for TOUCH... " >&6; }
10085         if test ! -x "$tool_specified"; then
10086           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10087 $as_echo "not found" >&6; }
10088           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10089         fi
10090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10091 $as_echo "$tool_specified" >&6; }
10092       fi
10093     fi
10094   fi
10095 
10096 
10097 
10098   if test "x$TOUCH" = x; then
10099     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10100   fi
10101 
10102 
10103 
10104 
10105 
10106   # Publish this variable in the help.
10107 
10108 
10109   if test "x$TR" = x; then
10110     # The variable is not set by user, try to locate tool using the code snippet
10111     for ac_prog in tr
10112 do
10113   # Extract the first word of "$ac_prog", so it can be a program name with args.
10114 set dummy $ac_prog; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if ${ac_cv_path_TR+:} false; then :
10118   $as_echo_n "(cached) " >&6
10119 else
10120   case $TR in
10121   [\\/]* | ?:[\\/]*)
10122   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10123   ;;
10124   *)
10125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10127 do
10128   IFS=$as_save_IFS
10129   test -z "$as_dir" && as_dir=.
10130     for ac_exec_ext in '' $ac_executable_extensions; do
10131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10132     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134     break 2
10135   fi
10136 done
10137   done
10138 IFS=$as_save_IFS
10139 
10140   ;;
10141 esac
10142 fi
10143 TR=$ac_cv_path_TR
10144 if test -n "$TR"; then
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10146 $as_echo "$TR" >&6; }
10147 else
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10150 fi
10151 
10152 
10153   test -n "$TR" && break
10154 done
10155 
10156   else
10157     # The variable is set, but is it from the command line or the environment?
10158 
10159     # Try to remove the string !TR! from our list.
10160     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10161     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10162       # If it failed, the variable was not from the command line. Ignore it,
10163       # but warn the user (except for BASH, which is always set by the calling BASH).
10164       if test "xTR" != xBASH; then
10165         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10166 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10167       fi
10168       # Try to locate tool using the code snippet
10169       for ac_prog in tr
10170 do
10171   # Extract the first word of "$ac_prog", so it can be a program name with args.
10172 set dummy $ac_prog; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if ${ac_cv_path_TR+:} false; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   case $TR in
10179   [\\/]* | ?:[\\/]*)
10180   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10181   ;;
10182   *)
10183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186   IFS=$as_save_IFS
10187   test -z "$as_dir" && as_dir=.
10188     for ac_exec_ext in '' $ac_executable_extensions; do
10189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192     break 2
10193   fi
10194 done
10195   done
10196 IFS=$as_save_IFS
10197 
10198   ;;
10199 esac
10200 fi
10201 TR=$ac_cv_path_TR
10202 if test -n "$TR"; then
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10204 $as_echo "$TR" >&6; }
10205 else
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209 
10210 
10211   test -n "$TR" && break
10212 done
10213 
10214     else
10215       # If it succeeded, then it was overridden by the user. We will use it
10216       # for the tool.
10217 
10218       # First remove it from the list of overridden variables, so we can test
10219       # for unknown variables in the end.
10220       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10221 
10222       # Check if the provided tool contains a complete path.
10223       tool_specified="$TR"
10224       tool_basename="${tool_specified##*/}"
10225       if test "x$tool_basename" = "x$tool_specified"; then
10226         # A command without a complete path is provided, search $PATH.
10227         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10228 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10229         # Extract the first word of "$tool_basename", so it can be a program name with args.
10230 set dummy $tool_basename; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_TR+:} false; then :
10234   $as_echo_n "(cached) " >&6
10235 else
10236   case $TR in
10237   [\\/]* | ?:[\\/]*)
10238   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10239   ;;
10240   *)
10241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10243 do
10244   IFS=$as_save_IFS
10245   test -z "$as_dir" && as_dir=.
10246     for ac_exec_ext in '' $ac_executable_extensions; do
10247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250     break 2
10251   fi
10252 done
10253   done
10254 IFS=$as_save_IFS
10255 
10256   ;;
10257 esac
10258 fi
10259 TR=$ac_cv_path_TR
10260 if test -n "$TR"; then
10261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10262 $as_echo "$TR" >&6; }
10263 else
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10266 fi
10267 
10268 
10269         if test "x$TR" = x; then
10270           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10271         fi
10272       else
10273         # Otherwise we believe it is a complete path. Use it as it is.
10274         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10275 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10277 $as_echo_n "checking for TR... " >&6; }
10278         if test ! -x "$tool_specified"; then
10279           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10280 $as_echo "not found" >&6; }
10281           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10282         fi
10283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10284 $as_echo "$tool_specified" >&6; }
10285       fi
10286     fi
10287   fi
10288 
10289 
10290 
10291   if test "x$TR" = x; then
10292     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10293   fi
10294 
10295 
10296 
10297 
10298 
10299   # Publish this variable in the help.
10300 
10301 
10302   if test "x$UNAME" = x; then
10303     # The variable is not set by user, try to locate tool using the code snippet
10304     for ac_prog in uname
10305 do
10306   # Extract the first word of "$ac_prog", so it can be a program name with args.
10307 set dummy $ac_prog; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if ${ac_cv_path_UNAME+:} false; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   case $UNAME in
10314   [\\/]* | ?:[\\/]*)
10315   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10316   ;;
10317   *)
10318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10320 do
10321   IFS=$as_save_IFS
10322   test -z "$as_dir" && as_dir=.
10323     for ac_exec_ext in '' $ac_executable_extensions; do
10324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327     break 2
10328   fi
10329 done
10330   done
10331 IFS=$as_save_IFS
10332 
10333   ;;
10334 esac
10335 fi
10336 UNAME=$ac_cv_path_UNAME
10337 if test -n "$UNAME"; then
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10339 $as_echo "$UNAME" >&6; }
10340 else
10341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10343 fi
10344 
10345 
10346   test -n "$UNAME" && break
10347 done
10348 
10349   else
10350     # The variable is set, but is it from the command line or the environment?
10351 
10352     # Try to remove the string !UNAME! from our list.
10353     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10354     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10355       # If it failed, the variable was not from the command line. Ignore it,
10356       # but warn the user (except for BASH, which is always set by the calling BASH).
10357       if test "xUNAME" != xBASH; then
10358         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10359 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10360       fi
10361       # Try to locate tool using the code snippet
10362       for ac_prog in uname
10363 do
10364   # Extract the first word of "$ac_prog", so it can be a program name with args.
10365 set dummy $ac_prog; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_path_UNAME+:} false; then :
10369   $as_echo_n "(cached) " >&6
10370 else
10371   case $UNAME in
10372   [\\/]* | ?:[\\/]*)
10373   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10374   ;;
10375   *)
10376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10378 do
10379   IFS=$as_save_IFS
10380   test -z "$as_dir" && as_dir=.
10381     for ac_exec_ext in '' $ac_executable_extensions; do
10382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385     break 2
10386   fi
10387 done
10388   done
10389 IFS=$as_save_IFS
10390 
10391   ;;
10392 esac
10393 fi
10394 UNAME=$ac_cv_path_UNAME
10395 if test -n "$UNAME"; then
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10397 $as_echo "$UNAME" >&6; }
10398 else
10399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10401 fi
10402 
10403 
10404   test -n "$UNAME" && break
10405 done
10406 
10407     else
10408       # If it succeeded, then it was overridden by the user. We will use it
10409       # for the tool.
10410 
10411       # First remove it from the list of overridden variables, so we can test
10412       # for unknown variables in the end.
10413       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10414 
10415       # Check if the provided tool contains a complete path.
10416       tool_specified="$UNAME"
10417       tool_basename="${tool_specified##*/}"
10418       if test "x$tool_basename" = "x$tool_specified"; then
10419         # A command without a complete path is provided, search $PATH.
10420         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10421 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10422         # Extract the first word of "$tool_basename", so it can be a program name with args.
10423 set dummy $tool_basename; ac_word=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_path_UNAME+:} false; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   case $UNAME in
10430   [\\/]* | ?:[\\/]*)
10431   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10432   ;;
10433   *)
10434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437   IFS=$as_save_IFS
10438   test -z "$as_dir" && as_dir=.
10439     for ac_exec_ext in '' $ac_executable_extensions; do
10440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443     break 2
10444   fi
10445 done
10446   done
10447 IFS=$as_save_IFS
10448 
10449   ;;
10450 esac
10451 fi
10452 UNAME=$ac_cv_path_UNAME
10453 if test -n "$UNAME"; then
10454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10455 $as_echo "$UNAME" >&6; }
10456 else
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10459 fi
10460 
10461 
10462         if test "x$UNAME" = x; then
10463           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10464         fi
10465       else
10466         # Otherwise we believe it is a complete path. Use it as it is.
10467         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10468 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10469         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10470 $as_echo_n "checking for UNAME... " >&6; }
10471         if test ! -x "$tool_specified"; then
10472           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10473 $as_echo "not found" >&6; }
10474           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10475         fi
10476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10477 $as_echo "$tool_specified" >&6; }
10478       fi
10479     fi
10480   fi
10481 
10482 
10483 
10484   if test "x$UNAME" = x; then
10485     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10486   fi
10487 
10488 
10489 
10490 
10491 
10492   # Publish this variable in the help.
10493 
10494 
10495   if test "x$UNIQ" = x; then
10496     # The variable is not set by user, try to locate tool using the code snippet
10497     for ac_prog in uniq
10498 do
10499   # Extract the first word of "$ac_prog", so it can be a program name with args.
10500 set dummy $ac_prog; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if ${ac_cv_path_UNIQ+:} false; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   case $UNIQ in
10507   [\\/]* | ?:[\\/]*)
10508   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10509   ;;
10510   *)
10511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10513 do
10514   IFS=$as_save_IFS
10515   test -z "$as_dir" && as_dir=.
10516     for ac_exec_ext in '' $ac_executable_extensions; do
10517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10518     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520     break 2
10521   fi
10522 done
10523   done
10524 IFS=$as_save_IFS
10525 
10526   ;;
10527 esac
10528 fi
10529 UNIQ=$ac_cv_path_UNIQ
10530 if test -n "$UNIQ"; then
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10532 $as_echo "$UNIQ" >&6; }
10533 else
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537 
10538 
10539   test -n "$UNIQ" && break
10540 done
10541 
10542   else
10543     # The variable is set, but is it from the command line or the environment?
10544 
10545     # Try to remove the string !UNIQ! from our list.
10546     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10547     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10548       # If it failed, the variable was not from the command line. Ignore it,
10549       # but warn the user (except for BASH, which is always set by the calling BASH).
10550       if test "xUNIQ" != xBASH; then
10551         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10552 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10553       fi
10554       # Try to locate tool using the code snippet
10555       for ac_prog in uniq
10556 do
10557   # Extract the first word of "$ac_prog", so it can be a program name with args.
10558 set dummy $ac_prog; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_UNIQ+:} false; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   case $UNIQ in
10565   [\\/]* | ?:[\\/]*)
10566   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10567   ;;
10568   *)
10569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572   IFS=$as_save_IFS
10573   test -z "$as_dir" && as_dir=.
10574     for ac_exec_ext in '' $ac_executable_extensions; do
10575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578     break 2
10579   fi
10580 done
10581   done
10582 IFS=$as_save_IFS
10583 
10584   ;;
10585 esac
10586 fi
10587 UNIQ=$ac_cv_path_UNIQ
10588 if test -n "$UNIQ"; then
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10590 $as_echo "$UNIQ" >&6; }
10591 else
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 fi
10595 
10596 
10597   test -n "$UNIQ" && break
10598 done
10599 
10600     else
10601       # If it succeeded, then it was overridden by the user. We will use it
10602       # for the tool.
10603 
10604       # First remove it from the list of overridden variables, so we can test
10605       # for unknown variables in the end.
10606       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10607 
10608       # Check if the provided tool contains a complete path.
10609       tool_specified="$UNIQ"
10610       tool_basename="${tool_specified##*/}"
10611       if test "x$tool_basename" = "x$tool_specified"; then
10612         # A command without a complete path is provided, search $PATH.
10613         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10614 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10615         # Extract the first word of "$tool_basename", so it can be a program name with args.
10616 set dummy $tool_basename; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if ${ac_cv_path_UNIQ+:} false; then :
10620   $as_echo_n "(cached) " >&6
10621 else
10622   case $UNIQ in
10623   [\\/]* | ?:[\\/]*)
10624   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10625   ;;
10626   *)
10627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in $PATH
10629 do
10630   IFS=$as_save_IFS
10631   test -z "$as_dir" && as_dir=.
10632     for ac_exec_ext in '' $ac_executable_extensions; do
10633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636     break 2
10637   fi
10638 done
10639   done
10640 IFS=$as_save_IFS
10641 
10642   ;;
10643 esac
10644 fi
10645 UNIQ=$ac_cv_path_UNIQ
10646 if test -n "$UNIQ"; then
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10648 $as_echo "$UNIQ" >&6; }
10649 else
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10652 fi
10653 
10654 
10655         if test "x$UNIQ" = x; then
10656           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10657         fi
10658       else
10659         # Otherwise we believe it is a complete path. Use it as it is.
10660         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10661 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10663 $as_echo_n "checking for UNIQ... " >&6; }
10664         if test ! -x "$tool_specified"; then
10665           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10666 $as_echo "not found" >&6; }
10667           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10668         fi
10669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10670 $as_echo "$tool_specified" >&6; }
10671       fi
10672     fi
10673   fi
10674 
10675 
10676 
10677   if test "x$UNIQ" = x; then
10678     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10679   fi
10680 
10681 
10682 
10683 
10684 
10685   # Publish this variable in the help.
10686 
10687 
10688   if test "x$WC" = x; then
10689     # The variable is not set by user, try to locate tool using the code snippet
10690     for ac_prog in wc
10691 do
10692   # Extract the first word of "$ac_prog", so it can be a program name with args.
10693 set dummy $ac_prog; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_path_WC+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   case $WC in
10700   [\\/]* | ?:[\\/]*)
10701   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10702   ;;
10703   *)
10704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10706 do
10707   IFS=$as_save_IFS
10708   test -z "$as_dir" && as_dir=.
10709     for ac_exec_ext in '' $ac_executable_extensions; do
10710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713     break 2
10714   fi
10715 done
10716   done
10717 IFS=$as_save_IFS
10718 
10719   ;;
10720 esac
10721 fi
10722 WC=$ac_cv_path_WC
10723 if test -n "$WC"; then
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10725 $as_echo "$WC" >&6; }
10726 else
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10729 fi
10730 
10731 
10732   test -n "$WC" && break
10733 done
10734 
10735   else
10736     # The variable is set, but is it from the command line or the environment?
10737 
10738     # Try to remove the string !WC! from our list.
10739     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10740     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10741       # If it failed, the variable was not from the command line. Ignore it,
10742       # but warn the user (except for BASH, which is always set by the calling BASH).
10743       if test "xWC" != xBASH; then
10744         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10745 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10746       fi
10747       # Try to locate tool using the code snippet
10748       for ac_prog in wc
10749 do
10750   # Extract the first word of "$ac_prog", so it can be a program name with args.
10751 set dummy $ac_prog; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_path_WC+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   case $WC in
10758   [\\/]* | ?:[\\/]*)
10759   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10760   ;;
10761   *)
10762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765   IFS=$as_save_IFS
10766   test -z "$as_dir" && as_dir=.
10767     for ac_exec_ext in '' $ac_executable_extensions; do
10768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10769     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771     break 2
10772   fi
10773 done
10774   done
10775 IFS=$as_save_IFS
10776 
10777   ;;
10778 esac
10779 fi
10780 WC=$ac_cv_path_WC
10781 if test -n "$WC"; then
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10783 $as_echo "$WC" >&6; }
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788 
10789 
10790   test -n "$WC" && break
10791 done
10792 
10793     else
10794       # If it succeeded, then it was overridden by the user. We will use it
10795       # for the tool.
10796 
10797       # First remove it from the list of overridden variables, so we can test
10798       # for unknown variables in the end.
10799       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10800 
10801       # Check if the provided tool contains a complete path.
10802       tool_specified="$WC"
10803       tool_basename="${tool_specified##*/}"
10804       if test "x$tool_basename" = "x$tool_specified"; then
10805         # A command without a complete path is provided, search $PATH.
10806         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10807 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10808         # Extract the first word of "$tool_basename", so it can be a program name with args.
10809 set dummy $tool_basename; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if ${ac_cv_path_WC+:} false; then :
10813   $as_echo_n "(cached) " >&6
10814 else
10815   case $WC in
10816   [\\/]* | ?:[\\/]*)
10817   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10818   ;;
10819   *)
10820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $PATH
10822 do
10823   IFS=$as_save_IFS
10824   test -z "$as_dir" && as_dir=.
10825     for ac_exec_ext in '' $ac_executable_extensions; do
10826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10827     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10829     break 2
10830   fi
10831 done
10832   done
10833 IFS=$as_save_IFS
10834 
10835   ;;
10836 esac
10837 fi
10838 WC=$ac_cv_path_WC
10839 if test -n "$WC"; then
10840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10841 $as_echo "$WC" >&6; }
10842 else
10843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 fi
10846 
10847 
10848         if test "x$WC" = x; then
10849           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10850         fi
10851       else
10852         # Otherwise we believe it is a complete path. Use it as it is.
10853         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10854 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10856 $as_echo_n "checking for WC... " >&6; }
10857         if test ! -x "$tool_specified"; then
10858           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10859 $as_echo "not found" >&6; }
10860           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10861         fi
10862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10863 $as_echo "$tool_specified" >&6; }
10864       fi
10865     fi
10866   fi
10867 
10868 
10869 
10870   if test "x$WC" = x; then
10871     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10872   fi
10873 
10874 
10875 
10876 
10877 
10878   # Publish this variable in the help.
10879 
10880 
10881   if test "x$WHICH" = x; then
10882     # The variable is not set by user, try to locate tool using the code snippet
10883     for ac_prog in which
10884 do
10885   # Extract the first word of "$ac_prog", so it can be a program name with args.
10886 set dummy $ac_prog; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if ${ac_cv_path_WHICH+:} false; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   case $WHICH in
10893   [\\/]* | ?:[\\/]*)
10894   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10895   ;;
10896   *)
10897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in $PATH
10899 do
10900   IFS=$as_save_IFS
10901   test -z "$as_dir" && as_dir=.
10902     for ac_exec_ext in '' $ac_executable_extensions; do
10903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10904     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10906     break 2
10907   fi
10908 done
10909   done
10910 IFS=$as_save_IFS
10911 
10912   ;;
10913 esac
10914 fi
10915 WHICH=$ac_cv_path_WHICH
10916 if test -n "$WHICH"; then
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10918 $as_echo "$WHICH" >&6; }
10919 else
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10922 fi
10923 
10924 
10925   test -n "$WHICH" && break
10926 done
10927 
10928   else
10929     # The variable is set, but is it from the command line or the environment?
10930 
10931     # Try to remove the string !WHICH! from our list.
10932     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10933     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10934       # If it failed, the variable was not from the command line. Ignore it,
10935       # but warn the user (except for BASH, which is always set by the calling BASH).
10936       if test "xWHICH" != xBASH; then
10937         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10938 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10939       fi
10940       # Try to locate tool using the code snippet
10941       for ac_prog in which
10942 do
10943   # Extract the first word of "$ac_prog", so it can be a program name with args.
10944 set dummy $ac_prog; ac_word=$2
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946 $as_echo_n "checking for $ac_word... " >&6; }
10947 if ${ac_cv_path_WHICH+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950   case $WHICH in
10951   [\\/]* | ?:[\\/]*)
10952   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10953   ;;
10954   *)
10955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH
10957 do
10958   IFS=$as_save_IFS
10959   test -z "$as_dir" && as_dir=.
10960     for ac_exec_ext in '' $ac_executable_extensions; do
10961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10962     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964     break 2
10965   fi
10966 done
10967   done
10968 IFS=$as_save_IFS
10969 
10970   ;;
10971 esac
10972 fi
10973 WHICH=$ac_cv_path_WHICH
10974 if test -n "$WHICH"; then
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10976 $as_echo "$WHICH" >&6; }
10977 else
10978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; }
10980 fi
10981 
10982 
10983   test -n "$WHICH" && break
10984 done
10985 
10986     else
10987       # If it succeeded, then it was overridden by the user. We will use it
10988       # for the tool.
10989 
10990       # First remove it from the list of overridden variables, so we can test
10991       # for unknown variables in the end.
10992       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10993 
10994       # Check if the provided tool contains a complete path.
10995       tool_specified="$WHICH"
10996       tool_basename="${tool_specified##*/}"
10997       if test "x$tool_basename" = "x$tool_specified"; then
10998         # A command without a complete path is provided, search $PATH.
10999         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11000 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11001         # Extract the first word of "$tool_basename", so it can be a program name with args.
11002 set dummy $tool_basename; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_WHICH+:} false; then :
11006   $as_echo_n "(cached) " >&6
11007 else
11008   case $WHICH in
11009   [\\/]* | ?:[\\/]*)
11010   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11011   ;;
11012   *)
11013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016   IFS=$as_save_IFS
11017   test -z "$as_dir" && as_dir=.
11018     for ac_exec_ext in '' $ac_executable_extensions; do
11019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022     break 2
11023   fi
11024 done
11025   done
11026 IFS=$as_save_IFS
11027 
11028   ;;
11029 esac
11030 fi
11031 WHICH=$ac_cv_path_WHICH
11032 if test -n "$WHICH"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11034 $as_echo "$WHICH" >&6; }
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 fi
11039 
11040 
11041         if test "x$WHICH" = x; then
11042           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11043         fi
11044       else
11045         # Otherwise we believe it is a complete path. Use it as it is.
11046         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11047 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11048         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11049 $as_echo_n "checking for WHICH... " >&6; }
11050         if test ! -x "$tool_specified"; then
11051           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11052 $as_echo "not found" >&6; }
11053           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11054         fi
11055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11056 $as_echo "$tool_specified" >&6; }
11057       fi
11058     fi
11059   fi
11060 
11061 
11062 
11063   if test "x$WHICH" = x; then
11064     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11065   fi
11066 
11067 
11068 
11069 
11070 
11071   # Publish this variable in the help.
11072 
11073 
11074   if test "x$XARGS" = x; then
11075     # The variable is not set by user, try to locate tool using the code snippet
11076     for ac_prog in xargs
11077 do
11078   # Extract the first word of "$ac_prog", so it can be a program name with args.
11079 set dummy $ac_prog; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_path_XARGS+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   case $XARGS in
11086   [\\/]* | ?:[\\/]*)
11087   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11088   ;;
11089   *)
11090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11092 do
11093   IFS=$as_save_IFS
11094   test -z "$as_dir" && as_dir=.
11095     for ac_exec_ext in '' $ac_executable_extensions; do
11096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11097     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099     break 2
11100   fi
11101 done
11102   done
11103 IFS=$as_save_IFS
11104 
11105   ;;
11106 esac
11107 fi
11108 XARGS=$ac_cv_path_XARGS
11109 if test -n "$XARGS"; then
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11111 $as_echo "$XARGS" >&6; }
11112 else
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11115 fi
11116 
11117 
11118   test -n "$XARGS" && break
11119 done
11120 
11121   else
11122     # The variable is set, but is it from the command line or the environment?
11123 
11124     # Try to remove the string !XARGS! from our list.
11125     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11126     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11127       # If it failed, the variable was not from the command line. Ignore it,
11128       # but warn the user (except for BASH, which is always set by the calling BASH).
11129       if test "xXARGS" != xBASH; then
11130         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11131 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11132       fi
11133       # Try to locate tool using the code snippet
11134       for ac_prog in xargs
11135 do
11136   # Extract the first word of "$ac_prog", so it can be a program name with args.
11137 set dummy $ac_prog; ac_word=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if ${ac_cv_path_XARGS+:} false; then :
11141   $as_echo_n "(cached) " >&6
11142 else
11143   case $XARGS in
11144   [\\/]* | ?:[\\/]*)
11145   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11146   ;;
11147   *)
11148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11150 do
11151   IFS=$as_save_IFS
11152   test -z "$as_dir" && as_dir=.
11153     for ac_exec_ext in '' $ac_executable_extensions; do
11154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11155     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157     break 2
11158   fi
11159 done
11160   done
11161 IFS=$as_save_IFS
11162 
11163   ;;
11164 esac
11165 fi
11166 XARGS=$ac_cv_path_XARGS
11167 if test -n "$XARGS"; then
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11169 $as_echo "$XARGS" >&6; }
11170 else
11171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11173 fi
11174 
11175 
11176   test -n "$XARGS" && break
11177 done
11178 
11179     else
11180       # If it succeeded, then it was overridden by the user. We will use it
11181       # for the tool.
11182 
11183       # First remove it from the list of overridden variables, so we can test
11184       # for unknown variables in the end.
11185       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11186 
11187       # Check if the provided tool contains a complete path.
11188       tool_specified="$XARGS"
11189       tool_basename="${tool_specified##*/}"
11190       if test "x$tool_basename" = "x$tool_specified"; then
11191         # A command without a complete path is provided, search $PATH.
11192         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11193 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11194         # Extract the first word of "$tool_basename", so it can be a program name with args.
11195 set dummy $tool_basename; ac_word=$2
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197 $as_echo_n "checking for $ac_word... " >&6; }
11198 if ${ac_cv_path_XARGS+:} false; then :
11199   $as_echo_n "(cached) " >&6
11200 else
11201   case $XARGS in
11202   [\\/]* | ?:[\\/]*)
11203   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11204   ;;
11205   *)
11206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11208 do
11209   IFS=$as_save_IFS
11210   test -z "$as_dir" && as_dir=.
11211     for ac_exec_ext in '' $ac_executable_extensions; do
11212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11213     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215     break 2
11216   fi
11217 done
11218   done
11219 IFS=$as_save_IFS
11220 
11221   ;;
11222 esac
11223 fi
11224 XARGS=$ac_cv_path_XARGS
11225 if test -n "$XARGS"; then
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11227 $as_echo "$XARGS" >&6; }
11228 else
11229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 fi
11232 
11233 
11234         if test "x$XARGS" = x; then
11235           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11236         fi
11237       else
11238         # Otherwise we believe it is a complete path. Use it as it is.
11239         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11240 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11242 $as_echo_n "checking for XARGS... " >&6; }
11243         if test ! -x "$tool_specified"; then
11244           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11245 $as_echo "not found" >&6; }
11246           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11247         fi
11248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11249 $as_echo "$tool_specified" >&6; }
11250       fi
11251     fi
11252   fi
11253 
11254 
11255 
11256   if test "x$XARGS" = x; then
11257     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11258   fi
11259 
11260 
11261 
11262   # Then required tools that require some special treatment.
11263 
11264 
11265   # Publish this variable in the help.
11266 
11267 
11268   if test "x$AWK" = x; then
11269     # The variable is not set by user, try to locate tool using the code snippet
11270     for ac_prog in gawk mawk nawk awk
11271 do
11272   # Extract the first word of "$ac_prog", so it can be a program name with args.
11273 set dummy $ac_prog; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if ${ac_cv_prog_AWK+:} false; then :
11277   $as_echo_n "(cached) " >&6
11278 else
11279   if test -n "$AWK"; then
11280   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285   IFS=$as_save_IFS
11286   test -z "$as_dir" && as_dir=.
11287     for ac_exec_ext in '' $ac_executable_extensions; do
11288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289     ac_cv_prog_AWK="$ac_prog"
11290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291     break 2
11292   fi
11293 done
11294   done
11295 IFS=$as_save_IFS
11296 
11297 fi
11298 fi
11299 AWK=$ac_cv_prog_AWK
11300 if test -n "$AWK"; then
11301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11302 $as_echo "$AWK" >&6; }
11303 else
11304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11306 fi
11307 
11308 
11309   test -n "$AWK" && break
11310 done
11311 
11312   else
11313     # The variable is set, but is it from the command line or the environment?
11314 
11315     # Try to remove the string !AWK! from our list.
11316     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11317     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11318       # If it failed, the variable was not from the command line. Ignore it,
11319       # but warn the user (except for BASH, which is always set by the calling BASH).
11320       if test "xAWK" != xBASH; then
11321         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11322 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11323       fi
11324       # Try to locate tool using the code snippet
11325       for ac_prog in gawk mawk nawk awk
11326 do
11327   # Extract the first word of "$ac_prog", so it can be a program name with args.
11328 set dummy $ac_prog; ac_word=$2
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11330 $as_echo_n "checking for $ac_word... " >&6; }
11331 if ${ac_cv_prog_AWK+:} false; then :
11332   $as_echo_n "(cached) " >&6
11333 else
11334   if test -n "$AWK"; then
11335   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11336 else
11337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $PATH
11339 do
11340   IFS=$as_save_IFS
11341   test -z "$as_dir" && as_dir=.
11342     for ac_exec_ext in '' $ac_executable_extensions; do
11343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11344     ac_cv_prog_AWK="$ac_prog"
11345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346     break 2
11347   fi
11348 done
11349   done
11350 IFS=$as_save_IFS
11351 
11352 fi
11353 fi
11354 AWK=$ac_cv_prog_AWK
11355 if test -n "$AWK"; then
11356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11357 $as_echo "$AWK" >&6; }
11358 else
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11361 fi
11362 
11363 
11364   test -n "$AWK" && break
11365 done
11366 
11367     else
11368       # If it succeeded, then it was overridden by the user. We will use it
11369       # for the tool.
11370 
11371       # First remove it from the list of overridden variables, so we can test
11372       # for unknown variables in the end.
11373       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11374 
11375       # Check if the provided tool contains a complete path.
11376       tool_specified="$AWK"
11377       tool_basename="${tool_specified##*/}"
11378       if test "x$tool_basename" = "x$tool_specified"; then
11379         # A command without a complete path is provided, search $PATH.
11380         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11381 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11382         # Extract the first word of "$tool_basename", so it can be a program name with args.
11383 set dummy $tool_basename; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if ${ac_cv_path_AWK+:} false; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   case $AWK in
11390   [\\/]* | ?:[\\/]*)
11391   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11392   ;;
11393   *)
11394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11396 do
11397   IFS=$as_save_IFS
11398   test -z "$as_dir" && as_dir=.
11399     for ac_exec_ext in '' $ac_executable_extensions; do
11400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11401     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403     break 2
11404   fi
11405 done
11406   done
11407 IFS=$as_save_IFS
11408 
11409   ;;
11410 esac
11411 fi
11412 AWK=$ac_cv_path_AWK
11413 if test -n "$AWK"; then
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11415 $as_echo "$AWK" >&6; }
11416 else
11417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419 fi
11420 
11421 
11422         if test "x$AWK" = x; then
11423           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11424         fi
11425       else
11426         # Otherwise we believe it is a complete path. Use it as it is.
11427         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11428 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11430 $as_echo_n "checking for AWK... " >&6; }
11431         if test ! -x "$tool_specified"; then
11432           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11433 $as_echo "not found" >&6; }
11434           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11435         fi
11436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11437 $as_echo "$tool_specified" >&6; }
11438       fi
11439     fi
11440   fi
11441 
11442 
11443   if test "x$AWK" = x; then
11444     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11445   fi
11446 
11447 
11448 
11449 
11450   # Publish this variable in the help.
11451 
11452 
11453   if test "x$GREP" = x; then
11454     # The variable is not set by user, try to locate tool using the code snippet
11455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11456 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11457 if ${ac_cv_path_GREP+:} false; then :
11458   $as_echo_n "(cached) " >&6
11459 else
11460   if test -z "$GREP"; then
11461   ac_path_GREP_found=false
11462   # Loop through the user's path and test for each of PROGNAME-LIST
11463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11465 do
11466   IFS=$as_save_IFS
11467   test -z "$as_dir" && as_dir=.
11468     for ac_prog in grep ggrep; do
11469     for ac_exec_ext in '' $ac_executable_extensions; do
11470       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11471       as_fn_executable_p "$ac_path_GREP" || continue
11472 # Check for GNU ac_path_GREP and select it if it is found.
11473   # Check for GNU $ac_path_GREP
11474 case `"$ac_path_GREP" --version 2>&1` in
11475 *GNU*)
11476   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11477 *)
11478   ac_count=0
11479   $as_echo_n 0123456789 >"conftest.in"
11480   while :
11481   do
11482     cat "conftest.in" "conftest.in" >"conftest.tmp"
11483     mv "conftest.tmp" "conftest.in"
11484     cp "conftest.in" "conftest.nl"
11485     $as_echo 'GREP' >> "conftest.nl"
11486     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11487     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11488     as_fn_arith $ac_count + 1 && ac_count=$as_val
11489     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11490       # Best one so far, save it but keep looking for a better one
11491       ac_cv_path_GREP="$ac_path_GREP"
11492       ac_path_GREP_max=$ac_count
11493     fi
11494     # 10*(2^10) chars as input seems more than enough
11495     test $ac_count -gt 10 && break
11496   done
11497   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11498 esac
11499 
11500       $ac_path_GREP_found && break 3
11501     done
11502   done
11503   done
11504 IFS=$as_save_IFS
11505   if test -z "$ac_cv_path_GREP"; then
11506     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11507   fi
11508 else
11509   ac_cv_path_GREP=$GREP
11510 fi
11511 
11512 fi
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11514 $as_echo "$ac_cv_path_GREP" >&6; }
11515  GREP="$ac_cv_path_GREP"
11516 
11517 
11518   else
11519     # The variable is set, but is it from the command line or the environment?
11520 
11521     # Try to remove the string !GREP! from our list.
11522     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11523     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11524       # If it failed, the variable was not from the command line. Ignore it,
11525       # but warn the user (except for BASH, which is always set by the calling BASH).
11526       if test "xGREP" != xBASH; then
11527         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11528 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11529       fi
11530       # Try to locate tool using the code snippet
11531       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11532 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11533 if ${ac_cv_path_GREP+:} false; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   if test -z "$GREP"; then
11537   ac_path_GREP_found=false
11538   # Loop through the user's path and test for each of PROGNAME-LIST
11539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11541 do
11542   IFS=$as_save_IFS
11543   test -z "$as_dir" && as_dir=.
11544     for ac_prog in grep ggrep; do
11545     for ac_exec_ext in '' $ac_executable_extensions; do
11546       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11547       as_fn_executable_p "$ac_path_GREP" || continue
11548 # Check for GNU ac_path_GREP and select it if it is found.
11549   # Check for GNU $ac_path_GREP
11550 case `"$ac_path_GREP" --version 2>&1` in
11551 *GNU*)
11552   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11553 *)
11554   ac_count=0
11555   $as_echo_n 0123456789 >"conftest.in"
11556   while :
11557   do
11558     cat "conftest.in" "conftest.in" >"conftest.tmp"
11559     mv "conftest.tmp" "conftest.in"
11560     cp "conftest.in" "conftest.nl"
11561     $as_echo 'GREP' >> "conftest.nl"
11562     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11563     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11564     as_fn_arith $ac_count + 1 && ac_count=$as_val
11565     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11566       # Best one so far, save it but keep looking for a better one
11567       ac_cv_path_GREP="$ac_path_GREP"
11568       ac_path_GREP_max=$ac_count
11569     fi
11570     # 10*(2^10) chars as input seems more than enough
11571     test $ac_count -gt 10 && break
11572   done
11573   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11574 esac
11575 
11576       $ac_path_GREP_found && break 3
11577     done
11578   done
11579   done
11580 IFS=$as_save_IFS
11581   if test -z "$ac_cv_path_GREP"; then
11582     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11583   fi
11584 else
11585   ac_cv_path_GREP=$GREP
11586 fi
11587 
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11590 $as_echo "$ac_cv_path_GREP" >&6; }
11591  GREP="$ac_cv_path_GREP"
11592 
11593 
11594     else
11595       # If it succeeded, then it was overridden by the user. We will use it
11596       # for the tool.
11597 
11598       # First remove it from the list of overridden variables, so we can test
11599       # for unknown variables in the end.
11600       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11601 
11602       # Check if the provided tool contains a complete path.
11603       tool_specified="$GREP"
11604       tool_basename="${tool_specified##*/}"
11605       if test "x$tool_basename" = "x$tool_specified"; then
11606         # A command without a complete path is provided, search $PATH.
11607         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11608 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11609         # Extract the first word of "$tool_basename", so it can be a program name with args.
11610 set dummy $tool_basename; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if ${ac_cv_path_GREP+:} false; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616   case $GREP in
11617   [\\/]* | ?:[\\/]*)
11618   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11619   ;;
11620   *)
11621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626     for ac_exec_ext in '' $ac_executable_extensions; do
11627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633   done
11634 IFS=$as_save_IFS
11635 
11636   ;;
11637 esac
11638 fi
11639 GREP=$ac_cv_path_GREP
11640 if test -n "$GREP"; then
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11642 $as_echo "$GREP" >&6; }
11643 else
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 fi
11647 
11648 
11649         if test "x$GREP" = x; then
11650           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11651         fi
11652       else
11653         # Otherwise we believe it is a complete path. Use it as it is.
11654         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11655 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11657 $as_echo_n "checking for GREP... " >&6; }
11658         if test ! -x "$tool_specified"; then
11659           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11660 $as_echo "not found" >&6; }
11661           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11662         fi
11663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11664 $as_echo "$tool_specified" >&6; }
11665       fi
11666     fi
11667   fi
11668 
11669 
11670   if test "x$GREP" = x; then
11671     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11672   fi
11673 
11674 
11675 
11676 
11677   # Publish this variable in the help.
11678 
11679 
11680   if test "x$EGREP" = x; then
11681     # The variable is not set by user, try to locate tool using the code snippet
11682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11683 $as_echo_n "checking for egrep... " >&6; }
11684 if ${ac_cv_path_EGREP+:} false; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11688    then ac_cv_path_EGREP="$GREP -E"
11689    else
11690      if test -z "$EGREP"; then
11691   ac_path_EGREP_found=false
11692   # Loop through the user's path and test for each of PROGNAME-LIST
11693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11695 do
11696   IFS=$as_save_IFS
11697   test -z "$as_dir" && as_dir=.
11698     for ac_prog in egrep; do
11699     for ac_exec_ext in '' $ac_executable_extensions; do
11700       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11701       as_fn_executable_p "$ac_path_EGREP" || continue
11702 # Check for GNU ac_path_EGREP and select it if it is found.
11703   # Check for GNU $ac_path_EGREP
11704 case `"$ac_path_EGREP" --version 2>&1` in
11705 *GNU*)
11706   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11707 *)
11708   ac_count=0
11709   $as_echo_n 0123456789 >"conftest.in"
11710   while :
11711   do
11712     cat "conftest.in" "conftest.in" >"conftest.tmp"
11713     mv "conftest.tmp" "conftest.in"
11714     cp "conftest.in" "conftest.nl"
11715     $as_echo 'EGREP' >> "conftest.nl"
11716     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11717     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11718     as_fn_arith $ac_count + 1 && ac_count=$as_val
11719     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11720       # Best one so far, save it but keep looking for a better one
11721       ac_cv_path_EGREP="$ac_path_EGREP"
11722       ac_path_EGREP_max=$ac_count
11723     fi
11724     # 10*(2^10) chars as input seems more than enough
11725     test $ac_count -gt 10 && break
11726   done
11727   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11728 esac
11729 
11730       $ac_path_EGREP_found && break 3
11731     done
11732   done
11733   done
11734 IFS=$as_save_IFS
11735   if test -z "$ac_cv_path_EGREP"; then
11736     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11737   fi
11738 else
11739   ac_cv_path_EGREP=$EGREP
11740 fi
11741 
11742    fi
11743 fi
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11745 $as_echo "$ac_cv_path_EGREP" >&6; }
11746  EGREP="$ac_cv_path_EGREP"
11747 
11748 
11749   else
11750     # The variable is set, but is it from the command line or the environment?
11751 
11752     # Try to remove the string !EGREP! from our list.
11753     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11754     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11755       # If it failed, the variable was not from the command line. Ignore it,
11756       # but warn the user (except for BASH, which is always set by the calling BASH).
11757       if test "xEGREP" != xBASH; then
11758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11759 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11760       fi
11761       # Try to locate tool using the code snippet
11762       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11763 $as_echo_n "checking for egrep... " >&6; }
11764 if ${ac_cv_path_EGREP+:} false; then :
11765   $as_echo_n "(cached) " >&6
11766 else
11767   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11768    then ac_cv_path_EGREP="$GREP -E"
11769    else
11770      if test -z "$EGREP"; then
11771   ac_path_EGREP_found=false
11772   # Loop through the user's path and test for each of PROGNAME-LIST
11773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11775 do
11776   IFS=$as_save_IFS
11777   test -z "$as_dir" && as_dir=.
11778     for ac_prog in egrep; do
11779     for ac_exec_ext in '' $ac_executable_extensions; do
11780       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11781       as_fn_executable_p "$ac_path_EGREP" || continue
11782 # Check for GNU ac_path_EGREP and select it if it is found.
11783   # Check for GNU $ac_path_EGREP
11784 case `"$ac_path_EGREP" --version 2>&1` in
11785 *GNU*)
11786   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11787 *)
11788   ac_count=0
11789   $as_echo_n 0123456789 >"conftest.in"
11790   while :
11791   do
11792     cat "conftest.in" "conftest.in" >"conftest.tmp"
11793     mv "conftest.tmp" "conftest.in"
11794     cp "conftest.in" "conftest.nl"
11795     $as_echo 'EGREP' >> "conftest.nl"
11796     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11797     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11798     as_fn_arith $ac_count + 1 && ac_count=$as_val
11799     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11800       # Best one so far, save it but keep looking for a better one
11801       ac_cv_path_EGREP="$ac_path_EGREP"
11802       ac_path_EGREP_max=$ac_count
11803     fi
11804     # 10*(2^10) chars as input seems more than enough
11805     test $ac_count -gt 10 && break
11806   done
11807   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11808 esac
11809 
11810       $ac_path_EGREP_found && break 3
11811     done
11812   done
11813   done
11814 IFS=$as_save_IFS
11815   if test -z "$ac_cv_path_EGREP"; then
11816     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11817   fi
11818 else
11819   ac_cv_path_EGREP=$EGREP
11820 fi
11821 
11822    fi
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11825 $as_echo "$ac_cv_path_EGREP" >&6; }
11826  EGREP="$ac_cv_path_EGREP"
11827 
11828 
11829     else
11830       # If it succeeded, then it was overridden by the user. We will use it
11831       # for the tool.
11832 
11833       # First remove it from the list of overridden variables, so we can test
11834       # for unknown variables in the end.
11835       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11836 
11837       # Check if the provided tool contains a complete path.
11838       tool_specified="$EGREP"
11839       tool_basename="${tool_specified##*/}"
11840       if test "x$tool_basename" = "x$tool_specified"; then
11841         # A command without a complete path is provided, search $PATH.
11842         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11843 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11844         # Extract the first word of "$tool_basename", so it can be a program name with args.
11845 set dummy $tool_basename; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_path_EGREP+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851   case $EGREP in
11852   [\\/]* | ?:[\\/]*)
11853   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11854   ;;
11855   *)
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861     for ac_exec_ext in '' $ac_executable_extensions; do
11862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11863     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865     break 2
11866   fi
11867 done
11868   done
11869 IFS=$as_save_IFS
11870 
11871   ;;
11872 esac
11873 fi
11874 EGREP=$ac_cv_path_EGREP
11875 if test -n "$EGREP"; then
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11877 $as_echo "$EGREP" >&6; }
11878 else
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882 
11883 
11884         if test "x$EGREP" = x; then
11885           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11886         fi
11887       else
11888         # Otherwise we believe it is a complete path. Use it as it is.
11889         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11890 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11892 $as_echo_n "checking for EGREP... " >&6; }
11893         if test ! -x "$tool_specified"; then
11894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11895 $as_echo "not found" >&6; }
11896           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11897         fi
11898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11899 $as_echo "$tool_specified" >&6; }
11900       fi
11901     fi
11902   fi
11903 
11904 
11905   if test "x$EGREP" = x; then
11906     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11907   fi
11908 
11909 
11910 
11911 
11912   # Publish this variable in the help.
11913 
11914 
11915   if test "x$FGREP" = x; then
11916     # The variable is not set by user, try to locate tool using the code snippet
11917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11918 $as_echo_n "checking for fgrep... " >&6; }
11919 if ${ac_cv_path_FGREP+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11923    then ac_cv_path_FGREP="$GREP -F"
11924    else
11925      if test -z "$FGREP"; then
11926   ac_path_FGREP_found=false
11927   # Loop through the user's path and test for each of PROGNAME-LIST
11928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11930 do
11931   IFS=$as_save_IFS
11932   test -z "$as_dir" && as_dir=.
11933     for ac_prog in fgrep; do
11934     for ac_exec_ext in '' $ac_executable_extensions; do
11935       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11936       as_fn_executable_p "$ac_path_FGREP" || continue
11937 # Check for GNU ac_path_FGREP and select it if it is found.
11938   # Check for GNU $ac_path_FGREP
11939 case `"$ac_path_FGREP" --version 2>&1` in
11940 *GNU*)
11941   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11942 *)
11943   ac_count=0
11944   $as_echo_n 0123456789 >"conftest.in"
11945   while :
11946   do
11947     cat "conftest.in" "conftest.in" >"conftest.tmp"
11948     mv "conftest.tmp" "conftest.in"
11949     cp "conftest.in" "conftest.nl"
11950     $as_echo 'FGREP' >> "conftest.nl"
11951     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11953     as_fn_arith $ac_count + 1 && ac_count=$as_val
11954     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11955       # Best one so far, save it but keep looking for a better one
11956       ac_cv_path_FGREP="$ac_path_FGREP"
11957       ac_path_FGREP_max=$ac_count
11958     fi
11959     # 10*(2^10) chars as input seems more than enough
11960     test $ac_count -gt 10 && break
11961   done
11962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11963 esac
11964 
11965       $ac_path_FGREP_found && break 3
11966     done
11967   done
11968   done
11969 IFS=$as_save_IFS
11970   if test -z "$ac_cv_path_FGREP"; then
11971     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11972   fi
11973 else
11974   ac_cv_path_FGREP=$FGREP
11975 fi
11976 
11977    fi
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11980 $as_echo "$ac_cv_path_FGREP" >&6; }
11981  FGREP="$ac_cv_path_FGREP"
11982 
11983 
11984   else
11985     # The variable is set, but is it from the command line or the environment?
11986 
11987     # Try to remove the string !FGREP! from our list.
11988     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
11989     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11990       # If it failed, the variable was not from the command line. Ignore it,
11991       # but warn the user (except for BASH, which is always set by the calling BASH).
11992       if test "xFGREP" != xBASH; then
11993         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
11994 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
11995       fi
11996       # Try to locate tool using the code snippet
11997       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11998 $as_echo_n "checking for fgrep... " >&6; }
11999 if ${ac_cv_path_FGREP+:} false; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12003    then ac_cv_path_FGREP="$GREP -F"
12004    else
12005      if test -z "$FGREP"; then
12006   ac_path_FGREP_found=false
12007   # Loop through the user's path and test for each of PROGNAME-LIST
12008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12010 do
12011   IFS=$as_save_IFS
12012   test -z "$as_dir" && as_dir=.
12013     for ac_prog in fgrep; do
12014     for ac_exec_ext in '' $ac_executable_extensions; do
12015       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12016       as_fn_executable_p "$ac_path_FGREP" || continue
12017 # Check for GNU ac_path_FGREP and select it if it is found.
12018   # Check for GNU $ac_path_FGREP
12019 case `"$ac_path_FGREP" --version 2>&1` in
12020 *GNU*)
12021   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12022 *)
12023   ac_count=0
12024   $as_echo_n 0123456789 >"conftest.in"
12025   while :
12026   do
12027     cat "conftest.in" "conftest.in" >"conftest.tmp"
12028     mv "conftest.tmp" "conftest.in"
12029     cp "conftest.in" "conftest.nl"
12030     $as_echo 'FGREP' >> "conftest.nl"
12031     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12032     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12033     as_fn_arith $ac_count + 1 && ac_count=$as_val
12034     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12035       # Best one so far, save it but keep looking for a better one
12036       ac_cv_path_FGREP="$ac_path_FGREP"
12037       ac_path_FGREP_max=$ac_count
12038     fi
12039     # 10*(2^10) chars as input seems more than enough
12040     test $ac_count -gt 10 && break
12041   done
12042   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12043 esac
12044 
12045       $ac_path_FGREP_found && break 3
12046     done
12047   done
12048   done
12049 IFS=$as_save_IFS
12050   if test -z "$ac_cv_path_FGREP"; then
12051     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12052   fi
12053 else
12054   ac_cv_path_FGREP=$FGREP
12055 fi
12056 
12057    fi
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12060 $as_echo "$ac_cv_path_FGREP" >&6; }
12061  FGREP="$ac_cv_path_FGREP"
12062 
12063 
12064     else
12065       # If it succeeded, then it was overridden by the user. We will use it
12066       # for the tool.
12067 
12068       # First remove it from the list of overridden variables, so we can test
12069       # for unknown variables in the end.
12070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12071 
12072       # Check if the provided tool contains a complete path.
12073       tool_specified="$FGREP"
12074       tool_basename="${tool_specified##*/}"
12075       if test "x$tool_basename" = "x$tool_specified"; then
12076         # A command without a complete path is provided, search $PATH.
12077         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12078 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12079         # Extract the first word of "$tool_basename", so it can be a program name with args.
12080 set dummy $tool_basename; ac_word=$2
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082 $as_echo_n "checking for $ac_word... " >&6; }
12083 if ${ac_cv_path_FGREP+:} false; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086   case $FGREP in
12087   [\\/]* | ?:[\\/]*)
12088   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12089   ;;
12090   *)
12091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094   IFS=$as_save_IFS
12095   test -z "$as_dir" && as_dir=.
12096     for ac_exec_ext in '' $ac_executable_extensions; do
12097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100     break 2
12101   fi
12102 done
12103   done
12104 IFS=$as_save_IFS
12105 
12106   ;;
12107 esac
12108 fi
12109 FGREP=$ac_cv_path_FGREP
12110 if test -n "$FGREP"; then
12111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12112 $as_echo "$FGREP" >&6; }
12113 else
12114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117 
12118 
12119         if test "x$FGREP" = x; then
12120           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12121         fi
12122       else
12123         # Otherwise we believe it is a complete path. Use it as it is.
12124         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12125 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12126         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12127 $as_echo_n "checking for FGREP... " >&6; }
12128         if test ! -x "$tool_specified"; then
12129           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12130 $as_echo "not found" >&6; }
12131           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12132         fi
12133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12134 $as_echo "$tool_specified" >&6; }
12135       fi
12136     fi
12137   fi
12138 
12139 
12140   if test "x$FGREP" = x; then
12141     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12142   fi
12143 
12144 
12145 
12146 
12147   # Publish this variable in the help.
12148 
12149 
12150   if test "x$SED" = x; then
12151     # The variable is not set by user, try to locate tool using the code snippet
12152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12153 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12154 if ${ac_cv_path_SED+:} false; then :
12155   $as_echo_n "(cached) " >&6
12156 else
12157             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12158      for ac_i in 1 2 3 4 5 6 7; do
12159        ac_script="$ac_script$as_nl$ac_script"
12160      done
12161      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12162      { ac_script=; unset ac_script;}
12163      if test -z "$SED"; then
12164   ac_path_SED_found=false
12165   # Loop through the user's path and test for each of PROGNAME-LIST
12166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12168 do
12169   IFS=$as_save_IFS
12170   test -z "$as_dir" && as_dir=.
12171     for ac_prog in sed gsed; do
12172     for ac_exec_ext in '' $ac_executable_extensions; do
12173       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12174       as_fn_executable_p "$ac_path_SED" || continue
12175 # Check for GNU ac_path_SED and select it if it is found.
12176   # Check for GNU $ac_path_SED
12177 case `"$ac_path_SED" --version 2>&1` in
12178 *GNU*)
12179   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12180 *)
12181   ac_count=0
12182   $as_echo_n 0123456789 >"conftest.in"
12183   while :
12184   do
12185     cat "conftest.in" "conftest.in" >"conftest.tmp"
12186     mv "conftest.tmp" "conftest.in"
12187     cp "conftest.in" "conftest.nl"
12188     $as_echo '' >> "conftest.nl"
12189     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12190     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12191     as_fn_arith $ac_count + 1 && ac_count=$as_val
12192     if test $ac_count -gt ${ac_path_SED_max-0}; then
12193       # Best one so far, save it but keep looking for a better one
12194       ac_cv_path_SED="$ac_path_SED"
12195       ac_path_SED_max=$ac_count
12196     fi
12197     # 10*(2^10) chars as input seems more than enough
12198     test $ac_count -gt 10 && break
12199   done
12200   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12201 esac
12202 
12203       $ac_path_SED_found && break 3
12204     done
12205   done
12206   done
12207 IFS=$as_save_IFS
12208   if test -z "$ac_cv_path_SED"; then
12209     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12210   fi
12211 else
12212   ac_cv_path_SED=$SED
12213 fi
12214 
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12217 $as_echo "$ac_cv_path_SED" >&6; }
12218  SED="$ac_cv_path_SED"
12219   rm -f conftest.sed
12220 
12221   else
12222     # The variable is set, but is it from the command line or the environment?
12223 
12224     # Try to remove the string !SED! from our list.
12225     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12226     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12227       # If it failed, the variable was not from the command line. Ignore it,
12228       # but warn the user (except for BASH, which is always set by the calling BASH).
12229       if test "xSED" != xBASH; then
12230         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12231 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12232       fi
12233       # Try to locate tool using the code snippet
12234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12235 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12236 if ${ac_cv_path_SED+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12240      for ac_i in 1 2 3 4 5 6 7; do
12241        ac_script="$ac_script$as_nl$ac_script"
12242      done
12243      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12244      { ac_script=; unset ac_script;}
12245      if test -z "$SED"; then
12246   ac_path_SED_found=false
12247   # Loop through the user's path and test for each of PROGNAME-LIST
12248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12250 do
12251   IFS=$as_save_IFS
12252   test -z "$as_dir" && as_dir=.
12253     for ac_prog in sed gsed; do
12254     for ac_exec_ext in '' $ac_executable_extensions; do
12255       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12256       as_fn_executable_p "$ac_path_SED" || continue
12257 # Check for GNU ac_path_SED and select it if it is found.
12258   # Check for GNU $ac_path_SED
12259 case `"$ac_path_SED" --version 2>&1` in
12260 *GNU*)
12261   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12262 *)
12263   ac_count=0
12264   $as_echo_n 0123456789 >"conftest.in"
12265   while :
12266   do
12267     cat "conftest.in" "conftest.in" >"conftest.tmp"
12268     mv "conftest.tmp" "conftest.in"
12269     cp "conftest.in" "conftest.nl"
12270     $as_echo '' >> "conftest.nl"
12271     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12272     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12273     as_fn_arith $ac_count + 1 && ac_count=$as_val
12274     if test $ac_count -gt ${ac_path_SED_max-0}; then
12275       # Best one so far, save it but keep looking for a better one
12276       ac_cv_path_SED="$ac_path_SED"
12277       ac_path_SED_max=$ac_count
12278     fi
12279     # 10*(2^10) chars as input seems more than enough
12280     test $ac_count -gt 10 && break
12281   done
12282   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12283 esac
12284 
12285       $ac_path_SED_found && break 3
12286     done
12287   done
12288   done
12289 IFS=$as_save_IFS
12290   if test -z "$ac_cv_path_SED"; then
12291     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12292   fi
12293 else
12294   ac_cv_path_SED=$SED
12295 fi
12296 
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12299 $as_echo "$ac_cv_path_SED" >&6; }
12300  SED="$ac_cv_path_SED"
12301   rm -f conftest.sed
12302 
12303     else
12304       # If it succeeded, then it was overridden by the user. We will use it
12305       # for the tool.
12306 
12307       # First remove it from the list of overridden variables, so we can test
12308       # for unknown variables in the end.
12309       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12310 
12311       # Check if the provided tool contains a complete path.
12312       tool_specified="$SED"
12313       tool_basename="${tool_specified##*/}"
12314       if test "x$tool_basename" = "x$tool_specified"; then
12315         # A command without a complete path is provided, search $PATH.
12316         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12317 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12318         # Extract the first word of "$tool_basename", so it can be a program name with args.
12319 set dummy $tool_basename; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_path_SED+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   case $SED in
12326   [\\/]* | ?:[\\/]*)
12327   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12328   ;;
12329   *)
12330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12332 do
12333   IFS=$as_save_IFS
12334   test -z "$as_dir" && as_dir=.
12335     for ac_exec_ext in '' $ac_executable_extensions; do
12336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339     break 2
12340   fi
12341 done
12342   done
12343 IFS=$as_save_IFS
12344 
12345   ;;
12346 esac
12347 fi
12348 SED=$ac_cv_path_SED
12349 if test -n "$SED"; then
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12351 $as_echo "$SED" >&6; }
12352 else
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356 
12357 
12358         if test "x$SED" = x; then
12359           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12360         fi
12361       else
12362         # Otherwise we believe it is a complete path. Use it as it is.
12363         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12364 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12366 $as_echo_n "checking for SED... " >&6; }
12367         if test ! -x "$tool_specified"; then
12368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12369 $as_echo "not found" >&6; }
12370           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12371         fi
12372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12373 $as_echo "$tool_specified" >&6; }
12374       fi
12375     fi
12376   fi
12377 
12378 
12379   if test "x$SED" = x; then
12380     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12381   fi
12382 
12383 
12384 
12385   # Always force rm.
12386   RM="$RM -f"
12387 
12388   # pwd behaves differently on various platforms and some don't support the -L flag.
12389   # Always use the bash builtin pwd to get uniform behavior.
12390   THEPWDCMD=pwd
12391 
12392   # These are not required on all platforms
12393 
12394 
12395   # Publish this variable in the help.
12396 
12397 
12398   if test "x$CYGPATH" = x; then
12399     # The variable is not set by user, try to locate tool using the code snippet
12400     for ac_prog in cygpath
12401 do
12402   # Extract the first word of "$ac_prog", so it can be a program name with args.
12403 set dummy $ac_prog; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_path_CYGPATH+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   case $CYGPATH in
12410   [\\/]* | ?:[\\/]*)
12411   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12412   ;;
12413   *)
12414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12416 do
12417   IFS=$as_save_IFS
12418   test -z "$as_dir" && as_dir=.
12419     for ac_exec_ext in '' $ac_executable_extensions; do
12420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12421     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423     break 2
12424   fi
12425 done
12426   done
12427 IFS=$as_save_IFS
12428 
12429   ;;
12430 esac
12431 fi
12432 CYGPATH=$ac_cv_path_CYGPATH
12433 if test -n "$CYGPATH"; then
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12435 $as_echo "$CYGPATH" >&6; }
12436 else
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440 
12441 
12442   test -n "$CYGPATH" && break
12443 done
12444 
12445   else
12446     # The variable is set, but is it from the command line or the environment?
12447 
12448     # Try to remove the string !CYGPATH! from our list.
12449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12451       # If it failed, the variable was not from the command line. Ignore it,
12452       # but warn the user (except for BASH, which is always set by the calling BASH).
12453       if test "xCYGPATH" != xBASH; then
12454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12455 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12456       fi
12457       # Try to locate tool using the code snippet
12458       for ac_prog in cygpath
12459 do
12460   # Extract the first word of "$ac_prog", so it can be a program name with args.
12461 set dummy $ac_prog; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if ${ac_cv_path_CYGPATH+:} false; then :
12465   $as_echo_n "(cached) " >&6
12466 else
12467   case $CYGPATH in
12468   [\\/]* | ?:[\\/]*)
12469   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12470   ;;
12471   *)
12472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12474 do
12475   IFS=$as_save_IFS
12476   test -z "$as_dir" && as_dir=.
12477     for ac_exec_ext in '' $ac_executable_extensions; do
12478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481     break 2
12482   fi
12483 done
12484   done
12485 IFS=$as_save_IFS
12486 
12487   ;;
12488 esac
12489 fi
12490 CYGPATH=$ac_cv_path_CYGPATH
12491 if test -n "$CYGPATH"; then
12492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12493 $as_echo "$CYGPATH" >&6; }
12494 else
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498 
12499 
12500   test -n "$CYGPATH" && break
12501 done
12502 
12503     else
12504       # If it succeeded, then it was overridden by the user. We will use it
12505       # for the tool.
12506 
12507       # First remove it from the list of overridden variables, so we can test
12508       # for unknown variables in the end.
12509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12510 
12511       # Check if the provided tool contains a complete path.
12512       tool_specified="$CYGPATH"
12513       tool_basename="${tool_specified##*/}"
12514       if test "x$tool_basename" = "x$tool_specified"; then
12515         # A command without a complete path is provided, search $PATH.
12516         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12517 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12518         # Extract the first word of "$tool_basename", so it can be a program name with args.
12519 set dummy $tool_basename; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if ${ac_cv_path_CYGPATH+:} false; then :
12523   $as_echo_n "(cached) " >&6
12524 else
12525   case $CYGPATH in
12526   [\\/]* | ?:[\\/]*)
12527   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12528   ;;
12529   *)
12530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12532 do
12533   IFS=$as_save_IFS
12534   test -z "$as_dir" && as_dir=.
12535     for ac_exec_ext in '' $ac_executable_extensions; do
12536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539     break 2
12540   fi
12541 done
12542   done
12543 IFS=$as_save_IFS
12544 
12545   ;;
12546 esac
12547 fi
12548 CYGPATH=$ac_cv_path_CYGPATH
12549 if test -n "$CYGPATH"; then
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12551 $as_echo "$CYGPATH" >&6; }
12552 else
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 fi
12556 
12557 
12558         if test "x$CYGPATH" = x; then
12559           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12560         fi
12561       else
12562         # Otherwise we believe it is a complete path. Use it as it is.
12563         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12564 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12566 $as_echo_n "checking for CYGPATH... " >&6; }
12567         if test ! -x "$tool_specified"; then
12568           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12569 $as_echo "not found" >&6; }
12570           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12571         fi
12572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12573 $as_echo "$tool_specified" >&6; }
12574       fi
12575     fi
12576   fi
12577 
12578 
12579 
12580 
12581   # Publish this variable in the help.
12582 
12583 
12584   if test "x$READLINK" = x; then
12585     # The variable is not set by user, try to locate tool using the code snippet
12586     for ac_prog in greadlink readlink
12587 do
12588   # Extract the first word of "$ac_prog", so it can be a program name with args.
12589 set dummy $ac_prog; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_READLINK+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   case $READLINK in
12596   [\\/]* | ?:[\\/]*)
12597   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12598   ;;
12599   *)
12600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603   IFS=$as_save_IFS
12604   test -z "$as_dir" && as_dir=.
12605     for ac_exec_ext in '' $ac_executable_extensions; do
12606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609     break 2
12610   fi
12611 done
12612   done
12613 IFS=$as_save_IFS
12614 
12615   ;;
12616 esac
12617 fi
12618 READLINK=$ac_cv_path_READLINK
12619 if test -n "$READLINK"; then
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12621 $as_echo "$READLINK" >&6; }
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626 
12627 
12628   test -n "$READLINK" && break
12629 done
12630 
12631   else
12632     # The variable is set, but is it from the command line or the environment?
12633 
12634     # Try to remove the string !READLINK! from our list.
12635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12637       # If it failed, the variable was not from the command line. Ignore it,
12638       # but warn the user (except for BASH, which is always set by the calling BASH).
12639       if test "xREADLINK" != xBASH; then
12640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12641 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12642       fi
12643       # Try to locate tool using the code snippet
12644       for ac_prog in greadlink readlink
12645 do
12646   # Extract the first word of "$ac_prog", so it can be a program name with args.
12647 set dummy $ac_prog; ac_word=$2
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649 $as_echo_n "checking for $ac_word... " >&6; }
12650 if ${ac_cv_path_READLINK+:} false; then :
12651   $as_echo_n "(cached) " >&6
12652 else
12653   case $READLINK in
12654   [\\/]* | ?:[\\/]*)
12655   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12656   ;;
12657   *)
12658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12660 do
12661   IFS=$as_save_IFS
12662   test -z "$as_dir" && as_dir=.
12663     for ac_exec_ext in '' $ac_executable_extensions; do
12664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667     break 2
12668   fi
12669 done
12670   done
12671 IFS=$as_save_IFS
12672 
12673   ;;
12674 esac
12675 fi
12676 READLINK=$ac_cv_path_READLINK
12677 if test -n "$READLINK"; then
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12679 $as_echo "$READLINK" >&6; }
12680 else
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12683 fi
12684 
12685 
12686   test -n "$READLINK" && break
12687 done
12688 
12689     else
12690       # If it succeeded, then it was overridden by the user. We will use it
12691       # for the tool.
12692 
12693       # First remove it from the list of overridden variables, so we can test
12694       # for unknown variables in the end.
12695       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12696 
12697       # Check if the provided tool contains a complete path.
12698       tool_specified="$READLINK"
12699       tool_basename="${tool_specified##*/}"
12700       if test "x$tool_basename" = "x$tool_specified"; then
12701         # A command without a complete path is provided, search $PATH.
12702         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12703 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12704         # Extract the first word of "$tool_basename", so it can be a program name with args.
12705 set dummy $tool_basename; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if ${ac_cv_path_READLINK+:} false; then :
12709   $as_echo_n "(cached) " >&6
12710 else
12711   case $READLINK in
12712   [\\/]* | ?:[\\/]*)
12713   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12714   ;;
12715   *)
12716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721     for ac_exec_ext in '' $ac_executable_extensions; do
12722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12723     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725     break 2
12726   fi
12727 done
12728   done
12729 IFS=$as_save_IFS
12730 
12731   ;;
12732 esac
12733 fi
12734 READLINK=$ac_cv_path_READLINK
12735 if test -n "$READLINK"; then
12736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12737 $as_echo "$READLINK" >&6; }
12738 else
12739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12741 fi
12742 
12743 
12744         if test "x$READLINK" = x; then
12745           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12746         fi
12747       else
12748         # Otherwise we believe it is a complete path. Use it as it is.
12749         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12750 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12752 $as_echo_n "checking for READLINK... " >&6; }
12753         if test ! -x "$tool_specified"; then
12754           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12755 $as_echo "not found" >&6; }
12756           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12757         fi
12758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12759 $as_echo "$tool_specified" >&6; }
12760       fi
12761     fi
12762   fi
12763 
12764 
12765 
12766 
12767   # Publish this variable in the help.
12768 
12769 
12770   if test "x$DF" = x; then
12771     # The variable is not set by user, try to locate tool using the code snippet
12772     for ac_prog in df
12773 do
12774   # Extract the first word of "$ac_prog", so it can be a program name with args.
12775 set dummy $ac_prog; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if ${ac_cv_path_DF+:} false; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   case $DF in
12782   [\\/]* | ?:[\\/]*)
12783   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12784   ;;
12785   *)
12786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH
12788 do
12789   IFS=$as_save_IFS
12790   test -z "$as_dir" && as_dir=.
12791     for ac_exec_ext in '' $ac_executable_extensions; do
12792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12793     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795     break 2
12796   fi
12797 done
12798   done
12799 IFS=$as_save_IFS
12800 
12801   ;;
12802 esac
12803 fi
12804 DF=$ac_cv_path_DF
12805 if test -n "$DF"; then
12806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12807 $as_echo "$DF" >&6; }
12808 else
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12811 fi
12812 
12813 
12814   test -n "$DF" && break
12815 done
12816 
12817   else
12818     # The variable is set, but is it from the command line or the environment?
12819 
12820     # Try to remove the string !DF! from our list.
12821     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12822     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12823       # If it failed, the variable was not from the command line. Ignore it,
12824       # but warn the user (except for BASH, which is always set by the calling BASH).
12825       if test "xDF" != xBASH; then
12826         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12827 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12828       fi
12829       # Try to locate tool using the code snippet
12830       for ac_prog in df
12831 do
12832   # Extract the first word of "$ac_prog", so it can be a program name with args.
12833 set dummy $ac_prog; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if ${ac_cv_path_DF+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839   case $DF in
12840   [\\/]* | ?:[\\/]*)
12841   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12842   ;;
12843   *)
12844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12846 do
12847   IFS=$as_save_IFS
12848   test -z "$as_dir" && as_dir=.
12849     for ac_exec_ext in '' $ac_executable_extensions; do
12850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853     break 2
12854   fi
12855 done
12856   done
12857 IFS=$as_save_IFS
12858 
12859   ;;
12860 esac
12861 fi
12862 DF=$ac_cv_path_DF
12863 if test -n "$DF"; then
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12865 $as_echo "$DF" >&6; }
12866 else
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869 fi
12870 
12871 
12872   test -n "$DF" && break
12873 done
12874 
12875     else
12876       # If it succeeded, then it was overridden by the user. We will use it
12877       # for the tool.
12878 
12879       # First remove it from the list of overridden variables, so we can test
12880       # for unknown variables in the end.
12881       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12882 
12883       # Check if the provided tool contains a complete path.
12884       tool_specified="$DF"
12885       tool_basename="${tool_specified##*/}"
12886       if test "x$tool_basename" = "x$tool_specified"; then
12887         # A command without a complete path is provided, search $PATH.
12888         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12889 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12890         # Extract the first word of "$tool_basename", so it can be a program name with args.
12891 set dummy $tool_basename; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if ${ac_cv_path_DF+:} false; then :
12895   $as_echo_n "(cached) " >&6
12896 else
12897   case $DF in
12898   [\\/]* | ?:[\\/]*)
12899   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12900   ;;
12901   *)
12902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12904 do
12905   IFS=$as_save_IFS
12906   test -z "$as_dir" && as_dir=.
12907     for ac_exec_ext in '' $ac_executable_extensions; do
12908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12909     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911     break 2
12912   fi
12913 done
12914   done
12915 IFS=$as_save_IFS
12916 
12917   ;;
12918 esac
12919 fi
12920 DF=$ac_cv_path_DF
12921 if test -n "$DF"; then
12922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12923 $as_echo "$DF" >&6; }
12924 else
12925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927 fi
12928 
12929 
12930         if test "x$DF" = x; then
12931           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12932         fi
12933       else
12934         # Otherwise we believe it is a complete path. Use it as it is.
12935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12936 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12937         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12938 $as_echo_n "checking for DF... " >&6; }
12939         if test ! -x "$tool_specified"; then
12940           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12941 $as_echo "not found" >&6; }
12942           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12943         fi
12944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12945 $as_echo "$tool_specified" >&6; }
12946       fi
12947     fi
12948   fi
12949 
12950 
12951 
12952 
12953   # Publish this variable in the help.
12954 
12955 
12956   if test "x$SETFILE" = x; then
12957     # The variable is not set by user, try to locate tool using the code snippet
12958     for ac_prog in SetFile
12959 do
12960   # Extract the first word of "$ac_prog", so it can be a program name with args.
12961 set dummy $ac_prog; ac_word=$2
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963 $as_echo_n "checking for $ac_word... " >&6; }
12964 if ${ac_cv_path_SETFILE+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967   case $SETFILE in
12968   [\\/]* | ?:[\\/]*)
12969   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
12970   ;;
12971   *)
12972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12974 do
12975   IFS=$as_save_IFS
12976   test -z "$as_dir" && as_dir=.
12977     for ac_exec_ext in '' $ac_executable_extensions; do
12978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12979     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
12980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12981     break 2
12982   fi
12983 done
12984   done
12985 IFS=$as_save_IFS
12986 
12987   ;;
12988 esac
12989 fi
12990 SETFILE=$ac_cv_path_SETFILE
12991 if test -n "$SETFILE"; then
12992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
12993 $as_echo "$SETFILE" >&6; }
12994 else
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998 
12999 
13000   test -n "$SETFILE" && break
13001 done
13002 
13003   else
13004     # The variable is set, but is it from the command line or the environment?
13005 
13006     # Try to remove the string !SETFILE! from our list.
13007     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13008     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13009       # If it failed, the variable was not from the command line. Ignore it,
13010       # but warn the user (except for BASH, which is always set by the calling BASH).
13011       if test "xSETFILE" != xBASH; then
13012         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13013 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13014       fi
13015       # Try to locate tool using the code snippet
13016       for ac_prog in SetFile
13017 do
13018   # Extract the first word of "$ac_prog", so it can be a program name with args.
13019 set dummy $ac_prog; ac_word=$2
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13021 $as_echo_n "checking for $ac_word... " >&6; }
13022 if ${ac_cv_path_SETFILE+:} false; then :
13023   $as_echo_n "(cached) " >&6
13024 else
13025   case $SETFILE in
13026   [\\/]* | ?:[\\/]*)
13027   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13028   ;;
13029   *)
13030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13032 do
13033   IFS=$as_save_IFS
13034   test -z "$as_dir" && as_dir=.
13035     for ac_exec_ext in '' $ac_executable_extensions; do
13036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13037     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039     break 2
13040   fi
13041 done
13042   done
13043 IFS=$as_save_IFS
13044 
13045   ;;
13046 esac
13047 fi
13048 SETFILE=$ac_cv_path_SETFILE
13049 if test -n "$SETFILE"; then
13050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13051 $as_echo "$SETFILE" >&6; }
13052 else
13053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13055 fi
13056 
13057 
13058   test -n "$SETFILE" && break
13059 done
13060 
13061     else
13062       # If it succeeded, then it was overridden by the user. We will use it
13063       # for the tool.
13064 
13065       # First remove it from the list of overridden variables, so we can test
13066       # for unknown variables in the end.
13067       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13068 
13069       # Check if the provided tool contains a complete path.
13070       tool_specified="$SETFILE"
13071       tool_basename="${tool_specified##*/}"
13072       if test "x$tool_basename" = "x$tool_specified"; then
13073         # A command without a complete path is provided, search $PATH.
13074         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13075 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13076         # Extract the first word of "$tool_basename", so it can be a program name with args.
13077 set dummy $tool_basename; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_path_SETFILE+:} false; then :
13081   $as_echo_n "(cached) " >&6
13082 else
13083   case $SETFILE in
13084   [\\/]* | ?:[\\/]*)
13085   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13086   ;;
13087   *)
13088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13090 do
13091   IFS=$as_save_IFS
13092   test -z "$as_dir" && as_dir=.
13093     for ac_exec_ext in '' $ac_executable_extensions; do
13094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097     break 2
13098   fi
13099 done
13100   done
13101 IFS=$as_save_IFS
13102 
13103   ;;
13104 esac
13105 fi
13106 SETFILE=$ac_cv_path_SETFILE
13107 if test -n "$SETFILE"; then
13108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13109 $as_echo "$SETFILE" >&6; }
13110 else
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13113 fi
13114 
13115 
13116         if test "x$SETFILE" = x; then
13117           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13118         fi
13119       else
13120         # Otherwise we believe it is a complete path. Use it as it is.
13121         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13122 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13124 $as_echo_n "checking for SETFILE... " >&6; }
13125         if test ! -x "$tool_specified"; then
13126           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13127 $as_echo "not found" >&6; }
13128           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13129         fi
13130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13131 $as_echo "$tool_specified" >&6; }
13132       fi
13133     fi
13134   fi
13135 
13136 
13137 
13138 
13139 # Now we can determine OpenJDK build and target platforms. This is required to
13140 # have early on.
13141 # Make sure we can run config.sub.
13142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13143   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13144 
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13146 $as_echo_n "checking build system type... " >&6; }
13147 if ${ac_cv_build+:} false; then :
13148   $as_echo_n "(cached) " >&6
13149 else
13150   ac_build_alias=$build_alias
13151 test "x$ac_build_alias" = x &&
13152   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13153 test "x$ac_build_alias" = x &&
13154   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13156   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13157 
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13160 $as_echo "$ac_cv_build" >&6; }
13161 case $ac_cv_build in
13162 *-*-*) ;;
13163 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13164 esac
13165 build=$ac_cv_build
13166 ac_save_IFS=$IFS; IFS='-'
13167 set x $ac_cv_build
13168 shift
13169 build_cpu=$1
13170 build_vendor=$2
13171 shift; shift
13172 # Remember, the first character of IFS is used to create $*,
13173 # except with old shells:
13174 build_os=$*
13175 IFS=$ac_save_IFS
13176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13177 
13178 
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13180 $as_echo_n "checking host system type... " >&6; }
13181 if ${ac_cv_host+:} false; then :
13182   $as_echo_n "(cached) " >&6
13183 else
13184   if test "x$host_alias" = x; then
13185   ac_cv_host=$ac_cv_build
13186 else
13187   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13188     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13189 fi
13190 
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13193 $as_echo "$ac_cv_host" >&6; }
13194 case $ac_cv_host in
13195 *-*-*) ;;
13196 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13197 esac
13198 host=$ac_cv_host
13199 ac_save_IFS=$IFS; IFS='-'
13200 set x $ac_cv_host
13201 shift
13202 host_cpu=$1
13203 host_vendor=$2
13204 shift; shift
13205 # Remember, the first character of IFS is used to create $*,
13206 # except with old shells:
13207 host_os=$*
13208 IFS=$ac_save_IFS
13209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13210 
13211 
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13213 $as_echo_n "checking target system type... " >&6; }
13214 if ${ac_cv_target+:} false; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217   if test "x$target_alias" = x; then
13218   ac_cv_target=$ac_cv_host
13219 else
13220   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13221     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13222 fi
13223 
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13226 $as_echo "$ac_cv_target" >&6; }
13227 case $ac_cv_target in
13228 *-*-*) ;;
13229 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13230 esac
13231 target=$ac_cv_target
13232 ac_save_IFS=$IFS; IFS='-'
13233 set x $ac_cv_target
13234 shift
13235 target_cpu=$1
13236 target_vendor=$2
13237 shift; shift
13238 # Remember, the first character of IFS is used to create $*,
13239 # except with old shells:
13240 target_os=$*
13241 IFS=$ac_save_IFS
13242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13243 
13244 
13245 # The aliases save the names the user supplied, while $host etc.
13246 # will get canonicalized.
13247 test -n "$target_alias" &&
13248   test "$program_prefix$program_suffix$program_transform_name" = \
13249     NONENONEs,x,x, &&
13250   program_prefix=${target_alias}-
13251 
13252   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13253   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13254   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13255   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13256   # to use the configure naming style.
13257 
13258 
13259 
13260 
13261 
13262   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13263   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13264   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13265   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13266   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13267   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13268 
13269 
13270 
13271   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13272 
13273   case "$build_os" in
13274     *linux*)
13275       VAR_OS=linux
13276       VAR_OS_API=posix
13277       VAR_OS_ENV=linux
13278       ;;
13279     *solaris*)
13280       VAR_OS=solaris
13281       VAR_OS_API=posix
13282       VAR_OS_ENV=solaris
13283       ;;
13284     *darwin*)
13285       VAR_OS=macosx
13286       VAR_OS_API=posix
13287       VAR_OS_ENV=macosx
13288       ;;
13289     *bsd*)
13290       VAR_OS=bsd
13291       VAR_OS_API=posix
13292       VAR_OS_ENV=bsd
13293       ;;
13294     *cygwin*)
13295       VAR_OS=windows
13296       VAR_OS_API=winapi
13297       VAR_OS_ENV=windows.cygwin
13298       ;;
13299     *mingw*)
13300       VAR_OS=windows
13301       VAR_OS_API=winapi
13302       VAR_OS_ENV=windows.msys
13303       ;;
13304     *aix*)
13305       VAR_OS=aix
13306       VAR_OS_API=posix
13307       VAR_OS_ENV=aix
13308       ;;
13309     *)
13310       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13311       ;;
13312   esac
13313 
13314 
13315   # First argument is the cpu name from the trip/quad
13316   case "$build_cpu" in
13317     x86_64)
13318       VAR_CPU=x86_64
13319       VAR_CPU_ARCH=x86
13320       VAR_CPU_BITS=64
13321       VAR_CPU_ENDIAN=little
13322       ;;
13323     i?86)
13324       VAR_CPU=x86
13325       VAR_CPU_ARCH=x86
13326       VAR_CPU_BITS=32
13327       VAR_CPU_ENDIAN=little
13328       ;;
13329     arm*)
13330       VAR_CPU=arm
13331       VAR_CPU_ARCH=arm
13332       VAR_CPU_BITS=32
13333       VAR_CPU_ENDIAN=little
13334       ;;
13335     powerpc)
13336       VAR_CPU=ppc
13337       VAR_CPU_ARCH=ppc
13338       VAR_CPU_BITS=32
13339       VAR_CPU_ENDIAN=big
13340       ;;
13341     powerpc64)
13342       VAR_CPU=ppc64
13343       VAR_CPU_ARCH=ppc
13344       VAR_CPU_BITS=64
13345       VAR_CPU_ENDIAN=big
13346       ;;
13347     s390)
13348       VAR_CPU=s390
13349       VAR_CPU_ARCH=s390
13350       VAR_CPU_BITS=32
13351       VAR_CPU_ENDIAN=big
13352       ;;
13353     s390x)
13354       VAR_CPU=s390x
13355       VAR_CPU_ARCH=s390
13356       VAR_CPU_BITS=64
13357       VAR_CPU_ENDIAN=big
13358       ;;
13359     sparc)
13360       VAR_CPU=sparc
13361       VAR_CPU_ARCH=sparc
13362       VAR_CPU_BITS=32
13363       VAR_CPU_ENDIAN=big
13364       ;;
13365     sparcv9)
13366       VAR_CPU=sparcv9
13367       VAR_CPU_ARCH=sparc
13368       VAR_CPU_BITS=64
13369       VAR_CPU_ENDIAN=big
13370       ;;
13371     *)
13372       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13373       ;;
13374   esac
13375 
13376   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13377   OPENJDK_BUILD_OS="$VAR_OS"
13378   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13379   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13380   OPENJDK_BUILD_CPU="$VAR_CPU"
13381   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13382   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13383   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13384 
13385 
13386 
13387 
13388 
13389 
13390 
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13392 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13394 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13395 
13396   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13397 
13398   case "$host_os" in
13399     *linux*)
13400       VAR_OS=linux
13401       VAR_OS_API=posix
13402       VAR_OS_ENV=linux
13403       ;;
13404     *solaris*)
13405       VAR_OS=solaris
13406       VAR_OS_API=posix
13407       VAR_OS_ENV=solaris
13408       ;;
13409     *darwin*)
13410       VAR_OS=macosx
13411       VAR_OS_API=posix
13412       VAR_OS_ENV=macosx
13413       ;;
13414     *bsd*)
13415       VAR_OS=bsd
13416       VAR_OS_API=posix
13417       VAR_OS_ENV=bsd
13418       ;;
13419     *cygwin*)
13420       VAR_OS=windows
13421       VAR_OS_API=winapi
13422       VAR_OS_ENV=windows.cygwin
13423       ;;
13424     *mingw*)
13425       VAR_OS=windows
13426       VAR_OS_API=winapi
13427       VAR_OS_ENV=windows.msys
13428       ;;
13429     *aix*)
13430       VAR_OS=aix
13431       VAR_OS_API=posix
13432       VAR_OS_ENV=aix
13433       ;;
13434     *)
13435       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13436       ;;
13437   esac
13438 
13439 
13440   # First argument is the cpu name from the trip/quad
13441   case "$host_cpu" in
13442     x86_64)
13443       VAR_CPU=x86_64
13444       VAR_CPU_ARCH=x86
13445       VAR_CPU_BITS=64
13446       VAR_CPU_ENDIAN=little
13447       ;;
13448     i?86)
13449       VAR_CPU=x86
13450       VAR_CPU_ARCH=x86
13451       VAR_CPU_BITS=32
13452       VAR_CPU_ENDIAN=little
13453       ;;
13454     arm*)
13455       VAR_CPU=arm
13456       VAR_CPU_ARCH=arm
13457       VAR_CPU_BITS=32
13458       VAR_CPU_ENDIAN=little
13459       ;;
13460     powerpc)
13461       VAR_CPU=ppc
13462       VAR_CPU_ARCH=ppc
13463       VAR_CPU_BITS=32
13464       VAR_CPU_ENDIAN=big
13465       ;;
13466     powerpc64)
13467       VAR_CPU=ppc64
13468       VAR_CPU_ARCH=ppc
13469       VAR_CPU_BITS=64
13470       VAR_CPU_ENDIAN=big
13471       ;;
13472     s390)
13473       VAR_CPU=s390
13474       VAR_CPU_ARCH=s390
13475       VAR_CPU_BITS=32
13476       VAR_CPU_ENDIAN=big
13477       ;;
13478     s390x)
13479       VAR_CPU=s390x
13480       VAR_CPU_ARCH=s390
13481       VAR_CPU_BITS=64
13482       VAR_CPU_ENDIAN=big
13483       ;;
13484     sparc)
13485       VAR_CPU=sparc
13486       VAR_CPU_ARCH=sparc
13487       VAR_CPU_BITS=32
13488       VAR_CPU_ENDIAN=big
13489       ;;
13490     sparcv9)
13491       VAR_CPU=sparcv9
13492       VAR_CPU_ARCH=sparc
13493       VAR_CPU_BITS=64
13494       VAR_CPU_ENDIAN=big
13495       ;;
13496     *)
13497       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13498       ;;
13499   esac
13500 
13501   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13502   OPENJDK_TARGET_OS="$VAR_OS"
13503   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13504   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13505   OPENJDK_TARGET_CPU="$VAR_CPU"
13506   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13507   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13508   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13509 
13510 
13511 
13512 
13513 
13514 
13515 
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13517 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13519 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13520 
13521 
13522 
13523 # Check whether --with-target-bits was given.
13524 if test "${with_target_bits+set}" = set; then :
13525   withval=$with_target_bits;
13526 fi
13527 
13528 
13529   # We have three types of compiles:
13530   # native  == normal compilation, target system == build system
13531   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13532   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13533   #
13534   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13535     # We're doing a proper cross-compilation
13536     COMPILE_TYPE="cross"
13537   else
13538     COMPILE_TYPE="native"
13539   fi
13540 
13541   if test "x$with_target_bits" != x; then
13542     if test "x$COMPILE_TYPE" = "xcross"; then
13543       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13544     fi
13545 
13546     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13547       # A reduced build is requested
13548       COMPILE_TYPE="reduced"
13549       OPENJDK_TARGET_CPU_BITS=32
13550       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13551         OPENJDK_TARGET_CPU=x86
13552       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13553         OPENJDK_TARGET_CPU=sparc
13554       else
13555         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13556       fi
13557     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13558       as_fn_error $? "It is not possible to use --with-target-bits=64 on a 32 bit system. Use proper cross-compilation instead." "$LINENO" 5
13559     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13560       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13561 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13562     else
13563       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13564     fi
13565   fi
13566 
13567 
13568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13569 $as_echo_n "checking compilation type... " >&6; }
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13571 $as_echo "$COMPILE_TYPE" >&6; }
13572 
13573 
13574   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13575     REQUIRED_OS_NAME=SunOS
13576     REQUIRED_OS_VERSION=5.10
13577   fi
13578   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13579     REQUIRED_OS_NAME=Linux
13580     REQUIRED_OS_VERSION=2.6
13581   fi
13582   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13583     REQUIRED_OS_NAME=Windows
13584     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13585       REQUIRED_OS_VERSION=5.2
13586     else
13587       REQUIRED_OS_VERSION=5.1
13588     fi
13589   fi
13590   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13591     REQUIRED_OS_NAME=Darwin
13592     REQUIRED_OS_VERSION=11.2
13593   fi
13594 
13595 
13596 
13597 
13598 
13599   # Also store the legacy naming of the cpu.
13600   # Ie i586 and amd64 instead of x86 and x86_64
13601   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13602   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13603     OPENJDK_TARGET_CPU_LEGACY="i586"
13604   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13605     # On all platforms except MacOSX replace x86_64 with amd64.
13606     OPENJDK_TARGET_CPU_LEGACY="amd64"
13607   fi
13608 
13609 
13610   # And the second legacy naming of the cpu.
13611   # Ie i386 and amd64 instead of x86 and x86_64.
13612   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13613   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13614     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13615   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13616     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13617   fi
13618 
13619 
13620   # This is the name of the cpu (but using i386 and amd64 instead of
13621   # x86 and x86_64, respectively), preceeded by a /, to be used when
13622   # locating libraries. On macosx, it's empty, though.
13623   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13624   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13625     OPENJDK_TARGET_CPU_LIBDIR=""
13626   fi
13627 
13628 
13629   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13630   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13631   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13632   OPENJDK_TARGET_CPU_ISADIR=""
13633   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13634     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13635       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13636     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13637       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13638     fi
13639   fi
13640 
13641 
13642   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13643   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13644   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13645     # On linux only, we replace x86 with i386.
13646     OPENJDK_TARGET_CPU_OSARCH="i386"
13647   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13648     # On all platforms except macosx, we replace x86_64 with amd64.
13649     OPENJDK_TARGET_CPU_OSARCH="amd64"
13650   fi
13651 
13652 
13653   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13654   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13655     OPENJDK_TARGET_CPU_JLI="i386"
13656   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13657     # On all platforms except macosx, we replace x86_64 with amd64.
13658     OPENJDK_TARGET_CPU_JLI="amd64"
13659   fi
13660   # Now setup the -D flags for building libjli.
13661   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13662   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13663     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13664       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13665     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13666       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13667     fi
13668   fi
13669 
13670 
13671   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13672   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13673     OPENJDK_TARGET_OS_API_DIR="solaris"
13674   fi
13675   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13676     OPENJDK_TARGET_OS_API_DIR="windows"
13677   fi
13678 
13679 
13680   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13681       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13682   else
13683       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13684   fi
13685 
13686 
13687   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13688     A_LP64="LP64:="
13689     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13690     # unpack200.exe
13691     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13692       ADD_LP64="-D_LP64=1"
13693     fi
13694   fi
13695   LP64=$A_LP64
13696 
13697 
13698   if test "x$COMPILE_TYPE" = "xcross"; then
13699     # FIXME: ... or should this include reduced builds..?
13700     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13701   else
13702     DEFINE_CROSS_COMPILE_ARCH=""
13703   fi
13704 
13705 
13706   # ZERO_ARCHDEF is used to enable architecture-specific code
13707   case "${OPENJDK_TARGET_CPU}" in
13708     ppc*)    ZERO_ARCHDEF=PPC   ;;
13709     s390*)   ZERO_ARCHDEF=S390  ;;
13710     sparc*)  ZERO_ARCHDEF=SPARC ;;
13711     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13712     x86)     ZERO_ARCHDEF=IA32  ;;
13713     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13714   esac
13715 
13716 
13717 
13718 
13719 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13720 
13721   # Locate the directory of this script.
13722   SCRIPT="$0"
13723   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
13724 
13725   # Where is the source? It is located two levels above the configure script.
13726   CURDIR="$PWD"
13727   cd "$AUTOCONF_DIR/../.."
13728   SRC_ROOT="`$THEPWDCMD -L`"
13729 
13730   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13731     PATH_SEP=";"
13732 
13733   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13734   if test $SRC_ROOT_LENGTH -gt 100; then
13735     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13736   fi
13737 
13738   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13740 $as_echo_n "checking cygwin release... " >&6; }
13741     CYGWIN_VERSION=`$UNAME -r`
13742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13743 $as_echo "$CYGWIN_VERSION" >&6; }
13744     WINDOWS_ENV_VENDOR='cygwin'
13745     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13746 
13747     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13748     if test "x$CYGWIN_VERSION_OK" = x; then
13749       { $as_echo "$as_me:${as_lineno-$LINENO}: Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade." >&5
13750 $as_echo "$as_me: Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade." >&6;}
13751       as_fn_error $? "Cannot continue" "$LINENO" 5
13752     fi
13753     if test "x$CYGPATH" = x; then
13754       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13755     fi
13756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13757 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13758     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13759     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13760     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13761     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13763 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13764     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13765     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13766     if test "x$test_cygdrive_prefix" = x; then
13767       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13768     fi
13769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13771 $as_echo_n "checking msys release... " >&6; }
13772     MSYS_VERSION=`$UNAME -r`
13773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13774 $as_echo "$MSYS_VERSION" >&6; }
13775 
13776     WINDOWS_ENV_VENDOR='msys'
13777     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13778 
13779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13780 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13781     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13782     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13783 
13784   windows_path="$MSYS_ROOT_PATH"
13785   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13786     unix_path=`$CYGPATH -u "$windows_path"`
13787     MSYS_ROOT_PATH="$unix_path"
13788   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13789     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13790     MSYS_ROOT_PATH="$unix_path"
13791   fi
13792 
13793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13794 $as_echo "$MSYS_ROOT_PATH" >&6; }
13795     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13796   else
13797     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13798   fi
13799 
13800   # Test if windows or unix (cygwin/msys) find is first in path.
13801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13802 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13803   FIND_BINARY_OUTPUT=`find --version 2>&1`
13804   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13806 $as_echo "unix style" >&6; }
13807   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13809 $as_echo "Windows" >&6; }
13810     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13811 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13812     { $as_echo "$as_me:${as_lineno-$LINENO}: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&5
13813 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13814     as_fn_error $? "Cannot continue" "$LINENO" 5
13815   else
13816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13817 $as_echo "unknown" >&6; }
13818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13819 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13820   fi
13821 
13822   else
13823     PATH_SEP=":"
13824   fi
13825 
13826 
13827 
13828   cd "$CURDIR"
13829 
13830 
13831   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13832 
13833   # Input might be given as Windows format, start by converting to
13834   # unix format.
13835   path="$SRC_ROOT"
13836   new_path=`$CYGPATH -u "$path"`
13837 
13838   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13839   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13840   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13841   # "foo.exe" is OK but "foo" is an error.
13842   #
13843   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13844   # It is also a way to make sure we got the proper file name for the real test later on.
13845   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13846   if test "x$test_shortpath" = x; then
13847     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13848 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13849     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
13850   fi
13851 
13852   # Call helper function which possibly converts this using DOS-style short mode.
13853   # If so, the updated path is stored in $new_path.
13854 
13855   input_path="$new_path"
13856   # Check if we need to convert this using DOS-style short mode. If the path
13857   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13858   # take no chances and rewrite it.
13859   # Note: m4 eats our [], so we need to use [ and ] instead.
13860   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13861   if test "x$has_forbidden_chars" != x; then
13862     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13863     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13864     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13865     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13866       # Going to short mode and back again did indeed matter. Since short mode is
13867       # case insensitive, let's make it lowercase to improve readability.
13868       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13869       # Now convert it back to Unix-stile (cygpath)
13870       input_path=`$CYGPATH -u "$shortmode_path"`
13871       new_path="$input_path"
13872     fi
13873   fi
13874 
13875   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13876   if test "x$test_cygdrive_prefix" = x; then
13877     # As a simple fix, exclude /usr/bin since it's not a real path.
13878     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13879       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13880       # a path prefixed by /cygdrive for fixpath to work.
13881       new_path="$CYGWIN_ROOT_PATH$input_path"
13882     fi
13883   fi
13884 
13885 
13886   if test "x$path" != "x$new_path"; then
13887     SRC_ROOT="$new_path"
13888     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13889 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13890   fi
13891 
13892   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13893 
13894   path="$SRC_ROOT"
13895   has_colon=`$ECHO $path | $GREP ^.:`
13896   new_path="$path"
13897   if test "x$has_colon" = x; then
13898     # Not in mixed or Windows style, start by that.
13899     new_path=`cmd //c echo $path`
13900   fi
13901 
13902 
13903   input_path="$new_path"
13904   # Check if we need to convert this using DOS-style short mode. If the path
13905   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13906   # take no chances and rewrite it.
13907   # Note: m4 eats our [], so we need to use [ and ] instead.
13908   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13909   if test "x$has_forbidden_chars" != x; then
13910     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13911     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13912   fi
13913 
13914 
13915   windows_path="$new_path"
13916   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13917     unix_path=`$CYGPATH -u "$windows_path"`
13918     new_path="$unix_path"
13919   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13920     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13921     new_path="$unix_path"
13922   fi
13923 
13924   if test "x$path" != "x$new_path"; then
13925     SRC_ROOT="$new_path"
13926     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13927 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13928   fi
13929 
13930   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13931   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13932 
13933   else
13934     # We're on a posix platform. Hooray! :)
13935     path="$SRC_ROOT"
13936     has_space=`$ECHO "$path" | $GREP " "`
13937     if test "x$has_space" != x; then
13938       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13939 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13940       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13941     fi
13942 
13943     # Use eval to expand a potential ~
13944     eval path="$path"
13945     if test ! -f "$path" && test ! -d "$path"; then
13946       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
13947     fi
13948 
13949     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
13950   fi
13951 
13952 
13953   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13954 
13955   # Input might be given as Windows format, start by converting to
13956   # unix format.
13957   path="$CURDIR"
13958   new_path=`$CYGPATH -u "$path"`
13959 
13960   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13961   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13962   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13963   # "foo.exe" is OK but "foo" is an error.
13964   #
13965   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13966   # It is also a way to make sure we got the proper file name for the real test later on.
13967   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13968   if test "x$test_shortpath" = x; then
13969     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
13970 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
13971     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
13972   fi
13973 
13974   # Call helper function which possibly converts this using DOS-style short mode.
13975   # If so, the updated path is stored in $new_path.
13976 
13977   input_path="$new_path"
13978   # Check if we need to convert this using DOS-style short mode. If the path
13979   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13980   # take no chances and rewrite it.
13981   # Note: m4 eats our [], so we need to use [ and ] instead.
13982   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13983   if test "x$has_forbidden_chars" != x; then
13984     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13985     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13986     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13987     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13988       # Going to short mode and back again did indeed matter. Since short mode is
13989       # case insensitive, let's make it lowercase to improve readability.
13990       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13991       # Now convert it back to Unix-stile (cygpath)
13992       input_path=`$CYGPATH -u "$shortmode_path"`
13993       new_path="$input_path"
13994     fi
13995   fi
13996 
13997   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13998   if test "x$test_cygdrive_prefix" = x; then
13999     # As a simple fix, exclude /usr/bin since it's not a real path.
14000     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14001       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14002       # a path prefixed by /cygdrive for fixpath to work.
14003       new_path="$CYGWIN_ROOT_PATH$input_path"
14004     fi
14005   fi
14006 
14007 
14008   if test "x$path" != "x$new_path"; then
14009     CURDIR="$new_path"
14010     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14011 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14012   fi
14013 
14014   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14015 
14016   path="$CURDIR"
14017   has_colon=`$ECHO $path | $GREP ^.:`
14018   new_path="$path"
14019   if test "x$has_colon" = x; then
14020     # Not in mixed or Windows style, start by that.
14021     new_path=`cmd //c echo $path`
14022   fi
14023 
14024 
14025   input_path="$new_path"
14026   # Check if we need to convert this using DOS-style short mode. If the path
14027   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14028   # take no chances and rewrite it.
14029   # Note: m4 eats our [], so we need to use [ and ] instead.
14030   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14031   if test "x$has_forbidden_chars" != x; then
14032     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14033     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14034   fi
14035 
14036 
14037   windows_path="$new_path"
14038   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14039     unix_path=`$CYGPATH -u "$windows_path"`
14040     new_path="$unix_path"
14041   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14042     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14043     new_path="$unix_path"
14044   fi
14045 
14046   if test "x$path" != "x$new_path"; then
14047     CURDIR="$new_path"
14048     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14049 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14050   fi
14051 
14052   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14053   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14054 
14055   else
14056     # We're on a posix platform. Hooray! :)
14057     path="$CURDIR"
14058     has_space=`$ECHO "$path" | $GREP " "`
14059     if test "x$has_space" != x; then
14060       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14061 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14062       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14063     fi
14064 
14065     # Use eval to expand a potential ~
14066     eval path="$path"
14067     if test ! -f "$path" && test ! -d "$path"; then
14068       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14069     fi
14070 
14071     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14072   fi
14073 
14074 
14075   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14076     # Add extra search paths on solaris for utilities like ar and as etc...
14077     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14078   fi
14079 
14080   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14081   # is not correct.
14082 
14083 # Check whether --with-sys-root was given.
14084 if test "${with_sys_root+set}" = set; then :
14085   withval=$with_sys_root;
14086 fi
14087 
14088 
14089   if test "x$with_sys_root" != x; then
14090     SYS_ROOT=$with_sys_root
14091   else
14092     SYS_ROOT=/
14093   fi
14094 
14095 
14096 
14097 # Check whether --with-tools-dir was given.
14098 if test "${with_tools_dir+set}" = set; then :
14099   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14100 
14101 fi
14102 
14103 
14104 
14105 # Check whether --with-devkit was given.
14106 if test "${with_devkit+set}" = set; then :
14107   withval=$with_devkit;
14108         if test "x$with_sys_root" != x; then
14109           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14110         fi
14111 
14112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14113 
14114   # Input might be given as Windows format, start by converting to
14115   # unix format.
14116   path="$with_devkit"
14117   new_path=`$CYGPATH -u "$path"`
14118 
14119   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14120   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14121   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14122   # "foo.exe" is OK but "foo" is an error.
14123   #
14124   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14125   # It is also a way to make sure we got the proper file name for the real test later on.
14126   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14127   if test "x$test_shortpath" = x; then
14128     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14129 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14130     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14131   fi
14132 
14133   # Call helper function which possibly converts this using DOS-style short mode.
14134   # If so, the updated path is stored in $new_path.
14135 
14136   input_path="$new_path"
14137   # Check if we need to convert this using DOS-style short mode. If the path
14138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14139   # take no chances and rewrite it.
14140   # Note: m4 eats our [], so we need to use [ and ] instead.
14141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14142   if test "x$has_forbidden_chars" != x; then
14143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14144     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14145     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14146     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14147       # Going to short mode and back again did indeed matter. Since short mode is
14148       # case insensitive, let's make it lowercase to improve readability.
14149       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14150       # Now convert it back to Unix-stile (cygpath)
14151       input_path=`$CYGPATH -u "$shortmode_path"`
14152       new_path="$input_path"
14153     fi
14154   fi
14155 
14156   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14157   if test "x$test_cygdrive_prefix" = x; then
14158     # As a simple fix, exclude /usr/bin since it's not a real path.
14159     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14160       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14161       # a path prefixed by /cygdrive for fixpath to work.
14162       new_path="$CYGWIN_ROOT_PATH$input_path"
14163     fi
14164   fi
14165 
14166 
14167   if test "x$path" != "x$new_path"; then
14168     with_devkit="$new_path"
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14170 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14171   fi
14172 
14173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14174 
14175   path="$with_devkit"
14176   has_colon=`$ECHO $path | $GREP ^.:`
14177   new_path="$path"
14178   if test "x$has_colon" = x; then
14179     # Not in mixed or Windows style, start by that.
14180     new_path=`cmd //c echo $path`
14181   fi
14182 
14183 
14184   input_path="$new_path"
14185   # Check if we need to convert this using DOS-style short mode. If the path
14186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14187   # take no chances and rewrite it.
14188   # Note: m4 eats our [], so we need to use [ and ] instead.
14189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14190   if test "x$has_forbidden_chars" != x; then
14191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14192     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14193   fi
14194 
14195 
14196   windows_path="$new_path"
14197   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14198     unix_path=`$CYGPATH -u "$windows_path"`
14199     new_path="$unix_path"
14200   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14201     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14202     new_path="$unix_path"
14203   fi
14204 
14205   if test "x$path" != "x$new_path"; then
14206     with_devkit="$new_path"
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14208 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14209   fi
14210 
14211   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14212   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14213 
14214   else
14215     # We're on a posix platform. Hooray! :)
14216     path="$with_devkit"
14217     has_space=`$ECHO "$path" | $GREP " "`
14218     if test "x$has_space" != x; then
14219       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14220 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14221       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14222     fi
14223 
14224     # Use eval to expand a potential ~
14225     eval path="$path"
14226     if test ! -f "$path" && test ! -d "$path"; then
14227       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14228     fi
14229 
14230     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14231   fi
14232 
14233 
14234   if test "x$TOOLS_DIR" = x; then
14235     TOOLS_DIR="$with_devkit/bin"
14236   else
14237     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14238   fi
14239 
14240         if test -d "$with_devkit/$host_alias/libc"; then
14241           SYS_ROOT=$with_devkit/$host_alias/libc
14242         elif test -d "$with_devkit/$host/sys-root"; then
14243           SYS_ROOT=$with_devkit/$host/sys-root
14244         fi
14245 
14246 fi
14247 
14248 
14249 
14250   # Setup default logging of stdout and stderr to build.log in the output root.
14251   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14252   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14253   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14254 
14255 
14256 
14257 
14258 
14259 # Check if it's a pure open build or if custom sources are to be used.
14260 
14261   # Check whether --enable-openjdk-only was given.
14262 if test "${enable_openjdk_only+set}" = set; then :
14263   enableval=$enable_openjdk_only;
14264 else
14265   enable_openjdk_only="no"
14266 fi
14267 
14268 
14269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14270 $as_echo_n "checking for presence of closed sources... " >&6; }
14271   if test -d "$SRC_ROOT/jdk/src/closed"; then
14272     CLOSED_SOURCE_PRESENT=yes
14273   else
14274     CLOSED_SOURCE_PRESENT=no
14275   fi
14276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14277 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14278 
14279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14280 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14281   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14283 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14284 
14285   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14286     OPENJDK=true
14287     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14288       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14289 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14290     fi
14291   else
14292     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14293       OPENJDK=true
14294     else
14295       OPENJDK=false
14296     fi
14297   fi
14298 
14299   if test "x$OPENJDK" = "xtrue"; then
14300     SET_OPENJDK="OPENJDK=true"
14301   fi
14302 
14303 
14304 
14305 
14306 # These are needed to be able to create a configuration name (and thus the output directory)
14307 
14308   ###############################################################################
14309   #
14310   # Check which variant of the JDK that we want to build.
14311   # Currently we have:
14312   #    normal:   standard edition
14313   # but the custom make system may add other variants
14314   #
14315   # Effectively the JDK variant gives a name to a specific set of
14316   # modules to compile into the JDK. In the future, these modules
14317   # might even be Jigsaw modules.
14318   #
14319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14320 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14321 
14322 # Check whether --with-jdk-variant was given.
14323 if test "${with_jdk_variant+set}" = set; then :
14324   withval=$with_jdk_variant;
14325 fi
14326 
14327 
14328   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14329     JDK_VARIANT="normal"
14330   else
14331     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14332   fi
14333 
14334 
14335 
14336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14337 $as_echo "$JDK_VARIANT" >&6; }
14338 
14339 
14340 ###############################################################################
14341 #
14342 # Check which interpreter of the JVM we want to build.
14343 # Currently we have:
14344 #    template: Template interpreter (the default)
14345 #    cpp     : C++ interpreter
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14347 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14348 
14349 # Check whether --with-jvm-interpreter was given.
14350 if test "${with_jvm_interpreter+set}" = set; then :
14351   withval=$with_jvm_interpreter;
14352 fi
14353 
14354 
14355 if test "x$with_jvm_interpreter" = x; then
14356      with_jvm_interpreter="template"
14357 fi
14358 
14359 JVM_INTERPRETER="$with_jvm_interpreter"
14360 
14361 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14362    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14363 fi
14364 
14365 
14366 
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14368 $as_echo "$with_jvm_interpreter" >&6; }
14369 
14370 
14371 
14372   ###############################################################################
14373   #
14374   # Check which variants of the JVM that we want to build.
14375   # Currently we have:
14376   #    server: normal interpreter and a tiered C1/C2 compiler
14377   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14378   #    minimal1: reduced form of client with optional VM services and features stripped out
14379   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14380   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14381   #    zero: no machine code interpreter, no compiler
14382   #    zeroshark: zero interpreter and shark/llvm compiler backend
14383 #    core: interpreter only, no compiler (only works on some platforms)
14384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14385 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14386 
14387 # Check whether --with-jvm-variants was given.
14388 if test "${with_jvm_variants+set}" = set; then :
14389   withval=$with_jvm_variants;
14390 fi
14391 
14392 
14393   if test "x$with_jvm_variants" = x; then
14394     with_jvm_variants="server"
14395   fi
14396 
14397   JVM_VARIANTS=",$with_jvm_variants,"
14398   TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//'  -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'`
14399 
14400   if test "x$TEST_VARIANTS" != "x,"; then
14401      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14402   fi
14403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14404 $as_echo "$with_jvm_variants" >&6; }
14405 
14406   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14407   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14408   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14409   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14410   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14411   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14412   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14413 
14414   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14415     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14416       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14417     fi
14418   fi
14419   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14420     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14421       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14422     fi
14423   fi
14424   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14425     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14426       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14427     fi
14428   fi
14429 
14430   # Replace the commas with AND for use in the build directory name.
14431   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14432   COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'`
14433   if test "x$COUNT_VARIANTS" != "x,1"; then
14434     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14435   else
14436     BUILDING_MULTIPLE_JVM_VARIANTS=no
14437   fi
14438 
14439 
14440 
14441 
14442 
14443 
14444 
14445 
14446 
14447 
14448   INCLUDE_SA=true
14449   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14450     INCLUDE_SA=false
14451   fi
14452   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14453     INCLUDE_SA=false
14454   fi
14455   if test "x$VAR_CPU" = xppc64 ; then
14456     INCLUDE_SA=false
14457   fi
14458 
14459 
14460   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14461     MACOSX_UNIVERSAL="true"
14462   fi
14463 
14464 
14465 
14466 
14467   ###############################################################################
14468   #
14469   # Set the debug level
14470   #    release: no debug information, all optimizations, no asserts.
14471   #    fastdebug: debug information (-g), all optimizations, all asserts
14472   #    slowdebug: debug information (-g), no optimizations, all asserts
14473   #
14474   DEBUG_LEVEL="release"
14475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14476 $as_echo_n "checking which debug level to use... " >&6; }
14477   # Check whether --enable-debug was given.
14478 if test "${enable_debug+set}" = set; then :
14479   enableval=$enable_debug;
14480         ENABLE_DEBUG="${enableval}"
14481         DEBUG_LEVEL="fastdebug"
14482 
14483 else
14484   ENABLE_DEBUG="no"
14485 fi
14486 
14487 
14488 
14489 # Check whether --with-debug-level was given.
14490 if test "${with_debug_level+set}" = set; then :
14491   withval=$with_debug_level;
14492         DEBUG_LEVEL="${withval}"
14493         if test "x$ENABLE_DEBUG" = xyes; then
14494           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14495         fi
14496 
14497 fi
14498 
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14500 $as_echo "$DEBUG_LEVEL" >&6; }
14501 
14502   if test "x$DEBUG_LEVEL" != xrelease && \
14503       test "x$DEBUG_LEVEL" != xfastdebug && \
14504       test "x$DEBUG_LEVEL" != xslowdebug; then
14505     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14506   fi
14507 
14508 
14509   ###############################################################################
14510   #
14511   # Setup legacy vars/targets and new vars to deal with different debug levels.
14512   #
14513 
14514   case $DEBUG_LEVEL in
14515     release )
14516       VARIANT="OPT"
14517       FASTDEBUG="false"
14518       DEBUG_CLASSFILES="false"
14519       BUILD_VARIANT_RELEASE=""
14520       HOTSPOT_DEBUG_LEVEL="product"
14521       HOTSPOT_EXPORT="product"
14522       ;;
14523     fastdebug )
14524       VARIANT="DBG"
14525       FASTDEBUG="true"
14526       DEBUG_CLASSFILES="true"
14527       BUILD_VARIANT_RELEASE="-fastdebug"
14528       HOTSPOT_DEBUG_LEVEL="fastdebug"
14529       HOTSPOT_EXPORT="fastdebug"
14530       ;;
14531     slowdebug )
14532       VARIANT="DBG"
14533       FASTDEBUG="false"
14534       DEBUG_CLASSFILES="true"
14535       BUILD_VARIANT_RELEASE="-debug"
14536       HOTSPOT_DEBUG_LEVEL="jvmg"
14537       HOTSPOT_EXPORT="debug"
14538       ;;
14539   esac
14540 
14541   #####
14542   # Generate the legacy makefile targets for hotspot.
14543   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14544   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14545   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14546   # But until then ...
14547   HOTSPOT_TARGET=""
14548 
14549   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14550     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14551   fi
14552 
14553   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14554     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14555   fi
14556 
14557   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14558     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14559   fi
14560 
14561   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14562     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14563   fi
14564 
14565   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14566     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14567   fi
14568 
14569   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14570     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14571   fi
14572 
14573   if test "x$JVM_VARIANT_CORE" = xtrue; then
14574     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14575   fi
14576 
14577   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14578 
14579   # On Macosx universal binaries are produced, but they only contain
14580   # 64 bit intel. This invalidates control of which jvms are built
14581   # from configure, but only server is valid anyway. Fix this
14582   # when hotspot makefiles are rewritten.
14583   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14584     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14585   fi
14586 
14587   #####
14588 
14589 
14590 
14591 
14592 
14593 
14594 
14595 
14596 # With basic setup done, call the custom early hook.
14597 
14598 
14599 # To properly create a configuration name, we need to have the OpenJDK target
14600 # and options (variants and debug level) parsed.
14601 
14602 
14603 
14604 # Check whether --with-conf-name was given.
14605 if test "${with_conf_name+set}" = set; then :
14606   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14607 fi
14608 
14609 
14610   # Test from where we are running configure, in or outside of src root.
14611   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14612       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14613       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14614     # We are running configure from the src root.
14615     # Create a default ./build/target-variant-debuglevel output root.
14616     if test "x${CONF_NAME}" = x; then
14617       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14618     fi
14619     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14620     $MKDIR -p "$OUTPUT_ROOT"
14621     if test ! -d "$OUTPUT_ROOT"; then
14622       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14623     fi
14624   else
14625     # We are running configure from outside of the src dir.
14626     # Then use the current directory as output dir!
14627     # If configuration is situated in normal build directory, just use the build
14628     # directory name as configuration name, otherwise use the complete path.
14629     if test "x${CONF_NAME}" = x; then
14630       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14631     fi
14632     OUTPUT_ROOT="$CURDIR"
14633 
14634     # WARNING: This might be a bad thing to do. You need to be sure you want to
14635     # have a configuration in this directory. Do some sanity checks!
14636 
14637     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14638       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14639       # other files
14640       files_present=`$LS $OUTPUT_ROOT`
14641       # Configure has already touched config.log and confdefs.h in the current dir when this check
14642       # is performed.
14643       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14644       | $TR -d '\n'`
14645       if test "x$filtered_files" != x; then
14646         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14647 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14648         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14649 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14650         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14651 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14652         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14653 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14654         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14655 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14656         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14657 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14658         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14659 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14660         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14661       fi
14662     fi
14663   fi
14664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14665 $as_echo_n "checking what configuration name to use... " >&6; }
14666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14667 $as_echo "$CONF_NAME" >&6; }
14668 
14669 
14670   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14671 
14672   # Input might be given as Windows format, start by converting to
14673   # unix format.
14674   path="$OUTPUT_ROOT"
14675   new_path=`$CYGPATH -u "$path"`
14676 
14677   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14678   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14679   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14680   # "foo.exe" is OK but "foo" is an error.
14681   #
14682   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14683   # It is also a way to make sure we got the proper file name for the real test later on.
14684   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14685   if test "x$test_shortpath" = x; then
14686     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14687 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14688     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14689   fi
14690 
14691   # Call helper function which possibly converts this using DOS-style short mode.
14692   # If so, the updated path is stored in $new_path.
14693 
14694   input_path="$new_path"
14695   # Check if we need to convert this using DOS-style short mode. If the path
14696   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14697   # take no chances and rewrite it.
14698   # Note: m4 eats our [], so we need to use [ and ] instead.
14699   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14700   if test "x$has_forbidden_chars" != x; then
14701     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14702     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14703     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14704     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14705       # Going to short mode and back again did indeed matter. Since short mode is
14706       # case insensitive, let's make it lowercase to improve readability.
14707       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14708       # Now convert it back to Unix-stile (cygpath)
14709       input_path=`$CYGPATH -u "$shortmode_path"`
14710       new_path="$input_path"
14711     fi
14712   fi
14713 
14714   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14715   if test "x$test_cygdrive_prefix" = x; then
14716     # As a simple fix, exclude /usr/bin since it's not a real path.
14717     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14718       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14719       # a path prefixed by /cygdrive for fixpath to work.
14720       new_path="$CYGWIN_ROOT_PATH$input_path"
14721     fi
14722   fi
14723 
14724 
14725   if test "x$path" != "x$new_path"; then
14726     OUTPUT_ROOT="$new_path"
14727     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14728 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14729   fi
14730 
14731   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14732 
14733   path="$OUTPUT_ROOT"
14734   has_colon=`$ECHO $path | $GREP ^.:`
14735   new_path="$path"
14736   if test "x$has_colon" = x; then
14737     # Not in mixed or Windows style, start by that.
14738     new_path=`cmd //c echo $path`
14739   fi
14740 
14741 
14742   input_path="$new_path"
14743   # Check if we need to convert this using DOS-style short mode. If the path
14744   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14745   # take no chances and rewrite it.
14746   # Note: m4 eats our [], so we need to use [ and ] instead.
14747   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14748   if test "x$has_forbidden_chars" != x; then
14749     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14750     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14751   fi
14752 
14753 
14754   windows_path="$new_path"
14755   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14756     unix_path=`$CYGPATH -u "$windows_path"`
14757     new_path="$unix_path"
14758   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14759     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14760     new_path="$unix_path"
14761   fi
14762 
14763   if test "x$path" != "x$new_path"; then
14764     OUTPUT_ROOT="$new_path"
14765     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14766 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14767   fi
14768 
14769   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14770   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14771 
14772   else
14773     # We're on a posix platform. Hooray! :)
14774     path="$OUTPUT_ROOT"
14775     has_space=`$ECHO "$path" | $GREP " "`
14776     if test "x$has_space" != x; then
14777       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14778 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14779       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14780     fi
14781 
14782     # Use eval to expand a potential ~
14783     eval path="$path"
14784     if test ! -f "$path" && test ! -d "$path"; then
14785       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14786     fi
14787 
14788     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14789   fi
14790 
14791 
14792   SPEC=$OUTPUT_ROOT/spec.gmk
14793 
14794   CONF_NAME=$CONF_NAME
14795 
14796   OUTPUT_ROOT=$OUTPUT_ROOT
14797 
14798 
14799   # Most of the probed defines are put into config.h
14800   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14801 
14802   # The spec.gmk file contains all variables for the make system.
14803   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14804 
14805   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14806   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14807 
14808   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14809   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14810 
14811   # The compare.sh is used to compare the build output to other builds.
14812   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14813 
14814   # Spec.sh is currently used by compare-objects.sh
14815   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14816 
14817   # The generated Makefile knows where the spec.gmk is and where the source is.
14818   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14819   # which will look for generated configurations
14820   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14821 
14822 
14823   # Save the arguments given to us
14824   echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
14825 
14826 
14827 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
14828 
14829   for ac_prog in apt-get yum port pkgutil pkgadd
14830 do
14831   # Extract the first word of "$ac_prog", so it can be a program name with args.
14832 set dummy $ac_prog; ac_word=$2
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14834 $as_echo_n "checking for $ac_word... " >&6; }
14835 if ${ac_cv_prog_PKGHANDLER+:} false; then :
14836   $as_echo_n "(cached) " >&6
14837 else
14838   if test -n "$PKGHANDLER"; then
14839   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
14840 else
14841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14842 for as_dir in $PATH
14843 do
14844   IFS=$as_save_IFS
14845   test -z "$as_dir" && as_dir=.
14846     for ac_exec_ext in '' $ac_executable_extensions; do
14847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14848     ac_cv_prog_PKGHANDLER="$ac_prog"
14849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14850     break 2
14851   fi
14852 done
14853   done
14854 IFS=$as_save_IFS
14855 
14856 fi
14857 fi
14858 PKGHANDLER=$ac_cv_prog_PKGHANDLER
14859 if test -n "$PKGHANDLER"; then
14860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
14861 $as_echo "$PKGHANDLER" >&6; }
14862 else
14863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864 $as_echo "no" >&6; }
14865 fi
14866 
14867 
14868   test -n "$PKGHANDLER" && break
14869 done
14870 
14871 
14872 
14873 # Setup tools that requires more complex handling, or that is not needed by the configure script.
14874 
14875 
14876   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
14877   if test "x$MAKE" != x; then
14878     # User has supplied a make, test it.
14879     if test ! -f "$MAKE"; then
14880       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
14881     fi
14882 
14883   MAKE_CANDIDATE=""$MAKE""
14884   DESCRIPTION="user supplied MAKE=$MAKE"
14885   if test "x$MAKE_CANDIDATE" != x; then
14886     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
14887 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
14888     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
14889     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
14890     if test "x$IS_GNU_MAKE" = x; then
14891       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
14892 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
14893     else
14894       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
14895       if test "x$IS_MODERN_MAKE" = x; then
14896         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
14897 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
14898       else
14899         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14900           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14901             MAKE_EXPECTED_ENV='cygwin'
14902           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14903             MAKE_EXPECTED_ENV='msys'
14904           else
14905             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
14906           fi
14907           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
14908           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
14909         else
14910           # Not relevant for non-Windows
14911           IS_MAKE_CORRECT_ENV=true
14912         fi
14913         if test "x$IS_MAKE_CORRECT_ENV" = x; then
14914           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
14915 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
14916         else
14917           FOUND_MAKE=$MAKE_CANDIDATE
14918 
14919   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14920 
14921   # First separate the path from the arguments. This will split at the first
14922   # space.
14923   complete="$FOUND_MAKE"
14924   path="${complete%% *}"
14925   tmp="$complete EOL"
14926   arguments="${tmp#* }"
14927 
14928   # Input might be given as Windows format, start by converting to
14929   # unix format.
14930   new_path=`$CYGPATH -u "$path"`
14931 
14932   # Now try to locate executable using which
14933   new_path=`$WHICH "$new_path" 2> /dev/null`
14934   # bat and cmd files are not always considered executable in cygwin causing which
14935   # to not find them
14936   if test "x$new_path" = x \
14937       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14938       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14939     new_path=`$CYGPATH -u "$path"`
14940   fi
14941   if test "x$new_path" = x; then
14942     # Oops. Which didn't find the executable.
14943     # The splitting of arguments from the executable at a space might have been incorrect,
14944     # since paths with space are more likely in Windows. Give it another try with the whole
14945     # argument.
14946     path="$complete"
14947     arguments="EOL"
14948     new_path=`$CYGPATH -u "$path"`
14949     new_path=`$WHICH "$new_path" 2> /dev/null`
14950     # bat and cmd files are not always considered executable in cygwin causing which
14951     # to not find them
14952     if test "x$new_path" = x \
14953         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14954         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14955       new_path=`$CYGPATH -u "$path"`
14956     fi
14957     if test "x$new_path" = x; then
14958       # It's still not found. Now this is an unrecoverable error.
14959       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
14960 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
14961       has_space=`$ECHO "$complete" | $GREP " "`
14962       if test "x$has_space" != x; then
14963         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
14964 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
14965       fi
14966       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14967     fi
14968   fi
14969 
14970   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14971   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14972   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14973   # "foo.exe" is OK but "foo" is an error.
14974   #
14975   # This test is therefore slightly more accurate than "test -f" to check for file presence.
14976   # It is also a way to make sure we got the proper file name for the real test later on.
14977   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14978   if test "x$test_shortpath" = x; then
14979     # Short path failed, file does not exist as specified.
14980     # Try adding .exe or .cmd
14981     if test -f "${new_path}.exe"; then
14982       input_to_shortpath="${new_path}.exe"
14983     elif test -f "${new_path}.cmd"; then
14984       input_to_shortpath="${new_path}.cmd"
14985     else
14986       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
14987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
14988       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
14989 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
14990       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14991     fi
14992   else
14993     input_to_shortpath="$new_path"
14994   fi
14995 
14996   # Call helper function which possibly converts this using DOS-style short mode.
14997   # If so, the updated path is stored in $new_path.
14998   new_path="$input_to_shortpath"
14999 
15000   input_path="$input_to_shortpath"
15001   # Check if we need to convert this using DOS-style short mode. If the path
15002   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15003   # take no chances and rewrite it.
15004   # Note: m4 eats our [], so we need to use [ and ] instead.
15005   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15006   if test "x$has_forbidden_chars" != x; then
15007     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15008     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15009     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15010     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15011       # Going to short mode and back again did indeed matter. Since short mode is
15012       # case insensitive, let's make it lowercase to improve readability.
15013       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15014       # Now convert it back to Unix-stile (cygpath)
15015       input_path=`$CYGPATH -u "$shortmode_path"`
15016       new_path="$input_path"
15017     fi
15018   fi
15019 
15020   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15021   if test "x$test_cygdrive_prefix" = x; then
15022     # As a simple fix, exclude /usr/bin since it's not a real path.
15023     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15024       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15025       # a path prefixed by /cygdrive for fixpath to work.
15026       new_path="$CYGWIN_ROOT_PATH$input_path"
15027     fi
15028   fi
15029 
15030   # remove trailing .exe if any
15031   new_path="${new_path/%.exe/}"
15032 
15033   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15034 
15035   # First separate the path from the arguments. This will split at the first
15036   # space.
15037   complete="$FOUND_MAKE"
15038   path="${complete%% *}"
15039   tmp="$complete EOL"
15040   arguments="${tmp#* }"
15041 
15042   # Input might be given as Windows format, start by converting to
15043   # unix format.
15044   new_path="$path"
15045 
15046   windows_path="$new_path"
15047   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15048     unix_path=`$CYGPATH -u "$windows_path"`
15049     new_path="$unix_path"
15050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15051     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15052     new_path="$unix_path"
15053   fi
15054 
15055 
15056   # Now try to locate executable using which
15057   new_path=`$WHICH "$new_path" 2> /dev/null`
15058 
15059   if test "x$new_path" = x; then
15060     # Oops. Which didn't find the executable.
15061     # The splitting of arguments from the executable at a space might have been incorrect,
15062     # since paths with space are more likely in Windows. Give it another try with the whole
15063     # argument.
15064     path="$complete"
15065     arguments="EOL"
15066     new_path="$path"
15067 
15068   windows_path="$new_path"
15069   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15070     unix_path=`$CYGPATH -u "$windows_path"`
15071     new_path="$unix_path"
15072   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15073     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15074     new_path="$unix_path"
15075   fi
15076 
15077 
15078     new_path=`$WHICH "$new_path" 2> /dev/null`
15079 
15080     if test "x$new_path" = x; then
15081       # It's still not found. Now this is an unrecoverable error.
15082       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15083 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15084       has_space=`$ECHO "$complete" | $GREP " "`
15085       if test "x$has_space" != x; then
15086         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15088       fi
15089       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15090     fi
15091   fi
15092 
15093   # Now new_path has a complete unix path to the binary
15094   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15095     # Keep paths in /bin as-is, but remove trailing .exe if any
15096     new_path="${new_path/%.exe/}"
15097     # Do not save /bin paths to all_fixpath_prefixes!
15098   else
15099     # Not in mixed or Windows style, start by that.
15100     new_path=`cmd //c echo $new_path`
15101 
15102   input_path="$new_path"
15103   # Check if we need to convert this using DOS-style short mode. If the path
15104   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15105   # take no chances and rewrite it.
15106   # Note: m4 eats our [], so we need to use [ and ] instead.
15107   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15108   if test "x$has_forbidden_chars" != x; then
15109     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15110     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15111   fi
15112 
15113     # Output is in $new_path
15114 
15115   windows_path="$new_path"
15116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15117     unix_path=`$CYGPATH -u "$windows_path"`
15118     new_path="$unix_path"
15119   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15120     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15121     new_path="$unix_path"
15122   fi
15123 
15124     # remove trailing .exe if any
15125     new_path="${new_path/%.exe/}"
15126 
15127     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15128     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15129   fi
15130 
15131   else
15132     # We're on a posix platform. Hooray! :)
15133     # First separate the path from the arguments. This will split at the first
15134     # space.
15135     complete="$FOUND_MAKE"
15136     path="${complete%% *}"
15137     tmp="$complete EOL"
15138     arguments="${tmp#* }"
15139 
15140     # Cannot rely on the command "which" here since it doesn't always work.
15141     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15142     if test -z "$is_absolute_path"; then
15143       # Path to executable is not absolute. Find it.
15144       IFS_save="$IFS"
15145       IFS=:
15146       for p in $PATH; do
15147         if test -f "$p/$path" && test -x "$p/$path"; then
15148           new_path="$p/$path"
15149           break
15150         fi
15151       done
15152       IFS="$IFS_save"
15153     else
15154       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15155 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15156       new_path="$path"
15157     fi
15158 
15159     if test "x$new_path" = x; then
15160       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15161 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15162       has_space=`$ECHO "$complete" | $GREP " "`
15163       if test "x$has_space" != x; then
15164         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15165 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15166       fi
15167       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15168     fi
15169   fi
15170 
15171   # Now join together the path and the arguments once again
15172   if test "x$arguments" != xEOL; then
15173     new_complete="$new_path ${arguments% *}"
15174   else
15175     new_complete="$new_path"
15176   fi
15177 
15178   if test "x$complete" != "x$new_complete"; then
15179     FOUND_MAKE="$new_complete"
15180     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15181 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15182   fi
15183 
15184         fi
15185       fi
15186     fi
15187   fi
15188 
15189     if test "x$FOUND_MAKE" = x; then
15190       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15191     fi
15192   else
15193     # Try our hardest to locate a correct version of GNU make
15194     for ac_prog in gmake
15195 do
15196   # Extract the first word of "$ac_prog", so it can be a program name with args.
15197 set dummy $ac_prog; ac_word=$2
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 $as_echo_n "checking for $ac_word... " >&6; }
15200 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15201   $as_echo_n "(cached) " >&6
15202 else
15203   case $CHECK_GMAKE in
15204   [\\/]* | ?:[\\/]*)
15205   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15206   ;;
15207   *)
15208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15210 do
15211   IFS=$as_save_IFS
15212   test -z "$as_dir" && as_dir=.
15213     for ac_exec_ext in '' $ac_executable_extensions; do
15214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15215     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15217     break 2
15218   fi
15219 done
15220   done
15221 IFS=$as_save_IFS
15222 
15223   ;;
15224 esac
15225 fi
15226 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15227 if test -n "$CHECK_GMAKE"; then
15228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15229 $as_echo "$CHECK_GMAKE" >&6; }
15230 else
15231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233 fi
15234 
15235 
15236   test -n "$CHECK_GMAKE" && break
15237 done
15238 
15239 
15240   MAKE_CANDIDATE=""$CHECK_GMAKE""
15241   DESCRIPTION="gmake in PATH"
15242   if test "x$MAKE_CANDIDATE" != x; then
15243     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15244 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15245     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15246     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15247     if test "x$IS_GNU_MAKE" = x; then
15248       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15249 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15250     else
15251       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15252       if test "x$IS_MODERN_MAKE" = x; then
15253         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15254 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15255       else
15256         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15257           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15258             MAKE_EXPECTED_ENV='cygwin'
15259           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15260             MAKE_EXPECTED_ENV='msys'
15261           else
15262             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15263           fi
15264           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15265           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15266         else
15267           # Not relevant for non-Windows
15268           IS_MAKE_CORRECT_ENV=true
15269         fi
15270         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15271           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15272 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15273         else
15274           FOUND_MAKE=$MAKE_CANDIDATE
15275 
15276   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15277 
15278   # First separate the path from the arguments. This will split at the first
15279   # space.
15280   complete="$FOUND_MAKE"
15281   path="${complete%% *}"
15282   tmp="$complete EOL"
15283   arguments="${tmp#* }"
15284 
15285   # Input might be given as Windows format, start by converting to
15286   # unix format.
15287   new_path=`$CYGPATH -u "$path"`
15288 
15289   # Now try to locate executable using which
15290   new_path=`$WHICH "$new_path" 2> /dev/null`
15291   # bat and cmd files are not always considered executable in cygwin causing which
15292   # to not find them
15293   if test "x$new_path" = x \
15294       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15295       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15296     new_path=`$CYGPATH -u "$path"`
15297   fi
15298   if test "x$new_path" = x; then
15299     # Oops. Which didn't find the executable.
15300     # The splitting of arguments from the executable at a space might have been incorrect,
15301     # since paths with space are more likely in Windows. Give it another try with the whole
15302     # argument.
15303     path="$complete"
15304     arguments="EOL"
15305     new_path=`$CYGPATH -u "$path"`
15306     new_path=`$WHICH "$new_path" 2> /dev/null`
15307     # bat and cmd files are not always considered executable in cygwin causing which
15308     # to not find them
15309     if test "x$new_path" = x \
15310         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15311         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15312       new_path=`$CYGPATH -u "$path"`
15313     fi
15314     if test "x$new_path" = x; then
15315       # It's still not found. Now this is an unrecoverable error.
15316       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15317 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15318       has_space=`$ECHO "$complete" | $GREP " "`
15319       if test "x$has_space" != x; then
15320         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15321 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15322       fi
15323       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15324     fi
15325   fi
15326 
15327   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15328   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15329   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15330   # "foo.exe" is OK but "foo" is an error.
15331   #
15332   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15333   # It is also a way to make sure we got the proper file name for the real test later on.
15334   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15335   if test "x$test_shortpath" = x; then
15336     # Short path failed, file does not exist as specified.
15337     # Try adding .exe or .cmd
15338     if test -f "${new_path}.exe"; then
15339       input_to_shortpath="${new_path}.exe"
15340     elif test -f "${new_path}.cmd"; then
15341       input_to_shortpath="${new_path}.cmd"
15342     else
15343       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15344 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15345       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15346 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15347       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15348     fi
15349   else
15350     input_to_shortpath="$new_path"
15351   fi
15352 
15353   # Call helper function which possibly converts this using DOS-style short mode.
15354   # If so, the updated path is stored in $new_path.
15355   new_path="$input_to_shortpath"
15356 
15357   input_path="$input_to_shortpath"
15358   # Check if we need to convert this using DOS-style short mode. If the path
15359   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15360   # take no chances and rewrite it.
15361   # Note: m4 eats our [], so we need to use [ and ] instead.
15362   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15363   if test "x$has_forbidden_chars" != x; then
15364     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15365     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15366     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15367     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15368       # Going to short mode and back again did indeed matter. Since short mode is
15369       # case insensitive, let's make it lowercase to improve readability.
15370       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15371       # Now convert it back to Unix-stile (cygpath)
15372       input_path=`$CYGPATH -u "$shortmode_path"`
15373       new_path="$input_path"
15374     fi
15375   fi
15376 
15377   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15378   if test "x$test_cygdrive_prefix" = x; then
15379     # As a simple fix, exclude /usr/bin since it's not a real path.
15380     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15381       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15382       # a path prefixed by /cygdrive for fixpath to work.
15383       new_path="$CYGWIN_ROOT_PATH$input_path"
15384     fi
15385   fi
15386 
15387   # remove trailing .exe if any
15388   new_path="${new_path/%.exe/}"
15389 
15390   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15391 
15392   # First separate the path from the arguments. This will split at the first
15393   # space.
15394   complete="$FOUND_MAKE"
15395   path="${complete%% *}"
15396   tmp="$complete EOL"
15397   arguments="${tmp#* }"
15398 
15399   # Input might be given as Windows format, start by converting to
15400   # unix format.
15401   new_path="$path"
15402 
15403   windows_path="$new_path"
15404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15405     unix_path=`$CYGPATH -u "$windows_path"`
15406     new_path="$unix_path"
15407   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15408     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15409     new_path="$unix_path"
15410   fi
15411 
15412 
15413   # Now try to locate executable using which
15414   new_path=`$WHICH "$new_path" 2> /dev/null`
15415 
15416   if test "x$new_path" = x; then
15417     # Oops. Which didn't find the executable.
15418     # The splitting of arguments from the executable at a space might have been incorrect,
15419     # since paths with space are more likely in Windows. Give it another try with the whole
15420     # argument.
15421     path="$complete"
15422     arguments="EOL"
15423     new_path="$path"
15424 
15425   windows_path="$new_path"
15426   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15427     unix_path=`$CYGPATH -u "$windows_path"`
15428     new_path="$unix_path"
15429   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15430     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15431     new_path="$unix_path"
15432   fi
15433 
15434 
15435     new_path=`$WHICH "$new_path" 2> /dev/null`
15436 
15437     if test "x$new_path" = x; then
15438       # It's still not found. Now this is an unrecoverable error.
15439       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15440 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15441       has_space=`$ECHO "$complete" | $GREP " "`
15442       if test "x$has_space" != x; then
15443         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15444 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15445       fi
15446       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15447     fi
15448   fi
15449 
15450   # Now new_path has a complete unix path to the binary
15451   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15452     # Keep paths in /bin as-is, but remove trailing .exe if any
15453     new_path="${new_path/%.exe/}"
15454     # Do not save /bin paths to all_fixpath_prefixes!
15455   else
15456     # Not in mixed or Windows style, start by that.
15457     new_path=`cmd //c echo $new_path`
15458 
15459   input_path="$new_path"
15460   # Check if we need to convert this using DOS-style short mode. If the path
15461   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15462   # take no chances and rewrite it.
15463   # Note: m4 eats our [], so we need to use [ and ] instead.
15464   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15465   if test "x$has_forbidden_chars" != x; then
15466     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15467     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15468   fi
15469 
15470     # Output is in $new_path
15471 
15472   windows_path="$new_path"
15473   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15474     unix_path=`$CYGPATH -u "$windows_path"`
15475     new_path="$unix_path"
15476   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15477     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15478     new_path="$unix_path"
15479   fi
15480 
15481     # remove trailing .exe if any
15482     new_path="${new_path/%.exe/}"
15483 
15484     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15485     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15486   fi
15487 
15488   else
15489     # We're on a posix platform. Hooray! :)
15490     # First separate the path from the arguments. This will split at the first
15491     # space.
15492     complete="$FOUND_MAKE"
15493     path="${complete%% *}"
15494     tmp="$complete EOL"
15495     arguments="${tmp#* }"
15496 
15497     # Cannot rely on the command "which" here since it doesn't always work.
15498     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15499     if test -z "$is_absolute_path"; then
15500       # Path to executable is not absolute. Find it.
15501       IFS_save="$IFS"
15502       IFS=:
15503       for p in $PATH; do
15504         if test -f "$p/$path" && test -x "$p/$path"; then
15505           new_path="$p/$path"
15506           break
15507         fi
15508       done
15509       IFS="$IFS_save"
15510     else
15511       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15512 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15513       new_path="$path"
15514     fi
15515 
15516     if test "x$new_path" = x; then
15517       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15518 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15519       has_space=`$ECHO "$complete" | $GREP " "`
15520       if test "x$has_space" != x; then
15521         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15522 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15523       fi
15524       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15525     fi
15526   fi
15527 
15528   # Now join together the path and the arguments once again
15529   if test "x$arguments" != xEOL; then
15530     new_complete="$new_path ${arguments% *}"
15531   else
15532     new_complete="$new_path"
15533   fi
15534 
15535   if test "x$complete" != "x$new_complete"; then
15536     FOUND_MAKE="$new_complete"
15537     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15538 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15539   fi
15540 
15541         fi
15542       fi
15543     fi
15544   fi
15545 
15546 
15547     if test "x$FOUND_MAKE" = x; then
15548       for ac_prog in make
15549 do
15550   # Extract the first word of "$ac_prog", so it can be a program name with args.
15551 set dummy $ac_prog; ac_word=$2
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15553 $as_echo_n "checking for $ac_word... " >&6; }
15554 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15555   $as_echo_n "(cached) " >&6
15556 else
15557   case $CHECK_MAKE in
15558   [\\/]* | ?:[\\/]*)
15559   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15560   ;;
15561   *)
15562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15563 for as_dir in $PATH
15564 do
15565   IFS=$as_save_IFS
15566   test -z "$as_dir" && as_dir=.
15567     for ac_exec_ext in '' $ac_executable_extensions; do
15568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15569     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15571     break 2
15572   fi
15573 done
15574   done
15575 IFS=$as_save_IFS
15576 
15577   ;;
15578 esac
15579 fi
15580 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15581 if test -n "$CHECK_MAKE"; then
15582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15583 $as_echo "$CHECK_MAKE" >&6; }
15584 else
15585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15586 $as_echo "no" >&6; }
15587 fi
15588 
15589 
15590   test -n "$CHECK_MAKE" && break
15591 done
15592 
15593 
15594   MAKE_CANDIDATE=""$CHECK_MAKE""
15595   DESCRIPTION="make in PATH"
15596   if test "x$MAKE_CANDIDATE" != x; then
15597     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15598 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15599     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15600     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15601     if test "x$IS_GNU_MAKE" = x; then
15602       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15603 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15604     else
15605       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15606       if test "x$IS_MODERN_MAKE" = x; then
15607         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15608 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15609       else
15610         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15611           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15612             MAKE_EXPECTED_ENV='cygwin'
15613           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15614             MAKE_EXPECTED_ENV='msys'
15615           else
15616             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15617           fi
15618           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15619           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15620         else
15621           # Not relevant for non-Windows
15622           IS_MAKE_CORRECT_ENV=true
15623         fi
15624         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15625           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15626 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15627         else
15628           FOUND_MAKE=$MAKE_CANDIDATE
15629 
15630   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15631 
15632   # First separate the path from the arguments. This will split at the first
15633   # space.
15634   complete="$FOUND_MAKE"
15635   path="${complete%% *}"
15636   tmp="$complete EOL"
15637   arguments="${tmp#* }"
15638 
15639   # Input might be given as Windows format, start by converting to
15640   # unix format.
15641   new_path=`$CYGPATH -u "$path"`
15642 
15643   # Now try to locate executable using which
15644   new_path=`$WHICH "$new_path" 2> /dev/null`
15645   # bat and cmd files are not always considered executable in cygwin causing which
15646   # to not find them
15647   if test "x$new_path" = x \
15648       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15649       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15650     new_path=`$CYGPATH -u "$path"`
15651   fi
15652   if test "x$new_path" = x; then
15653     # Oops. Which didn't find the executable.
15654     # The splitting of arguments from the executable at a space might have been incorrect,
15655     # since paths with space are more likely in Windows. Give it another try with the whole
15656     # argument.
15657     path="$complete"
15658     arguments="EOL"
15659     new_path=`$CYGPATH -u "$path"`
15660     new_path=`$WHICH "$new_path" 2> /dev/null`
15661     # bat and cmd files are not always considered executable in cygwin causing which
15662     # to not find them
15663     if test "x$new_path" = x \
15664         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15665         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15666       new_path=`$CYGPATH -u "$path"`
15667     fi
15668     if test "x$new_path" = x; then
15669       # It's still not found. Now this is an unrecoverable error.
15670       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15671 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15672       has_space=`$ECHO "$complete" | $GREP " "`
15673       if test "x$has_space" != x; then
15674         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15675 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15676       fi
15677       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15678     fi
15679   fi
15680 
15681   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15682   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15683   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15684   # "foo.exe" is OK but "foo" is an error.
15685   #
15686   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15687   # It is also a way to make sure we got the proper file name for the real test later on.
15688   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15689   if test "x$test_shortpath" = x; then
15690     # Short path failed, file does not exist as specified.
15691     # Try adding .exe or .cmd
15692     if test -f "${new_path}.exe"; then
15693       input_to_shortpath="${new_path}.exe"
15694     elif test -f "${new_path}.cmd"; then
15695       input_to_shortpath="${new_path}.cmd"
15696     else
15697       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15698 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15699       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15700 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15701       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15702     fi
15703   else
15704     input_to_shortpath="$new_path"
15705   fi
15706 
15707   # Call helper function which possibly converts this using DOS-style short mode.
15708   # If so, the updated path is stored in $new_path.
15709   new_path="$input_to_shortpath"
15710 
15711   input_path="$input_to_shortpath"
15712   # Check if we need to convert this using DOS-style short mode. If the path
15713   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15714   # take no chances and rewrite it.
15715   # Note: m4 eats our [], so we need to use [ and ] instead.
15716   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15717   if test "x$has_forbidden_chars" != x; then
15718     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15719     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15720     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15721     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15722       # Going to short mode and back again did indeed matter. Since short mode is
15723       # case insensitive, let's make it lowercase to improve readability.
15724       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15725       # Now convert it back to Unix-stile (cygpath)
15726       input_path=`$CYGPATH -u "$shortmode_path"`
15727       new_path="$input_path"
15728     fi
15729   fi
15730 
15731   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15732   if test "x$test_cygdrive_prefix" = x; then
15733     # As a simple fix, exclude /usr/bin since it's not a real path.
15734     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15735       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15736       # a path prefixed by /cygdrive for fixpath to work.
15737       new_path="$CYGWIN_ROOT_PATH$input_path"
15738     fi
15739   fi
15740 
15741   # remove trailing .exe if any
15742   new_path="${new_path/%.exe/}"
15743 
15744   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15745 
15746   # First separate the path from the arguments. This will split at the first
15747   # space.
15748   complete="$FOUND_MAKE"
15749   path="${complete%% *}"
15750   tmp="$complete EOL"
15751   arguments="${tmp#* }"
15752 
15753   # Input might be given as Windows format, start by converting to
15754   # unix format.
15755   new_path="$path"
15756 
15757   windows_path="$new_path"
15758   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15759     unix_path=`$CYGPATH -u "$windows_path"`
15760     new_path="$unix_path"
15761   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15762     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15763     new_path="$unix_path"
15764   fi
15765 
15766 
15767   # Now try to locate executable using which
15768   new_path=`$WHICH "$new_path" 2> /dev/null`
15769 
15770   if test "x$new_path" = x; then
15771     # Oops. Which didn't find the executable.
15772     # The splitting of arguments from the executable at a space might have been incorrect,
15773     # since paths with space are more likely in Windows. Give it another try with the whole
15774     # argument.
15775     path="$complete"
15776     arguments="EOL"
15777     new_path="$path"
15778 
15779   windows_path="$new_path"
15780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15781     unix_path=`$CYGPATH -u "$windows_path"`
15782     new_path="$unix_path"
15783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15785     new_path="$unix_path"
15786   fi
15787 
15788 
15789     new_path=`$WHICH "$new_path" 2> /dev/null`
15790 
15791     if test "x$new_path" = x; then
15792       # It's still not found. Now this is an unrecoverable error.
15793       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15794 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15795       has_space=`$ECHO "$complete" | $GREP " "`
15796       if test "x$has_space" != x; then
15797         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15798 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15799       fi
15800       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15801     fi
15802   fi
15803 
15804   # Now new_path has a complete unix path to the binary
15805   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15806     # Keep paths in /bin as-is, but remove trailing .exe if any
15807     new_path="${new_path/%.exe/}"
15808     # Do not save /bin paths to all_fixpath_prefixes!
15809   else
15810     # Not in mixed or Windows style, start by that.
15811     new_path=`cmd //c echo $new_path`
15812 
15813   input_path="$new_path"
15814   # Check if we need to convert this using DOS-style short mode. If the path
15815   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15816   # take no chances and rewrite it.
15817   # Note: m4 eats our [], so we need to use [ and ] instead.
15818   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15819   if test "x$has_forbidden_chars" != x; then
15820     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15821     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15822   fi
15823 
15824     # Output is in $new_path
15825 
15826   windows_path="$new_path"
15827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15828     unix_path=`$CYGPATH -u "$windows_path"`
15829     new_path="$unix_path"
15830   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15831     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15832     new_path="$unix_path"
15833   fi
15834 
15835     # remove trailing .exe if any
15836     new_path="${new_path/%.exe/}"
15837 
15838     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15839     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15840   fi
15841 
15842   else
15843     # We're on a posix platform. Hooray! :)
15844     # First separate the path from the arguments. This will split at the first
15845     # space.
15846     complete="$FOUND_MAKE"
15847     path="${complete%% *}"
15848     tmp="$complete EOL"
15849     arguments="${tmp#* }"
15850 
15851     # Cannot rely on the command "which" here since it doesn't always work.
15852     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15853     if test -z "$is_absolute_path"; then
15854       # Path to executable is not absolute. Find it.
15855       IFS_save="$IFS"
15856       IFS=:
15857       for p in $PATH; do
15858         if test -f "$p/$path" && test -x "$p/$path"; then
15859           new_path="$p/$path"
15860           break
15861         fi
15862       done
15863       IFS="$IFS_save"
15864     else
15865       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15866 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15867       new_path="$path"
15868     fi
15869 
15870     if test "x$new_path" = x; then
15871       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15872 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15873       has_space=`$ECHO "$complete" | $GREP " "`
15874       if test "x$has_space" != x; then
15875         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15876 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15877       fi
15878       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15879     fi
15880   fi
15881 
15882   # Now join together the path and the arguments once again
15883   if test "x$arguments" != xEOL; then
15884     new_complete="$new_path ${arguments% *}"
15885   else
15886     new_complete="$new_path"
15887   fi
15888 
15889   if test "x$complete" != "x$new_complete"; then
15890     FOUND_MAKE="$new_complete"
15891     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15892 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15893   fi
15894 
15895         fi
15896       fi
15897     fi
15898   fi
15899 
15900     fi
15901 
15902     if test "x$FOUND_MAKE" = x; then
15903       if test "x$TOOLS_DIR" != x; then
15904         # We have a tools-dir, check that as well before giving up.
15905         OLD_PATH=$PATH
15906         PATH=$TOOLS_DIR:$PATH
15907         for ac_prog in gmake
15908 do
15909   # Extract the first word of "$ac_prog", so it can be a program name with args.
15910 set dummy $ac_prog; ac_word=$2
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15912 $as_echo_n "checking for $ac_word... " >&6; }
15913 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
15914   $as_echo_n "(cached) " >&6
15915 else
15916   case $CHECK_TOOLSDIR_GMAKE in
15917   [\\/]* | ?:[\\/]*)
15918   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
15919   ;;
15920   *)
15921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15922 for as_dir in $PATH
15923 do
15924   IFS=$as_save_IFS
15925   test -z "$as_dir" && as_dir=.
15926     for ac_exec_ext in '' $ac_executable_extensions; do
15927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15928     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15930     break 2
15931   fi
15932 done
15933   done
15934 IFS=$as_save_IFS
15935 
15936   ;;
15937 esac
15938 fi
15939 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
15940 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
15941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
15942 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
15943 else
15944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945 $as_echo "no" >&6; }
15946 fi
15947 
15948 
15949   test -n "$CHECK_TOOLSDIR_GMAKE" && break
15950 done
15951 
15952 
15953   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
15954   DESCRIPTION="gmake in tools-dir"
15955   if test "x$MAKE_CANDIDATE" != x; then
15956     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15957 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15958     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15959     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15960     if test "x$IS_GNU_MAKE" = x; then
15961       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15962 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15963     else
15964       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15965       if test "x$IS_MODERN_MAKE" = x; then
15966         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15967 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15968       else
15969         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15970           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15971             MAKE_EXPECTED_ENV='cygwin'
15972           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15973             MAKE_EXPECTED_ENV='msys'
15974           else
15975             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15976           fi
15977           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15978           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15979         else
15980           # Not relevant for non-Windows
15981           IS_MAKE_CORRECT_ENV=true
15982         fi
15983         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15984           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15985 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15986         else
15987           FOUND_MAKE=$MAKE_CANDIDATE
15988 
15989   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15990 
15991   # First separate the path from the arguments. This will split at the first
15992   # space.
15993   complete="$FOUND_MAKE"
15994   path="${complete%% *}"
15995   tmp="$complete EOL"
15996   arguments="${tmp#* }"
15997 
15998   # Input might be given as Windows format, start by converting to
15999   # unix format.
16000   new_path=`$CYGPATH -u "$path"`
16001 
16002   # Now try to locate executable using which
16003   new_path=`$WHICH "$new_path" 2> /dev/null`
16004   # bat and cmd files are not always considered executable in cygwin causing which
16005   # to not find them
16006   if test "x$new_path" = x \
16007       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16008       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16009     new_path=`$CYGPATH -u "$path"`
16010   fi
16011   if test "x$new_path" = x; then
16012     # Oops. Which didn't find the executable.
16013     # The splitting of arguments from the executable at a space might have been incorrect,
16014     # since paths with space are more likely in Windows. Give it another try with the whole
16015     # argument.
16016     path="$complete"
16017     arguments="EOL"
16018     new_path=`$CYGPATH -u "$path"`
16019     new_path=`$WHICH "$new_path" 2> /dev/null`
16020     # bat and cmd files are not always considered executable in cygwin causing which
16021     # to not find them
16022     if test "x$new_path" = x \
16023         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16024         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16025       new_path=`$CYGPATH -u "$path"`
16026     fi
16027     if test "x$new_path" = x; then
16028       # It's still not found. Now this is an unrecoverable error.
16029       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16030 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16031       has_space=`$ECHO "$complete" | $GREP " "`
16032       if test "x$has_space" != x; then
16033         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16034 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16035       fi
16036       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16037     fi
16038   fi
16039 
16040   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16041   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16042   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16043   # "foo.exe" is OK but "foo" is an error.
16044   #
16045   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16046   # It is also a way to make sure we got the proper file name for the real test later on.
16047   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16048   if test "x$test_shortpath" = x; then
16049     # Short path failed, file does not exist as specified.
16050     # Try adding .exe or .cmd
16051     if test -f "${new_path}.exe"; then
16052       input_to_shortpath="${new_path}.exe"
16053     elif test -f "${new_path}.cmd"; then
16054       input_to_shortpath="${new_path}.cmd"
16055     else
16056       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16057 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16058       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16059 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16060       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16061     fi
16062   else
16063     input_to_shortpath="$new_path"
16064   fi
16065 
16066   # Call helper function which possibly converts this using DOS-style short mode.
16067   # If so, the updated path is stored in $new_path.
16068   new_path="$input_to_shortpath"
16069 
16070   input_path="$input_to_shortpath"
16071   # Check if we need to convert this using DOS-style short mode. If the path
16072   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16073   # take no chances and rewrite it.
16074   # Note: m4 eats our [], so we need to use [ and ] instead.
16075   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16076   if test "x$has_forbidden_chars" != x; then
16077     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16078     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16079     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16080     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16081       # Going to short mode and back again did indeed matter. Since short mode is
16082       # case insensitive, let's make it lowercase to improve readability.
16083       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16084       # Now convert it back to Unix-stile (cygpath)
16085       input_path=`$CYGPATH -u "$shortmode_path"`
16086       new_path="$input_path"
16087     fi
16088   fi
16089 
16090   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16091   if test "x$test_cygdrive_prefix" = x; then
16092     # As a simple fix, exclude /usr/bin since it's not a real path.
16093     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16094       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16095       # a path prefixed by /cygdrive for fixpath to work.
16096       new_path="$CYGWIN_ROOT_PATH$input_path"
16097     fi
16098   fi
16099 
16100   # remove trailing .exe if any
16101   new_path="${new_path/%.exe/}"
16102 
16103   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16104 
16105   # First separate the path from the arguments. This will split at the first
16106   # space.
16107   complete="$FOUND_MAKE"
16108   path="${complete%% *}"
16109   tmp="$complete EOL"
16110   arguments="${tmp#* }"
16111 
16112   # Input might be given as Windows format, start by converting to
16113   # unix format.
16114   new_path="$path"
16115 
16116   windows_path="$new_path"
16117   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16118     unix_path=`$CYGPATH -u "$windows_path"`
16119     new_path="$unix_path"
16120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16121     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16122     new_path="$unix_path"
16123   fi
16124 
16125 
16126   # Now try to locate executable using which
16127   new_path=`$WHICH "$new_path" 2> /dev/null`
16128 
16129   if test "x$new_path" = x; then
16130     # Oops. Which didn't find the executable.
16131     # The splitting of arguments from the executable at a space might have been incorrect,
16132     # since paths with space are more likely in Windows. Give it another try with the whole
16133     # argument.
16134     path="$complete"
16135     arguments="EOL"
16136     new_path="$path"
16137 
16138   windows_path="$new_path"
16139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16140     unix_path=`$CYGPATH -u "$windows_path"`
16141     new_path="$unix_path"
16142   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16143     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16144     new_path="$unix_path"
16145   fi
16146 
16147 
16148     new_path=`$WHICH "$new_path" 2> /dev/null`
16149 
16150     if test "x$new_path" = x; then
16151       # It's still not found. Now this is an unrecoverable error.
16152       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16153 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16154       has_space=`$ECHO "$complete" | $GREP " "`
16155       if test "x$has_space" != x; then
16156         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16157 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16158       fi
16159       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16160     fi
16161   fi
16162 
16163   # Now new_path has a complete unix path to the binary
16164   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16165     # Keep paths in /bin as-is, but remove trailing .exe if any
16166     new_path="${new_path/%.exe/}"
16167     # Do not save /bin paths to all_fixpath_prefixes!
16168   else
16169     # Not in mixed or Windows style, start by that.
16170     new_path=`cmd //c echo $new_path`
16171 
16172   input_path="$new_path"
16173   # Check if we need to convert this using DOS-style short mode. If the path
16174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16175   # take no chances and rewrite it.
16176   # Note: m4 eats our [], so we need to use [ and ] instead.
16177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16178   if test "x$has_forbidden_chars" != x; then
16179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16180     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16181   fi
16182 
16183     # Output is in $new_path
16184 
16185   windows_path="$new_path"
16186   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16187     unix_path=`$CYGPATH -u "$windows_path"`
16188     new_path="$unix_path"
16189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16190     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16191     new_path="$unix_path"
16192   fi
16193 
16194     # remove trailing .exe if any
16195     new_path="${new_path/%.exe/}"
16196 
16197     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16198     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16199   fi
16200 
16201   else
16202     # We're on a posix platform. Hooray! :)
16203     # First separate the path from the arguments. This will split at the first
16204     # space.
16205     complete="$FOUND_MAKE"
16206     path="${complete%% *}"
16207     tmp="$complete EOL"
16208     arguments="${tmp#* }"
16209 
16210     # Cannot rely on the command "which" here since it doesn't always work.
16211     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16212     if test -z "$is_absolute_path"; then
16213       # Path to executable is not absolute. Find it.
16214       IFS_save="$IFS"
16215       IFS=:
16216       for p in $PATH; do
16217         if test -f "$p/$path" && test -x "$p/$path"; then
16218           new_path="$p/$path"
16219           break
16220         fi
16221       done
16222       IFS="$IFS_save"
16223     else
16224       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16225 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16226       new_path="$path"
16227     fi
16228 
16229     if test "x$new_path" = x; then
16230       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16231 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16232       has_space=`$ECHO "$complete" | $GREP " "`
16233       if test "x$has_space" != x; then
16234         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16235 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16236       fi
16237       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16238     fi
16239   fi
16240 
16241   # Now join together the path and the arguments once again
16242   if test "x$arguments" != xEOL; then
16243     new_complete="$new_path ${arguments% *}"
16244   else
16245     new_complete="$new_path"
16246   fi
16247 
16248   if test "x$complete" != "x$new_complete"; then
16249     FOUND_MAKE="$new_complete"
16250     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16251 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16252   fi
16253 
16254         fi
16255       fi
16256     fi
16257   fi
16258 
16259         if test "x$FOUND_MAKE" = x; then
16260           for ac_prog in make
16261 do
16262   # Extract the first word of "$ac_prog", so it can be a program name with args.
16263 set dummy $ac_prog; ac_word=$2
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16265 $as_echo_n "checking for $ac_word... " >&6; }
16266 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16267   $as_echo_n "(cached) " >&6
16268 else
16269   case $CHECK_TOOLSDIR_MAKE in
16270   [\\/]* | ?:[\\/]*)
16271   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16272   ;;
16273   *)
16274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16275 for as_dir in $PATH
16276 do
16277   IFS=$as_save_IFS
16278   test -z "$as_dir" && as_dir=.
16279     for ac_exec_ext in '' $ac_executable_extensions; do
16280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16281     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16283     break 2
16284   fi
16285 done
16286   done
16287 IFS=$as_save_IFS
16288 
16289   ;;
16290 esac
16291 fi
16292 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16293 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16295 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16296 else
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298 $as_echo "no" >&6; }
16299 fi
16300 
16301 
16302   test -n "$CHECK_TOOLSDIR_MAKE" && break
16303 done
16304 
16305 
16306   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16307   DESCRIPTION="make in tools-dir"
16308   if test "x$MAKE_CANDIDATE" != x; then
16309     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16310 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16311     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16312     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16313     if test "x$IS_GNU_MAKE" = x; then
16314       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16315 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16316     else
16317       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16318       if test "x$IS_MODERN_MAKE" = x; then
16319         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16320 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16321       else
16322         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16323           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16324             MAKE_EXPECTED_ENV='cygwin'
16325           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16326             MAKE_EXPECTED_ENV='msys'
16327           else
16328             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16329           fi
16330           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16331           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16332         else
16333           # Not relevant for non-Windows
16334           IS_MAKE_CORRECT_ENV=true
16335         fi
16336         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16337           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16338 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16339         else
16340           FOUND_MAKE=$MAKE_CANDIDATE
16341 
16342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16343 
16344   # First separate the path from the arguments. This will split at the first
16345   # space.
16346   complete="$FOUND_MAKE"
16347   path="${complete%% *}"
16348   tmp="$complete EOL"
16349   arguments="${tmp#* }"
16350 
16351   # Input might be given as Windows format, start by converting to
16352   # unix format.
16353   new_path=`$CYGPATH -u "$path"`
16354 
16355   # Now try to locate executable using which
16356   new_path=`$WHICH "$new_path" 2> /dev/null`
16357   # bat and cmd files are not always considered executable in cygwin causing which
16358   # to not find them
16359   if test "x$new_path" = x \
16360       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16361       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16362     new_path=`$CYGPATH -u "$path"`
16363   fi
16364   if test "x$new_path" = x; then
16365     # Oops. Which didn't find the executable.
16366     # The splitting of arguments from the executable at a space might have been incorrect,
16367     # since paths with space are more likely in Windows. Give it another try with the whole
16368     # argument.
16369     path="$complete"
16370     arguments="EOL"
16371     new_path=`$CYGPATH -u "$path"`
16372     new_path=`$WHICH "$new_path" 2> /dev/null`
16373     # bat and cmd files are not always considered executable in cygwin causing which
16374     # to not find them
16375     if test "x$new_path" = x \
16376         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16377         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16378       new_path=`$CYGPATH -u "$path"`
16379     fi
16380     if test "x$new_path" = x; then
16381       # It's still not found. Now this is an unrecoverable error.
16382       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16383 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16384       has_space=`$ECHO "$complete" | $GREP " "`
16385       if test "x$has_space" != x; then
16386         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16387 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16388       fi
16389       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16390     fi
16391   fi
16392 
16393   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16394   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16395   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16396   # "foo.exe" is OK but "foo" is an error.
16397   #
16398   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16399   # It is also a way to make sure we got the proper file name for the real test later on.
16400   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16401   if test "x$test_shortpath" = x; then
16402     # Short path failed, file does not exist as specified.
16403     # Try adding .exe or .cmd
16404     if test -f "${new_path}.exe"; then
16405       input_to_shortpath="${new_path}.exe"
16406     elif test -f "${new_path}.cmd"; then
16407       input_to_shortpath="${new_path}.cmd"
16408     else
16409       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16410 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16411       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16412 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16413       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16414     fi
16415   else
16416     input_to_shortpath="$new_path"
16417   fi
16418 
16419   # Call helper function which possibly converts this using DOS-style short mode.
16420   # If so, the updated path is stored in $new_path.
16421   new_path="$input_to_shortpath"
16422 
16423   input_path="$input_to_shortpath"
16424   # Check if we need to convert this using DOS-style short mode. If the path
16425   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16426   # take no chances and rewrite it.
16427   # Note: m4 eats our [], so we need to use [ and ] instead.
16428   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16429   if test "x$has_forbidden_chars" != x; then
16430     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16431     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16432     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16433     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16434       # Going to short mode and back again did indeed matter. Since short mode is
16435       # case insensitive, let's make it lowercase to improve readability.
16436       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16437       # Now convert it back to Unix-stile (cygpath)
16438       input_path=`$CYGPATH -u "$shortmode_path"`
16439       new_path="$input_path"
16440     fi
16441   fi
16442 
16443   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16444   if test "x$test_cygdrive_prefix" = x; then
16445     # As a simple fix, exclude /usr/bin since it's not a real path.
16446     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16447       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16448       # a path prefixed by /cygdrive for fixpath to work.
16449       new_path="$CYGWIN_ROOT_PATH$input_path"
16450     fi
16451   fi
16452 
16453   # remove trailing .exe if any
16454   new_path="${new_path/%.exe/}"
16455 
16456   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16457 
16458   # First separate the path from the arguments. This will split at the first
16459   # space.
16460   complete="$FOUND_MAKE"
16461   path="${complete%% *}"
16462   tmp="$complete EOL"
16463   arguments="${tmp#* }"
16464 
16465   # Input might be given as Windows format, start by converting to
16466   # unix format.
16467   new_path="$path"
16468 
16469   windows_path="$new_path"
16470   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16471     unix_path=`$CYGPATH -u "$windows_path"`
16472     new_path="$unix_path"
16473   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16474     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16475     new_path="$unix_path"
16476   fi
16477 
16478 
16479   # Now try to locate executable using which
16480   new_path=`$WHICH "$new_path" 2> /dev/null`
16481 
16482   if test "x$new_path" = x; then
16483     # Oops. Which didn't find the executable.
16484     # The splitting of arguments from the executable at a space might have been incorrect,
16485     # since paths with space are more likely in Windows. Give it another try with the whole
16486     # argument.
16487     path="$complete"
16488     arguments="EOL"
16489     new_path="$path"
16490 
16491   windows_path="$new_path"
16492   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16493     unix_path=`$CYGPATH -u "$windows_path"`
16494     new_path="$unix_path"
16495   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16496     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16497     new_path="$unix_path"
16498   fi
16499 
16500 
16501     new_path=`$WHICH "$new_path" 2> /dev/null`
16502 
16503     if test "x$new_path" = x; then
16504       # It's still not found. Now this is an unrecoverable error.
16505       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16506 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16507       has_space=`$ECHO "$complete" | $GREP " "`
16508       if test "x$has_space" != x; then
16509         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16510 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16511       fi
16512       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16513     fi
16514   fi
16515 
16516   # Now new_path has a complete unix path to the binary
16517   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16518     # Keep paths in /bin as-is, but remove trailing .exe if any
16519     new_path="${new_path/%.exe/}"
16520     # Do not save /bin paths to all_fixpath_prefixes!
16521   else
16522     # Not in mixed or Windows style, start by that.
16523     new_path=`cmd //c echo $new_path`
16524 
16525   input_path="$new_path"
16526   # Check if we need to convert this using DOS-style short mode. If the path
16527   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16528   # take no chances and rewrite it.
16529   # Note: m4 eats our [], so we need to use [ and ] instead.
16530   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16531   if test "x$has_forbidden_chars" != x; then
16532     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16533     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16534   fi
16535 
16536     # Output is in $new_path
16537 
16538   windows_path="$new_path"
16539   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16540     unix_path=`$CYGPATH -u "$windows_path"`
16541     new_path="$unix_path"
16542   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16543     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16544     new_path="$unix_path"
16545   fi
16546 
16547     # remove trailing .exe if any
16548     new_path="${new_path/%.exe/}"
16549 
16550     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16551     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16552   fi
16553 
16554   else
16555     # We're on a posix platform. Hooray! :)
16556     # First separate the path from the arguments. This will split at the first
16557     # space.
16558     complete="$FOUND_MAKE"
16559     path="${complete%% *}"
16560     tmp="$complete EOL"
16561     arguments="${tmp#* }"
16562 
16563     # Cannot rely on the command "which" here since it doesn't always work.
16564     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16565     if test -z "$is_absolute_path"; then
16566       # Path to executable is not absolute. Find it.
16567       IFS_save="$IFS"
16568       IFS=:
16569       for p in $PATH; do
16570         if test -f "$p/$path" && test -x "$p/$path"; then
16571           new_path="$p/$path"
16572           break
16573         fi
16574       done
16575       IFS="$IFS_save"
16576     else
16577       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16578 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16579       new_path="$path"
16580     fi
16581 
16582     if test "x$new_path" = x; then
16583       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16584 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16585       has_space=`$ECHO "$complete" | $GREP " "`
16586       if test "x$has_space" != x; then
16587         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16588 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16589       fi
16590       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16591     fi
16592   fi
16593 
16594   # Now join together the path and the arguments once again
16595   if test "x$arguments" != xEOL; then
16596     new_complete="$new_path ${arguments% *}"
16597   else
16598     new_complete="$new_path"
16599   fi
16600 
16601   if test "x$complete" != "x$new_complete"; then
16602     FOUND_MAKE="$new_complete"
16603     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16604 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16605   fi
16606 
16607         fi
16608       fi
16609     fi
16610   fi
16611 
16612         fi
16613         PATH=$OLD_PATH
16614       fi
16615     fi
16616 
16617     if test "x$FOUND_MAKE" = x; then
16618       as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
16619     fi
16620   fi
16621 
16622   MAKE=$FOUND_MAKE
16623 
16624   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16625 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16626 
16627 
16628 
16629   # Test if find supports -delete
16630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16631 $as_echo_n "checking if find supports -delete... " >&6; }
16632   FIND_DELETE="-delete"
16633 
16634   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16635 
16636   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16637 
16638   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16639   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16640     # No, it does not.
16641     rm $DELETEDIR/TestIfFindSupportsDelete
16642     FIND_DELETE="-exec rm \{\} \+"
16643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16645   else
16646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647 $as_echo "yes" >&6; }
16648   fi
16649   rmdir $DELETEDIR
16650 
16651 
16652 
16653   # These tools might not be installed by default,
16654   # need hint on how to install them.
16655 
16656 
16657 
16658   # Publish this variable in the help.
16659 
16660 
16661   if test "x$UNZIP" = x; then
16662     # The variable is not set by user, try to locate tool using the code snippet
16663     for ac_prog in unzip
16664 do
16665   # Extract the first word of "$ac_prog", so it can be a program name with args.
16666 set dummy $ac_prog; ac_word=$2
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16668 $as_echo_n "checking for $ac_word... " >&6; }
16669 if ${ac_cv_path_UNZIP+:} false; then :
16670   $as_echo_n "(cached) " >&6
16671 else
16672   case $UNZIP in
16673   [\\/]* | ?:[\\/]*)
16674   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16675   ;;
16676   *)
16677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16678 for as_dir in $PATH
16679 do
16680   IFS=$as_save_IFS
16681   test -z "$as_dir" && as_dir=.
16682     for ac_exec_ext in '' $ac_executable_extensions; do
16683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16684     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16686     break 2
16687   fi
16688 done
16689   done
16690 IFS=$as_save_IFS
16691 
16692   ;;
16693 esac
16694 fi
16695 UNZIP=$ac_cv_path_UNZIP
16696 if test -n "$UNZIP"; then
16697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16698 $as_echo "$UNZIP" >&6; }
16699 else
16700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701 $as_echo "no" >&6; }
16702 fi
16703 
16704 
16705   test -n "$UNZIP" && break
16706 done
16707 
16708   else
16709     # The variable is set, but is it from the command line or the environment?
16710 
16711     # Try to remove the string !UNZIP! from our list.
16712     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16713     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16714       # If it failed, the variable was not from the command line. Ignore it,
16715       # but warn the user (except for BASH, which is always set by the calling BASH).
16716       if test "xUNZIP" != xBASH; then
16717         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16718 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16719       fi
16720       # Try to locate tool using the code snippet
16721       for ac_prog in unzip
16722 do
16723   # Extract the first word of "$ac_prog", so it can be a program name with args.
16724 set dummy $ac_prog; ac_word=$2
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16726 $as_echo_n "checking for $ac_word... " >&6; }
16727 if ${ac_cv_path_UNZIP+:} false; then :
16728   $as_echo_n "(cached) " >&6
16729 else
16730   case $UNZIP in
16731   [\\/]* | ?:[\\/]*)
16732   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16733   ;;
16734   *)
16735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16736 for as_dir in $PATH
16737 do
16738   IFS=$as_save_IFS
16739   test -z "$as_dir" && as_dir=.
16740     for ac_exec_ext in '' $ac_executable_extensions; do
16741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16742     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16744     break 2
16745   fi
16746 done
16747   done
16748 IFS=$as_save_IFS
16749 
16750   ;;
16751 esac
16752 fi
16753 UNZIP=$ac_cv_path_UNZIP
16754 if test -n "$UNZIP"; then
16755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16756 $as_echo "$UNZIP" >&6; }
16757 else
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16759 $as_echo "no" >&6; }
16760 fi
16761 
16762 
16763   test -n "$UNZIP" && break
16764 done
16765 
16766     else
16767       # If it succeeded, then it was overridden by the user. We will use it
16768       # for the tool.
16769 
16770       # First remove it from the list of overridden variables, so we can test
16771       # for unknown variables in the end.
16772       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16773 
16774       # Check if the provided tool contains a complete path.
16775       tool_specified="$UNZIP"
16776       tool_basename="${tool_specified##*/}"
16777       if test "x$tool_basename" = "x$tool_specified"; then
16778         # A command without a complete path is provided, search $PATH.
16779         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16780 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16781         # Extract the first word of "$tool_basename", so it can be a program name with args.
16782 set dummy $tool_basename; ac_word=$2
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16784 $as_echo_n "checking for $ac_word... " >&6; }
16785 if ${ac_cv_path_UNZIP+:} false; then :
16786   $as_echo_n "(cached) " >&6
16787 else
16788   case $UNZIP in
16789   [\\/]* | ?:[\\/]*)
16790   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16791   ;;
16792   *)
16793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16794 for as_dir in $PATH
16795 do
16796   IFS=$as_save_IFS
16797   test -z "$as_dir" && as_dir=.
16798     for ac_exec_ext in '' $ac_executable_extensions; do
16799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16800     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16802     break 2
16803   fi
16804 done
16805   done
16806 IFS=$as_save_IFS
16807 
16808   ;;
16809 esac
16810 fi
16811 UNZIP=$ac_cv_path_UNZIP
16812 if test -n "$UNZIP"; then
16813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16814 $as_echo "$UNZIP" >&6; }
16815 else
16816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16817 $as_echo "no" >&6; }
16818 fi
16819 
16820 
16821         if test "x$UNZIP" = x; then
16822           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16823         fi
16824       else
16825         # Otherwise we believe it is a complete path. Use it as it is.
16826         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16827 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16829 $as_echo_n "checking for UNZIP... " >&6; }
16830         if test ! -x "$tool_specified"; then
16831           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16832 $as_echo "not found" >&6; }
16833           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
16834         fi
16835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
16836 $as_echo "$tool_specified" >&6; }
16837       fi
16838     fi
16839   fi
16840 
16841 
16842 
16843   if test "x$UNZIP" = x; then
16844     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
16845   fi
16846 
16847 
16848 
16849 
16850 
16851   # Publish this variable in the help.
16852 
16853 
16854   if test "x$ZIP" = x; then
16855     # The variable is not set by user, try to locate tool using the code snippet
16856     for ac_prog in zip
16857 do
16858   # Extract the first word of "$ac_prog", so it can be a program name with args.
16859 set dummy $ac_prog; ac_word=$2
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16861 $as_echo_n "checking for $ac_word... " >&6; }
16862 if ${ac_cv_path_ZIP+:} false; then :
16863   $as_echo_n "(cached) " >&6
16864 else
16865   case $ZIP in
16866   [\\/]* | ?:[\\/]*)
16867   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16868   ;;
16869   *)
16870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16872 do
16873   IFS=$as_save_IFS
16874   test -z "$as_dir" && as_dir=.
16875     for ac_exec_ext in '' $ac_executable_extensions; do
16876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16877     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16879     break 2
16880   fi
16881 done
16882   done
16883 IFS=$as_save_IFS
16884 
16885   ;;
16886 esac
16887 fi
16888 ZIP=$ac_cv_path_ZIP
16889 if test -n "$ZIP"; then
16890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16891 $as_echo "$ZIP" >&6; }
16892 else
16893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894 $as_echo "no" >&6; }
16895 fi
16896 
16897 
16898   test -n "$ZIP" && break
16899 done
16900 
16901   else
16902     # The variable is set, but is it from the command line or the environment?
16903 
16904     # Try to remove the string !ZIP! from our list.
16905     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
16906     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16907       # If it failed, the variable was not from the command line. Ignore it,
16908       # but warn the user (except for BASH, which is always set by the calling BASH).
16909       if test "xZIP" != xBASH; then
16910         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
16911 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
16912       fi
16913       # Try to locate tool using the code snippet
16914       for ac_prog in zip
16915 do
16916   # Extract the first word of "$ac_prog", so it can be a program name with args.
16917 set dummy $ac_prog; ac_word=$2
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16919 $as_echo_n "checking for $ac_word... " >&6; }
16920 if ${ac_cv_path_ZIP+:} false; then :
16921   $as_echo_n "(cached) " >&6
16922 else
16923   case $ZIP in
16924   [\\/]* | ?:[\\/]*)
16925   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16926   ;;
16927   *)
16928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16929 for as_dir in $PATH
16930 do
16931   IFS=$as_save_IFS
16932   test -z "$as_dir" && as_dir=.
16933     for ac_exec_ext in '' $ac_executable_extensions; do
16934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16935     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16937     break 2
16938   fi
16939 done
16940   done
16941 IFS=$as_save_IFS
16942 
16943   ;;
16944 esac
16945 fi
16946 ZIP=$ac_cv_path_ZIP
16947 if test -n "$ZIP"; then
16948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16949 $as_echo "$ZIP" >&6; }
16950 else
16951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16952 $as_echo "no" >&6; }
16953 fi
16954 
16955 
16956   test -n "$ZIP" && break
16957 done
16958 
16959     else
16960       # If it succeeded, then it was overridden by the user. We will use it
16961       # for the tool.
16962 
16963       # First remove it from the list of overridden variables, so we can test
16964       # for unknown variables in the end.
16965       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16966 
16967       # Check if the provided tool contains a complete path.
16968       tool_specified="$ZIP"
16969       tool_basename="${tool_specified##*/}"
16970       if test "x$tool_basename" = "x$tool_specified"; then
16971         # A command without a complete path is provided, search $PATH.
16972         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
16973 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
16974         # Extract the first word of "$tool_basename", so it can be a program name with args.
16975 set dummy $tool_basename; ac_word=$2
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16977 $as_echo_n "checking for $ac_word... " >&6; }
16978 if ${ac_cv_path_ZIP+:} false; then :
16979   $as_echo_n "(cached) " >&6
16980 else
16981   case $ZIP in
16982   [\\/]* | ?:[\\/]*)
16983   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16984   ;;
16985   *)
16986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16987 for as_dir in $PATH
16988 do
16989   IFS=$as_save_IFS
16990   test -z "$as_dir" && as_dir=.
16991     for ac_exec_ext in '' $ac_executable_extensions; do
16992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16993     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16995     break 2
16996   fi
16997 done
16998   done
16999 IFS=$as_save_IFS
17000 
17001   ;;
17002 esac
17003 fi
17004 ZIP=$ac_cv_path_ZIP
17005 if test -n "$ZIP"; then
17006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17007 $as_echo "$ZIP" >&6; }
17008 else
17009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17010 $as_echo "no" >&6; }
17011 fi
17012 
17013 
17014         if test "x$ZIP" = x; then
17015           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17016         fi
17017       else
17018         # Otherwise we believe it is a complete path. Use it as it is.
17019         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17020 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17022 $as_echo_n "checking for ZIP... " >&6; }
17023         if test ! -x "$tool_specified"; then
17024           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17025 $as_echo "not found" >&6; }
17026           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17027         fi
17028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17029 $as_echo "$tool_specified" >&6; }
17030       fi
17031     fi
17032   fi
17033 
17034 
17035 
17036   if test "x$ZIP" = x; then
17037     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17038   fi
17039 
17040 
17041 
17042   # Non-required basic tools
17043 
17044 
17045 
17046   # Publish this variable in the help.
17047 
17048 
17049   if test "x$LDD" = x; then
17050     # The variable is not set by user, try to locate tool using the code snippet
17051     for ac_prog in ldd
17052 do
17053   # Extract the first word of "$ac_prog", so it can be a program name with args.
17054 set dummy $ac_prog; ac_word=$2
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17056 $as_echo_n "checking for $ac_word... " >&6; }
17057 if ${ac_cv_path_LDD+:} false; then :
17058   $as_echo_n "(cached) " >&6
17059 else
17060   case $LDD in
17061   [\\/]* | ?:[\\/]*)
17062   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17063   ;;
17064   *)
17065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 for as_dir in $PATH
17067 do
17068   IFS=$as_save_IFS
17069   test -z "$as_dir" && as_dir=.
17070     for ac_exec_ext in '' $ac_executable_extensions; do
17071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17072     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17074     break 2
17075   fi
17076 done
17077   done
17078 IFS=$as_save_IFS
17079 
17080   ;;
17081 esac
17082 fi
17083 LDD=$ac_cv_path_LDD
17084 if test -n "$LDD"; then
17085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17086 $as_echo "$LDD" >&6; }
17087 else
17088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17089 $as_echo "no" >&6; }
17090 fi
17091 
17092 
17093   test -n "$LDD" && break
17094 done
17095 
17096   else
17097     # The variable is set, but is it from the command line or the environment?
17098 
17099     # Try to remove the string !LDD! from our list.
17100     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17101     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17102       # If it failed, the variable was not from the command line. Ignore it,
17103       # but warn the user (except for BASH, which is always set by the calling BASH).
17104       if test "xLDD" != xBASH; then
17105         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17106 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17107       fi
17108       # Try to locate tool using the code snippet
17109       for ac_prog in ldd
17110 do
17111   # Extract the first word of "$ac_prog", so it can be a program name with args.
17112 set dummy $ac_prog; ac_word=$2
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17114 $as_echo_n "checking for $ac_word... " >&6; }
17115 if ${ac_cv_path_LDD+:} false; then :
17116   $as_echo_n "(cached) " >&6
17117 else
17118   case $LDD in
17119   [\\/]* | ?:[\\/]*)
17120   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17121   ;;
17122   *)
17123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17124 for as_dir in $PATH
17125 do
17126   IFS=$as_save_IFS
17127   test -z "$as_dir" && as_dir=.
17128     for ac_exec_ext in '' $ac_executable_extensions; do
17129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17130     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17132     break 2
17133   fi
17134 done
17135   done
17136 IFS=$as_save_IFS
17137 
17138   ;;
17139 esac
17140 fi
17141 LDD=$ac_cv_path_LDD
17142 if test -n "$LDD"; then
17143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17144 $as_echo "$LDD" >&6; }
17145 else
17146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17147 $as_echo "no" >&6; }
17148 fi
17149 
17150 
17151   test -n "$LDD" && break
17152 done
17153 
17154     else
17155       # If it succeeded, then it was overridden by the user. We will use it
17156       # for the tool.
17157 
17158       # First remove it from the list of overridden variables, so we can test
17159       # for unknown variables in the end.
17160       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17161 
17162       # Check if the provided tool contains a complete path.
17163       tool_specified="$LDD"
17164       tool_basename="${tool_specified##*/}"
17165       if test "x$tool_basename" = "x$tool_specified"; then
17166         # A command without a complete path is provided, search $PATH.
17167         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17168 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17169         # Extract the first word of "$tool_basename", so it can be a program name with args.
17170 set dummy $tool_basename; ac_word=$2
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17172 $as_echo_n "checking for $ac_word... " >&6; }
17173 if ${ac_cv_path_LDD+:} false; then :
17174   $as_echo_n "(cached) " >&6
17175 else
17176   case $LDD in
17177   [\\/]* | ?:[\\/]*)
17178   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17179   ;;
17180   *)
17181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17183 do
17184   IFS=$as_save_IFS
17185   test -z "$as_dir" && as_dir=.
17186     for ac_exec_ext in '' $ac_executable_extensions; do
17187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17188     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17190     break 2
17191   fi
17192 done
17193   done
17194 IFS=$as_save_IFS
17195 
17196   ;;
17197 esac
17198 fi
17199 LDD=$ac_cv_path_LDD
17200 if test -n "$LDD"; then
17201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17202 $as_echo "$LDD" >&6; }
17203 else
17204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17205 $as_echo "no" >&6; }
17206 fi
17207 
17208 
17209         if test "x$LDD" = x; then
17210           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17211         fi
17212       else
17213         # Otherwise we believe it is a complete path. Use it as it is.
17214         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17215 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17217 $as_echo_n "checking for LDD... " >&6; }
17218         if test ! -x "$tool_specified"; then
17219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17220 $as_echo "not found" >&6; }
17221           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17222         fi
17223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17224 $as_echo "$tool_specified" >&6; }
17225       fi
17226     fi
17227   fi
17228 
17229 
17230   if test "x$LDD" = "x"; then
17231     # List shared lib dependencies is used for
17232     # debug output and checking for forbidden dependencies.
17233     # We can build without it.
17234     LDD="true"
17235   fi
17236 
17237 
17238   # Publish this variable in the help.
17239 
17240 
17241   if test "x$OTOOL" = x; then
17242     # The variable is not set by user, try to locate tool using the code snippet
17243     for ac_prog in otool
17244 do
17245   # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if ${ac_cv_path_OTOOL+:} false; then :
17250   $as_echo_n "(cached) " >&6
17251 else
17252   case $OTOOL in
17253   [\\/]* | ?:[\\/]*)
17254   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17255   ;;
17256   *)
17257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17258 for as_dir in $PATH
17259 do
17260   IFS=$as_save_IFS
17261   test -z "$as_dir" && as_dir=.
17262     for ac_exec_ext in '' $ac_executable_extensions; do
17263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17264     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17266     break 2
17267   fi
17268 done
17269   done
17270 IFS=$as_save_IFS
17271 
17272   ;;
17273 esac
17274 fi
17275 OTOOL=$ac_cv_path_OTOOL
17276 if test -n "$OTOOL"; then
17277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17278 $as_echo "$OTOOL" >&6; }
17279 else
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17281 $as_echo "no" >&6; }
17282 fi
17283 
17284 
17285   test -n "$OTOOL" && break
17286 done
17287 
17288   else
17289     # The variable is set, but is it from the command line or the environment?
17290 
17291     # Try to remove the string !OTOOL! from our list.
17292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17294       # If it failed, the variable was not from the command line. Ignore it,
17295       # but warn the user (except for BASH, which is always set by the calling BASH).
17296       if test "xOTOOL" != xBASH; then
17297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17298 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17299       fi
17300       # Try to locate tool using the code snippet
17301       for ac_prog in otool
17302 do
17303   # Extract the first word of "$ac_prog", so it can be a program name with args.
17304 set dummy $ac_prog; ac_word=$2
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if ${ac_cv_path_OTOOL+:} false; then :
17308   $as_echo_n "(cached) " >&6
17309 else
17310   case $OTOOL in
17311   [\\/]* | ?:[\\/]*)
17312   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17313   ;;
17314   *)
17315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17316 for as_dir in $PATH
17317 do
17318   IFS=$as_save_IFS
17319   test -z "$as_dir" && as_dir=.
17320     for ac_exec_ext in '' $ac_executable_extensions; do
17321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17322     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17324     break 2
17325   fi
17326 done
17327   done
17328 IFS=$as_save_IFS
17329 
17330   ;;
17331 esac
17332 fi
17333 OTOOL=$ac_cv_path_OTOOL
17334 if test -n "$OTOOL"; then
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17336 $as_echo "$OTOOL" >&6; }
17337 else
17338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341 
17342 
17343   test -n "$OTOOL" && break
17344 done
17345 
17346     else
17347       # If it succeeded, then it was overridden by the user. We will use it
17348       # for the tool.
17349 
17350       # First remove it from the list of overridden variables, so we can test
17351       # for unknown variables in the end.
17352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17353 
17354       # Check if the provided tool contains a complete path.
17355       tool_specified="$OTOOL"
17356       tool_basename="${tool_specified##*/}"
17357       if test "x$tool_basename" = "x$tool_specified"; then
17358         # A command without a complete path is provided, search $PATH.
17359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17360 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17361         # Extract the first word of "$tool_basename", so it can be a program name with args.
17362 set dummy $tool_basename; ac_word=$2
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17364 $as_echo_n "checking for $ac_word... " >&6; }
17365 if ${ac_cv_path_OTOOL+:} false; then :
17366   $as_echo_n "(cached) " >&6
17367 else
17368   case $OTOOL in
17369   [\\/]* | ?:[\\/]*)
17370   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17371   ;;
17372   *)
17373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17374 for as_dir in $PATH
17375 do
17376   IFS=$as_save_IFS
17377   test -z "$as_dir" && as_dir=.
17378     for ac_exec_ext in '' $ac_executable_extensions; do
17379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17380     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17382     break 2
17383   fi
17384 done
17385   done
17386 IFS=$as_save_IFS
17387 
17388   ;;
17389 esac
17390 fi
17391 OTOOL=$ac_cv_path_OTOOL
17392 if test -n "$OTOOL"; then
17393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17394 $as_echo "$OTOOL" >&6; }
17395 else
17396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17397 $as_echo "no" >&6; }
17398 fi
17399 
17400 
17401         if test "x$OTOOL" = x; then
17402           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17403         fi
17404       else
17405         # Otherwise we believe it is a complete path. Use it as it is.
17406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17407 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17409 $as_echo_n "checking for OTOOL... " >&6; }
17410         if test ! -x "$tool_specified"; then
17411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17412 $as_echo "not found" >&6; }
17413           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17414         fi
17415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17416 $as_echo "$tool_specified" >&6; }
17417       fi
17418     fi
17419   fi
17420 
17421 
17422   if test "x$OTOOL" = "x"; then
17423     OTOOL="true"
17424   fi
17425 
17426 
17427   # Publish this variable in the help.
17428 
17429 
17430   if test "x$READELF" = x; then
17431     # The variable is not set by user, try to locate tool using the code snippet
17432     for ac_prog in greadelf readelf
17433 do
17434   # Extract the first word of "$ac_prog", so it can be a program name with args.
17435 set dummy $ac_prog; ac_word=$2
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17437 $as_echo_n "checking for $ac_word... " >&6; }
17438 if ${ac_cv_path_READELF+:} false; then :
17439   $as_echo_n "(cached) " >&6
17440 else
17441   case $READELF in
17442   [\\/]* | ?:[\\/]*)
17443   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17444   ;;
17445   *)
17446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17447 for as_dir in $PATH
17448 do
17449   IFS=$as_save_IFS
17450   test -z "$as_dir" && as_dir=.
17451     for ac_exec_ext in '' $ac_executable_extensions; do
17452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17453     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17455     break 2
17456   fi
17457 done
17458   done
17459 IFS=$as_save_IFS
17460 
17461   ;;
17462 esac
17463 fi
17464 READELF=$ac_cv_path_READELF
17465 if test -n "$READELF"; then
17466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17467 $as_echo "$READELF" >&6; }
17468 else
17469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17470 $as_echo "no" >&6; }
17471 fi
17472 
17473 
17474   test -n "$READELF" && break
17475 done
17476 
17477   else
17478     # The variable is set, but is it from the command line or the environment?
17479 
17480     # Try to remove the string !READELF! from our list.
17481     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17482     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17483       # If it failed, the variable was not from the command line. Ignore it,
17484       # but warn the user (except for BASH, which is always set by the calling BASH).
17485       if test "xREADELF" != xBASH; then
17486         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17487 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17488       fi
17489       # Try to locate tool using the code snippet
17490       for ac_prog in greadelf readelf
17491 do
17492   # Extract the first word of "$ac_prog", so it can be a program name with args.
17493 set dummy $ac_prog; ac_word=$2
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17495 $as_echo_n "checking for $ac_word... " >&6; }
17496 if ${ac_cv_path_READELF+:} false; then :
17497   $as_echo_n "(cached) " >&6
17498 else
17499   case $READELF in
17500   [\\/]* | ?:[\\/]*)
17501   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17502   ;;
17503   *)
17504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17505 for as_dir in $PATH
17506 do
17507   IFS=$as_save_IFS
17508   test -z "$as_dir" && as_dir=.
17509     for ac_exec_ext in '' $ac_executable_extensions; do
17510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17511     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17513     break 2
17514   fi
17515 done
17516   done
17517 IFS=$as_save_IFS
17518 
17519   ;;
17520 esac
17521 fi
17522 READELF=$ac_cv_path_READELF
17523 if test -n "$READELF"; then
17524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17525 $as_echo "$READELF" >&6; }
17526 else
17527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17528 $as_echo "no" >&6; }
17529 fi
17530 
17531 
17532   test -n "$READELF" && break
17533 done
17534 
17535     else
17536       # If it succeeded, then it was overridden by the user. We will use it
17537       # for the tool.
17538 
17539       # First remove it from the list of overridden variables, so we can test
17540       # for unknown variables in the end.
17541       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17542 
17543       # Check if the provided tool contains a complete path.
17544       tool_specified="$READELF"
17545       tool_basename="${tool_specified##*/}"
17546       if test "x$tool_basename" = "x$tool_specified"; then
17547         # A command without a complete path is provided, search $PATH.
17548         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17549 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17550         # Extract the first word of "$tool_basename", so it can be a program name with args.
17551 set dummy $tool_basename; ac_word=$2
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17553 $as_echo_n "checking for $ac_word... " >&6; }
17554 if ${ac_cv_path_READELF+:} false; then :
17555   $as_echo_n "(cached) " >&6
17556 else
17557   case $READELF in
17558   [\\/]* | ?:[\\/]*)
17559   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17560   ;;
17561   *)
17562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17563 for as_dir in $PATH
17564 do
17565   IFS=$as_save_IFS
17566   test -z "$as_dir" && as_dir=.
17567     for ac_exec_ext in '' $ac_executable_extensions; do
17568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17569     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17571     break 2
17572   fi
17573 done
17574   done
17575 IFS=$as_save_IFS
17576 
17577   ;;
17578 esac
17579 fi
17580 READELF=$ac_cv_path_READELF
17581 if test -n "$READELF"; then
17582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17583 $as_echo "$READELF" >&6; }
17584 else
17585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17586 $as_echo "no" >&6; }
17587 fi
17588 
17589 
17590         if test "x$READELF" = x; then
17591           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17592         fi
17593       else
17594         # Otherwise we believe it is a complete path. Use it as it is.
17595         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17596 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17598 $as_echo_n "checking for READELF... " >&6; }
17599         if test ! -x "$tool_specified"; then
17600           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17601 $as_echo "not found" >&6; }
17602           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17603         fi
17604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17605 $as_echo "$tool_specified" >&6; }
17606       fi
17607     fi
17608   fi
17609 
17610 
17611 
17612 
17613   # Publish this variable in the help.
17614 
17615 
17616   if test "x$HG" = x; then
17617     # The variable is not set by user, try to locate tool using the code snippet
17618     for ac_prog in hg
17619 do
17620   # Extract the first word of "$ac_prog", so it can be a program name with args.
17621 set dummy $ac_prog; ac_word=$2
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17623 $as_echo_n "checking for $ac_word... " >&6; }
17624 if ${ac_cv_path_HG+:} false; then :
17625   $as_echo_n "(cached) " >&6
17626 else
17627   case $HG in
17628   [\\/]* | ?:[\\/]*)
17629   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17630   ;;
17631   *)
17632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17633 for as_dir in $PATH
17634 do
17635   IFS=$as_save_IFS
17636   test -z "$as_dir" && as_dir=.
17637     for ac_exec_ext in '' $ac_executable_extensions; do
17638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17639     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17641     break 2
17642   fi
17643 done
17644   done
17645 IFS=$as_save_IFS
17646 
17647   ;;
17648 esac
17649 fi
17650 HG=$ac_cv_path_HG
17651 if test -n "$HG"; then
17652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17653 $as_echo "$HG" >&6; }
17654 else
17655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656 $as_echo "no" >&6; }
17657 fi
17658 
17659 
17660   test -n "$HG" && break
17661 done
17662 
17663   else
17664     # The variable is set, but is it from the command line or the environment?
17665 
17666     # Try to remove the string !HG! from our list.
17667     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17668     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17669       # If it failed, the variable was not from the command line. Ignore it,
17670       # but warn the user (except for BASH, which is always set by the calling BASH).
17671       if test "xHG" != xBASH; then
17672         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17673 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17674       fi
17675       # Try to locate tool using the code snippet
17676       for ac_prog in hg
17677 do
17678   # Extract the first word of "$ac_prog", so it can be a program name with args.
17679 set dummy $ac_prog; ac_word=$2
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17681 $as_echo_n "checking for $ac_word... " >&6; }
17682 if ${ac_cv_path_HG+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685   case $HG in
17686   [\\/]* | ?:[\\/]*)
17687   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17688   ;;
17689   *)
17690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17691 for as_dir in $PATH
17692 do
17693   IFS=$as_save_IFS
17694   test -z "$as_dir" && as_dir=.
17695     for ac_exec_ext in '' $ac_executable_extensions; do
17696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17697     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17699     break 2
17700   fi
17701 done
17702   done
17703 IFS=$as_save_IFS
17704 
17705   ;;
17706 esac
17707 fi
17708 HG=$ac_cv_path_HG
17709 if test -n "$HG"; then
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17711 $as_echo "$HG" >&6; }
17712 else
17713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17715 fi
17716 
17717 
17718   test -n "$HG" && break
17719 done
17720 
17721     else
17722       # If it succeeded, then it was overridden by the user. We will use it
17723       # for the tool.
17724 
17725       # First remove it from the list of overridden variables, so we can test
17726       # for unknown variables in the end.
17727       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17728 
17729       # Check if the provided tool contains a complete path.
17730       tool_specified="$HG"
17731       tool_basename="${tool_specified##*/}"
17732       if test "x$tool_basename" = "x$tool_specified"; then
17733         # A command without a complete path is provided, search $PATH.
17734         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17735 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17736         # Extract the first word of "$tool_basename", so it can be a program name with args.
17737 set dummy $tool_basename; ac_word=$2
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17739 $as_echo_n "checking for $ac_word... " >&6; }
17740 if ${ac_cv_path_HG+:} false; then :
17741   $as_echo_n "(cached) " >&6
17742 else
17743   case $HG in
17744   [\\/]* | ?:[\\/]*)
17745   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17746   ;;
17747   *)
17748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17750 do
17751   IFS=$as_save_IFS
17752   test -z "$as_dir" && as_dir=.
17753     for ac_exec_ext in '' $ac_executable_extensions; do
17754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17755     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757     break 2
17758   fi
17759 done
17760   done
17761 IFS=$as_save_IFS
17762 
17763   ;;
17764 esac
17765 fi
17766 HG=$ac_cv_path_HG
17767 if test -n "$HG"; then
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17769 $as_echo "$HG" >&6; }
17770 else
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773 fi
17774 
17775 
17776         if test "x$HG" = x; then
17777           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17778         fi
17779       else
17780         # Otherwise we believe it is a complete path. Use it as it is.
17781         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17782 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17784 $as_echo_n "checking for HG... " >&6; }
17785         if test ! -x "$tool_specified"; then
17786           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17787 $as_echo "not found" >&6; }
17788           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17789         fi
17790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17791 $as_echo "$tool_specified" >&6; }
17792       fi
17793     fi
17794   fi
17795 
17796 
17797 
17798 
17799   # Publish this variable in the help.
17800 
17801 
17802   if test "x$STAT" = x; then
17803     # The variable is not set by user, try to locate tool using the code snippet
17804     for ac_prog in stat
17805 do
17806   # Extract the first word of "$ac_prog", so it can be a program name with args.
17807 set dummy $ac_prog; ac_word=$2
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17809 $as_echo_n "checking for $ac_word... " >&6; }
17810 if ${ac_cv_path_STAT+:} false; then :
17811   $as_echo_n "(cached) " >&6
17812 else
17813   case $STAT in
17814   [\\/]* | ?:[\\/]*)
17815   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17816   ;;
17817   *)
17818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17819 for as_dir in $PATH
17820 do
17821   IFS=$as_save_IFS
17822   test -z "$as_dir" && as_dir=.
17823     for ac_exec_ext in '' $ac_executable_extensions; do
17824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17825     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17827     break 2
17828   fi
17829 done
17830   done
17831 IFS=$as_save_IFS
17832 
17833   ;;
17834 esac
17835 fi
17836 STAT=$ac_cv_path_STAT
17837 if test -n "$STAT"; then
17838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17839 $as_echo "$STAT" >&6; }
17840 else
17841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17843 fi
17844 
17845 
17846   test -n "$STAT" && break
17847 done
17848 
17849   else
17850     # The variable is set, but is it from the command line or the environment?
17851 
17852     # Try to remove the string !STAT! from our list.
17853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
17854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17855       # If it failed, the variable was not from the command line. Ignore it,
17856       # but warn the user (except for BASH, which is always set by the calling BASH).
17857       if test "xSTAT" != xBASH; then
17858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
17859 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
17860       fi
17861       # Try to locate tool using the code snippet
17862       for ac_prog in stat
17863 do
17864   # Extract the first word of "$ac_prog", so it can be a program name with args.
17865 set dummy $ac_prog; ac_word=$2
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17867 $as_echo_n "checking for $ac_word... " >&6; }
17868 if ${ac_cv_path_STAT+:} false; then :
17869   $as_echo_n "(cached) " >&6
17870 else
17871   case $STAT in
17872   [\\/]* | ?:[\\/]*)
17873   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17874   ;;
17875   *)
17876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17877 for as_dir in $PATH
17878 do
17879   IFS=$as_save_IFS
17880   test -z "$as_dir" && as_dir=.
17881     for ac_exec_ext in '' $ac_executable_extensions; do
17882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17883     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17885     break 2
17886   fi
17887 done
17888   done
17889 IFS=$as_save_IFS
17890 
17891   ;;
17892 esac
17893 fi
17894 STAT=$ac_cv_path_STAT
17895 if test -n "$STAT"; then
17896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17897 $as_echo "$STAT" >&6; }
17898 else
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17900 $as_echo "no" >&6; }
17901 fi
17902 
17903 
17904   test -n "$STAT" && break
17905 done
17906 
17907     else
17908       # If it succeeded, then it was overridden by the user. We will use it
17909       # for the tool.
17910 
17911       # First remove it from the list of overridden variables, so we can test
17912       # for unknown variables in the end.
17913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17914 
17915       # Check if the provided tool contains a complete path.
17916       tool_specified="$STAT"
17917       tool_basename="${tool_specified##*/}"
17918       if test "x$tool_basename" = "x$tool_specified"; then
17919         # A command without a complete path is provided, search $PATH.
17920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
17921 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
17922         # Extract the first word of "$tool_basename", so it can be a program name with args.
17923 set dummy $tool_basename; ac_word=$2
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17925 $as_echo_n "checking for $ac_word... " >&6; }
17926 if ${ac_cv_path_STAT+:} false; then :
17927   $as_echo_n "(cached) " >&6
17928 else
17929   case $STAT in
17930   [\\/]* | ?:[\\/]*)
17931   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17932   ;;
17933   *)
17934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17935 for as_dir in $PATH
17936 do
17937   IFS=$as_save_IFS
17938   test -z "$as_dir" && as_dir=.
17939     for ac_exec_ext in '' $ac_executable_extensions; do
17940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17941     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17943     break 2
17944   fi
17945 done
17946   done
17947 IFS=$as_save_IFS
17948 
17949   ;;
17950 esac
17951 fi
17952 STAT=$ac_cv_path_STAT
17953 if test -n "$STAT"; then
17954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17955 $as_echo "$STAT" >&6; }
17956 else
17957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17958 $as_echo "no" >&6; }
17959 fi
17960 
17961 
17962         if test "x$STAT" = x; then
17963           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17964         fi
17965       else
17966         # Otherwise we believe it is a complete path. Use it as it is.
17967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
17968 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
17969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
17970 $as_echo_n "checking for STAT... " >&6; }
17971         if test ! -x "$tool_specified"; then
17972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17973 $as_echo "not found" >&6; }
17974           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
17975         fi
17976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17977 $as_echo "$tool_specified" >&6; }
17978       fi
17979     fi
17980   fi
17981 
17982 
17983 
17984 
17985   # Publish this variable in the help.
17986 
17987 
17988   if test "x$TIME" = x; then
17989     # The variable is not set by user, try to locate tool using the code snippet
17990     for ac_prog in time
17991 do
17992   # Extract the first word of "$ac_prog", so it can be a program name with args.
17993 set dummy $ac_prog; ac_word=$2
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17995 $as_echo_n "checking for $ac_word... " >&6; }
17996 if ${ac_cv_path_TIME+:} false; then :
17997   $as_echo_n "(cached) " >&6
17998 else
17999   case $TIME in
18000   [\\/]* | ?:[\\/]*)
18001   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18002   ;;
18003   *)
18004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18005 for as_dir in $PATH
18006 do
18007   IFS=$as_save_IFS
18008   test -z "$as_dir" && as_dir=.
18009     for ac_exec_ext in '' $ac_executable_extensions; do
18010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18011     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18013     break 2
18014   fi
18015 done
18016   done
18017 IFS=$as_save_IFS
18018 
18019   ;;
18020 esac
18021 fi
18022 TIME=$ac_cv_path_TIME
18023 if test -n "$TIME"; then
18024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18025 $as_echo "$TIME" >&6; }
18026 else
18027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18028 $as_echo "no" >&6; }
18029 fi
18030 
18031 
18032   test -n "$TIME" && break
18033 done
18034 
18035   else
18036     # The variable is set, but is it from the command line or the environment?
18037 
18038     # Try to remove the string !TIME! from our list.
18039     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18040     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18041       # If it failed, the variable was not from the command line. Ignore it,
18042       # but warn the user (except for BASH, which is always set by the calling BASH).
18043       if test "xTIME" != xBASH; then
18044         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18045 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18046       fi
18047       # Try to locate tool using the code snippet
18048       for ac_prog in time
18049 do
18050   # Extract the first word of "$ac_prog", so it can be a program name with args.
18051 set dummy $ac_prog; ac_word=$2
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18053 $as_echo_n "checking for $ac_word... " >&6; }
18054 if ${ac_cv_path_TIME+:} false; then :
18055   $as_echo_n "(cached) " >&6
18056 else
18057   case $TIME in
18058   [\\/]* | ?:[\\/]*)
18059   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18060   ;;
18061   *)
18062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18063 for as_dir in $PATH
18064 do
18065   IFS=$as_save_IFS
18066   test -z "$as_dir" && as_dir=.
18067     for ac_exec_ext in '' $ac_executable_extensions; do
18068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18069     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18071     break 2
18072   fi
18073 done
18074   done
18075 IFS=$as_save_IFS
18076 
18077   ;;
18078 esac
18079 fi
18080 TIME=$ac_cv_path_TIME
18081 if test -n "$TIME"; then
18082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18083 $as_echo "$TIME" >&6; }
18084 else
18085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18086 $as_echo "no" >&6; }
18087 fi
18088 
18089 
18090   test -n "$TIME" && break
18091 done
18092 
18093     else
18094       # If it succeeded, then it was overridden by the user. We will use it
18095       # for the tool.
18096 
18097       # First remove it from the list of overridden variables, so we can test
18098       # for unknown variables in the end.
18099       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18100 
18101       # Check if the provided tool contains a complete path.
18102       tool_specified="$TIME"
18103       tool_basename="${tool_specified##*/}"
18104       if test "x$tool_basename" = "x$tool_specified"; then
18105         # A command without a complete path is provided, search $PATH.
18106         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18107 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18108         # Extract the first word of "$tool_basename", so it can be a program name with args.
18109 set dummy $tool_basename; ac_word=$2
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18111 $as_echo_n "checking for $ac_word... " >&6; }
18112 if ${ac_cv_path_TIME+:} false; then :
18113   $as_echo_n "(cached) " >&6
18114 else
18115   case $TIME in
18116   [\\/]* | ?:[\\/]*)
18117   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18118   ;;
18119   *)
18120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18121 for as_dir in $PATH
18122 do
18123   IFS=$as_save_IFS
18124   test -z "$as_dir" && as_dir=.
18125     for ac_exec_ext in '' $ac_executable_extensions; do
18126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18127     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18129     break 2
18130   fi
18131 done
18132   done
18133 IFS=$as_save_IFS
18134 
18135   ;;
18136 esac
18137 fi
18138 TIME=$ac_cv_path_TIME
18139 if test -n "$TIME"; then
18140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18141 $as_echo "$TIME" >&6; }
18142 else
18143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18145 fi
18146 
18147 
18148         if test "x$TIME" = x; then
18149           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18150         fi
18151       else
18152         # Otherwise we believe it is a complete path. Use it as it is.
18153         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18154 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18156 $as_echo_n "checking for TIME... " >&6; }
18157         if test ! -x "$tool_specified"; then
18158           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18159 $as_echo "not found" >&6; }
18160           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18161         fi
18162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18163 $as_echo "$tool_specified" >&6; }
18164       fi
18165     fi
18166   fi
18167 
18168 
18169   # Check if it's GNU time
18170   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18171   if test "x$IS_GNU_TIME" != x; then
18172     IS_GNU_TIME=yes
18173   else
18174     IS_GNU_TIME=no
18175   fi
18176 
18177 
18178   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18179 
18180 
18181 
18182   # Publish this variable in the help.
18183 
18184 
18185   if test "x$COMM" = x; then
18186     # The variable is not set by user, try to locate tool using the code snippet
18187     for ac_prog in comm
18188 do
18189   # Extract the first word of "$ac_prog", so it can be a program name with args.
18190 set dummy $ac_prog; ac_word=$2
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18192 $as_echo_n "checking for $ac_word... " >&6; }
18193 if ${ac_cv_path_COMM+:} false; then :
18194   $as_echo_n "(cached) " >&6
18195 else
18196   case $COMM in
18197   [\\/]* | ?:[\\/]*)
18198   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18199   ;;
18200   *)
18201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18202 for as_dir in $PATH
18203 do
18204   IFS=$as_save_IFS
18205   test -z "$as_dir" && as_dir=.
18206     for ac_exec_ext in '' $ac_executable_extensions; do
18207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18208     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18210     break 2
18211   fi
18212 done
18213   done
18214 IFS=$as_save_IFS
18215 
18216   ;;
18217 esac
18218 fi
18219 COMM=$ac_cv_path_COMM
18220 if test -n "$COMM"; then
18221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18222 $as_echo "$COMM" >&6; }
18223 else
18224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18226 fi
18227 
18228 
18229   test -n "$COMM" && break
18230 done
18231 
18232   else
18233     # The variable is set, but is it from the command line or the environment?
18234 
18235     # Try to remove the string !COMM! from our list.
18236     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18237     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18238       # If it failed, the variable was not from the command line. Ignore it,
18239       # but warn the user (except for BASH, which is always set by the calling BASH).
18240       if test "xCOMM" != xBASH; then
18241         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18242 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18243       fi
18244       # Try to locate tool using the code snippet
18245       for ac_prog in comm
18246 do
18247   # Extract the first word of "$ac_prog", so it can be a program name with args.
18248 set dummy $ac_prog; ac_word=$2
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18250 $as_echo_n "checking for $ac_word... " >&6; }
18251 if ${ac_cv_path_COMM+:} false; then :
18252   $as_echo_n "(cached) " >&6
18253 else
18254   case $COMM in
18255   [\\/]* | ?:[\\/]*)
18256   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18257   ;;
18258   *)
18259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18260 for as_dir in $PATH
18261 do
18262   IFS=$as_save_IFS
18263   test -z "$as_dir" && as_dir=.
18264     for ac_exec_ext in '' $ac_executable_extensions; do
18265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18266     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18268     break 2
18269   fi
18270 done
18271   done
18272 IFS=$as_save_IFS
18273 
18274   ;;
18275 esac
18276 fi
18277 COMM=$ac_cv_path_COMM
18278 if test -n "$COMM"; then
18279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18280 $as_echo "$COMM" >&6; }
18281 else
18282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283 $as_echo "no" >&6; }
18284 fi
18285 
18286 
18287   test -n "$COMM" && break
18288 done
18289 
18290     else
18291       # If it succeeded, then it was overridden by the user. We will use it
18292       # for the tool.
18293 
18294       # First remove it from the list of overridden variables, so we can test
18295       # for unknown variables in the end.
18296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18297 
18298       # Check if the provided tool contains a complete path.
18299       tool_specified="$COMM"
18300       tool_basename="${tool_specified##*/}"
18301       if test "x$tool_basename" = "x$tool_specified"; then
18302         # A command without a complete path is provided, search $PATH.
18303         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18304 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18305         # Extract the first word of "$tool_basename", so it can be a program name with args.
18306 set dummy $tool_basename; ac_word=$2
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18308 $as_echo_n "checking for $ac_word... " >&6; }
18309 if ${ac_cv_path_COMM+:} false; then :
18310   $as_echo_n "(cached) " >&6
18311 else
18312   case $COMM in
18313   [\\/]* | ?:[\\/]*)
18314   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18315   ;;
18316   *)
18317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18318 for as_dir in $PATH
18319 do
18320   IFS=$as_save_IFS
18321   test -z "$as_dir" && as_dir=.
18322     for ac_exec_ext in '' $ac_executable_extensions; do
18323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18324     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18326     break 2
18327   fi
18328 done
18329   done
18330 IFS=$as_save_IFS
18331 
18332   ;;
18333 esac
18334 fi
18335 COMM=$ac_cv_path_COMM
18336 if test -n "$COMM"; then
18337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18338 $as_echo "$COMM" >&6; }
18339 else
18340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18341 $as_echo "no" >&6; }
18342 fi
18343 
18344 
18345         if test "x$COMM" = x; then
18346           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18347         fi
18348       else
18349         # Otherwise we believe it is a complete path. Use it as it is.
18350         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18351 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18353 $as_echo_n "checking for COMM... " >&6; }
18354         if test ! -x "$tool_specified"; then
18355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18356 $as_echo "not found" >&6; }
18357           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18358         fi
18359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18360 $as_echo "$tool_specified" >&6; }
18361       fi
18362     fi
18363   fi
18364 
18365 
18366 
18367   if test "x$COMM" = x; then
18368     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18369   fi
18370 
18371 
18372   fi
18373 
18374   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18375 
18376 
18377 
18378   # Publish this variable in the help.
18379 
18380 
18381   if test "x$DSYMUTIL" = x; then
18382     # The variable is not set by user, try to locate tool using the code snippet
18383     for ac_prog in dsymutil
18384 do
18385   # Extract the first word of "$ac_prog", so it can be a program name with args.
18386 set dummy $ac_prog; ac_word=$2
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388 $as_echo_n "checking for $ac_word... " >&6; }
18389 if ${ac_cv_path_DSYMUTIL+:} false; then :
18390   $as_echo_n "(cached) " >&6
18391 else
18392   case $DSYMUTIL in
18393   [\\/]* | ?:[\\/]*)
18394   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18395   ;;
18396   *)
18397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18399 do
18400   IFS=$as_save_IFS
18401   test -z "$as_dir" && as_dir=.
18402     for ac_exec_ext in '' $ac_executable_extensions; do
18403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18404     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18406     break 2
18407   fi
18408 done
18409   done
18410 IFS=$as_save_IFS
18411 
18412   ;;
18413 esac
18414 fi
18415 DSYMUTIL=$ac_cv_path_DSYMUTIL
18416 if test -n "$DSYMUTIL"; then
18417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18418 $as_echo "$DSYMUTIL" >&6; }
18419 else
18420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421 $as_echo "no" >&6; }
18422 fi
18423 
18424 
18425   test -n "$DSYMUTIL" && break
18426 done
18427 
18428   else
18429     # The variable is set, but is it from the command line or the environment?
18430 
18431     # Try to remove the string !DSYMUTIL! from our list.
18432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18434       # If it failed, the variable was not from the command line. Ignore it,
18435       # but warn the user (except for BASH, which is always set by the calling BASH).
18436       if test "xDSYMUTIL" != xBASH; then
18437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18438 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18439       fi
18440       # Try to locate tool using the code snippet
18441       for ac_prog in dsymutil
18442 do
18443   # Extract the first word of "$ac_prog", so it can be a program name with args.
18444 set dummy $ac_prog; ac_word=$2
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18446 $as_echo_n "checking for $ac_word... " >&6; }
18447 if ${ac_cv_path_DSYMUTIL+:} false; then :
18448   $as_echo_n "(cached) " >&6
18449 else
18450   case $DSYMUTIL in
18451   [\\/]* | ?:[\\/]*)
18452   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18453   ;;
18454   *)
18455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456 for as_dir in $PATH
18457 do
18458   IFS=$as_save_IFS
18459   test -z "$as_dir" && as_dir=.
18460     for ac_exec_ext in '' $ac_executable_extensions; do
18461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18462     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18464     break 2
18465   fi
18466 done
18467   done
18468 IFS=$as_save_IFS
18469 
18470   ;;
18471 esac
18472 fi
18473 DSYMUTIL=$ac_cv_path_DSYMUTIL
18474 if test -n "$DSYMUTIL"; then
18475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18476 $as_echo "$DSYMUTIL" >&6; }
18477 else
18478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18480 fi
18481 
18482 
18483   test -n "$DSYMUTIL" && break
18484 done
18485 
18486     else
18487       # If it succeeded, then it was overridden by the user. We will use it
18488       # for the tool.
18489 
18490       # First remove it from the list of overridden variables, so we can test
18491       # for unknown variables in the end.
18492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18493 
18494       # Check if the provided tool contains a complete path.
18495       tool_specified="$DSYMUTIL"
18496       tool_basename="${tool_specified##*/}"
18497       if test "x$tool_basename" = "x$tool_specified"; then
18498         # A command without a complete path is provided, search $PATH.
18499         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18500 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18501         # Extract the first word of "$tool_basename", so it can be a program name with args.
18502 set dummy $tool_basename; ac_word=$2
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18504 $as_echo_n "checking for $ac_word... " >&6; }
18505 if ${ac_cv_path_DSYMUTIL+:} false; then :
18506   $as_echo_n "(cached) " >&6
18507 else
18508   case $DSYMUTIL in
18509   [\\/]* | ?:[\\/]*)
18510   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18511   ;;
18512   *)
18513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18514 for as_dir in $PATH
18515 do
18516   IFS=$as_save_IFS
18517   test -z "$as_dir" && as_dir=.
18518     for ac_exec_ext in '' $ac_executable_extensions; do
18519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18520     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18522     break 2
18523   fi
18524 done
18525   done
18526 IFS=$as_save_IFS
18527 
18528   ;;
18529 esac
18530 fi
18531 DSYMUTIL=$ac_cv_path_DSYMUTIL
18532 if test -n "$DSYMUTIL"; then
18533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18534 $as_echo "$DSYMUTIL" >&6; }
18535 else
18536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18537 $as_echo "no" >&6; }
18538 fi
18539 
18540 
18541         if test "x$DSYMUTIL" = x; then
18542           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18543         fi
18544       else
18545         # Otherwise we believe it is a complete path. Use it as it is.
18546         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18547 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18549 $as_echo_n "checking for DSYMUTIL... " >&6; }
18550         if test ! -x "$tool_specified"; then
18551           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18552 $as_echo "not found" >&6; }
18553           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18554         fi
18555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18556 $as_echo "$tool_specified" >&6; }
18557       fi
18558     fi
18559   fi
18560 
18561 
18562 
18563   if test "x$DSYMUTIL" = x; then
18564     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18565   fi
18566 
18567 
18568 
18569 
18570 
18571   # Publish this variable in the help.
18572 
18573 
18574   if test "x$XATTR" = x; then
18575     # The variable is not set by user, try to locate tool using the code snippet
18576     for ac_prog in xattr
18577 do
18578   # Extract the first word of "$ac_prog", so it can be a program name with args.
18579 set dummy $ac_prog; ac_word=$2
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18581 $as_echo_n "checking for $ac_word... " >&6; }
18582 if ${ac_cv_path_XATTR+:} false; then :
18583   $as_echo_n "(cached) " >&6
18584 else
18585   case $XATTR in
18586   [\\/]* | ?:[\\/]*)
18587   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18588   ;;
18589   *)
18590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18591 for as_dir in $PATH
18592 do
18593   IFS=$as_save_IFS
18594   test -z "$as_dir" && as_dir=.
18595     for ac_exec_ext in '' $ac_executable_extensions; do
18596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18597     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18599     break 2
18600   fi
18601 done
18602   done
18603 IFS=$as_save_IFS
18604 
18605   ;;
18606 esac
18607 fi
18608 XATTR=$ac_cv_path_XATTR
18609 if test -n "$XATTR"; then
18610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18611 $as_echo "$XATTR" >&6; }
18612 else
18613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614 $as_echo "no" >&6; }
18615 fi
18616 
18617 
18618   test -n "$XATTR" && break
18619 done
18620 
18621   else
18622     # The variable is set, but is it from the command line or the environment?
18623 
18624     # Try to remove the string !XATTR! from our list.
18625     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18626     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18627       # If it failed, the variable was not from the command line. Ignore it,
18628       # but warn the user (except for BASH, which is always set by the calling BASH).
18629       if test "xXATTR" != xBASH; then
18630         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18631 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18632       fi
18633       # Try to locate tool using the code snippet
18634       for ac_prog in xattr
18635 do
18636   # Extract the first word of "$ac_prog", so it can be a program name with args.
18637 set dummy $ac_prog; ac_word=$2
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18639 $as_echo_n "checking for $ac_word... " >&6; }
18640 if ${ac_cv_path_XATTR+:} false; then :
18641   $as_echo_n "(cached) " >&6
18642 else
18643   case $XATTR in
18644   [\\/]* | ?:[\\/]*)
18645   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18646   ;;
18647   *)
18648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18649 for as_dir in $PATH
18650 do
18651   IFS=$as_save_IFS
18652   test -z "$as_dir" && as_dir=.
18653     for ac_exec_ext in '' $ac_executable_extensions; do
18654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18657     break 2
18658   fi
18659 done
18660   done
18661 IFS=$as_save_IFS
18662 
18663   ;;
18664 esac
18665 fi
18666 XATTR=$ac_cv_path_XATTR
18667 if test -n "$XATTR"; then
18668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18669 $as_echo "$XATTR" >&6; }
18670 else
18671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18672 $as_echo "no" >&6; }
18673 fi
18674 
18675 
18676   test -n "$XATTR" && break
18677 done
18678 
18679     else
18680       # If it succeeded, then it was overridden by the user. We will use it
18681       # for the tool.
18682 
18683       # First remove it from the list of overridden variables, so we can test
18684       # for unknown variables in the end.
18685       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18686 
18687       # Check if the provided tool contains a complete path.
18688       tool_specified="$XATTR"
18689       tool_basename="${tool_specified##*/}"
18690       if test "x$tool_basename" = "x$tool_specified"; then
18691         # A command without a complete path is provided, search $PATH.
18692         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18693 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18694         # Extract the first word of "$tool_basename", so it can be a program name with args.
18695 set dummy $tool_basename; ac_word=$2
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18697 $as_echo_n "checking for $ac_word... " >&6; }
18698 if ${ac_cv_path_XATTR+:} false; then :
18699   $as_echo_n "(cached) " >&6
18700 else
18701   case $XATTR in
18702   [\\/]* | ?:[\\/]*)
18703   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18704   ;;
18705   *)
18706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707 for as_dir in $PATH
18708 do
18709   IFS=$as_save_IFS
18710   test -z "$as_dir" && as_dir=.
18711     for ac_exec_ext in '' $ac_executable_extensions; do
18712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18713     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18715     break 2
18716   fi
18717 done
18718   done
18719 IFS=$as_save_IFS
18720 
18721   ;;
18722 esac
18723 fi
18724 XATTR=$ac_cv_path_XATTR
18725 if test -n "$XATTR"; then
18726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18727 $as_echo "$XATTR" >&6; }
18728 else
18729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 $as_echo "no" >&6; }
18731 fi
18732 
18733 
18734         if test "x$XATTR" = x; then
18735           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18736         fi
18737       else
18738         # Otherwise we believe it is a complete path. Use it as it is.
18739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18740 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18742 $as_echo_n "checking for XATTR... " >&6; }
18743         if test ! -x "$tool_specified"; then
18744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18745 $as_echo "not found" >&6; }
18746           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18747         fi
18748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18749 $as_echo "$tool_specified" >&6; }
18750       fi
18751     fi
18752   fi
18753 
18754 
18755 
18756   if test "x$XATTR" = x; then
18757     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18758   fi
18759 
18760 
18761 
18762 
18763   # Publish this variable in the help.
18764 
18765 
18766   if test "x$CODESIGN" = x; then
18767     # The variable is not set by user, try to locate tool using the code snippet
18768     for ac_prog in codesign
18769 do
18770   # Extract the first word of "$ac_prog", so it can be a program name with args.
18771 set dummy $ac_prog; ac_word=$2
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18773 $as_echo_n "checking for $ac_word... " >&6; }
18774 if ${ac_cv_path_CODESIGN+:} false; then :
18775   $as_echo_n "(cached) " >&6
18776 else
18777   case $CODESIGN in
18778   [\\/]* | ?:[\\/]*)
18779   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18780   ;;
18781   *)
18782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18784 do
18785   IFS=$as_save_IFS
18786   test -z "$as_dir" && as_dir=.
18787     for ac_exec_ext in '' $ac_executable_extensions; do
18788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18791     break 2
18792   fi
18793 done
18794   done
18795 IFS=$as_save_IFS
18796 
18797   ;;
18798 esac
18799 fi
18800 CODESIGN=$ac_cv_path_CODESIGN
18801 if test -n "$CODESIGN"; then
18802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18803 $as_echo "$CODESIGN" >&6; }
18804 else
18805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806 $as_echo "no" >&6; }
18807 fi
18808 
18809 
18810   test -n "$CODESIGN" && break
18811 done
18812 
18813   else
18814     # The variable is set, but is it from the command line or the environment?
18815 
18816     # Try to remove the string !CODESIGN! from our list.
18817     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18818     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18819       # If it failed, the variable was not from the command line. Ignore it,
18820       # but warn the user (except for BASH, which is always set by the calling BASH).
18821       if test "xCODESIGN" != xBASH; then
18822         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18823 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18824       fi
18825       # Try to locate tool using the code snippet
18826       for ac_prog in codesign
18827 do
18828   # Extract the first word of "$ac_prog", so it can be a program name with args.
18829 set dummy $ac_prog; ac_word=$2
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18831 $as_echo_n "checking for $ac_word... " >&6; }
18832 if ${ac_cv_path_CODESIGN+:} false; then :
18833   $as_echo_n "(cached) " >&6
18834 else
18835   case $CODESIGN in
18836   [\\/]* | ?:[\\/]*)
18837   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18838   ;;
18839   *)
18840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18842 do
18843   IFS=$as_save_IFS
18844   test -z "$as_dir" && as_dir=.
18845     for ac_exec_ext in '' $ac_executable_extensions; do
18846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18849     break 2
18850   fi
18851 done
18852   done
18853 IFS=$as_save_IFS
18854 
18855   ;;
18856 esac
18857 fi
18858 CODESIGN=$ac_cv_path_CODESIGN
18859 if test -n "$CODESIGN"; then
18860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18861 $as_echo "$CODESIGN" >&6; }
18862 else
18863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18865 fi
18866 
18867 
18868   test -n "$CODESIGN" && break
18869 done
18870 
18871     else
18872       # If it succeeded, then it was overridden by the user. We will use it
18873       # for the tool.
18874 
18875       # First remove it from the list of overridden variables, so we can test
18876       # for unknown variables in the end.
18877       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18878 
18879       # Check if the provided tool contains a complete path.
18880       tool_specified="$CODESIGN"
18881       tool_basename="${tool_specified##*/}"
18882       if test "x$tool_basename" = "x$tool_specified"; then
18883         # A command without a complete path is provided, search $PATH.
18884         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
18885 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
18886         # Extract the first word of "$tool_basename", so it can be a program name with args.
18887 set dummy $tool_basename; ac_word=$2
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18889 $as_echo_n "checking for $ac_word... " >&6; }
18890 if ${ac_cv_path_CODESIGN+:} false; then :
18891   $as_echo_n "(cached) " >&6
18892 else
18893   case $CODESIGN in
18894   [\\/]* | ?:[\\/]*)
18895   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18896   ;;
18897   *)
18898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899 for as_dir in $PATH
18900 do
18901   IFS=$as_save_IFS
18902   test -z "$as_dir" && as_dir=.
18903     for ac_exec_ext in '' $ac_executable_extensions; do
18904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18905     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18907     break 2
18908   fi
18909 done
18910   done
18911 IFS=$as_save_IFS
18912 
18913   ;;
18914 esac
18915 fi
18916 CODESIGN=$ac_cv_path_CODESIGN
18917 if test -n "$CODESIGN"; then
18918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18919 $as_echo "$CODESIGN" >&6; }
18920 else
18921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18922 $as_echo "no" >&6; }
18923 fi
18924 
18925 
18926         if test "x$CODESIGN" = x; then
18927           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18928         fi
18929       else
18930         # Otherwise we believe it is a complete path. Use it as it is.
18931         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
18932 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
18933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
18934 $as_echo_n "checking for CODESIGN... " >&6; }
18935         if test ! -x "$tool_specified"; then
18936           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18937 $as_echo "not found" >&6; }
18938           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
18939         fi
18940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18941 $as_echo "$tool_specified" >&6; }
18942       fi
18943     fi
18944   fi
18945 
18946 
18947     if test "x$CODESIGN" != "x"; then
18948       # Verify that the openjdk_codesign certificate is present
18949       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
18950 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
18951       rm -f codesign-testfile
18952       touch codesign-testfile
18953       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
18954       rm -f codesign-testfile
18955       if test "x$CODESIGN" = x; then
18956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957 $as_echo "no" >&6; }
18958       else
18959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18961       fi
18962     fi
18963   fi
18964 
18965 
18966 # Check if pkg-config is available.
18967 
18968 
18969 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18970         if test -n "$ac_tool_prefix"; then
18971   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18972 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18974 $as_echo_n "checking for $ac_word... " >&6; }
18975 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18976   $as_echo_n "(cached) " >&6
18977 else
18978   case $PKG_CONFIG in
18979   [\\/]* | ?:[\\/]*)
18980   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18981   ;;
18982   *)
18983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984 for as_dir in $PATH
18985 do
18986   IFS=$as_save_IFS
18987   test -z "$as_dir" && as_dir=.
18988     for ac_exec_ext in '' $ac_executable_extensions; do
18989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18990     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18992     break 2
18993   fi
18994 done
18995   done
18996 IFS=$as_save_IFS
18997 
18998   ;;
18999 esac
19000 fi
19001 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19002 if test -n "$PKG_CONFIG"; then
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19004 $as_echo "$PKG_CONFIG" >&6; }
19005 else
19006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19007 $as_echo "no" >&6; }
19008 fi
19009 
19010 
19011 fi
19012 if test -z "$ac_cv_path_PKG_CONFIG"; then
19013   ac_pt_PKG_CONFIG=$PKG_CONFIG
19014   # Extract the first word of "pkg-config", so it can be a program name with args.
19015 set dummy pkg-config; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19019   $as_echo_n "(cached) " >&6
19020 else
19021   case $ac_pt_PKG_CONFIG in
19022   [\\/]* | ?:[\\/]*)
19023   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19024   ;;
19025   *)
19026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029   IFS=$as_save_IFS
19030   test -z "$as_dir" && as_dir=.
19031     for ac_exec_ext in '' $ac_executable_extensions; do
19032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19033     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035     break 2
19036   fi
19037 done
19038   done
19039 IFS=$as_save_IFS
19040 
19041   ;;
19042 esac
19043 fi
19044 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19045 if test -n "$ac_pt_PKG_CONFIG"; then
19046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19047 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19048 else
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051 fi
19052 
19053   if test "x$ac_pt_PKG_CONFIG" = x; then
19054     PKG_CONFIG=""
19055   else
19056     case $cross_compiling:$ac_tool_warned in
19057 yes:)
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19060 ac_tool_warned=yes ;;
19061 esac
19062     PKG_CONFIG=$ac_pt_PKG_CONFIG
19063   fi
19064 else
19065   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19066 fi
19067 
19068 fi
19069 if test -n "$PKG_CONFIG"; then
19070         _pkg_min_version=0.9.0
19071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19072 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19073         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19074                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19075 $as_echo "yes" >&6; }
19076         else
19077                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19078 $as_echo "no" >&6; }
19079                 PKG_CONFIG=""
19080         fi
19081 
19082 fi
19083 
19084 # After basic tools have been setup, we can check build os specific details.
19085 
19086   ###############################################################################
19087 
19088   # Note that this is the build platform OS version!
19089 
19090   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19091   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19092   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19093   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19094 
19095 
19096 
19097 
19098 
19099 # Setup builddeps, for automatic downloading of tools we need.
19100 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19101 # boot-jdk setup, but we need to have basic tools setup first.
19102 
19103 
19104 # Check whether --with-builddeps-conf was given.
19105 if test "${with_builddeps_conf+set}" = set; then :
19106   withval=$with_builddeps_conf;
19107 fi
19108 
19109 
19110 
19111 # Check whether --with-builddeps-server was given.
19112 if test "${with_builddeps_server+set}" = set; then :
19113   withval=$with_builddeps_server;
19114 fi
19115 
19116 
19117 
19118 # Check whether --with-builddeps-dir was given.
19119 if test "${with_builddeps_dir+set}" = set; then :
19120   withval=$with_builddeps_dir;
19121 else
19122   with_builddeps_dir=/localhome/builddeps
19123 fi
19124 
19125 
19126 
19127 # Check whether --with-builddeps-group was given.
19128 if test "${with_builddeps_group+set}" = set; then :
19129   withval=$with_builddeps_group;
19130 fi
19131 
19132 
19133 
19134 
19135   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19136     if test "x$with_builddeps_conf" != x; then
19137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19138 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19139       builddepsfile=$with_builddeps_conf
19140       if test -s $builddepsfile; then
19141         . $builddepsfile
19142         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19143 $as_echo "loaded!" >&6; }
19144       else
19145         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19146       fi
19147     else
19148       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19149 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19150       builddepsfile=`mktemp`
19151       touch $builddepsfile
19152       # Put all found confs into a single file.
19153       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19154       # Source the file to acquire the variables
19155       if test -s $builddepsfile; then
19156         . $builddepsfile
19157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19158 $as_echo "found at least one!" >&6; }
19159       else
19160         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19161       fi
19162     fi
19163     # Create build and target names that use _ instead of "-" and ".".
19164     # This is necessary to use them in variable names.
19165     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19166     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19167     # Extract rewrite information for build and target
19168     eval rewritten_build=\${REWRITE_${build_var}}
19169     if test "x$rewritten_build" = x; then
19170       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19171       echo Build stays the same $rewritten_build
19172     else
19173       echo Rewriting build for builddeps into $rewritten_build
19174     fi
19175     eval rewritten_target=\${REWRITE_${target_var}}
19176     if test "x$rewritten_target" = x; then
19177       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19178       echo Target stays the same $rewritten_target
19179     else
19180       echo Rewriting target for builddeps into $rewritten_target
19181     fi
19182     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19183     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19184   fi
19185   for ac_prog in 7z unzip
19186 do
19187   # Extract the first word of "$ac_prog", so it can be a program name with args.
19188 set dummy $ac_prog; ac_word=$2
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19190 $as_echo_n "checking for $ac_word... " >&6; }
19191 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19192   $as_echo_n "(cached) " >&6
19193 else
19194   if test -n "$BDEPS_UNZIP"; then
19195   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19196 else
19197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19198 for as_dir in $PATH
19199 do
19200   IFS=$as_save_IFS
19201   test -z "$as_dir" && as_dir=.
19202     for ac_exec_ext in '' $ac_executable_extensions; do
19203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19204     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19206     break 2
19207   fi
19208 done
19209   done
19210 IFS=$as_save_IFS
19211 
19212 fi
19213 fi
19214 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19215 if test -n "$BDEPS_UNZIP"; then
19216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19217 $as_echo "$BDEPS_UNZIP" >&6; }
19218 else
19219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220 $as_echo "no" >&6; }
19221 fi
19222 
19223 
19224   test -n "$BDEPS_UNZIP" && break
19225 done
19226 
19227   if test "x$BDEPS_UNZIP" = x7z; then
19228     BDEPS_UNZIP="7z x"
19229   fi
19230 
19231   for ac_prog in wget lftp ftp
19232 do
19233   # Extract the first word of "$ac_prog", so it can be a program name with args.
19234 set dummy $ac_prog; ac_word=$2
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19236 $as_echo_n "checking for $ac_word... " >&6; }
19237 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19238   $as_echo_n "(cached) " >&6
19239 else
19240   if test -n "$BDEPS_FTP"; then
19241   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19242 else
19243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19244 for as_dir in $PATH
19245 do
19246   IFS=$as_save_IFS
19247   test -z "$as_dir" && as_dir=.
19248     for ac_exec_ext in '' $ac_executable_extensions; do
19249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19250     ac_cv_prog_BDEPS_FTP="$ac_prog"
19251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19252     break 2
19253   fi
19254 done
19255   done
19256 IFS=$as_save_IFS
19257 
19258 fi
19259 fi
19260 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19261 if test -n "$BDEPS_FTP"; then
19262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19263 $as_echo "$BDEPS_FTP" >&6; }
19264 else
19265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19267 fi
19268 
19269 
19270   test -n "$BDEPS_FTP" && break
19271 done
19272 
19273 
19274 
19275 ###############################################################################
19276 #
19277 # Determine OpenJDK variants, options and version numbers.
19278 #
19279 ###############################################################################
19280 
19281 # We need build & target for this.
19282 
19283 
19284   ###############################################################################
19285   #
19286   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19287   # We always build headless support.
19288   #
19289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19290 $as_echo_n "checking headful support... " >&6; }
19291   # Check whether --enable-headful was given.
19292 if test "${enable_headful+set}" = set; then :
19293   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19294 else
19295   SUPPORT_HEADFUL=yes
19296 fi
19297 
19298 
19299   SUPPORT_HEADLESS=yes
19300   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19301 
19302   if test "x$SUPPORT_HEADFUL" = xyes; then
19303     # We are building both headful and headless.
19304     headful_msg="include support for both headful and headless"
19305   fi
19306 
19307   if test "x$SUPPORT_HEADFUL" = xno; then
19308     # Thus we are building headless only.
19309     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19310     headful_msg="headless only"
19311   fi
19312 
19313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19314 $as_echo "$headful_msg" >&6; }
19315 
19316 
19317 
19318 
19319 
19320   # Control wether Hotspot runs Queens test after build.
19321   # Check whether --enable-hotspot-test-in-build was given.
19322 if test "${enable_hotspot_test_in_build+set}" = set; then :
19323   enableval=$enable_hotspot_test_in_build;
19324 else
19325   enable_hotspot_test_in_build=no
19326 fi
19327 
19328   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19329     TEST_IN_BUILD=true
19330   else
19331     TEST_IN_BUILD=false
19332   fi
19333 
19334 
19335   ###############################################################################
19336   #
19337   # Choose cacerts source file
19338   #
19339 
19340 # Check whether --with-cacerts-file was given.
19341 if test "${with_cacerts_file+set}" = set; then :
19342   withval=$with_cacerts_file;
19343 fi
19344 
19345   if test "x$with_cacerts_file" != x; then
19346     CACERTS_FILE=$with_cacerts_file
19347   else
19348     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19349   fi
19350 
19351 
19352   ###############################################################################
19353   #
19354   # Enable or disable unlimited crypto
19355   #
19356   # Check whether --enable-unlimited-crypto was given.
19357 if test "${enable_unlimited_crypto+set}" = set; then :
19358   enableval=$enable_unlimited_crypto;
19359 else
19360   enable_unlimited_crypto=no
19361 fi
19362 
19363   if test "x$enable_unlimited_crypto" = "xyes"; then
19364     UNLIMITED_CRYPTO=true
19365   else
19366     UNLIMITED_CRYPTO=false
19367   fi
19368 
19369 
19370   ###############################################################################
19371   #
19372   # Enable or disable the elliptic curve crypto implementation
19373   #
19374 
19375 
19376   ###############################################################################
19377   #
19378   # Compress jars
19379   #
19380   COMPRESS_JARS=false
19381 
19382 
19383 
19384 
19385   # Source the version numbers
19386   . $AUTOCONF_DIR/version-numbers
19387 
19388   # Get the settings from parameters
19389 
19390 # Check whether --with-milestone was given.
19391 if test "${with_milestone+set}" = set; then :
19392   withval=$with_milestone;
19393 fi
19394 
19395   if test "x$with_milestone" = xyes; then
19396     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19397   elif test "x$with_milestone" != x; then
19398     MILESTONE="$with_milestone"
19399   fi
19400   if test "x$MILESTONE" = x; then
19401     MILESTONE=internal
19402   fi
19403 
19404 
19405 # Check whether --with-update-version was given.
19406 if test "${with_update_version+set}" = set; then :
19407   withval=$with_update_version;
19408 fi
19409 
19410   if test "x$with_update_version" = xyes; then
19411     as_fn_error $? "Update version must have a value" "$LINENO" 5
19412   elif test "x$with_update_version" != x; then
19413     JDK_UPDATE_VERSION="$with_update_version"
19414     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19415     # to a bug in expr (which reduces it to just X). To work around this, we
19416     # always add a 0 to one digit update versions.
19417     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19418       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19419     fi
19420   fi
19421 
19422 
19423 # Check whether --with-user-release-suffix was given.
19424 if test "${with_user_release_suffix+set}" = set; then :
19425   withval=$with_user_release_suffix;
19426 fi
19427 
19428   if test "x$with_user_release_suffix" = xyes; then
19429     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19430   elif test "x$with_user_release_suffix" != x; then
19431     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19432   fi
19433 
19434 
19435 # Check whether --with-build-number was given.
19436 if test "${with_build_number+set}" = set; then :
19437   withval=$with_build_number;
19438 fi
19439 
19440   if test "x$with_build_number" = xyes; then
19441     as_fn_error $? "Build number must have a value" "$LINENO" 5
19442   elif test "x$with_build_number" != x; then
19443     JDK_BUILD_NUMBER="$with_build_number"
19444   fi
19445   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19446   if test "x$JDK_BUILD_NUMBER" = x; then
19447     JDK_BUILD_NUMBER=b00
19448     if test "x$USER_RELEASE_SUFFIX" = x; then
19449       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19450       # Avoid [:alnum:] since it depends on the locale.
19451       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19452       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19453     fi
19454   fi
19455 
19456   # Now set the JDK version, milestone, build number etc.
19457 
19458 
19459 
19460 
19461 
19462 
19463 
19464 
19465 
19466 
19467 
19468 
19469 
19470 
19471 
19472   COPYRIGHT_YEAR=`date +'%Y'`
19473 
19474 
19475   if test "x$JDK_UPDATE_VERSION" != x; then
19476     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19477   else
19478     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19479   fi
19480 
19481 
19482   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19483 
19484 
19485 
19486 ###############################################################################
19487 #
19488 # Setup BootJDK, used to bootstrap the build.
19489 #
19490 ###############################################################################
19491 
19492 
19493   BOOT_JDK_FOUND=no
19494 
19495 # Check whether --with-boot-jdk was given.
19496 if test "${with_boot_jdk+set}" = set; then :
19497   withval=$with_boot_jdk;
19498 fi
19499 
19500 
19501   # We look for the Boot JDK through various means, going from more certain to
19502   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19503   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19504   # must check if this is indeed valid; otherwise we'll continue looking.
19505 
19506   # Test: Is bootjdk explicitely set by command line arguments?
19507 
19508   if test "x$BOOT_JDK_FOUND" = xno; then
19509     # Now execute the test
19510 
19511   if test "x$with_boot_jdk" != x; then
19512     BOOT_JDK=$with_boot_jdk
19513     BOOT_JDK_FOUND=maybe
19514     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19515 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19516   fi
19517 
19518 
19519     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19520     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19521       # Do we have a bin/java?
19522       if test ! -x "$BOOT_JDK/bin/java"; then
19523         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19525         BOOT_JDK_FOUND=no
19526       else
19527         # Do we have a bin/javac?
19528         if test ! -x "$BOOT_JDK/bin/javac"; then
19529           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19530 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19531           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19532 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19533           BOOT_JDK_FOUND=no
19534         else
19535           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19536           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19537             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19538 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19539             BOOT_JDK_FOUND=no
19540           else
19541             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19542             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19543 
19544             # Extra M4 quote needed to protect [] in grep expression.
19545             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19546             if test "x$FOUND_CORRECT_VERSION" = x; then
19547               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19549               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19550 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19551               BOOT_JDK_FOUND=no
19552             else
19553               # We're done! :-)
19554               BOOT_JDK_FOUND=yes
19555 
19556   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19557 
19558   # Input might be given as Windows format, start by converting to
19559   # unix format.
19560   path="$BOOT_JDK"
19561   new_path=`$CYGPATH -u "$path"`
19562 
19563   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19564   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19565   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19566   # "foo.exe" is OK but "foo" is an error.
19567   #
19568   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19569   # It is also a way to make sure we got the proper file name for the real test later on.
19570   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19571   if test "x$test_shortpath" = x; then
19572     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19573 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19574     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19575   fi
19576 
19577   # Call helper function which possibly converts this using DOS-style short mode.
19578   # If so, the updated path is stored in $new_path.
19579 
19580   input_path="$new_path"
19581   # Check if we need to convert this using DOS-style short mode. If the path
19582   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19583   # take no chances and rewrite it.
19584   # Note: m4 eats our [], so we need to use [ and ] instead.
19585   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19586   if test "x$has_forbidden_chars" != x; then
19587     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19588     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19589     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19590     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19591       # Going to short mode and back again did indeed matter. Since short mode is
19592       # case insensitive, let's make it lowercase to improve readability.
19593       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19594       # Now convert it back to Unix-stile (cygpath)
19595       input_path=`$CYGPATH -u "$shortmode_path"`
19596       new_path="$input_path"
19597     fi
19598   fi
19599 
19600   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19601   if test "x$test_cygdrive_prefix" = x; then
19602     # As a simple fix, exclude /usr/bin since it's not a real path.
19603     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19604       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19605       # a path prefixed by /cygdrive for fixpath to work.
19606       new_path="$CYGWIN_ROOT_PATH$input_path"
19607     fi
19608   fi
19609 
19610 
19611   if test "x$path" != "x$new_path"; then
19612     BOOT_JDK="$new_path"
19613     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19614 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19615   fi
19616 
19617   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19618 
19619   path="$BOOT_JDK"
19620   has_colon=`$ECHO $path | $GREP ^.:`
19621   new_path="$path"
19622   if test "x$has_colon" = x; then
19623     # Not in mixed or Windows style, start by that.
19624     new_path=`cmd //c echo $path`
19625   fi
19626 
19627 
19628   input_path="$new_path"
19629   # Check if we need to convert this using DOS-style short mode. If the path
19630   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19631   # take no chances and rewrite it.
19632   # Note: m4 eats our [], so we need to use [ and ] instead.
19633   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19634   if test "x$has_forbidden_chars" != x; then
19635     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19636     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19637   fi
19638 
19639 
19640   windows_path="$new_path"
19641   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19642     unix_path=`$CYGPATH -u "$windows_path"`
19643     new_path="$unix_path"
19644   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19645     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19646     new_path="$unix_path"
19647   fi
19648 
19649   if test "x$path" != "x$new_path"; then
19650     BOOT_JDK="$new_path"
19651     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19652 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19653   fi
19654 
19655   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19656   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19657 
19658   else
19659     # We're on a posix platform. Hooray! :)
19660     path="$BOOT_JDK"
19661     has_space=`$ECHO "$path" | $GREP " "`
19662     if test "x$has_space" != x; then
19663       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19664 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19665       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19666     fi
19667 
19668     # Use eval to expand a potential ~
19669     eval path="$path"
19670     if test ! -f "$path" && test ! -d "$path"; then
19671       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19672     fi
19673 
19674     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19675   fi
19676 
19677               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19678 $as_echo_n "checking for Boot JDK... " >&6; }
19679               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19680 $as_echo "$BOOT_JDK" >&6; }
19681               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19682 $as_echo_n "checking Boot JDK version... " >&6; }
19683               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19684               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19685 $as_echo "$BOOT_JDK_VERSION" >&6; }
19686             fi # end check jdk version
19687           fi # end check rt.jar
19688         fi # end check javac
19689       fi # end check java
19690     fi # end check boot jdk found
19691   fi
19692 
19693   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19694     # Having specified an argument which is incorrect will produce an instant failure;
19695     # we should not go on looking
19696     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19697   fi
19698 
19699   # Test: Is bootjdk available from builddeps?
19700 
19701   if test "x$BOOT_JDK_FOUND" = xno; then
19702     # Now execute the test
19703 
19704 
19705 
19706   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19707     # Source the builddeps file again, to make sure it uses the latest variables!
19708     . $builddepsfile
19709     # Look for a target and build machine specific resource!
19710     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19711     if test "x$resource" = x; then
19712       # Ok, lets instead look for a target specific resource
19713       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19714     fi
19715     if test "x$resource" = x; then
19716       # Ok, lets instead look for a build specific resource
19717       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19718     fi
19719     if test "x$resource" = x; then
19720       # Ok, lets instead look for a generic resource
19721       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19722       resource=${builddep_bootjdk}
19723     fi
19724     if test "x$resource" != x; then
19725       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19726 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19727       # If the resource in the builddeps.conf file is an existing directory,
19728       # for example /java/linux/cups
19729       if test -d ${resource}; then
19730         depdir=${resource}
19731       else
19732 
19733   # bootjdk is for example mymodule
19734   # $resource is for example libs/general/libmymod_1_2_3.zip
19735   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19736   # $with_builddeps_dir is for example /localhome/builddeps
19737   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19738   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19739   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19740   filename=`basename $resource`
19741   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19742   filebase=${filename%%.*}
19743   extension=${filename#*.}
19744   installdir=$with_builddeps_dir/$filebase
19745   if test ! -f $installdir/$filename.unpacked; then
19746     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19747 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19748     if test ! -d $installdir; then
19749       mkdir -p $installdir
19750     fi
19751     if test ! -d $installdir; then
19752       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19753     fi
19754     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19755     touch $tmpfile
19756     if test ! -f $tmpfile; then
19757       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19758     fi
19759 
19760   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19761   # $tmpfile is the local file name for the downloaded file.
19762   VALID_TOOL=no
19763   if test "x$BDEPS_FTP" = xwget; then
19764     VALID_TOOL=yes
19765     wget -O $tmpfile $with_builddeps_server/$resource
19766   fi
19767   if test "x$BDEPS_FTP" = xlftp; then
19768     VALID_TOOL=yes
19769     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19770   fi
19771   if test "x$BDEPS_FTP" = xftp; then
19772     VALID_TOOL=yes
19773     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19774     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19775     FTPUSERPWD=${FTPSERVER%%@*}
19776     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19777       FTPUSER=${userpwd%%:*}
19778       FTPPWD=${userpwd#*@}
19779       FTPSERVER=${FTPSERVER#*@}
19780     else
19781       FTPUSER=ftp
19782       FTPPWD=ftp
19783     fi
19784     # the "pass" command does not work on some
19785     # ftp clients (read ftp.exe) but if it works,
19786     # passive mode is better!
19787     ( \
19788         echo "user $FTPUSER $FTPPWD"        ; \
19789         echo "pass"                         ; \
19790         echo "bin"                          ; \
19791         echo "get $FTPPATH $tmpfile"              ; \
19792     ) | ftp -in $FTPSERVER
19793   fi
19794   if test "x$VALID_TOOL" != xyes; then
19795     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19796   fi
19797 
19798     mv $tmpfile $installdir/$filename
19799     if test ! -s $installdir/$filename; then
19800       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19801     fi
19802     case "$extension" in
19803       zip)  echo "Unzipping $installdir/$filename..."
19804         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19805         ;;
19806       tar.gz) echo "Untaring $installdir/$filename..."
19807         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19808         ;;
19809       tgz) echo "Untaring $installdir/$filename..."
19810         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19811         ;;
19812       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19813         ;;
19814     esac
19815   fi
19816   if test -f $installdir/$filename.unpacked; then
19817     depdir=$installdir
19818   fi
19819 
19820       fi
19821       # Source the builddeps file again, because in the previous command, the depdir
19822       # was updated to point at the current build dependency install directory.
19823       . $builddepsfile
19824       # Now extract variables from the builddeps.conf files.
19825       theroot=${builddep_bootjdk_ROOT}
19826       thecflags=${builddep_bootjdk_CFLAGS}
19827       thelibs=${builddep_bootjdk_LIBS}
19828       if test "x$depdir" = x; then
19829         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
19830       fi
19831       BOOT_JDK=$depdir
19832       if test "x$theroot" != x; then
19833         BOOT_JDK="$theroot"
19834       fi
19835       if test "x$thecflags" != x; then
19836         BOOT_JDK_CFLAGS="$thecflags"
19837       fi
19838       if test "x$thelibs" != x; then
19839         BOOT_JDK_LIBS="$thelibs"
19840       fi
19841       BOOT_JDK_FOUND=maybe
19842       else BOOT_JDK_FOUND=no
19843 
19844     fi
19845     else BOOT_JDK_FOUND=no
19846 
19847   fi
19848 
19849 
19850 
19851     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19852     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19853       # Do we have a bin/java?
19854       if test ! -x "$BOOT_JDK/bin/java"; then
19855         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19856 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19857         BOOT_JDK_FOUND=no
19858       else
19859         # Do we have a bin/javac?
19860         if test ! -x "$BOOT_JDK/bin/javac"; then
19861           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19862 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19863           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19864 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19865           BOOT_JDK_FOUND=no
19866         else
19867           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19868           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19869             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19870 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19871             BOOT_JDK_FOUND=no
19872           else
19873             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19874             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19875 
19876             # Extra M4 quote needed to protect [] in grep expression.
19877             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19878             if test "x$FOUND_CORRECT_VERSION" = x; then
19879               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19881               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19882 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19883               BOOT_JDK_FOUND=no
19884             else
19885               # We're done! :-)
19886               BOOT_JDK_FOUND=yes
19887 
19888   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19889 
19890   # Input might be given as Windows format, start by converting to
19891   # unix format.
19892   path="$BOOT_JDK"
19893   new_path=`$CYGPATH -u "$path"`
19894 
19895   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19896   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19897   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19898   # "foo.exe" is OK but "foo" is an error.
19899   #
19900   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19901   # It is also a way to make sure we got the proper file name for the real test later on.
19902   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19903   if test "x$test_shortpath" = x; then
19904     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19905 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19906     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19907   fi
19908 
19909   # Call helper function which possibly converts this using DOS-style short mode.
19910   # If so, the updated path is stored in $new_path.
19911 
19912   input_path="$new_path"
19913   # Check if we need to convert this using DOS-style short mode. If the path
19914   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19915   # take no chances and rewrite it.
19916   # Note: m4 eats our [], so we need to use [ and ] instead.
19917   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19918   if test "x$has_forbidden_chars" != x; then
19919     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19920     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19921     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19922     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19923       # Going to short mode and back again did indeed matter. Since short mode is
19924       # case insensitive, let's make it lowercase to improve readability.
19925       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19926       # Now convert it back to Unix-stile (cygpath)
19927       input_path=`$CYGPATH -u "$shortmode_path"`
19928       new_path="$input_path"
19929     fi
19930   fi
19931 
19932   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19933   if test "x$test_cygdrive_prefix" = x; then
19934     # As a simple fix, exclude /usr/bin since it's not a real path.
19935     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19936       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19937       # a path prefixed by /cygdrive for fixpath to work.
19938       new_path="$CYGWIN_ROOT_PATH$input_path"
19939     fi
19940   fi
19941 
19942 
19943   if test "x$path" != "x$new_path"; then
19944     BOOT_JDK="$new_path"
19945     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19947   fi
19948 
19949   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19950 
19951   path="$BOOT_JDK"
19952   has_colon=`$ECHO $path | $GREP ^.:`
19953   new_path="$path"
19954   if test "x$has_colon" = x; then
19955     # Not in mixed or Windows style, start by that.
19956     new_path=`cmd //c echo $path`
19957   fi
19958 
19959 
19960   input_path="$new_path"
19961   # Check if we need to convert this using DOS-style short mode. If the path
19962   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19963   # take no chances and rewrite it.
19964   # Note: m4 eats our [], so we need to use [ and ] instead.
19965   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19966   if test "x$has_forbidden_chars" != x; then
19967     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19968     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19969   fi
19970 
19971 
19972   windows_path="$new_path"
19973   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19974     unix_path=`$CYGPATH -u "$windows_path"`
19975     new_path="$unix_path"
19976   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19977     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19978     new_path="$unix_path"
19979   fi
19980 
19981   if test "x$path" != "x$new_path"; then
19982     BOOT_JDK="$new_path"
19983     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19984 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19985   fi
19986 
19987   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19988   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19989 
19990   else
19991     # We're on a posix platform. Hooray! :)
19992     path="$BOOT_JDK"
19993     has_space=`$ECHO "$path" | $GREP " "`
19994     if test "x$has_space" != x; then
19995       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19996 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19997       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19998     fi
19999 
20000     # Use eval to expand a potential ~
20001     eval path="$path"
20002     if test ! -f "$path" && test ! -d "$path"; then
20003       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20004     fi
20005 
20006     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20007   fi
20008 
20009               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20010 $as_echo_n "checking for Boot JDK... " >&6; }
20011               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20012 $as_echo "$BOOT_JDK" >&6; }
20013               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20014 $as_echo_n "checking Boot JDK version... " >&6; }
20015               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20016               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20017 $as_echo "$BOOT_JDK_VERSION" >&6; }
20018             fi # end check jdk version
20019           fi # end check rt.jar
20020         fi # end check javac
20021       fi # end check java
20022     fi # end check boot jdk found
20023   fi
20024 
20025 
20026   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20027 
20028   if test "x$BOOT_JDK_FOUND" = xno; then
20029     # Now execute the test
20030 
20031   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20032     # First check at user selected default
20033 
20034   if test "x$BOOT_JDK_FOUND" = xno; then
20035     # Now execute the test
20036 
20037   if test -x /usr/libexec/java_home; then
20038     BOOT_JDK=`/usr/libexec/java_home `
20039     BOOT_JDK_FOUND=maybe
20040     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20041 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20042   fi
20043 
20044 
20045     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20046     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20047       # Do we have a bin/java?
20048       if test ! -x "$BOOT_JDK/bin/java"; then
20049         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20051         BOOT_JDK_FOUND=no
20052       else
20053         # Do we have a bin/javac?
20054         if test ! -x "$BOOT_JDK/bin/javac"; then
20055           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20057           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20058 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20059           BOOT_JDK_FOUND=no
20060         else
20061           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20062           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20063             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20064 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20065             BOOT_JDK_FOUND=no
20066           else
20067             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20068             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20069 
20070             # Extra M4 quote needed to protect [] in grep expression.
20071             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20072             if test "x$FOUND_CORRECT_VERSION" = x; then
20073               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20075               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20076 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20077               BOOT_JDK_FOUND=no
20078             else
20079               # We're done! :-)
20080               BOOT_JDK_FOUND=yes
20081 
20082   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20083 
20084   # Input might be given as Windows format, start by converting to
20085   # unix format.
20086   path="$BOOT_JDK"
20087   new_path=`$CYGPATH -u "$path"`
20088 
20089   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20090   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20091   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20092   # "foo.exe" is OK but "foo" is an error.
20093   #
20094   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20095   # It is also a way to make sure we got the proper file name for the real test later on.
20096   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20097   if test "x$test_shortpath" = x; then
20098     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20099 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20100     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20101   fi
20102 
20103   # Call helper function which possibly converts this using DOS-style short mode.
20104   # If so, the updated path is stored in $new_path.
20105 
20106   input_path="$new_path"
20107   # Check if we need to convert this using DOS-style short mode. If the path
20108   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20109   # take no chances and rewrite it.
20110   # Note: m4 eats our [], so we need to use [ and ] instead.
20111   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20112   if test "x$has_forbidden_chars" != x; then
20113     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20114     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20115     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20116     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20117       # Going to short mode and back again did indeed matter. Since short mode is
20118       # case insensitive, let's make it lowercase to improve readability.
20119       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20120       # Now convert it back to Unix-stile (cygpath)
20121       input_path=`$CYGPATH -u "$shortmode_path"`
20122       new_path="$input_path"
20123     fi
20124   fi
20125 
20126   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20127   if test "x$test_cygdrive_prefix" = x; then
20128     # As a simple fix, exclude /usr/bin since it's not a real path.
20129     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20130       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20131       # a path prefixed by /cygdrive for fixpath to work.
20132       new_path="$CYGWIN_ROOT_PATH$input_path"
20133     fi
20134   fi
20135 
20136 
20137   if test "x$path" != "x$new_path"; then
20138     BOOT_JDK="$new_path"
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20140 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20141   fi
20142 
20143   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20144 
20145   path="$BOOT_JDK"
20146   has_colon=`$ECHO $path | $GREP ^.:`
20147   new_path="$path"
20148   if test "x$has_colon" = x; then
20149     # Not in mixed or Windows style, start by that.
20150     new_path=`cmd //c echo $path`
20151   fi
20152 
20153 
20154   input_path="$new_path"
20155   # Check if we need to convert this using DOS-style short mode. If the path
20156   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20157   # take no chances and rewrite it.
20158   # Note: m4 eats our [], so we need to use [ and ] instead.
20159   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20160   if test "x$has_forbidden_chars" != x; then
20161     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20162     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20163   fi
20164 
20165 
20166   windows_path="$new_path"
20167   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20168     unix_path=`$CYGPATH -u "$windows_path"`
20169     new_path="$unix_path"
20170   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20171     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20172     new_path="$unix_path"
20173   fi
20174 
20175   if test "x$path" != "x$new_path"; then
20176     BOOT_JDK="$new_path"
20177     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20179   fi
20180 
20181   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20182   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20183 
20184   else
20185     # We're on a posix platform. Hooray! :)
20186     path="$BOOT_JDK"
20187     has_space=`$ECHO "$path" | $GREP " "`
20188     if test "x$has_space" != x; then
20189       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20191       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20192     fi
20193 
20194     # Use eval to expand a potential ~
20195     eval path="$path"
20196     if test ! -f "$path" && test ! -d "$path"; then
20197       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20198     fi
20199 
20200     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20201   fi
20202 
20203               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20204 $as_echo_n "checking for Boot JDK... " >&6; }
20205               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20206 $as_echo "$BOOT_JDK" >&6; }
20207               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20208 $as_echo_n "checking Boot JDK version... " >&6; }
20209               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20210               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20211 $as_echo "$BOOT_JDK_VERSION" >&6; }
20212             fi # end check jdk version
20213           fi # end check rt.jar
20214         fi # end check javac
20215       fi # end check java
20216     fi # end check boot jdk found
20217   fi
20218 
20219     # If that did not work out (e.g. too old), try explicit versions instead
20220 
20221   if test "x$BOOT_JDK_FOUND" = xno; then
20222     # Now execute the test
20223 
20224   if test -x /usr/libexec/java_home; then
20225     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20226     BOOT_JDK_FOUND=maybe
20227     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20228 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20229   fi
20230 
20231 
20232     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20233     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20234       # Do we have a bin/java?
20235       if test ! -x "$BOOT_JDK/bin/java"; then
20236         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20237 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20238         BOOT_JDK_FOUND=no
20239       else
20240         # Do we have a bin/javac?
20241         if test ! -x "$BOOT_JDK/bin/javac"; then
20242           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20244           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20245 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20246           BOOT_JDK_FOUND=no
20247         else
20248           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20249           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20250             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20251 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20252             BOOT_JDK_FOUND=no
20253           else
20254             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20255             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20256 
20257             # Extra M4 quote needed to protect [] in grep expression.
20258             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20259             if test "x$FOUND_CORRECT_VERSION" = x; then
20260               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20262               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20263 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20264               BOOT_JDK_FOUND=no
20265             else
20266               # We're done! :-)
20267               BOOT_JDK_FOUND=yes
20268 
20269   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20270 
20271   # Input might be given as Windows format, start by converting to
20272   # unix format.
20273   path="$BOOT_JDK"
20274   new_path=`$CYGPATH -u "$path"`
20275 
20276   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20277   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20278   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20279   # "foo.exe" is OK but "foo" is an error.
20280   #
20281   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20282   # It is also a way to make sure we got the proper file name for the real test later on.
20283   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20284   if test "x$test_shortpath" = x; then
20285     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20286 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20287     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20288   fi
20289 
20290   # Call helper function which possibly converts this using DOS-style short mode.
20291   # If so, the updated path is stored in $new_path.
20292 
20293   input_path="$new_path"
20294   # Check if we need to convert this using DOS-style short mode. If the path
20295   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20296   # take no chances and rewrite it.
20297   # Note: m4 eats our [], so we need to use [ and ] instead.
20298   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20299   if test "x$has_forbidden_chars" != x; then
20300     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20301     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20302     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20303     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20304       # Going to short mode and back again did indeed matter. Since short mode is
20305       # case insensitive, let's make it lowercase to improve readability.
20306       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20307       # Now convert it back to Unix-stile (cygpath)
20308       input_path=`$CYGPATH -u "$shortmode_path"`
20309       new_path="$input_path"
20310     fi
20311   fi
20312 
20313   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20314   if test "x$test_cygdrive_prefix" = x; then
20315     # As a simple fix, exclude /usr/bin since it's not a real path.
20316     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20317       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20318       # a path prefixed by /cygdrive for fixpath to work.
20319       new_path="$CYGWIN_ROOT_PATH$input_path"
20320     fi
20321   fi
20322 
20323 
20324   if test "x$path" != "x$new_path"; then
20325     BOOT_JDK="$new_path"
20326     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20327 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20328   fi
20329 
20330   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20331 
20332   path="$BOOT_JDK"
20333   has_colon=`$ECHO $path | $GREP ^.:`
20334   new_path="$path"
20335   if test "x$has_colon" = x; then
20336     # Not in mixed or Windows style, start by that.
20337     new_path=`cmd //c echo $path`
20338   fi
20339 
20340 
20341   input_path="$new_path"
20342   # Check if we need to convert this using DOS-style short mode. If the path
20343   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20344   # take no chances and rewrite it.
20345   # Note: m4 eats our [], so we need to use [ and ] instead.
20346   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20347   if test "x$has_forbidden_chars" != x; then
20348     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20349     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20350   fi
20351 
20352 
20353   windows_path="$new_path"
20354   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20355     unix_path=`$CYGPATH -u "$windows_path"`
20356     new_path="$unix_path"
20357   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20358     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20359     new_path="$unix_path"
20360   fi
20361 
20362   if test "x$path" != "x$new_path"; then
20363     BOOT_JDK="$new_path"
20364     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20365 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20366   fi
20367 
20368   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20369   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20370 
20371   else
20372     # We're on a posix platform. Hooray! :)
20373     path="$BOOT_JDK"
20374     has_space=`$ECHO "$path" | $GREP " "`
20375     if test "x$has_space" != x; then
20376       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20377 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20378       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20379     fi
20380 
20381     # Use eval to expand a potential ~
20382     eval path="$path"
20383     if test ! -f "$path" && test ! -d "$path"; then
20384       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20385     fi
20386 
20387     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20388   fi
20389 
20390               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20391 $as_echo_n "checking for Boot JDK... " >&6; }
20392               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20393 $as_echo "$BOOT_JDK" >&6; }
20394               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20395 $as_echo_n "checking Boot JDK version... " >&6; }
20396               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20397               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20398 $as_echo "$BOOT_JDK_VERSION" >&6; }
20399             fi # end check jdk version
20400           fi # end check rt.jar
20401         fi # end check javac
20402       fi # end check java
20403     fi # end check boot jdk found
20404   fi
20405 
20406 
20407   if test "x$BOOT_JDK_FOUND" = xno; then
20408     # Now execute the test
20409 
20410   if test -x /usr/libexec/java_home; then
20411     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20412     BOOT_JDK_FOUND=maybe
20413     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20414 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20415   fi
20416 
20417 
20418     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20419     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20420       # Do we have a bin/java?
20421       if test ! -x "$BOOT_JDK/bin/java"; then
20422         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20424         BOOT_JDK_FOUND=no
20425       else
20426         # Do we have a bin/javac?
20427         if test ! -x "$BOOT_JDK/bin/javac"; then
20428           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20430           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20431 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20432           BOOT_JDK_FOUND=no
20433         else
20434           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20435           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20436             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20437 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20438             BOOT_JDK_FOUND=no
20439           else
20440             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20441             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20442 
20443             # Extra M4 quote needed to protect [] in grep expression.
20444             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20445             if test "x$FOUND_CORRECT_VERSION" = x; then
20446               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20448               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20449 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20450               BOOT_JDK_FOUND=no
20451             else
20452               # We're done! :-)
20453               BOOT_JDK_FOUND=yes
20454 
20455   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20456 
20457   # Input might be given as Windows format, start by converting to
20458   # unix format.
20459   path="$BOOT_JDK"
20460   new_path=`$CYGPATH -u "$path"`
20461 
20462   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20463   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20464   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20465   # "foo.exe" is OK but "foo" is an error.
20466   #
20467   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20468   # It is also a way to make sure we got the proper file name for the real test later on.
20469   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20470   if test "x$test_shortpath" = x; then
20471     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20472 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20473     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20474   fi
20475 
20476   # Call helper function which possibly converts this using DOS-style short mode.
20477   # If so, the updated path is stored in $new_path.
20478 
20479   input_path="$new_path"
20480   # Check if we need to convert this using DOS-style short mode. If the path
20481   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20482   # take no chances and rewrite it.
20483   # Note: m4 eats our [], so we need to use [ and ] instead.
20484   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20485   if test "x$has_forbidden_chars" != x; then
20486     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20487     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20488     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20489     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20490       # Going to short mode and back again did indeed matter. Since short mode is
20491       # case insensitive, let's make it lowercase to improve readability.
20492       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20493       # Now convert it back to Unix-stile (cygpath)
20494       input_path=`$CYGPATH -u "$shortmode_path"`
20495       new_path="$input_path"
20496     fi
20497   fi
20498 
20499   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20500   if test "x$test_cygdrive_prefix" = x; then
20501     # As a simple fix, exclude /usr/bin since it's not a real path.
20502     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20503       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20504       # a path prefixed by /cygdrive for fixpath to work.
20505       new_path="$CYGWIN_ROOT_PATH$input_path"
20506     fi
20507   fi
20508 
20509 
20510   if test "x$path" != "x$new_path"; then
20511     BOOT_JDK="$new_path"
20512     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20513 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20514   fi
20515 
20516   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20517 
20518   path="$BOOT_JDK"
20519   has_colon=`$ECHO $path | $GREP ^.:`
20520   new_path="$path"
20521   if test "x$has_colon" = x; then
20522     # Not in mixed or Windows style, start by that.
20523     new_path=`cmd //c echo $path`
20524   fi
20525 
20526 
20527   input_path="$new_path"
20528   # Check if we need to convert this using DOS-style short mode. If the path
20529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20530   # take no chances and rewrite it.
20531   # Note: m4 eats our [], so we need to use [ and ] instead.
20532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20533   if test "x$has_forbidden_chars" != x; then
20534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20535     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20536   fi
20537 
20538 
20539   windows_path="$new_path"
20540   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20541     unix_path=`$CYGPATH -u "$windows_path"`
20542     new_path="$unix_path"
20543   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20544     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20545     new_path="$unix_path"
20546   fi
20547 
20548   if test "x$path" != "x$new_path"; then
20549     BOOT_JDK="$new_path"
20550     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20551 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20552   fi
20553 
20554   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20555   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20556 
20557   else
20558     # We're on a posix platform. Hooray! :)
20559     path="$BOOT_JDK"
20560     has_space=`$ECHO "$path" | $GREP " "`
20561     if test "x$has_space" != x; then
20562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20563 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20564       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20565     fi
20566 
20567     # Use eval to expand a potential ~
20568     eval path="$path"
20569     if test ! -f "$path" && test ! -d "$path"; then
20570       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20571     fi
20572 
20573     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20574   fi
20575 
20576               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20577 $as_echo_n "checking for Boot JDK... " >&6; }
20578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20579 $as_echo "$BOOT_JDK" >&6; }
20580               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20581 $as_echo_n "checking Boot JDK version... " >&6; }
20582               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20583               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20584 $as_echo "$BOOT_JDK_VERSION" >&6; }
20585             fi # end check jdk version
20586           fi # end check rt.jar
20587         fi # end check javac
20588       fi # end check java
20589     fi # end check boot jdk found
20590   fi
20591 
20592 
20593   if test "x$BOOT_JDK_FOUND" = xno; then
20594     # Now execute the test
20595 
20596   if test -x /usr/libexec/java_home; then
20597     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20598     BOOT_JDK_FOUND=maybe
20599     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20600 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20601   fi
20602 
20603 
20604     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20605     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20606       # Do we have a bin/java?
20607       if test ! -x "$BOOT_JDK/bin/java"; then
20608         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20609 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20610         BOOT_JDK_FOUND=no
20611       else
20612         # Do we have a bin/javac?
20613         if test ! -x "$BOOT_JDK/bin/javac"; then
20614           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20616           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20617 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20618           BOOT_JDK_FOUND=no
20619         else
20620           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20621           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20622             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20623 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20624             BOOT_JDK_FOUND=no
20625           else
20626             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20627             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20628 
20629             # Extra M4 quote needed to protect [] in grep expression.
20630             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20631             if test "x$FOUND_CORRECT_VERSION" = x; then
20632               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20634               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20635 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20636               BOOT_JDK_FOUND=no
20637             else
20638               # We're done! :-)
20639               BOOT_JDK_FOUND=yes
20640 
20641   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20642 
20643   # Input might be given as Windows format, start by converting to
20644   # unix format.
20645   path="$BOOT_JDK"
20646   new_path=`$CYGPATH -u "$path"`
20647 
20648   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20649   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20650   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20651   # "foo.exe" is OK but "foo" is an error.
20652   #
20653   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20654   # It is also a way to make sure we got the proper file name for the real test later on.
20655   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20656   if test "x$test_shortpath" = x; then
20657     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20658 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20659     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20660   fi
20661 
20662   # Call helper function which possibly converts this using DOS-style short mode.
20663   # If so, the updated path is stored in $new_path.
20664 
20665   input_path="$new_path"
20666   # Check if we need to convert this using DOS-style short mode. If the path
20667   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20668   # take no chances and rewrite it.
20669   # Note: m4 eats our [], so we need to use [ and ] instead.
20670   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20671   if test "x$has_forbidden_chars" != x; then
20672     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20673     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20674     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20675     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20676       # Going to short mode and back again did indeed matter. Since short mode is
20677       # case insensitive, let's make it lowercase to improve readability.
20678       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20679       # Now convert it back to Unix-stile (cygpath)
20680       input_path=`$CYGPATH -u "$shortmode_path"`
20681       new_path="$input_path"
20682     fi
20683   fi
20684 
20685   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20686   if test "x$test_cygdrive_prefix" = x; then
20687     # As a simple fix, exclude /usr/bin since it's not a real path.
20688     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20689       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20690       # a path prefixed by /cygdrive for fixpath to work.
20691       new_path="$CYGWIN_ROOT_PATH$input_path"
20692     fi
20693   fi
20694 
20695 
20696   if test "x$path" != "x$new_path"; then
20697     BOOT_JDK="$new_path"
20698     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20699 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20700   fi
20701 
20702   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20703 
20704   path="$BOOT_JDK"
20705   has_colon=`$ECHO $path | $GREP ^.:`
20706   new_path="$path"
20707   if test "x$has_colon" = x; then
20708     # Not in mixed or Windows style, start by that.
20709     new_path=`cmd //c echo $path`
20710   fi
20711 
20712 
20713   input_path="$new_path"
20714   # Check if we need to convert this using DOS-style short mode. If the path
20715   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20716   # take no chances and rewrite it.
20717   # Note: m4 eats our [], so we need to use [ and ] instead.
20718   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20719   if test "x$has_forbidden_chars" != x; then
20720     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20721     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20722   fi
20723 
20724 
20725   windows_path="$new_path"
20726   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20727     unix_path=`$CYGPATH -u "$windows_path"`
20728     new_path="$unix_path"
20729   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20730     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20731     new_path="$unix_path"
20732   fi
20733 
20734   if test "x$path" != "x$new_path"; then
20735     BOOT_JDK="$new_path"
20736     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20737 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20738   fi
20739 
20740   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20741   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20742 
20743   else
20744     # We're on a posix platform. Hooray! :)
20745     path="$BOOT_JDK"
20746     has_space=`$ECHO "$path" | $GREP " "`
20747     if test "x$has_space" != x; then
20748       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20749 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20750       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20751     fi
20752 
20753     # Use eval to expand a potential ~
20754     eval path="$path"
20755     if test ! -f "$path" && test ! -d "$path"; then
20756       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20757     fi
20758 
20759     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20760   fi
20761 
20762               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20763 $as_echo_n "checking for Boot JDK... " >&6; }
20764               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20765 $as_echo "$BOOT_JDK" >&6; }
20766               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20767 $as_echo_n "checking Boot JDK version... " >&6; }
20768               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20769               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20770 $as_echo "$BOOT_JDK_VERSION" >&6; }
20771             fi # end check jdk version
20772           fi # end check rt.jar
20773         fi # end check javac
20774       fi # end check java
20775     fi # end check boot jdk found
20776   fi
20777 
20778   fi
20779 
20780 
20781     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20782     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20783       # Do we have a bin/java?
20784       if test ! -x "$BOOT_JDK/bin/java"; then
20785         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20786 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20787         BOOT_JDK_FOUND=no
20788       else
20789         # Do we have a bin/javac?
20790         if test ! -x "$BOOT_JDK/bin/javac"; then
20791           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20792 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20793           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20794 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20795           BOOT_JDK_FOUND=no
20796         else
20797           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20798           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20799             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20801             BOOT_JDK_FOUND=no
20802           else
20803             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20804             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20805 
20806             # Extra M4 quote needed to protect [] in grep expression.
20807             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20808             if test "x$FOUND_CORRECT_VERSION" = x; then
20809               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20811               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20812 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20813               BOOT_JDK_FOUND=no
20814             else
20815               # We're done! :-)
20816               BOOT_JDK_FOUND=yes
20817 
20818   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20819 
20820   # Input might be given as Windows format, start by converting to
20821   # unix format.
20822   path="$BOOT_JDK"
20823   new_path=`$CYGPATH -u "$path"`
20824 
20825   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20826   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20827   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20828   # "foo.exe" is OK but "foo" is an error.
20829   #
20830   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20831   # It is also a way to make sure we got the proper file name for the real test later on.
20832   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20833   if test "x$test_shortpath" = x; then
20834     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20835 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20836     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20837   fi
20838 
20839   # Call helper function which possibly converts this using DOS-style short mode.
20840   # If so, the updated path is stored in $new_path.
20841 
20842   input_path="$new_path"
20843   # Check if we need to convert this using DOS-style short mode. If the path
20844   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20845   # take no chances and rewrite it.
20846   # Note: m4 eats our [], so we need to use [ and ] instead.
20847   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20848   if test "x$has_forbidden_chars" != x; then
20849     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20850     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20851     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20852     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20853       # Going to short mode and back again did indeed matter. Since short mode is
20854       # case insensitive, let's make it lowercase to improve readability.
20855       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20856       # Now convert it back to Unix-stile (cygpath)
20857       input_path=`$CYGPATH -u "$shortmode_path"`
20858       new_path="$input_path"
20859     fi
20860   fi
20861 
20862   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20863   if test "x$test_cygdrive_prefix" = x; then
20864     # As a simple fix, exclude /usr/bin since it's not a real path.
20865     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20866       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20867       # a path prefixed by /cygdrive for fixpath to work.
20868       new_path="$CYGWIN_ROOT_PATH$input_path"
20869     fi
20870   fi
20871 
20872 
20873   if test "x$path" != "x$new_path"; then
20874     BOOT_JDK="$new_path"
20875     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20877   fi
20878 
20879   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20880 
20881   path="$BOOT_JDK"
20882   has_colon=`$ECHO $path | $GREP ^.:`
20883   new_path="$path"
20884   if test "x$has_colon" = x; then
20885     # Not in mixed or Windows style, start by that.
20886     new_path=`cmd //c echo $path`
20887   fi
20888 
20889 
20890   input_path="$new_path"
20891   # Check if we need to convert this using DOS-style short mode. If the path
20892   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20893   # take no chances and rewrite it.
20894   # Note: m4 eats our [], so we need to use [ and ] instead.
20895   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20896   if test "x$has_forbidden_chars" != x; then
20897     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20898     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20899   fi
20900 
20901 
20902   windows_path="$new_path"
20903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20904     unix_path=`$CYGPATH -u "$windows_path"`
20905     new_path="$unix_path"
20906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20907     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20908     new_path="$unix_path"
20909   fi
20910 
20911   if test "x$path" != "x$new_path"; then
20912     BOOT_JDK="$new_path"
20913     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20914 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20915   fi
20916 
20917   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20918   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20919 
20920   else
20921     # We're on a posix platform. Hooray! :)
20922     path="$BOOT_JDK"
20923     has_space=`$ECHO "$path" | $GREP " "`
20924     if test "x$has_space" != x; then
20925       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20926 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20927       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20928     fi
20929 
20930     # Use eval to expand a potential ~
20931     eval path="$path"
20932     if test ! -f "$path" && test ! -d "$path"; then
20933       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20934     fi
20935 
20936     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20937   fi
20938 
20939               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20940 $as_echo_n "checking for Boot JDK... " >&6; }
20941               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20942 $as_echo "$BOOT_JDK" >&6; }
20943               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20944 $as_echo_n "checking Boot JDK version... " >&6; }
20945               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20946               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20947 $as_echo "$BOOT_JDK_VERSION" >&6; }
20948             fi # end check jdk version
20949           fi # end check rt.jar
20950         fi # end check javac
20951       fi # end check java
20952     fi # end check boot jdk found
20953   fi
20954 
20955 
20956   # Test: Is $JAVA_HOME set?
20957 
20958   if test "x$BOOT_JDK_FOUND" = xno; then
20959     # Now execute the test
20960 
20961   if test "x$JAVA_HOME" != x; then
20962     JAVA_HOME_PROCESSED="$JAVA_HOME"
20963 
20964   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20965 
20966   # Input might be given as Windows format, start by converting to
20967   # unix format.
20968   path="$JAVA_HOME_PROCESSED"
20969   new_path=`$CYGPATH -u "$path"`
20970 
20971   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20972   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20973   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20974   # "foo.exe" is OK but "foo" is an error.
20975   #
20976   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20977   # It is also a way to make sure we got the proper file name for the real test later on.
20978   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20979   if test "x$test_shortpath" = x; then
20980     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20981 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20982     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20983   fi
20984 
20985   # Call helper function which possibly converts this using DOS-style short mode.
20986   # If so, the updated path is stored in $new_path.
20987 
20988   input_path="$new_path"
20989   # Check if we need to convert this using DOS-style short mode. If the path
20990   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20991   # take no chances and rewrite it.
20992   # Note: m4 eats our [], so we need to use [ and ] instead.
20993   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20994   if test "x$has_forbidden_chars" != x; then
20995     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20996     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20997     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20998     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20999       # Going to short mode and back again did indeed matter. Since short mode is
21000       # case insensitive, let's make it lowercase to improve readability.
21001       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21002       # Now convert it back to Unix-stile (cygpath)
21003       input_path=`$CYGPATH -u "$shortmode_path"`
21004       new_path="$input_path"
21005     fi
21006   fi
21007 
21008   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21009   if test "x$test_cygdrive_prefix" = x; then
21010     # As a simple fix, exclude /usr/bin since it's not a real path.
21011     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21012       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21013       # a path prefixed by /cygdrive for fixpath to work.
21014       new_path="$CYGWIN_ROOT_PATH$input_path"
21015     fi
21016   fi
21017 
21018 
21019   if test "x$path" != "x$new_path"; then
21020     JAVA_HOME_PROCESSED="$new_path"
21021     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21022 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21023   fi
21024 
21025   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21026 
21027   path="$JAVA_HOME_PROCESSED"
21028   has_colon=`$ECHO $path | $GREP ^.:`
21029   new_path="$path"
21030   if test "x$has_colon" = x; then
21031     # Not in mixed or Windows style, start by that.
21032     new_path=`cmd //c echo $path`
21033   fi
21034 
21035 
21036   input_path="$new_path"
21037   # Check if we need to convert this using DOS-style short mode. If the path
21038   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21039   # take no chances and rewrite it.
21040   # Note: m4 eats our [], so we need to use [ and ] instead.
21041   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21042   if test "x$has_forbidden_chars" != x; then
21043     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21044     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21045   fi
21046 
21047 
21048   windows_path="$new_path"
21049   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21050     unix_path=`$CYGPATH -u "$windows_path"`
21051     new_path="$unix_path"
21052   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21053     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21054     new_path="$unix_path"
21055   fi
21056 
21057   if test "x$path" != "x$new_path"; then
21058     JAVA_HOME_PROCESSED="$new_path"
21059     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21060 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21061   fi
21062 
21063   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21064   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21065 
21066   else
21067     # We're on a posix platform. Hooray! :)
21068     path="$JAVA_HOME_PROCESSED"
21069     has_space=`$ECHO "$path" | $GREP " "`
21070     if test "x$has_space" != x; then
21071       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21072 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21073       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21074     fi
21075 
21076     # Use eval to expand a potential ~
21077     eval path="$path"
21078     if test ! -f "$path" && test ! -d "$path"; then
21079       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21080     fi
21081 
21082     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21083   fi
21084 
21085     if test ! -d "$JAVA_HOME_PROCESSED"; then
21086       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21087 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21088     else
21089       # Aha, the user has set a JAVA_HOME
21090       # let us use that as the Boot JDK.
21091       BOOT_JDK="$JAVA_HOME_PROCESSED"
21092       BOOT_JDK_FOUND=maybe
21093       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21094 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21095     fi
21096   fi
21097 
21098 
21099     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21100     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21101       # Do we have a bin/java?
21102       if test ! -x "$BOOT_JDK/bin/java"; then
21103         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21105         BOOT_JDK_FOUND=no
21106       else
21107         # Do we have a bin/javac?
21108         if test ! -x "$BOOT_JDK/bin/javac"; then
21109           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21110 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21111           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21112 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21113           BOOT_JDK_FOUND=no
21114         else
21115           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21116           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21117             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21119             BOOT_JDK_FOUND=no
21120           else
21121             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21122             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21123 
21124             # Extra M4 quote needed to protect [] in grep expression.
21125             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21126             if test "x$FOUND_CORRECT_VERSION" = x; then
21127               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21129               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21130 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21131               BOOT_JDK_FOUND=no
21132             else
21133               # We're done! :-)
21134               BOOT_JDK_FOUND=yes
21135 
21136   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21137 
21138   # Input might be given as Windows format, start by converting to
21139   # unix format.
21140   path="$BOOT_JDK"
21141   new_path=`$CYGPATH -u "$path"`
21142 
21143   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21144   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21145   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21146   # "foo.exe" is OK but "foo" is an error.
21147   #
21148   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21149   # It is also a way to make sure we got the proper file name for the real test later on.
21150   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21151   if test "x$test_shortpath" = x; then
21152     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21153 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21154     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21155   fi
21156 
21157   # Call helper function which possibly converts this using DOS-style short mode.
21158   # If so, the updated path is stored in $new_path.
21159 
21160   input_path="$new_path"
21161   # Check if we need to convert this using DOS-style short mode. If the path
21162   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21163   # take no chances and rewrite it.
21164   # Note: m4 eats our [], so we need to use [ and ] instead.
21165   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21166   if test "x$has_forbidden_chars" != x; then
21167     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21168     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21169     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21170     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21171       # Going to short mode and back again did indeed matter. Since short mode is
21172       # case insensitive, let's make it lowercase to improve readability.
21173       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21174       # Now convert it back to Unix-stile (cygpath)
21175       input_path=`$CYGPATH -u "$shortmode_path"`
21176       new_path="$input_path"
21177     fi
21178   fi
21179 
21180   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21181   if test "x$test_cygdrive_prefix" = x; then
21182     # As a simple fix, exclude /usr/bin since it's not a real path.
21183     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21184       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21185       # a path prefixed by /cygdrive for fixpath to work.
21186       new_path="$CYGWIN_ROOT_PATH$input_path"
21187     fi
21188   fi
21189 
21190 
21191   if test "x$path" != "x$new_path"; then
21192     BOOT_JDK="$new_path"
21193     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21194 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21195   fi
21196 
21197   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21198 
21199   path="$BOOT_JDK"
21200   has_colon=`$ECHO $path | $GREP ^.:`
21201   new_path="$path"
21202   if test "x$has_colon" = x; then
21203     # Not in mixed or Windows style, start by that.
21204     new_path=`cmd //c echo $path`
21205   fi
21206 
21207 
21208   input_path="$new_path"
21209   # Check if we need to convert this using DOS-style short mode. If the path
21210   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21211   # take no chances and rewrite it.
21212   # Note: m4 eats our [], so we need to use [ and ] instead.
21213   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21214   if test "x$has_forbidden_chars" != x; then
21215     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21216     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21217   fi
21218 
21219 
21220   windows_path="$new_path"
21221   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21222     unix_path=`$CYGPATH -u "$windows_path"`
21223     new_path="$unix_path"
21224   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21225     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21226     new_path="$unix_path"
21227   fi
21228 
21229   if test "x$path" != "x$new_path"; then
21230     BOOT_JDK="$new_path"
21231     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21232 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21233   fi
21234 
21235   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21236   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21237 
21238   else
21239     # We're on a posix platform. Hooray! :)
21240     path="$BOOT_JDK"
21241     has_space=`$ECHO "$path" | $GREP " "`
21242     if test "x$has_space" != x; then
21243       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21244 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21245       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21246     fi
21247 
21248     # Use eval to expand a potential ~
21249     eval path="$path"
21250     if test ! -f "$path" && test ! -d "$path"; then
21251       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21252     fi
21253 
21254     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21255   fi
21256 
21257               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21258 $as_echo_n "checking for Boot JDK... " >&6; }
21259               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21260 $as_echo "$BOOT_JDK" >&6; }
21261               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21262 $as_echo_n "checking Boot JDK version... " >&6; }
21263               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21264               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21265 $as_echo "$BOOT_JDK_VERSION" >&6; }
21266             fi # end check jdk version
21267           fi # end check rt.jar
21268         fi # end check javac
21269       fi # end check java
21270     fi # end check boot jdk found
21271   fi
21272 
21273 
21274   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21275 
21276   if test "x$BOOT_JDK_FOUND" = xno; then
21277     # Now execute the test
21278 
21279   # Extract the first word of "javac", so it can be a program name with args.
21280 set dummy javac; ac_word=$2
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21282 $as_echo_n "checking for $ac_word... " >&6; }
21283 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21284   $as_echo_n "(cached) " >&6
21285 else
21286   case $JAVAC_CHECK in
21287   [\\/]* | ?:[\\/]*)
21288   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21289   ;;
21290   *)
21291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $PATH
21293 do
21294   IFS=$as_save_IFS
21295   test -z "$as_dir" && as_dir=.
21296     for ac_exec_ext in '' $ac_executable_extensions; do
21297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21298     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21300     break 2
21301   fi
21302 done
21303   done
21304 IFS=$as_save_IFS
21305 
21306   ;;
21307 esac
21308 fi
21309 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21310 if test -n "$JAVAC_CHECK"; then
21311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21312 $as_echo "$JAVAC_CHECK" >&6; }
21313 else
21314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21315 $as_echo "no" >&6; }
21316 fi
21317 
21318 
21319   # Extract the first word of "java", so it can be a program name with args.
21320 set dummy java; ac_word=$2
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21322 $as_echo_n "checking for $ac_word... " >&6; }
21323 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21324   $as_echo_n "(cached) " >&6
21325 else
21326   case $JAVA_CHECK in
21327   [\\/]* | ?:[\\/]*)
21328   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21329   ;;
21330   *)
21331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21332 for as_dir in $PATH
21333 do
21334   IFS=$as_save_IFS
21335   test -z "$as_dir" && as_dir=.
21336     for ac_exec_ext in '' $ac_executable_extensions; do
21337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21338     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21340     break 2
21341   fi
21342 done
21343   done
21344 IFS=$as_save_IFS
21345 
21346   ;;
21347 esac
21348 fi
21349 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21350 if test -n "$JAVA_CHECK"; then
21351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21352 $as_echo "$JAVA_CHECK" >&6; }
21353 else
21354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21355 $as_echo "no" >&6; }
21356 fi
21357 
21358 
21359   BINARY="$JAVAC_CHECK"
21360   if test "x$JAVAC_CHECK" = x; then
21361     BINARY="$JAVA_CHECK"
21362   fi
21363   if test "x$BINARY" != x; then
21364     # So there is a java(c) binary, it might be part of a JDK.
21365     # Lets find the JDK/JRE directory by following symbolic links.
21366     # Linux/GNU systems often have links from /usr/bin/java to
21367     # /etc/alternatives/java to the real JDK binary.
21368 
21369   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21370     # Follow a chain of symbolic links. Use readlink
21371     # where it exists, else fall back to horribly
21372     # complicated shell code.
21373     if test "x$READLINK_TESTED" != yes; then
21374       # On MacOSX there is a readlink tool with a different
21375       # purpose than the GNU readlink tool. Check the found readlink.
21376       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21377       if test "x$ISGNU" = x; then
21378         # A readlink that we do not know how to use.
21379         # Are there other non-GNU readlinks out there?
21380         READLINK_TESTED=yes
21381         READLINK=
21382       fi
21383     fi
21384 
21385     if test "x$READLINK" != x; then
21386       BINARY=`$READLINK -f $BINARY`
21387     else
21388       # Save the current directory for restoring afterwards
21389       STARTDIR=$PWD
21390       COUNTER=0
21391       sym_link_dir=`$DIRNAME $BINARY`
21392       sym_link_file=`$BASENAME $BINARY`
21393       cd $sym_link_dir
21394       # Use -P flag to resolve symlinks in directories.
21395       cd `$THEPWDCMD -P`
21396       sym_link_dir=`$THEPWDCMD -P`
21397       # Resolve file symlinks
21398       while test $COUNTER -lt 20; do
21399         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21400         if test "x$ISLINK" == x; then
21401           # This is not a symbolic link! We are done!
21402           break
21403         fi
21404         # Again resolve directory symlinks since the target of the just found
21405         # link could be in a different directory
21406         cd `$DIRNAME $ISLINK`
21407         sym_link_dir=`$THEPWDCMD -P`
21408         sym_link_file=`$BASENAME $ISLINK`
21409         let COUNTER=COUNTER+1
21410       done
21411       cd $STARTDIR
21412       BINARY=$sym_link_dir/$sym_link_file
21413     fi
21414   fi
21415 
21416     BOOT_JDK=`dirname "$BINARY"`
21417     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21418     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21419       # Looks like we found ourselves an JDK
21420       BOOT_JDK_FOUND=maybe
21421       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21422 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21423     fi
21424   fi
21425 
21426 
21427     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21428     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21429       # Do we have a bin/java?
21430       if test ! -x "$BOOT_JDK/bin/java"; then
21431         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21433         BOOT_JDK_FOUND=no
21434       else
21435         # Do we have a bin/javac?
21436         if test ! -x "$BOOT_JDK/bin/javac"; then
21437           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21439           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21440 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21441           BOOT_JDK_FOUND=no
21442         else
21443           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21444           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21445             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21447             BOOT_JDK_FOUND=no
21448           else
21449             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21450             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21451 
21452             # Extra M4 quote needed to protect [] in grep expression.
21453             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21454             if test "x$FOUND_CORRECT_VERSION" = x; then
21455               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21456 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21457               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21458 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21459               BOOT_JDK_FOUND=no
21460             else
21461               # We're done! :-)
21462               BOOT_JDK_FOUND=yes
21463 
21464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21465 
21466   # Input might be given as Windows format, start by converting to
21467   # unix format.
21468   path="$BOOT_JDK"
21469   new_path=`$CYGPATH -u "$path"`
21470 
21471   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21472   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21473   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21474   # "foo.exe" is OK but "foo" is an error.
21475   #
21476   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21477   # It is also a way to make sure we got the proper file name for the real test later on.
21478   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21479   if test "x$test_shortpath" = x; then
21480     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21481 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21482     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21483   fi
21484 
21485   # Call helper function which possibly converts this using DOS-style short mode.
21486   # If so, the updated path is stored in $new_path.
21487 
21488   input_path="$new_path"
21489   # Check if we need to convert this using DOS-style short mode. If the path
21490   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21491   # take no chances and rewrite it.
21492   # Note: m4 eats our [], so we need to use [ and ] instead.
21493   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21494   if test "x$has_forbidden_chars" != x; then
21495     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21496     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21497     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21498     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21499       # Going to short mode and back again did indeed matter. Since short mode is
21500       # case insensitive, let's make it lowercase to improve readability.
21501       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21502       # Now convert it back to Unix-stile (cygpath)
21503       input_path=`$CYGPATH -u "$shortmode_path"`
21504       new_path="$input_path"
21505     fi
21506   fi
21507 
21508   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21509   if test "x$test_cygdrive_prefix" = x; then
21510     # As a simple fix, exclude /usr/bin since it's not a real path.
21511     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21512       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21513       # a path prefixed by /cygdrive for fixpath to work.
21514       new_path="$CYGWIN_ROOT_PATH$input_path"
21515     fi
21516   fi
21517 
21518 
21519   if test "x$path" != "x$new_path"; then
21520     BOOT_JDK="$new_path"
21521     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21522 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21523   fi
21524 
21525   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21526 
21527   path="$BOOT_JDK"
21528   has_colon=`$ECHO $path | $GREP ^.:`
21529   new_path="$path"
21530   if test "x$has_colon" = x; then
21531     # Not in mixed or Windows style, start by that.
21532     new_path=`cmd //c echo $path`
21533   fi
21534 
21535 
21536   input_path="$new_path"
21537   # Check if we need to convert this using DOS-style short mode. If the path
21538   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21539   # take no chances and rewrite it.
21540   # Note: m4 eats our [], so we need to use [ and ] instead.
21541   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21542   if test "x$has_forbidden_chars" != x; then
21543     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21544     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21545   fi
21546 
21547 
21548   windows_path="$new_path"
21549   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21550     unix_path=`$CYGPATH -u "$windows_path"`
21551     new_path="$unix_path"
21552   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21553     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21554     new_path="$unix_path"
21555   fi
21556 
21557   if test "x$path" != "x$new_path"; then
21558     BOOT_JDK="$new_path"
21559     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21560 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21561   fi
21562 
21563   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21564   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21565 
21566   else
21567     # We're on a posix platform. Hooray! :)
21568     path="$BOOT_JDK"
21569     has_space=`$ECHO "$path" | $GREP " "`
21570     if test "x$has_space" != x; then
21571       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21572 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21573       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21574     fi
21575 
21576     # Use eval to expand a potential ~
21577     eval path="$path"
21578     if test ! -f "$path" && test ! -d "$path"; then
21579       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21580     fi
21581 
21582     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21583   fi
21584 
21585               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21586 $as_echo_n "checking for Boot JDK... " >&6; }
21587               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21588 $as_echo "$BOOT_JDK" >&6; }
21589               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21590 $as_echo_n "checking Boot JDK version... " >&6; }
21591               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21592               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21593 $as_echo "$BOOT_JDK_VERSION" >&6; }
21594             fi # end check jdk version
21595           fi # end check rt.jar
21596         fi # end check javac
21597       fi # end check java
21598     fi # end check boot jdk found
21599   fi
21600 
21601 
21602   # Test: Is there a JDK installed in default, well-known locations?
21603 
21604   if test "x$BOOT_JDK_FOUND" = xno; then
21605     # Now execute the test
21606 
21607   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21608 
21609   if test "x$BOOT_JDK_FOUND" = xno; then
21610     # Now execute the test
21611 
21612   if test "x$ProgramW6432" != x; then
21613     VIRTUAL_DIR="$ProgramW6432/Java"
21614 
21615   windows_path="$VIRTUAL_DIR"
21616   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21617     unix_path=`$CYGPATH -u "$windows_path"`
21618     VIRTUAL_DIR="$unix_path"
21619   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21620     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21621     VIRTUAL_DIR="$unix_path"
21622   fi
21623 
21624 
21625   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21626   BOOT_JDK_SUFFIX=""
21627   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21628   if test "x$ALL_JDKS_FOUND" != x; then
21629     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21630 
21631   if test "x$BOOT_JDK_FOUND" = xno; then
21632     # Now execute the test
21633 
21634         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21635         if test -d "$BOOT_JDK"; then
21636           BOOT_JDK_FOUND=maybe
21637           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21638 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21639         fi
21640 
21641 
21642     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21643     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21644       # Do we have a bin/java?
21645       if test ! -x "$BOOT_JDK/bin/java"; then
21646         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21648         BOOT_JDK_FOUND=no
21649       else
21650         # Do we have a bin/javac?
21651         if test ! -x "$BOOT_JDK/bin/javac"; then
21652           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21654           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21655 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21656           BOOT_JDK_FOUND=no
21657         else
21658           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21659           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21660             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21661 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21662             BOOT_JDK_FOUND=no
21663           else
21664             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21665             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21666 
21667             # Extra M4 quote needed to protect [] in grep expression.
21668             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21669             if test "x$FOUND_CORRECT_VERSION" = x; then
21670               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21672               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21673 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21674               BOOT_JDK_FOUND=no
21675             else
21676               # We're done! :-)
21677               BOOT_JDK_FOUND=yes
21678 
21679   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21680 
21681   # Input might be given as Windows format, start by converting to
21682   # unix format.
21683   path="$BOOT_JDK"
21684   new_path=`$CYGPATH -u "$path"`
21685 
21686   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21687   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21688   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21689   # "foo.exe" is OK but "foo" is an error.
21690   #
21691   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21692   # It is also a way to make sure we got the proper file name for the real test later on.
21693   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21694   if test "x$test_shortpath" = x; then
21695     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21696 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21697     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21698   fi
21699 
21700   # Call helper function which possibly converts this using DOS-style short mode.
21701   # If so, the updated path is stored in $new_path.
21702 
21703   input_path="$new_path"
21704   # Check if we need to convert this using DOS-style short mode. If the path
21705   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21706   # take no chances and rewrite it.
21707   # Note: m4 eats our [], so we need to use [ and ] instead.
21708   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21709   if test "x$has_forbidden_chars" != x; then
21710     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21711     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21712     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21713     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21714       # Going to short mode and back again did indeed matter. Since short mode is
21715       # case insensitive, let's make it lowercase to improve readability.
21716       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21717       # Now convert it back to Unix-stile (cygpath)
21718       input_path=`$CYGPATH -u "$shortmode_path"`
21719       new_path="$input_path"
21720     fi
21721   fi
21722 
21723   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21724   if test "x$test_cygdrive_prefix" = x; then
21725     # As a simple fix, exclude /usr/bin since it's not a real path.
21726     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21727       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21728       # a path prefixed by /cygdrive for fixpath to work.
21729       new_path="$CYGWIN_ROOT_PATH$input_path"
21730     fi
21731   fi
21732 
21733 
21734   if test "x$path" != "x$new_path"; then
21735     BOOT_JDK="$new_path"
21736     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21737 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21738   fi
21739 
21740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21741 
21742   path="$BOOT_JDK"
21743   has_colon=`$ECHO $path | $GREP ^.:`
21744   new_path="$path"
21745   if test "x$has_colon" = x; then
21746     # Not in mixed or Windows style, start by that.
21747     new_path=`cmd //c echo $path`
21748   fi
21749 
21750 
21751   input_path="$new_path"
21752   # Check if we need to convert this using DOS-style short mode. If the path
21753   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21754   # take no chances and rewrite it.
21755   # Note: m4 eats our [], so we need to use [ and ] instead.
21756   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21757   if test "x$has_forbidden_chars" != x; then
21758     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21759     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21760   fi
21761 
21762 
21763   windows_path="$new_path"
21764   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21765     unix_path=`$CYGPATH -u "$windows_path"`
21766     new_path="$unix_path"
21767   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21768     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21769     new_path="$unix_path"
21770   fi
21771 
21772   if test "x$path" != "x$new_path"; then
21773     BOOT_JDK="$new_path"
21774     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21775 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21776   fi
21777 
21778   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21779   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21780 
21781   else
21782     # We're on a posix platform. Hooray! :)
21783     path="$BOOT_JDK"
21784     has_space=`$ECHO "$path" | $GREP " "`
21785     if test "x$has_space" != x; then
21786       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21787 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21788       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21789     fi
21790 
21791     # Use eval to expand a potential ~
21792     eval path="$path"
21793     if test ! -f "$path" && test ! -d "$path"; then
21794       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21795     fi
21796 
21797     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21798   fi
21799 
21800               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21801 $as_echo_n "checking for Boot JDK... " >&6; }
21802               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21803 $as_echo "$BOOT_JDK" >&6; }
21804               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21805 $as_echo_n "checking Boot JDK version... " >&6; }
21806               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21807               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21808 $as_echo "$BOOT_JDK_VERSION" >&6; }
21809             fi # end check jdk version
21810           fi # end check rt.jar
21811         fi # end check javac
21812       fi # end check java
21813     fi # end check boot jdk found
21814   fi
21815 
21816     done
21817   fi
21818 
21819   fi
21820 
21821 
21822     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21823     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21824       # Do we have a bin/java?
21825       if test ! -x "$BOOT_JDK/bin/java"; then
21826         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21828         BOOT_JDK_FOUND=no
21829       else
21830         # Do we have a bin/javac?
21831         if test ! -x "$BOOT_JDK/bin/javac"; then
21832           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21834           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21835 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21836           BOOT_JDK_FOUND=no
21837         else
21838           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21839           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21840             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21841 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21842             BOOT_JDK_FOUND=no
21843           else
21844             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21845             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21846 
21847             # Extra M4 quote needed to protect [] in grep expression.
21848             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21849             if test "x$FOUND_CORRECT_VERSION" = x; then
21850               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21852               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21853 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21854               BOOT_JDK_FOUND=no
21855             else
21856               # We're done! :-)
21857               BOOT_JDK_FOUND=yes
21858 
21859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21860 
21861   # Input might be given as Windows format, start by converting to
21862   # unix format.
21863   path="$BOOT_JDK"
21864   new_path=`$CYGPATH -u "$path"`
21865 
21866   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21867   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21868   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21869   # "foo.exe" is OK but "foo" is an error.
21870   #
21871   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21872   # It is also a way to make sure we got the proper file name for the real test later on.
21873   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21874   if test "x$test_shortpath" = x; then
21875     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21876 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21877     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21878   fi
21879 
21880   # Call helper function which possibly converts this using DOS-style short mode.
21881   # If so, the updated path is stored in $new_path.
21882 
21883   input_path="$new_path"
21884   # Check if we need to convert this using DOS-style short mode. If the path
21885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21886   # take no chances and rewrite it.
21887   # Note: m4 eats our [], so we need to use [ and ] instead.
21888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21889   if test "x$has_forbidden_chars" != x; then
21890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21891     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21892     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21893     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21894       # Going to short mode and back again did indeed matter. Since short mode is
21895       # case insensitive, let's make it lowercase to improve readability.
21896       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21897       # Now convert it back to Unix-stile (cygpath)
21898       input_path=`$CYGPATH -u "$shortmode_path"`
21899       new_path="$input_path"
21900     fi
21901   fi
21902 
21903   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21904   if test "x$test_cygdrive_prefix" = x; then
21905     # As a simple fix, exclude /usr/bin since it's not a real path.
21906     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21907       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21908       # a path prefixed by /cygdrive for fixpath to work.
21909       new_path="$CYGWIN_ROOT_PATH$input_path"
21910     fi
21911   fi
21912 
21913 
21914   if test "x$path" != "x$new_path"; then
21915     BOOT_JDK="$new_path"
21916     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21917 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21918   fi
21919 
21920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21921 
21922   path="$BOOT_JDK"
21923   has_colon=`$ECHO $path | $GREP ^.:`
21924   new_path="$path"
21925   if test "x$has_colon" = x; then
21926     # Not in mixed or Windows style, start by that.
21927     new_path=`cmd //c echo $path`
21928   fi
21929 
21930 
21931   input_path="$new_path"
21932   # Check if we need to convert this using DOS-style short mode. If the path
21933   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21934   # take no chances and rewrite it.
21935   # Note: m4 eats our [], so we need to use [ and ] instead.
21936   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21937   if test "x$has_forbidden_chars" != x; then
21938     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21939     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21940   fi
21941 
21942 
21943   windows_path="$new_path"
21944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21945     unix_path=`$CYGPATH -u "$windows_path"`
21946     new_path="$unix_path"
21947   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21948     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21949     new_path="$unix_path"
21950   fi
21951 
21952   if test "x$path" != "x$new_path"; then
21953     BOOT_JDK="$new_path"
21954     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21955 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21956   fi
21957 
21958   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21959   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21960 
21961   else
21962     # We're on a posix platform. Hooray! :)
21963     path="$BOOT_JDK"
21964     has_space=`$ECHO "$path" | $GREP " "`
21965     if test "x$has_space" != x; then
21966       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21967 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21968       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21969     fi
21970 
21971     # Use eval to expand a potential ~
21972     eval path="$path"
21973     if test ! -f "$path" && test ! -d "$path"; then
21974       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21975     fi
21976 
21977     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21978   fi
21979 
21980               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21981 $as_echo_n "checking for Boot JDK... " >&6; }
21982               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21983 $as_echo "$BOOT_JDK" >&6; }
21984               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21985 $as_echo_n "checking Boot JDK version... " >&6; }
21986               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21987               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21988 $as_echo "$BOOT_JDK_VERSION" >&6; }
21989             fi # end check jdk version
21990           fi # end check rt.jar
21991         fi # end check javac
21992       fi # end check java
21993     fi # end check boot jdk found
21994   fi
21995 
21996 
21997   if test "x$BOOT_JDK_FOUND" = xno; then
21998     # Now execute the test
21999 
22000   if test "x$PROGRAMW6432" != x; then
22001     VIRTUAL_DIR="$PROGRAMW6432/Java"
22002 
22003   windows_path="$VIRTUAL_DIR"
22004   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22005     unix_path=`$CYGPATH -u "$windows_path"`
22006     VIRTUAL_DIR="$unix_path"
22007   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22008     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22009     VIRTUAL_DIR="$unix_path"
22010   fi
22011 
22012 
22013   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22014   BOOT_JDK_SUFFIX=""
22015   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22016   if test "x$ALL_JDKS_FOUND" != x; then
22017     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22018 
22019   if test "x$BOOT_JDK_FOUND" = xno; then
22020     # Now execute the test
22021 
22022         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22023         if test -d "$BOOT_JDK"; then
22024           BOOT_JDK_FOUND=maybe
22025           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22026 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22027         fi
22028 
22029 
22030     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22031     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22032       # Do we have a bin/java?
22033       if test ! -x "$BOOT_JDK/bin/java"; then
22034         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22036         BOOT_JDK_FOUND=no
22037       else
22038         # Do we have a bin/javac?
22039         if test ! -x "$BOOT_JDK/bin/javac"; then
22040           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22042           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22043 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22044           BOOT_JDK_FOUND=no
22045         else
22046           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22047           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22048             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22050             BOOT_JDK_FOUND=no
22051           else
22052             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22053             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22054 
22055             # Extra M4 quote needed to protect [] in grep expression.
22056             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22057             if test "x$FOUND_CORRECT_VERSION" = x; then
22058               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22060               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22061 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22062               BOOT_JDK_FOUND=no
22063             else
22064               # We're done! :-)
22065               BOOT_JDK_FOUND=yes
22066 
22067   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22068 
22069   # Input might be given as Windows format, start by converting to
22070   # unix format.
22071   path="$BOOT_JDK"
22072   new_path=`$CYGPATH -u "$path"`
22073 
22074   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22075   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22076   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22077   # "foo.exe" is OK but "foo" is an error.
22078   #
22079   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22080   # It is also a way to make sure we got the proper file name for the real test later on.
22081   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22082   if test "x$test_shortpath" = x; then
22083     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22084 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22085     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22086   fi
22087 
22088   # Call helper function which possibly converts this using DOS-style short mode.
22089   # If so, the updated path is stored in $new_path.
22090 
22091   input_path="$new_path"
22092   # Check if we need to convert this using DOS-style short mode. If the path
22093   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22094   # take no chances and rewrite it.
22095   # Note: m4 eats our [], so we need to use [ and ] instead.
22096   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22097   if test "x$has_forbidden_chars" != x; then
22098     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22099     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22100     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22101     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22102       # Going to short mode and back again did indeed matter. Since short mode is
22103       # case insensitive, let's make it lowercase to improve readability.
22104       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22105       # Now convert it back to Unix-stile (cygpath)
22106       input_path=`$CYGPATH -u "$shortmode_path"`
22107       new_path="$input_path"
22108     fi
22109   fi
22110 
22111   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22112   if test "x$test_cygdrive_prefix" = x; then
22113     # As a simple fix, exclude /usr/bin since it's not a real path.
22114     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22115       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22116       # a path prefixed by /cygdrive for fixpath to work.
22117       new_path="$CYGWIN_ROOT_PATH$input_path"
22118     fi
22119   fi
22120 
22121 
22122   if test "x$path" != "x$new_path"; then
22123     BOOT_JDK="$new_path"
22124     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22125 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22126   fi
22127 
22128   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22129 
22130   path="$BOOT_JDK"
22131   has_colon=`$ECHO $path | $GREP ^.:`
22132   new_path="$path"
22133   if test "x$has_colon" = x; then
22134     # Not in mixed or Windows style, start by that.
22135     new_path=`cmd //c echo $path`
22136   fi
22137 
22138 
22139   input_path="$new_path"
22140   # Check if we need to convert this using DOS-style short mode. If the path
22141   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22142   # take no chances and rewrite it.
22143   # Note: m4 eats our [], so we need to use [ and ] instead.
22144   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22145   if test "x$has_forbidden_chars" != x; then
22146     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22147     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22148   fi
22149 
22150 
22151   windows_path="$new_path"
22152   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22153     unix_path=`$CYGPATH -u "$windows_path"`
22154     new_path="$unix_path"
22155   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22156     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22157     new_path="$unix_path"
22158   fi
22159 
22160   if test "x$path" != "x$new_path"; then
22161     BOOT_JDK="$new_path"
22162     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22163 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22164   fi
22165 
22166   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22167   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22168 
22169   else
22170     # We're on a posix platform. Hooray! :)
22171     path="$BOOT_JDK"
22172     has_space=`$ECHO "$path" | $GREP " "`
22173     if test "x$has_space" != x; then
22174       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22175 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22176       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22177     fi
22178 
22179     # Use eval to expand a potential ~
22180     eval path="$path"
22181     if test ! -f "$path" && test ! -d "$path"; then
22182       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22183     fi
22184 
22185     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22186   fi
22187 
22188               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22189 $as_echo_n "checking for Boot JDK... " >&6; }
22190               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22191 $as_echo "$BOOT_JDK" >&6; }
22192               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22193 $as_echo_n "checking Boot JDK version... " >&6; }
22194               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22195               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22196 $as_echo "$BOOT_JDK_VERSION" >&6; }
22197             fi # end check jdk version
22198           fi # end check rt.jar
22199         fi # end check javac
22200       fi # end check java
22201     fi # end check boot jdk found
22202   fi
22203 
22204     done
22205   fi
22206 
22207   fi
22208 
22209 
22210     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22211     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22212       # Do we have a bin/java?
22213       if test ! -x "$BOOT_JDK/bin/java"; then
22214         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22216         BOOT_JDK_FOUND=no
22217       else
22218         # Do we have a bin/javac?
22219         if test ! -x "$BOOT_JDK/bin/javac"; then
22220           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22222           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22223 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22224           BOOT_JDK_FOUND=no
22225         else
22226           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22227           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22228             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22229 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22230             BOOT_JDK_FOUND=no
22231           else
22232             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22233             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22234 
22235             # Extra M4 quote needed to protect [] in grep expression.
22236             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22237             if test "x$FOUND_CORRECT_VERSION" = x; then
22238               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22240               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22241 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22242               BOOT_JDK_FOUND=no
22243             else
22244               # We're done! :-)
22245               BOOT_JDK_FOUND=yes
22246 
22247   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22248 
22249   # Input might be given as Windows format, start by converting to
22250   # unix format.
22251   path="$BOOT_JDK"
22252   new_path=`$CYGPATH -u "$path"`
22253 
22254   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22255   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22256   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22257   # "foo.exe" is OK but "foo" is an error.
22258   #
22259   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22260   # It is also a way to make sure we got the proper file name for the real test later on.
22261   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22262   if test "x$test_shortpath" = x; then
22263     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22264 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22265     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22266   fi
22267 
22268   # Call helper function which possibly converts this using DOS-style short mode.
22269   # If so, the updated path is stored in $new_path.
22270 
22271   input_path="$new_path"
22272   # Check if we need to convert this using DOS-style short mode. If the path
22273   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22274   # take no chances and rewrite it.
22275   # Note: m4 eats our [], so we need to use [ and ] instead.
22276   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22277   if test "x$has_forbidden_chars" != x; then
22278     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22279     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22280     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22281     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22282       # Going to short mode and back again did indeed matter. Since short mode is
22283       # case insensitive, let's make it lowercase to improve readability.
22284       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22285       # Now convert it back to Unix-stile (cygpath)
22286       input_path=`$CYGPATH -u "$shortmode_path"`
22287       new_path="$input_path"
22288     fi
22289   fi
22290 
22291   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22292   if test "x$test_cygdrive_prefix" = x; then
22293     # As a simple fix, exclude /usr/bin since it's not a real path.
22294     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22295       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22296       # a path prefixed by /cygdrive for fixpath to work.
22297       new_path="$CYGWIN_ROOT_PATH$input_path"
22298     fi
22299   fi
22300 
22301 
22302   if test "x$path" != "x$new_path"; then
22303     BOOT_JDK="$new_path"
22304     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22305 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22306   fi
22307 
22308   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22309 
22310   path="$BOOT_JDK"
22311   has_colon=`$ECHO $path | $GREP ^.:`
22312   new_path="$path"
22313   if test "x$has_colon" = x; then
22314     # Not in mixed or Windows style, start by that.
22315     new_path=`cmd //c echo $path`
22316   fi
22317 
22318 
22319   input_path="$new_path"
22320   # Check if we need to convert this using DOS-style short mode. If the path
22321   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22322   # take no chances and rewrite it.
22323   # Note: m4 eats our [], so we need to use [ and ] instead.
22324   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22325   if test "x$has_forbidden_chars" != x; then
22326     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22327     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22328   fi
22329 
22330 
22331   windows_path="$new_path"
22332   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22333     unix_path=`$CYGPATH -u "$windows_path"`
22334     new_path="$unix_path"
22335   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22336     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22337     new_path="$unix_path"
22338   fi
22339 
22340   if test "x$path" != "x$new_path"; then
22341     BOOT_JDK="$new_path"
22342     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22343 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22344   fi
22345 
22346   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22347   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22348 
22349   else
22350     # We're on a posix platform. Hooray! :)
22351     path="$BOOT_JDK"
22352     has_space=`$ECHO "$path" | $GREP " "`
22353     if test "x$has_space" != x; then
22354       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22355 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22356       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22357     fi
22358 
22359     # Use eval to expand a potential ~
22360     eval path="$path"
22361     if test ! -f "$path" && test ! -d "$path"; then
22362       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22363     fi
22364 
22365     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22366   fi
22367 
22368               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22369 $as_echo_n "checking for Boot JDK... " >&6; }
22370               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22371 $as_echo "$BOOT_JDK" >&6; }
22372               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22373 $as_echo_n "checking Boot JDK version... " >&6; }
22374               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22375               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22376 $as_echo "$BOOT_JDK_VERSION" >&6; }
22377             fi # end check jdk version
22378           fi # end check rt.jar
22379         fi # end check javac
22380       fi # end check java
22381     fi # end check boot jdk found
22382   fi
22383 
22384 
22385   if test "x$BOOT_JDK_FOUND" = xno; then
22386     # Now execute the test
22387 
22388   if test "x$PROGRAMFILES" != x; then
22389     VIRTUAL_DIR="$PROGRAMFILES/Java"
22390 
22391   windows_path="$VIRTUAL_DIR"
22392   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22393     unix_path=`$CYGPATH -u "$windows_path"`
22394     VIRTUAL_DIR="$unix_path"
22395   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22396     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22397     VIRTUAL_DIR="$unix_path"
22398   fi
22399 
22400 
22401   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22402   BOOT_JDK_SUFFIX=""
22403   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22404   if test "x$ALL_JDKS_FOUND" != x; then
22405     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22406 
22407   if test "x$BOOT_JDK_FOUND" = xno; then
22408     # Now execute the test
22409 
22410         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22411         if test -d "$BOOT_JDK"; then
22412           BOOT_JDK_FOUND=maybe
22413           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22414 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22415         fi
22416 
22417 
22418     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22419     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22420       # Do we have a bin/java?
22421       if test ! -x "$BOOT_JDK/bin/java"; then
22422         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22424         BOOT_JDK_FOUND=no
22425       else
22426         # Do we have a bin/javac?
22427         if test ! -x "$BOOT_JDK/bin/javac"; then
22428           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22430           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22431 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22432           BOOT_JDK_FOUND=no
22433         else
22434           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22435           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22436             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22437 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22438             BOOT_JDK_FOUND=no
22439           else
22440             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22441             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22442 
22443             # Extra M4 quote needed to protect [] in grep expression.
22444             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22445             if test "x$FOUND_CORRECT_VERSION" = x; then
22446               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22448               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22449 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22450               BOOT_JDK_FOUND=no
22451             else
22452               # We're done! :-)
22453               BOOT_JDK_FOUND=yes
22454 
22455   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22456 
22457   # Input might be given as Windows format, start by converting to
22458   # unix format.
22459   path="$BOOT_JDK"
22460   new_path=`$CYGPATH -u "$path"`
22461 
22462   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22463   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22464   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22465   # "foo.exe" is OK but "foo" is an error.
22466   #
22467   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22468   # It is also a way to make sure we got the proper file name for the real test later on.
22469   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22470   if test "x$test_shortpath" = x; then
22471     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22472 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22473     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22474   fi
22475 
22476   # Call helper function which possibly converts this using DOS-style short mode.
22477   # If so, the updated path is stored in $new_path.
22478 
22479   input_path="$new_path"
22480   # Check if we need to convert this using DOS-style short mode. If the path
22481   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22482   # take no chances and rewrite it.
22483   # Note: m4 eats our [], so we need to use [ and ] instead.
22484   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22485   if test "x$has_forbidden_chars" != x; then
22486     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22487     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22488     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22489     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22490       # Going to short mode and back again did indeed matter. Since short mode is
22491       # case insensitive, let's make it lowercase to improve readability.
22492       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22493       # Now convert it back to Unix-stile (cygpath)
22494       input_path=`$CYGPATH -u "$shortmode_path"`
22495       new_path="$input_path"
22496     fi
22497   fi
22498 
22499   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22500   if test "x$test_cygdrive_prefix" = x; then
22501     # As a simple fix, exclude /usr/bin since it's not a real path.
22502     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22503       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22504       # a path prefixed by /cygdrive for fixpath to work.
22505       new_path="$CYGWIN_ROOT_PATH$input_path"
22506     fi
22507   fi
22508 
22509 
22510   if test "x$path" != "x$new_path"; then
22511     BOOT_JDK="$new_path"
22512     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22513 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22514   fi
22515 
22516   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22517 
22518   path="$BOOT_JDK"
22519   has_colon=`$ECHO $path | $GREP ^.:`
22520   new_path="$path"
22521   if test "x$has_colon" = x; then
22522     # Not in mixed or Windows style, start by that.
22523     new_path=`cmd //c echo $path`
22524   fi
22525 
22526 
22527   input_path="$new_path"
22528   # Check if we need to convert this using DOS-style short mode. If the path
22529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22530   # take no chances and rewrite it.
22531   # Note: m4 eats our [], so we need to use [ and ] instead.
22532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22533   if test "x$has_forbidden_chars" != x; then
22534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22535     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22536   fi
22537 
22538 
22539   windows_path="$new_path"
22540   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22541     unix_path=`$CYGPATH -u "$windows_path"`
22542     new_path="$unix_path"
22543   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22544     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22545     new_path="$unix_path"
22546   fi
22547 
22548   if test "x$path" != "x$new_path"; then
22549     BOOT_JDK="$new_path"
22550     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22551 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22552   fi
22553 
22554   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22555   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22556 
22557   else
22558     # We're on a posix platform. Hooray! :)
22559     path="$BOOT_JDK"
22560     has_space=`$ECHO "$path" | $GREP " "`
22561     if test "x$has_space" != x; then
22562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22563 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22564       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22565     fi
22566 
22567     # Use eval to expand a potential ~
22568     eval path="$path"
22569     if test ! -f "$path" && test ! -d "$path"; then
22570       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22571     fi
22572 
22573     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22574   fi
22575 
22576               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22577 $as_echo_n "checking for Boot JDK... " >&6; }
22578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22579 $as_echo "$BOOT_JDK" >&6; }
22580               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22581 $as_echo_n "checking Boot JDK version... " >&6; }
22582               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22583               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22584 $as_echo "$BOOT_JDK_VERSION" >&6; }
22585             fi # end check jdk version
22586           fi # end check rt.jar
22587         fi # end check javac
22588       fi # end check java
22589     fi # end check boot jdk found
22590   fi
22591 
22592     done
22593   fi
22594 
22595   fi
22596 
22597 
22598     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22599     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22600       # Do we have a bin/java?
22601       if test ! -x "$BOOT_JDK/bin/java"; then
22602         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22604         BOOT_JDK_FOUND=no
22605       else
22606         # Do we have a bin/javac?
22607         if test ! -x "$BOOT_JDK/bin/javac"; then
22608           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22609 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22610           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22611 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22612           BOOT_JDK_FOUND=no
22613         else
22614           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22615           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22616             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22617 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22618             BOOT_JDK_FOUND=no
22619           else
22620             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22621             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22622 
22623             # Extra M4 quote needed to protect [] in grep expression.
22624             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22625             if test "x$FOUND_CORRECT_VERSION" = x; then
22626               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22628               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22629 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22630               BOOT_JDK_FOUND=no
22631             else
22632               # We're done! :-)
22633               BOOT_JDK_FOUND=yes
22634 
22635   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22636 
22637   # Input might be given as Windows format, start by converting to
22638   # unix format.
22639   path="$BOOT_JDK"
22640   new_path=`$CYGPATH -u "$path"`
22641 
22642   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22643   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22644   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22645   # "foo.exe" is OK but "foo" is an error.
22646   #
22647   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22648   # It is also a way to make sure we got the proper file name for the real test later on.
22649   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22650   if test "x$test_shortpath" = x; then
22651     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22652 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22653     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22654   fi
22655 
22656   # Call helper function which possibly converts this using DOS-style short mode.
22657   # If so, the updated path is stored in $new_path.
22658 
22659   input_path="$new_path"
22660   # Check if we need to convert this using DOS-style short mode. If the path
22661   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22662   # take no chances and rewrite it.
22663   # Note: m4 eats our [], so we need to use [ and ] instead.
22664   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22665   if test "x$has_forbidden_chars" != x; then
22666     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22667     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22668     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22669     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22670       # Going to short mode and back again did indeed matter. Since short mode is
22671       # case insensitive, let's make it lowercase to improve readability.
22672       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22673       # Now convert it back to Unix-stile (cygpath)
22674       input_path=`$CYGPATH -u "$shortmode_path"`
22675       new_path="$input_path"
22676     fi
22677   fi
22678 
22679   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22680   if test "x$test_cygdrive_prefix" = x; then
22681     # As a simple fix, exclude /usr/bin since it's not a real path.
22682     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22683       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22684       # a path prefixed by /cygdrive for fixpath to work.
22685       new_path="$CYGWIN_ROOT_PATH$input_path"
22686     fi
22687   fi
22688 
22689 
22690   if test "x$path" != "x$new_path"; then
22691     BOOT_JDK="$new_path"
22692     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22693 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22694   fi
22695 
22696   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22697 
22698   path="$BOOT_JDK"
22699   has_colon=`$ECHO $path | $GREP ^.:`
22700   new_path="$path"
22701   if test "x$has_colon" = x; then
22702     # Not in mixed or Windows style, start by that.
22703     new_path=`cmd //c echo $path`
22704   fi
22705 
22706 
22707   input_path="$new_path"
22708   # Check if we need to convert this using DOS-style short mode. If the path
22709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22710   # take no chances and rewrite it.
22711   # Note: m4 eats our [], so we need to use [ and ] instead.
22712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22713   if test "x$has_forbidden_chars" != x; then
22714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22715     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22716   fi
22717 
22718 
22719   windows_path="$new_path"
22720   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22721     unix_path=`$CYGPATH -u "$windows_path"`
22722     new_path="$unix_path"
22723   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22724     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22725     new_path="$unix_path"
22726   fi
22727 
22728   if test "x$path" != "x$new_path"; then
22729     BOOT_JDK="$new_path"
22730     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22731 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22732   fi
22733 
22734   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22735   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22736 
22737   else
22738     # We're on a posix platform. Hooray! :)
22739     path="$BOOT_JDK"
22740     has_space=`$ECHO "$path" | $GREP " "`
22741     if test "x$has_space" != x; then
22742       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22743 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22744       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22745     fi
22746 
22747     # Use eval to expand a potential ~
22748     eval path="$path"
22749     if test ! -f "$path" && test ! -d "$path"; then
22750       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22751     fi
22752 
22753     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22754   fi
22755 
22756               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22757 $as_echo_n "checking for Boot JDK... " >&6; }
22758               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22759 $as_echo "$BOOT_JDK" >&6; }
22760               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22761 $as_echo_n "checking Boot JDK version... " >&6; }
22762               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22763               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22764 $as_echo "$BOOT_JDK_VERSION" >&6; }
22765             fi # end check jdk version
22766           fi # end check rt.jar
22767         fi # end check javac
22768       fi # end check java
22769     fi # end check boot jdk found
22770   fi
22771 
22772 
22773   if test "x$BOOT_JDK_FOUND" = xno; then
22774     # Now execute the test
22775 
22776   if test "x$ProgramFiles" != x; then
22777     VIRTUAL_DIR="$ProgramFiles/Java"
22778 
22779   windows_path="$VIRTUAL_DIR"
22780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22781     unix_path=`$CYGPATH -u "$windows_path"`
22782     VIRTUAL_DIR="$unix_path"
22783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22785     VIRTUAL_DIR="$unix_path"
22786   fi
22787 
22788 
22789   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22790   BOOT_JDK_SUFFIX=""
22791   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22792   if test "x$ALL_JDKS_FOUND" != x; then
22793     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22794 
22795   if test "x$BOOT_JDK_FOUND" = xno; then
22796     # Now execute the test
22797 
22798         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22799         if test -d "$BOOT_JDK"; then
22800           BOOT_JDK_FOUND=maybe
22801           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22802 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22803         fi
22804 
22805 
22806     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22807     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22808       # Do we have a bin/java?
22809       if test ! -x "$BOOT_JDK/bin/java"; then
22810         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22812         BOOT_JDK_FOUND=no
22813       else
22814         # Do we have a bin/javac?
22815         if test ! -x "$BOOT_JDK/bin/javac"; then
22816           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22818           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22819 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22820           BOOT_JDK_FOUND=no
22821         else
22822           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22823           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22824             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22825 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22826             BOOT_JDK_FOUND=no
22827           else
22828             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22829             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22830 
22831             # Extra M4 quote needed to protect [] in grep expression.
22832             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22833             if test "x$FOUND_CORRECT_VERSION" = x; then
22834               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22836               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22837 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22838               BOOT_JDK_FOUND=no
22839             else
22840               # We're done! :-)
22841               BOOT_JDK_FOUND=yes
22842 
22843   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22844 
22845   # Input might be given as Windows format, start by converting to
22846   # unix format.
22847   path="$BOOT_JDK"
22848   new_path=`$CYGPATH -u "$path"`
22849 
22850   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22851   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22852   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22853   # "foo.exe" is OK but "foo" is an error.
22854   #
22855   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22856   # It is also a way to make sure we got the proper file name for the real test later on.
22857   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22858   if test "x$test_shortpath" = x; then
22859     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22861     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22862   fi
22863 
22864   # Call helper function which possibly converts this using DOS-style short mode.
22865   # If so, the updated path is stored in $new_path.
22866 
22867   input_path="$new_path"
22868   # Check if we need to convert this using DOS-style short mode. If the path
22869   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22870   # take no chances and rewrite it.
22871   # Note: m4 eats our [], so we need to use [ and ] instead.
22872   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22873   if test "x$has_forbidden_chars" != x; then
22874     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22875     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22876     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22877     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22878       # Going to short mode and back again did indeed matter. Since short mode is
22879       # case insensitive, let's make it lowercase to improve readability.
22880       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22881       # Now convert it back to Unix-stile (cygpath)
22882       input_path=`$CYGPATH -u "$shortmode_path"`
22883       new_path="$input_path"
22884     fi
22885   fi
22886 
22887   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22888   if test "x$test_cygdrive_prefix" = x; then
22889     # As a simple fix, exclude /usr/bin since it's not a real path.
22890     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22891       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22892       # a path prefixed by /cygdrive for fixpath to work.
22893       new_path="$CYGWIN_ROOT_PATH$input_path"
22894     fi
22895   fi
22896 
22897 
22898   if test "x$path" != "x$new_path"; then
22899     BOOT_JDK="$new_path"
22900     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22901 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22902   fi
22903 
22904   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22905 
22906   path="$BOOT_JDK"
22907   has_colon=`$ECHO $path | $GREP ^.:`
22908   new_path="$path"
22909   if test "x$has_colon" = x; then
22910     # Not in mixed or Windows style, start by that.
22911     new_path=`cmd //c echo $path`
22912   fi
22913 
22914 
22915   input_path="$new_path"
22916   # Check if we need to convert this using DOS-style short mode. If the path
22917   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22918   # take no chances and rewrite it.
22919   # Note: m4 eats our [], so we need to use [ and ] instead.
22920   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22921   if test "x$has_forbidden_chars" != x; then
22922     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22923     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22924   fi
22925 
22926 
22927   windows_path="$new_path"
22928   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22929     unix_path=`$CYGPATH -u "$windows_path"`
22930     new_path="$unix_path"
22931   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22932     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22933     new_path="$unix_path"
22934   fi
22935 
22936   if test "x$path" != "x$new_path"; then
22937     BOOT_JDK="$new_path"
22938     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22939 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22940   fi
22941 
22942   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22943   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22944 
22945   else
22946     # We're on a posix platform. Hooray! :)
22947     path="$BOOT_JDK"
22948     has_space=`$ECHO "$path" | $GREP " "`
22949     if test "x$has_space" != x; then
22950       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22951 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22952       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22953     fi
22954 
22955     # Use eval to expand a potential ~
22956     eval path="$path"
22957     if test ! -f "$path" && test ! -d "$path"; then
22958       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22959     fi
22960 
22961     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22962   fi
22963 
22964               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22965 $as_echo_n "checking for Boot JDK... " >&6; }
22966               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22967 $as_echo "$BOOT_JDK" >&6; }
22968               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22969 $as_echo_n "checking Boot JDK version... " >&6; }
22970               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22971               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22972 $as_echo "$BOOT_JDK_VERSION" >&6; }
22973             fi # end check jdk version
22974           fi # end check rt.jar
22975         fi # end check javac
22976       fi # end check java
22977     fi # end check boot jdk found
22978   fi
22979 
22980     done
22981   fi
22982 
22983   fi
22984 
22985 
22986     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22987     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22988       # Do we have a bin/java?
22989       if test ! -x "$BOOT_JDK/bin/java"; then
22990         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22991 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22992         BOOT_JDK_FOUND=no
22993       else
22994         # Do we have a bin/javac?
22995         if test ! -x "$BOOT_JDK/bin/javac"; then
22996           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22998           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22999 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23000           BOOT_JDK_FOUND=no
23001         else
23002           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23003           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23004             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23006             BOOT_JDK_FOUND=no
23007           else
23008             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23009             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23010 
23011             # Extra M4 quote needed to protect [] in grep expression.
23012             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23013             if test "x$FOUND_CORRECT_VERSION" = x; then
23014               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23015 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23016               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23017 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23018               BOOT_JDK_FOUND=no
23019             else
23020               # We're done! :-)
23021               BOOT_JDK_FOUND=yes
23022 
23023   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23024 
23025   # Input might be given as Windows format, start by converting to
23026   # unix format.
23027   path="$BOOT_JDK"
23028   new_path=`$CYGPATH -u "$path"`
23029 
23030   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23031   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23032   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23033   # "foo.exe" is OK but "foo" is an error.
23034   #
23035   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23036   # It is also a way to make sure we got the proper file name for the real test later on.
23037   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23038   if test "x$test_shortpath" = x; then
23039     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23040 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23041     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23042   fi
23043 
23044   # Call helper function which possibly converts this using DOS-style short mode.
23045   # If so, the updated path is stored in $new_path.
23046 
23047   input_path="$new_path"
23048   # Check if we need to convert this using DOS-style short mode. If the path
23049   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23050   # take no chances and rewrite it.
23051   # Note: m4 eats our [], so we need to use [ and ] instead.
23052   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23053   if test "x$has_forbidden_chars" != x; then
23054     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23055     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23056     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23057     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23058       # Going to short mode and back again did indeed matter. Since short mode is
23059       # case insensitive, let's make it lowercase to improve readability.
23060       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23061       # Now convert it back to Unix-stile (cygpath)
23062       input_path=`$CYGPATH -u "$shortmode_path"`
23063       new_path="$input_path"
23064     fi
23065   fi
23066 
23067   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23068   if test "x$test_cygdrive_prefix" = x; then
23069     # As a simple fix, exclude /usr/bin since it's not a real path.
23070     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23071       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23072       # a path prefixed by /cygdrive for fixpath to work.
23073       new_path="$CYGWIN_ROOT_PATH$input_path"
23074     fi
23075   fi
23076 
23077 
23078   if test "x$path" != "x$new_path"; then
23079     BOOT_JDK="$new_path"
23080     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23081 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23082   fi
23083 
23084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23085 
23086   path="$BOOT_JDK"
23087   has_colon=`$ECHO $path | $GREP ^.:`
23088   new_path="$path"
23089   if test "x$has_colon" = x; then
23090     # Not in mixed or Windows style, start by that.
23091     new_path=`cmd //c echo $path`
23092   fi
23093 
23094 
23095   input_path="$new_path"
23096   # Check if we need to convert this using DOS-style short mode. If the path
23097   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23098   # take no chances and rewrite it.
23099   # Note: m4 eats our [], so we need to use [ and ] instead.
23100   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23101   if test "x$has_forbidden_chars" != x; then
23102     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23103     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23104   fi
23105 
23106 
23107   windows_path="$new_path"
23108   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23109     unix_path=`$CYGPATH -u "$windows_path"`
23110     new_path="$unix_path"
23111   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23112     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23113     new_path="$unix_path"
23114   fi
23115 
23116   if test "x$path" != "x$new_path"; then
23117     BOOT_JDK="$new_path"
23118     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23119 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23120   fi
23121 
23122   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23123   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23124 
23125   else
23126     # We're on a posix platform. Hooray! :)
23127     path="$BOOT_JDK"
23128     has_space=`$ECHO "$path" | $GREP " "`
23129     if test "x$has_space" != x; then
23130       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23131 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23132       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23133     fi
23134 
23135     # Use eval to expand a potential ~
23136     eval path="$path"
23137     if test ! -f "$path" && test ! -d "$path"; then
23138       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23139     fi
23140 
23141     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23142   fi
23143 
23144               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23145 $as_echo_n "checking for Boot JDK... " >&6; }
23146               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23147 $as_echo "$BOOT_JDK" >&6; }
23148               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23149 $as_echo_n "checking Boot JDK version... " >&6; }
23150               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23151               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23152 $as_echo "$BOOT_JDK_VERSION" >&6; }
23153             fi # end check jdk version
23154           fi # end check rt.jar
23155         fi # end check javac
23156       fi # end check java
23157     fi # end check boot jdk found
23158   fi
23159 
23160 
23161   if test "x$BOOT_JDK_FOUND" = xno; then
23162     # Now execute the test
23163 
23164   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23165   BOOT_JDK_SUFFIX=""
23166   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23167   if test "x$ALL_JDKS_FOUND" != x; then
23168     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23169 
23170   if test "x$BOOT_JDK_FOUND" = xno; then
23171     # Now execute the test
23172 
23173         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23174         if test -d "$BOOT_JDK"; then
23175           BOOT_JDK_FOUND=maybe
23176           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23177 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23178         fi
23179 
23180 
23181     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23182     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23183       # Do we have a bin/java?
23184       if test ! -x "$BOOT_JDK/bin/java"; then
23185         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23186 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23187         BOOT_JDK_FOUND=no
23188       else
23189         # Do we have a bin/javac?
23190         if test ! -x "$BOOT_JDK/bin/javac"; then
23191           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23192 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23193           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23194 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23195           BOOT_JDK_FOUND=no
23196         else
23197           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23198           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23199             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23201             BOOT_JDK_FOUND=no
23202           else
23203             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23204             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23205 
23206             # Extra M4 quote needed to protect [] in grep expression.
23207             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23208             if test "x$FOUND_CORRECT_VERSION" = x; then
23209               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23211               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23212 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23213               BOOT_JDK_FOUND=no
23214             else
23215               # We're done! :-)
23216               BOOT_JDK_FOUND=yes
23217 
23218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23219 
23220   # Input might be given as Windows format, start by converting to
23221   # unix format.
23222   path="$BOOT_JDK"
23223   new_path=`$CYGPATH -u "$path"`
23224 
23225   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23226   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23227   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23228   # "foo.exe" is OK but "foo" is an error.
23229   #
23230   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23231   # It is also a way to make sure we got the proper file name for the real test later on.
23232   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23233   if test "x$test_shortpath" = x; then
23234     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23235 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23236     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23237   fi
23238 
23239   # Call helper function which possibly converts this using DOS-style short mode.
23240   # If so, the updated path is stored in $new_path.
23241 
23242   input_path="$new_path"
23243   # Check if we need to convert this using DOS-style short mode. If the path
23244   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23245   # take no chances and rewrite it.
23246   # Note: m4 eats our [], so we need to use [ and ] instead.
23247   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23248   if test "x$has_forbidden_chars" != x; then
23249     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23250     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23251     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23252     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23253       # Going to short mode and back again did indeed matter. Since short mode is
23254       # case insensitive, let's make it lowercase to improve readability.
23255       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23256       # Now convert it back to Unix-stile (cygpath)
23257       input_path=`$CYGPATH -u "$shortmode_path"`
23258       new_path="$input_path"
23259     fi
23260   fi
23261 
23262   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23263   if test "x$test_cygdrive_prefix" = x; then
23264     # As a simple fix, exclude /usr/bin since it's not a real path.
23265     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23266       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23267       # a path prefixed by /cygdrive for fixpath to work.
23268       new_path="$CYGWIN_ROOT_PATH$input_path"
23269     fi
23270   fi
23271 
23272 
23273   if test "x$path" != "x$new_path"; then
23274     BOOT_JDK="$new_path"
23275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23276 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23277   fi
23278 
23279   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23280 
23281   path="$BOOT_JDK"
23282   has_colon=`$ECHO $path | $GREP ^.:`
23283   new_path="$path"
23284   if test "x$has_colon" = x; then
23285     # Not in mixed or Windows style, start by that.
23286     new_path=`cmd //c echo $path`
23287   fi
23288 
23289 
23290   input_path="$new_path"
23291   # Check if we need to convert this using DOS-style short mode. If the path
23292   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23293   # take no chances and rewrite it.
23294   # Note: m4 eats our [], so we need to use [ and ] instead.
23295   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23296   if test "x$has_forbidden_chars" != x; then
23297     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23298     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23299   fi
23300 
23301 
23302   windows_path="$new_path"
23303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23304     unix_path=`$CYGPATH -u "$windows_path"`
23305     new_path="$unix_path"
23306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23307     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23308     new_path="$unix_path"
23309   fi
23310 
23311   if test "x$path" != "x$new_path"; then
23312     BOOT_JDK="$new_path"
23313     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23314 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23315   fi
23316 
23317   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23318   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23319 
23320   else
23321     # We're on a posix platform. Hooray! :)
23322     path="$BOOT_JDK"
23323     has_space=`$ECHO "$path" | $GREP " "`
23324     if test "x$has_space" != x; then
23325       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23326 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23327       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23328     fi
23329 
23330     # Use eval to expand a potential ~
23331     eval path="$path"
23332     if test ! -f "$path" && test ! -d "$path"; then
23333       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23334     fi
23335 
23336     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23337   fi
23338 
23339               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23340 $as_echo_n "checking for Boot JDK... " >&6; }
23341               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23342 $as_echo "$BOOT_JDK" >&6; }
23343               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23344 $as_echo_n "checking Boot JDK version... " >&6; }
23345               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23346               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23347 $as_echo "$BOOT_JDK_VERSION" >&6; }
23348             fi # end check jdk version
23349           fi # end check rt.jar
23350         fi # end check javac
23351       fi # end check java
23352     fi # end check boot jdk found
23353   fi
23354 
23355     done
23356   fi
23357 
23358 
23359     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23360     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23361       # Do we have a bin/java?
23362       if test ! -x "$BOOT_JDK/bin/java"; then
23363         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23364 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23365         BOOT_JDK_FOUND=no
23366       else
23367         # Do we have a bin/javac?
23368         if test ! -x "$BOOT_JDK/bin/javac"; then
23369           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23370 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23371           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23372 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23373           BOOT_JDK_FOUND=no
23374         else
23375           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23376           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23377             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23379             BOOT_JDK_FOUND=no
23380           else
23381             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23382             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23383 
23384             # Extra M4 quote needed to protect [] in grep expression.
23385             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23386             if test "x$FOUND_CORRECT_VERSION" = x; then
23387               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23389               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23390 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23391               BOOT_JDK_FOUND=no
23392             else
23393               # We're done! :-)
23394               BOOT_JDK_FOUND=yes
23395 
23396   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23397 
23398   # Input might be given as Windows format, start by converting to
23399   # unix format.
23400   path="$BOOT_JDK"
23401   new_path=`$CYGPATH -u "$path"`
23402 
23403   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23404   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23405   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23406   # "foo.exe" is OK but "foo" is an error.
23407   #
23408   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23409   # It is also a way to make sure we got the proper file name for the real test later on.
23410   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23411   if test "x$test_shortpath" = x; then
23412     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23413 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23414     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23415   fi
23416 
23417   # Call helper function which possibly converts this using DOS-style short mode.
23418   # If so, the updated path is stored in $new_path.
23419 
23420   input_path="$new_path"
23421   # Check if we need to convert this using DOS-style short mode. If the path
23422   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23423   # take no chances and rewrite it.
23424   # Note: m4 eats our [], so we need to use [ and ] instead.
23425   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23426   if test "x$has_forbidden_chars" != x; then
23427     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23428     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23429     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23430     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23431       # Going to short mode and back again did indeed matter. Since short mode is
23432       # case insensitive, let's make it lowercase to improve readability.
23433       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23434       # Now convert it back to Unix-stile (cygpath)
23435       input_path=`$CYGPATH -u "$shortmode_path"`
23436       new_path="$input_path"
23437     fi
23438   fi
23439 
23440   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23441   if test "x$test_cygdrive_prefix" = x; then
23442     # As a simple fix, exclude /usr/bin since it's not a real path.
23443     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23444       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23445       # a path prefixed by /cygdrive for fixpath to work.
23446       new_path="$CYGWIN_ROOT_PATH$input_path"
23447     fi
23448   fi
23449 
23450 
23451   if test "x$path" != "x$new_path"; then
23452     BOOT_JDK="$new_path"
23453     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23454 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23455   fi
23456 
23457   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23458 
23459   path="$BOOT_JDK"
23460   has_colon=`$ECHO $path | $GREP ^.:`
23461   new_path="$path"
23462   if test "x$has_colon" = x; then
23463     # Not in mixed or Windows style, start by that.
23464     new_path=`cmd //c echo $path`
23465   fi
23466 
23467 
23468   input_path="$new_path"
23469   # Check if we need to convert this using DOS-style short mode. If the path
23470   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23471   # take no chances and rewrite it.
23472   # Note: m4 eats our [], so we need to use [ and ] instead.
23473   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23474   if test "x$has_forbidden_chars" != x; then
23475     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23476     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23477   fi
23478 
23479 
23480   windows_path="$new_path"
23481   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23482     unix_path=`$CYGPATH -u "$windows_path"`
23483     new_path="$unix_path"
23484   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23485     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23486     new_path="$unix_path"
23487   fi
23488 
23489   if test "x$path" != "x$new_path"; then
23490     BOOT_JDK="$new_path"
23491     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23492 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23493   fi
23494 
23495   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23496   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23497 
23498   else
23499     # We're on a posix platform. Hooray! :)
23500     path="$BOOT_JDK"
23501     has_space=`$ECHO "$path" | $GREP " "`
23502     if test "x$has_space" != x; then
23503       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23504 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23505       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23506     fi
23507 
23508     # Use eval to expand a potential ~
23509     eval path="$path"
23510     if test ! -f "$path" && test ! -d "$path"; then
23511       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23512     fi
23513 
23514     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23515   fi
23516 
23517               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23518 $as_echo_n "checking for Boot JDK... " >&6; }
23519               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23520 $as_echo "$BOOT_JDK" >&6; }
23521               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23522 $as_echo_n "checking Boot JDK version... " >&6; }
23523               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23524               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23525 $as_echo "$BOOT_JDK_VERSION" >&6; }
23526             fi # end check jdk version
23527           fi # end check rt.jar
23528         fi # end check javac
23529       fi # end check java
23530     fi # end check boot jdk found
23531   fi
23532 
23533   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23534 
23535   if test "x$BOOT_JDK_FOUND" = xno; then
23536     # Now execute the test
23537 
23538   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23539   BOOT_JDK_SUFFIX="/Contents/Home"
23540   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23541   if test "x$ALL_JDKS_FOUND" != x; then
23542     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23543 
23544   if test "x$BOOT_JDK_FOUND" = xno; then
23545     # Now execute the test
23546 
23547         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23548         if test -d "$BOOT_JDK"; then
23549           BOOT_JDK_FOUND=maybe
23550           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23551 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23552         fi
23553 
23554 
23555     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23556     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23557       # Do we have a bin/java?
23558       if test ! -x "$BOOT_JDK/bin/java"; then
23559         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23561         BOOT_JDK_FOUND=no
23562       else
23563         # Do we have a bin/javac?
23564         if test ! -x "$BOOT_JDK/bin/javac"; then
23565           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23567           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23568 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23569           BOOT_JDK_FOUND=no
23570         else
23571           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23572           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23573             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23574 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23575             BOOT_JDK_FOUND=no
23576           else
23577             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23578             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23579 
23580             # Extra M4 quote needed to protect [] in grep expression.
23581             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23582             if test "x$FOUND_CORRECT_VERSION" = x; then
23583               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23584 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23585               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23586 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23587               BOOT_JDK_FOUND=no
23588             else
23589               # We're done! :-)
23590               BOOT_JDK_FOUND=yes
23591 
23592   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23593 
23594   # Input might be given as Windows format, start by converting to
23595   # unix format.
23596   path="$BOOT_JDK"
23597   new_path=`$CYGPATH -u "$path"`
23598 
23599   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23600   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23601   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23602   # "foo.exe" is OK but "foo" is an error.
23603   #
23604   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23605   # It is also a way to make sure we got the proper file name for the real test later on.
23606   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23607   if test "x$test_shortpath" = x; then
23608     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23609 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23610     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23611   fi
23612 
23613   # Call helper function which possibly converts this using DOS-style short mode.
23614   # If so, the updated path is stored in $new_path.
23615 
23616   input_path="$new_path"
23617   # Check if we need to convert this using DOS-style short mode. If the path
23618   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23619   # take no chances and rewrite it.
23620   # Note: m4 eats our [], so we need to use [ and ] instead.
23621   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23622   if test "x$has_forbidden_chars" != x; then
23623     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23624     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23625     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23626     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23627       # Going to short mode and back again did indeed matter. Since short mode is
23628       # case insensitive, let's make it lowercase to improve readability.
23629       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23630       # Now convert it back to Unix-stile (cygpath)
23631       input_path=`$CYGPATH -u "$shortmode_path"`
23632       new_path="$input_path"
23633     fi
23634   fi
23635 
23636   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23637   if test "x$test_cygdrive_prefix" = x; then
23638     # As a simple fix, exclude /usr/bin since it's not a real path.
23639     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23640       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23641       # a path prefixed by /cygdrive for fixpath to work.
23642       new_path="$CYGWIN_ROOT_PATH$input_path"
23643     fi
23644   fi
23645 
23646 
23647   if test "x$path" != "x$new_path"; then
23648     BOOT_JDK="$new_path"
23649     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23650 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23651   fi
23652 
23653   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23654 
23655   path="$BOOT_JDK"
23656   has_colon=`$ECHO $path | $GREP ^.:`
23657   new_path="$path"
23658   if test "x$has_colon" = x; then
23659     # Not in mixed or Windows style, start by that.
23660     new_path=`cmd //c echo $path`
23661   fi
23662 
23663 
23664   input_path="$new_path"
23665   # Check if we need to convert this using DOS-style short mode. If the path
23666   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23667   # take no chances and rewrite it.
23668   # Note: m4 eats our [], so we need to use [ and ] instead.
23669   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23670   if test "x$has_forbidden_chars" != x; then
23671     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23672     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23673   fi
23674 
23675 
23676   windows_path="$new_path"
23677   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23678     unix_path=`$CYGPATH -u "$windows_path"`
23679     new_path="$unix_path"
23680   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23681     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23682     new_path="$unix_path"
23683   fi
23684 
23685   if test "x$path" != "x$new_path"; then
23686     BOOT_JDK="$new_path"
23687     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23688 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23689   fi
23690 
23691   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23692   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23693 
23694   else
23695     # We're on a posix platform. Hooray! :)
23696     path="$BOOT_JDK"
23697     has_space=`$ECHO "$path" | $GREP " "`
23698     if test "x$has_space" != x; then
23699       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23700 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23701       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23702     fi
23703 
23704     # Use eval to expand a potential ~
23705     eval path="$path"
23706     if test ! -f "$path" && test ! -d "$path"; then
23707       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23708     fi
23709 
23710     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23711   fi
23712 
23713               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23714 $as_echo_n "checking for Boot JDK... " >&6; }
23715               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23716 $as_echo "$BOOT_JDK" >&6; }
23717               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23718 $as_echo_n "checking Boot JDK version... " >&6; }
23719               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23720               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23721 $as_echo "$BOOT_JDK_VERSION" >&6; }
23722             fi # end check jdk version
23723           fi # end check rt.jar
23724         fi # end check javac
23725       fi # end check java
23726     fi # end check boot jdk found
23727   fi
23728 
23729     done
23730   fi
23731 
23732 
23733     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23734     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23735       # Do we have a bin/java?
23736       if test ! -x "$BOOT_JDK/bin/java"; then
23737         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23739         BOOT_JDK_FOUND=no
23740       else
23741         # Do we have a bin/javac?
23742         if test ! -x "$BOOT_JDK/bin/javac"; then
23743           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23745           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23746 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23747           BOOT_JDK_FOUND=no
23748         else
23749           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23750           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23751             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23753             BOOT_JDK_FOUND=no
23754           else
23755             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23756             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23757 
23758             # Extra M4 quote needed to protect [] in grep expression.
23759             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23760             if test "x$FOUND_CORRECT_VERSION" = x; then
23761               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23763               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23764 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23765               BOOT_JDK_FOUND=no
23766             else
23767               # We're done! :-)
23768               BOOT_JDK_FOUND=yes
23769 
23770   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23771 
23772   # Input might be given as Windows format, start by converting to
23773   # unix format.
23774   path="$BOOT_JDK"
23775   new_path=`$CYGPATH -u "$path"`
23776 
23777   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23778   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23779   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23780   # "foo.exe" is OK but "foo" is an error.
23781   #
23782   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23783   # It is also a way to make sure we got the proper file name for the real test later on.
23784   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23785   if test "x$test_shortpath" = x; then
23786     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23787 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23788     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23789   fi
23790 
23791   # Call helper function which possibly converts this using DOS-style short mode.
23792   # If so, the updated path is stored in $new_path.
23793 
23794   input_path="$new_path"
23795   # Check if we need to convert this using DOS-style short mode. If the path
23796   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23797   # take no chances and rewrite it.
23798   # Note: m4 eats our [], so we need to use [ and ] instead.
23799   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23800   if test "x$has_forbidden_chars" != x; then
23801     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23802     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23803     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23804     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23805       # Going to short mode and back again did indeed matter. Since short mode is
23806       # case insensitive, let's make it lowercase to improve readability.
23807       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23808       # Now convert it back to Unix-stile (cygpath)
23809       input_path=`$CYGPATH -u "$shortmode_path"`
23810       new_path="$input_path"
23811     fi
23812   fi
23813 
23814   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23815   if test "x$test_cygdrive_prefix" = x; then
23816     # As a simple fix, exclude /usr/bin since it's not a real path.
23817     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23818       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23819       # a path prefixed by /cygdrive for fixpath to work.
23820       new_path="$CYGWIN_ROOT_PATH$input_path"
23821     fi
23822   fi
23823 
23824 
23825   if test "x$path" != "x$new_path"; then
23826     BOOT_JDK="$new_path"
23827     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23829   fi
23830 
23831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23832 
23833   path="$BOOT_JDK"
23834   has_colon=`$ECHO $path | $GREP ^.:`
23835   new_path="$path"
23836   if test "x$has_colon" = x; then
23837     # Not in mixed or Windows style, start by that.
23838     new_path=`cmd //c echo $path`
23839   fi
23840 
23841 
23842   input_path="$new_path"
23843   # Check if we need to convert this using DOS-style short mode. If the path
23844   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23845   # take no chances and rewrite it.
23846   # Note: m4 eats our [], so we need to use [ and ] instead.
23847   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23848   if test "x$has_forbidden_chars" != x; then
23849     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23850     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23851   fi
23852 
23853 
23854   windows_path="$new_path"
23855   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23856     unix_path=`$CYGPATH -u "$windows_path"`
23857     new_path="$unix_path"
23858   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23859     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23860     new_path="$unix_path"
23861   fi
23862 
23863   if test "x$path" != "x$new_path"; then
23864     BOOT_JDK="$new_path"
23865     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23866 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23867   fi
23868 
23869   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23870   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23871 
23872   else
23873     # We're on a posix platform. Hooray! :)
23874     path="$BOOT_JDK"
23875     has_space=`$ECHO "$path" | $GREP " "`
23876     if test "x$has_space" != x; then
23877       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23878 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23879       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23880     fi
23881 
23882     # Use eval to expand a potential ~
23883     eval path="$path"
23884     if test ! -f "$path" && test ! -d "$path"; then
23885       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23886     fi
23887 
23888     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23889   fi
23890 
23891               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23892 $as_echo_n "checking for Boot JDK... " >&6; }
23893               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23894 $as_echo "$BOOT_JDK" >&6; }
23895               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23896 $as_echo_n "checking Boot JDK version... " >&6; }
23897               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23898               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23899 $as_echo "$BOOT_JDK_VERSION" >&6; }
23900             fi # end check jdk version
23901           fi # end check rt.jar
23902         fi # end check javac
23903       fi # end check java
23904     fi # end check boot jdk found
23905   fi
23906 
23907 
23908   if test "x$BOOT_JDK_FOUND" = xno; then
23909     # Now execute the test
23910 
23911   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23912   BOOT_JDK_SUFFIX="/Contents/Home"
23913   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23914   if test "x$ALL_JDKS_FOUND" != x; then
23915     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23916 
23917   if test "x$BOOT_JDK_FOUND" = xno; then
23918     # Now execute the test
23919 
23920         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23921         if test -d "$BOOT_JDK"; then
23922           BOOT_JDK_FOUND=maybe
23923           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23924 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23925         fi
23926 
23927 
23928     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23929     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23930       # Do we have a bin/java?
23931       if test ! -x "$BOOT_JDK/bin/java"; then
23932         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23933 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23934         BOOT_JDK_FOUND=no
23935       else
23936         # Do we have a bin/javac?
23937         if test ! -x "$BOOT_JDK/bin/javac"; then
23938           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23939 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23940           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23941 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23942           BOOT_JDK_FOUND=no
23943         else
23944           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23945           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23946             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23948             BOOT_JDK_FOUND=no
23949           else
23950             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23951             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23952 
23953             # Extra M4 quote needed to protect [] in grep expression.
23954             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23955             if test "x$FOUND_CORRECT_VERSION" = x; then
23956               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23957 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23958               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23959 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23960               BOOT_JDK_FOUND=no
23961             else
23962               # We're done! :-)
23963               BOOT_JDK_FOUND=yes
23964 
23965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23966 
23967   # Input might be given as Windows format, start by converting to
23968   # unix format.
23969   path="$BOOT_JDK"
23970   new_path=`$CYGPATH -u "$path"`
23971 
23972   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23973   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23974   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23975   # "foo.exe" is OK but "foo" is an error.
23976   #
23977   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23978   # It is also a way to make sure we got the proper file name for the real test later on.
23979   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23980   if test "x$test_shortpath" = x; then
23981     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23983     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23984   fi
23985 
23986   # Call helper function which possibly converts this using DOS-style short mode.
23987   # If so, the updated path is stored in $new_path.
23988 
23989   input_path="$new_path"
23990   # Check if we need to convert this using DOS-style short mode. If the path
23991   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23992   # take no chances and rewrite it.
23993   # Note: m4 eats our [], so we need to use [ and ] instead.
23994   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23995   if test "x$has_forbidden_chars" != x; then
23996     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23997     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23998     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23999     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24000       # Going to short mode and back again did indeed matter. Since short mode is
24001       # case insensitive, let's make it lowercase to improve readability.
24002       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24003       # Now convert it back to Unix-stile (cygpath)
24004       input_path=`$CYGPATH -u "$shortmode_path"`
24005       new_path="$input_path"
24006     fi
24007   fi
24008 
24009   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24010   if test "x$test_cygdrive_prefix" = x; then
24011     # As a simple fix, exclude /usr/bin since it's not a real path.
24012     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24013       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24014       # a path prefixed by /cygdrive for fixpath to work.
24015       new_path="$CYGWIN_ROOT_PATH$input_path"
24016     fi
24017   fi
24018 
24019 
24020   if test "x$path" != "x$new_path"; then
24021     BOOT_JDK="$new_path"
24022     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24023 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24024   fi
24025 
24026   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24027 
24028   path="$BOOT_JDK"
24029   has_colon=`$ECHO $path | $GREP ^.:`
24030   new_path="$path"
24031   if test "x$has_colon" = x; then
24032     # Not in mixed or Windows style, start by that.
24033     new_path=`cmd //c echo $path`
24034   fi
24035 
24036 
24037   input_path="$new_path"
24038   # Check if we need to convert this using DOS-style short mode. If the path
24039   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24040   # take no chances and rewrite it.
24041   # Note: m4 eats our [], so we need to use [ and ] instead.
24042   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24043   if test "x$has_forbidden_chars" != x; then
24044     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24045     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24046   fi
24047 
24048 
24049   windows_path="$new_path"
24050   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24051     unix_path=`$CYGPATH -u "$windows_path"`
24052     new_path="$unix_path"
24053   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24054     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24055     new_path="$unix_path"
24056   fi
24057 
24058   if test "x$path" != "x$new_path"; then
24059     BOOT_JDK="$new_path"
24060     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24061 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24062   fi
24063 
24064   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24065   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24066 
24067   else
24068     # We're on a posix platform. Hooray! :)
24069     path="$BOOT_JDK"
24070     has_space=`$ECHO "$path" | $GREP " "`
24071     if test "x$has_space" != x; then
24072       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24074       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24075     fi
24076 
24077     # Use eval to expand a potential ~
24078     eval path="$path"
24079     if test ! -f "$path" && test ! -d "$path"; then
24080       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24081     fi
24082 
24083     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24084   fi
24085 
24086               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24087 $as_echo_n "checking for Boot JDK... " >&6; }
24088               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24089 $as_echo "$BOOT_JDK" >&6; }
24090               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24091 $as_echo_n "checking Boot JDK version... " >&6; }
24092               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24093               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24094 $as_echo "$BOOT_JDK_VERSION" >&6; }
24095             fi # end check jdk version
24096           fi # end check rt.jar
24097         fi # end check javac
24098       fi # end check java
24099     fi # end check boot jdk found
24100   fi
24101 
24102     done
24103   fi
24104 
24105 
24106     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24107     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24108       # Do we have a bin/java?
24109       if test ! -x "$BOOT_JDK/bin/java"; then
24110         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24111 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24112         BOOT_JDK_FOUND=no
24113       else
24114         # Do we have a bin/javac?
24115         if test ! -x "$BOOT_JDK/bin/javac"; then
24116           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24117 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24118           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24119 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24120           BOOT_JDK_FOUND=no
24121         else
24122           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24123           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24124             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24126             BOOT_JDK_FOUND=no
24127           else
24128             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24129             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24130 
24131             # Extra M4 quote needed to protect [] in grep expression.
24132             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24133             if test "x$FOUND_CORRECT_VERSION" = x; then
24134               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24136               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24137 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24138               BOOT_JDK_FOUND=no
24139             else
24140               # We're done! :-)
24141               BOOT_JDK_FOUND=yes
24142 
24143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24144 
24145   # Input might be given as Windows format, start by converting to
24146   # unix format.
24147   path="$BOOT_JDK"
24148   new_path=`$CYGPATH -u "$path"`
24149 
24150   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24151   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24152   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24153   # "foo.exe" is OK but "foo" is an error.
24154   #
24155   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24156   # It is also a way to make sure we got the proper file name for the real test later on.
24157   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24158   if test "x$test_shortpath" = x; then
24159     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24160 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24161     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24162   fi
24163 
24164   # Call helper function which possibly converts this using DOS-style short mode.
24165   # If so, the updated path is stored in $new_path.
24166 
24167   input_path="$new_path"
24168   # Check if we need to convert this using DOS-style short mode. If the path
24169   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24170   # take no chances and rewrite it.
24171   # Note: m4 eats our [], so we need to use [ and ] instead.
24172   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24173   if test "x$has_forbidden_chars" != x; then
24174     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24175     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24176     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24177     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24178       # Going to short mode and back again did indeed matter. Since short mode is
24179       # case insensitive, let's make it lowercase to improve readability.
24180       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24181       # Now convert it back to Unix-stile (cygpath)
24182       input_path=`$CYGPATH -u "$shortmode_path"`
24183       new_path="$input_path"
24184     fi
24185   fi
24186 
24187   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24188   if test "x$test_cygdrive_prefix" = x; then
24189     # As a simple fix, exclude /usr/bin since it's not a real path.
24190     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24191       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24192       # a path prefixed by /cygdrive for fixpath to work.
24193       new_path="$CYGWIN_ROOT_PATH$input_path"
24194     fi
24195   fi
24196 
24197 
24198   if test "x$path" != "x$new_path"; then
24199     BOOT_JDK="$new_path"
24200     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24201 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24202   fi
24203 
24204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24205 
24206   path="$BOOT_JDK"
24207   has_colon=`$ECHO $path | $GREP ^.:`
24208   new_path="$path"
24209   if test "x$has_colon" = x; then
24210     # Not in mixed or Windows style, start by that.
24211     new_path=`cmd //c echo $path`
24212   fi
24213 
24214 
24215   input_path="$new_path"
24216   # Check if we need to convert this using DOS-style short mode. If the path
24217   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24218   # take no chances and rewrite it.
24219   # Note: m4 eats our [], so we need to use [ and ] instead.
24220   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24221   if test "x$has_forbidden_chars" != x; then
24222     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24223     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24224   fi
24225 
24226 
24227   windows_path="$new_path"
24228   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24229     unix_path=`$CYGPATH -u "$windows_path"`
24230     new_path="$unix_path"
24231   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24232     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24233     new_path="$unix_path"
24234   fi
24235 
24236   if test "x$path" != "x$new_path"; then
24237     BOOT_JDK="$new_path"
24238     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24239 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24240   fi
24241 
24242   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24243   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24244 
24245   else
24246     # We're on a posix platform. Hooray! :)
24247     path="$BOOT_JDK"
24248     has_space=`$ECHO "$path" | $GREP " "`
24249     if test "x$has_space" != x; then
24250       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24251 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24252       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24253     fi
24254 
24255     # Use eval to expand a potential ~
24256     eval path="$path"
24257     if test ! -f "$path" && test ! -d "$path"; then
24258       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24259     fi
24260 
24261     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24262   fi
24263 
24264               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24265 $as_echo_n "checking for Boot JDK... " >&6; }
24266               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24267 $as_echo "$BOOT_JDK" >&6; }
24268               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24269 $as_echo_n "checking Boot JDK version... " >&6; }
24270               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24271               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24272 $as_echo "$BOOT_JDK_VERSION" >&6; }
24273             fi # end check jdk version
24274           fi # end check rt.jar
24275         fi # end check javac
24276       fi # end check java
24277     fi # end check boot jdk found
24278   fi
24279 
24280   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24281 
24282   if test "x$BOOT_JDK_FOUND" = xno; then
24283     # Now execute the test
24284 
24285   BOOT_JDK_PREFIX="/usr/lib/jvm"
24286   BOOT_JDK_SUFFIX=""
24287   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24288   if test "x$ALL_JDKS_FOUND" != x; then
24289     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24290 
24291   if test "x$BOOT_JDK_FOUND" = xno; then
24292     # Now execute the test
24293 
24294         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24295         if test -d "$BOOT_JDK"; then
24296           BOOT_JDK_FOUND=maybe
24297           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24298 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24299         fi
24300 
24301 
24302     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24303     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24304       # Do we have a bin/java?
24305       if test ! -x "$BOOT_JDK/bin/java"; then
24306         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24308         BOOT_JDK_FOUND=no
24309       else
24310         # Do we have a bin/javac?
24311         if test ! -x "$BOOT_JDK/bin/javac"; then
24312           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24314           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24315 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24316           BOOT_JDK_FOUND=no
24317         else
24318           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24319           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24320             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24322             BOOT_JDK_FOUND=no
24323           else
24324             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24325             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24326 
24327             # Extra M4 quote needed to protect [] in grep expression.
24328             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24329             if test "x$FOUND_CORRECT_VERSION" = x; then
24330               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24331 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24332               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24333 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24334               BOOT_JDK_FOUND=no
24335             else
24336               # We're done! :-)
24337               BOOT_JDK_FOUND=yes
24338 
24339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24340 
24341   # Input might be given as Windows format, start by converting to
24342   # unix format.
24343   path="$BOOT_JDK"
24344   new_path=`$CYGPATH -u "$path"`
24345 
24346   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24347   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24348   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24349   # "foo.exe" is OK but "foo" is an error.
24350   #
24351   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24352   # It is also a way to make sure we got the proper file name for the real test later on.
24353   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24354   if test "x$test_shortpath" = x; then
24355     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24356 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24357     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24358   fi
24359 
24360   # Call helper function which possibly converts this using DOS-style short mode.
24361   # If so, the updated path is stored in $new_path.
24362 
24363   input_path="$new_path"
24364   # Check if we need to convert this using DOS-style short mode. If the path
24365   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24366   # take no chances and rewrite it.
24367   # Note: m4 eats our [], so we need to use [ and ] instead.
24368   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24369   if test "x$has_forbidden_chars" != x; then
24370     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24371     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24372     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24373     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24374       # Going to short mode and back again did indeed matter. Since short mode is
24375       # case insensitive, let's make it lowercase to improve readability.
24376       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24377       # Now convert it back to Unix-stile (cygpath)
24378       input_path=`$CYGPATH -u "$shortmode_path"`
24379       new_path="$input_path"
24380     fi
24381   fi
24382 
24383   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24384   if test "x$test_cygdrive_prefix" = x; then
24385     # As a simple fix, exclude /usr/bin since it's not a real path.
24386     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24387       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24388       # a path prefixed by /cygdrive for fixpath to work.
24389       new_path="$CYGWIN_ROOT_PATH$input_path"
24390     fi
24391   fi
24392 
24393 
24394   if test "x$path" != "x$new_path"; then
24395     BOOT_JDK="$new_path"
24396     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24397 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24398   fi
24399 
24400   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24401 
24402   path="$BOOT_JDK"
24403   has_colon=`$ECHO $path | $GREP ^.:`
24404   new_path="$path"
24405   if test "x$has_colon" = x; then
24406     # Not in mixed or Windows style, start by that.
24407     new_path=`cmd //c echo $path`
24408   fi
24409 
24410 
24411   input_path="$new_path"
24412   # Check if we need to convert this using DOS-style short mode. If the path
24413   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24414   # take no chances and rewrite it.
24415   # Note: m4 eats our [], so we need to use [ and ] instead.
24416   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24417   if test "x$has_forbidden_chars" != x; then
24418     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24419     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24420   fi
24421 
24422 
24423   windows_path="$new_path"
24424   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24425     unix_path=`$CYGPATH -u "$windows_path"`
24426     new_path="$unix_path"
24427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24428     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24429     new_path="$unix_path"
24430   fi
24431 
24432   if test "x$path" != "x$new_path"; then
24433     BOOT_JDK="$new_path"
24434     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24435 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24436   fi
24437 
24438   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24439   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24440 
24441   else
24442     # We're on a posix platform. Hooray! :)
24443     path="$BOOT_JDK"
24444     has_space=`$ECHO "$path" | $GREP " "`
24445     if test "x$has_space" != x; then
24446       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24447 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24448       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24449     fi
24450 
24451     # Use eval to expand a potential ~
24452     eval path="$path"
24453     if test ! -f "$path" && test ! -d "$path"; then
24454       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24455     fi
24456 
24457     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24458   fi
24459 
24460               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24461 $as_echo_n "checking for Boot JDK... " >&6; }
24462               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24463 $as_echo "$BOOT_JDK" >&6; }
24464               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24465 $as_echo_n "checking Boot JDK version... " >&6; }
24466               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24467               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24468 $as_echo "$BOOT_JDK_VERSION" >&6; }
24469             fi # end check jdk version
24470           fi # end check rt.jar
24471         fi # end check javac
24472       fi # end check java
24473     fi # end check boot jdk found
24474   fi
24475 
24476     done
24477   fi
24478 
24479 
24480     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24481     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24482       # Do we have a bin/java?
24483       if test ! -x "$BOOT_JDK/bin/java"; then
24484         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24486         BOOT_JDK_FOUND=no
24487       else
24488         # Do we have a bin/javac?
24489         if test ! -x "$BOOT_JDK/bin/javac"; then
24490           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24492           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24493 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24494           BOOT_JDK_FOUND=no
24495         else
24496           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24497           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24498             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24500             BOOT_JDK_FOUND=no
24501           else
24502             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24503             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24504 
24505             # Extra M4 quote needed to protect [] in grep expression.
24506             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24507             if test "x$FOUND_CORRECT_VERSION" = x; then
24508               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24510               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24511 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24512               BOOT_JDK_FOUND=no
24513             else
24514               # We're done! :-)
24515               BOOT_JDK_FOUND=yes
24516 
24517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24518 
24519   # Input might be given as Windows format, start by converting to
24520   # unix format.
24521   path="$BOOT_JDK"
24522   new_path=`$CYGPATH -u "$path"`
24523 
24524   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24525   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24526   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24527   # "foo.exe" is OK but "foo" is an error.
24528   #
24529   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24530   # It is also a way to make sure we got the proper file name for the real test later on.
24531   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24532   if test "x$test_shortpath" = x; then
24533     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24534 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24535     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24536   fi
24537 
24538   # Call helper function which possibly converts this using DOS-style short mode.
24539   # If so, the updated path is stored in $new_path.
24540 
24541   input_path="$new_path"
24542   # Check if we need to convert this using DOS-style short mode. If the path
24543   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24544   # take no chances and rewrite it.
24545   # Note: m4 eats our [], so we need to use [ and ] instead.
24546   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24547   if test "x$has_forbidden_chars" != x; then
24548     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24549     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24550     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24551     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24552       # Going to short mode and back again did indeed matter. Since short mode is
24553       # case insensitive, let's make it lowercase to improve readability.
24554       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24555       # Now convert it back to Unix-stile (cygpath)
24556       input_path=`$CYGPATH -u "$shortmode_path"`
24557       new_path="$input_path"
24558     fi
24559   fi
24560 
24561   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24562   if test "x$test_cygdrive_prefix" = x; then
24563     # As a simple fix, exclude /usr/bin since it's not a real path.
24564     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24565       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24566       # a path prefixed by /cygdrive for fixpath to work.
24567       new_path="$CYGWIN_ROOT_PATH$input_path"
24568     fi
24569   fi
24570 
24571 
24572   if test "x$path" != "x$new_path"; then
24573     BOOT_JDK="$new_path"
24574     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24575 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24576   fi
24577 
24578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24579 
24580   path="$BOOT_JDK"
24581   has_colon=`$ECHO $path | $GREP ^.:`
24582   new_path="$path"
24583   if test "x$has_colon" = x; then
24584     # Not in mixed or Windows style, start by that.
24585     new_path=`cmd //c echo $path`
24586   fi
24587 
24588 
24589   input_path="$new_path"
24590   # Check if we need to convert this using DOS-style short mode. If the path
24591   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24592   # take no chances and rewrite it.
24593   # Note: m4 eats our [], so we need to use [ and ] instead.
24594   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24595   if test "x$has_forbidden_chars" != x; then
24596     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24597     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24598   fi
24599 
24600 
24601   windows_path="$new_path"
24602   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24603     unix_path=`$CYGPATH -u "$windows_path"`
24604     new_path="$unix_path"
24605   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24606     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24607     new_path="$unix_path"
24608   fi
24609 
24610   if test "x$path" != "x$new_path"; then
24611     BOOT_JDK="$new_path"
24612     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24613 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24614   fi
24615 
24616   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24617   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24618 
24619   else
24620     # We're on a posix platform. Hooray! :)
24621     path="$BOOT_JDK"
24622     has_space=`$ECHO "$path" | $GREP " "`
24623     if test "x$has_space" != x; then
24624       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24625 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24626       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24627     fi
24628 
24629     # Use eval to expand a potential ~
24630     eval path="$path"
24631     if test ! -f "$path" && test ! -d "$path"; then
24632       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24633     fi
24634 
24635     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24636   fi
24637 
24638               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24639 $as_echo_n "checking for Boot JDK... " >&6; }
24640               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24641 $as_echo "$BOOT_JDK" >&6; }
24642               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24643 $as_echo_n "checking Boot JDK version... " >&6; }
24644               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24645               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24646 $as_echo "$BOOT_JDK_VERSION" >&6; }
24647             fi # end check jdk version
24648           fi # end check rt.jar
24649         fi # end check javac
24650       fi # end check java
24651     fi # end check boot jdk found
24652   fi
24653 
24654   fi
24655 
24656 
24657     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24658     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24659       # Do we have a bin/java?
24660       if test ! -x "$BOOT_JDK/bin/java"; then
24661         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24663         BOOT_JDK_FOUND=no
24664       else
24665         # Do we have a bin/javac?
24666         if test ! -x "$BOOT_JDK/bin/javac"; then
24667           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24669           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24670 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24671           BOOT_JDK_FOUND=no
24672         else
24673           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24674           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24675             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24677             BOOT_JDK_FOUND=no
24678           else
24679             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24680             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24681 
24682             # Extra M4 quote needed to protect [] in grep expression.
24683             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24684             if test "x$FOUND_CORRECT_VERSION" = x; then
24685               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24686 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24687               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24688 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24689               BOOT_JDK_FOUND=no
24690             else
24691               # We're done! :-)
24692               BOOT_JDK_FOUND=yes
24693 
24694   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24695 
24696   # Input might be given as Windows format, start by converting to
24697   # unix format.
24698   path="$BOOT_JDK"
24699   new_path=`$CYGPATH -u "$path"`
24700 
24701   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24702   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24703   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24704   # "foo.exe" is OK but "foo" is an error.
24705   #
24706   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24707   # It is also a way to make sure we got the proper file name for the real test later on.
24708   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24709   if test "x$test_shortpath" = x; then
24710     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24711 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24712     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24713   fi
24714 
24715   # Call helper function which possibly converts this using DOS-style short mode.
24716   # If so, the updated path is stored in $new_path.
24717 
24718   input_path="$new_path"
24719   # Check if we need to convert this using DOS-style short mode. If the path
24720   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24721   # take no chances and rewrite it.
24722   # Note: m4 eats our [], so we need to use [ and ] instead.
24723   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24724   if test "x$has_forbidden_chars" != x; then
24725     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24726     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24727     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24728     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24729       # Going to short mode and back again did indeed matter. Since short mode is
24730       # case insensitive, let's make it lowercase to improve readability.
24731       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24732       # Now convert it back to Unix-stile (cygpath)
24733       input_path=`$CYGPATH -u "$shortmode_path"`
24734       new_path="$input_path"
24735     fi
24736   fi
24737 
24738   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24739   if test "x$test_cygdrive_prefix" = x; then
24740     # As a simple fix, exclude /usr/bin since it's not a real path.
24741     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24742       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24743       # a path prefixed by /cygdrive for fixpath to work.
24744       new_path="$CYGWIN_ROOT_PATH$input_path"
24745     fi
24746   fi
24747 
24748 
24749   if test "x$path" != "x$new_path"; then
24750     BOOT_JDK="$new_path"
24751     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24752 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24753   fi
24754 
24755   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24756 
24757   path="$BOOT_JDK"
24758   has_colon=`$ECHO $path | $GREP ^.:`
24759   new_path="$path"
24760   if test "x$has_colon" = x; then
24761     # Not in mixed or Windows style, start by that.
24762     new_path=`cmd //c echo $path`
24763   fi
24764 
24765 
24766   input_path="$new_path"
24767   # Check if we need to convert this using DOS-style short mode. If the path
24768   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24769   # take no chances and rewrite it.
24770   # Note: m4 eats our [], so we need to use [ and ] instead.
24771   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24772   if test "x$has_forbidden_chars" != x; then
24773     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24774     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24775   fi
24776 
24777 
24778   windows_path="$new_path"
24779   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24780     unix_path=`$CYGPATH -u "$windows_path"`
24781     new_path="$unix_path"
24782   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24783     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24784     new_path="$unix_path"
24785   fi
24786 
24787   if test "x$path" != "x$new_path"; then
24788     BOOT_JDK="$new_path"
24789     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24790 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24791   fi
24792 
24793   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24794   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24795 
24796   else
24797     # We're on a posix platform. Hooray! :)
24798     path="$BOOT_JDK"
24799     has_space=`$ECHO "$path" | $GREP " "`
24800     if test "x$has_space" != x; then
24801       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24802 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24803       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24804     fi
24805 
24806     # Use eval to expand a potential ~
24807     eval path="$path"
24808     if test ! -f "$path" && test ! -d "$path"; then
24809       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24810     fi
24811 
24812     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24813   fi
24814 
24815               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24816 $as_echo_n "checking for Boot JDK... " >&6; }
24817               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24818 $as_echo "$BOOT_JDK" >&6; }
24819               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24820 $as_echo_n "checking Boot JDK version... " >&6; }
24821               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24822               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24823 $as_echo "$BOOT_JDK_VERSION" >&6; }
24824             fi # end check jdk version
24825           fi # end check rt.jar
24826         fi # end check javac
24827       fi # end check java
24828     fi # end check boot jdk found
24829   fi
24830 
24831 
24832   # If we haven't found anything yet, we've truly lost. Give up.
24833   if test "x$BOOT_JDK_FOUND" = xno; then
24834 
24835   # Print a helpful message on how to acquire the necessary build dependency.
24836   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24837   MISSING_DEPENDENCY=openjdk
24838 
24839   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24840     cygwin_help $MISSING_DEPENDENCY
24841   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24842     msys_help $MISSING_DEPENDENCY
24843   else
24844     PKGHANDLER_COMMAND=
24845 
24846     case $PKGHANDLER in
24847       apt-get)
24848         apt_help     $MISSING_DEPENDENCY ;;
24849       yum)
24850         yum_help     $MISSING_DEPENDENCY ;;
24851       port)
24852         port_help    $MISSING_DEPENDENCY ;;
24853       pkgutil)
24854         pkgutil_help $MISSING_DEPENDENCY ;;
24855       pkgadd)
24856         pkgadd_help  $MISSING_DEPENDENCY ;;
24857     esac
24858 
24859     if test "x$PKGHANDLER_COMMAND" != x; then
24860       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24861     fi
24862   fi
24863 
24864     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24865 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24866     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24867 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24868     as_fn_error $? "Cannot continue" "$LINENO" 5
24869   fi
24870 
24871   # Setup proper paths for what we found
24872   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24873   if test ! -f "$BOOT_RTJAR"; then
24874     # On MacOSX it is called classes.jar
24875     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24876     if test -f "$BOOT_RTJAR"; then
24877       # Remove the ..
24878       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24879     fi
24880   fi
24881   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24882   BOOT_JDK="$BOOT_JDK"
24883 
24884 
24885 
24886 
24887   # Setup tools from the Boot JDK.
24888 
24889   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
24890 
24891   # Publish this variable in the help.
24892 
24893 
24894   if test "x$JAVA" = x; then
24895     # The variable is not set by user, try to locate tool using the code snippet
24896 
24897       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24898 $as_echo_n "checking for java in Boot JDK... " >&6; }
24899       JAVA=$BOOT_JDK/bin/java
24900       if test ! -x $JAVA; then
24901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24902 $as_echo "not found" >&6; }
24903         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24904 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24905         as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24906       fi
24907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24908 $as_echo "ok" >&6; }
24909 
24910 
24911   else
24912     # The variable is set, but is it from the command line or the environment?
24913 
24914     # Try to remove the string !JAVA! from our list.
24915     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/}
24916     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24917       # If it failed, the variable was not from the command line. Ignore it,
24918       # but warn the user (except for BASH, which is always set by the calling BASH).
24919       if test "xJAVA" != xBASH; then
24920         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5
24921 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;}
24922       fi
24923       # Try to locate tool using the code snippet
24924 
24925       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24926 $as_echo_n "checking for java in Boot JDK... " >&6; }
24927       JAVA=$BOOT_JDK/bin/java
24928       if test ! -x $JAVA; then
24929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24930 $as_echo "not found" >&6; }
24931         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24932 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24933         as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24934       fi
24935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24936 $as_echo "ok" >&6; }
24937 
24938 
24939     else
24940       # If it succeeded, then it was overridden by the user. We will use it
24941       # for the tool.
24942 
24943       # First remove it from the list of overridden variables, so we can test
24944       # for unknown variables in the end.
24945       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24946 
24947       # Check if the provided tool contains a complete path.
24948       tool_specified="$JAVA"
24949       tool_basename="${tool_specified##*/}"
24950       if test "x$tool_basename" = "x$tool_specified"; then
24951         # A command without a complete path is provided, search $PATH.
24952         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5
24953 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;}
24954         # Extract the first word of "$tool_basename", so it can be a program name with args.
24955 set dummy $tool_basename; ac_word=$2
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24957 $as_echo_n "checking for $ac_word... " >&6; }
24958 if ${ac_cv_path_JAVA+:} false; then :
24959   $as_echo_n "(cached) " >&6
24960 else
24961   case $JAVA in
24962   [\\/]* | ?:[\\/]*)
24963   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
24964   ;;
24965   *)
24966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24967 for as_dir in $PATH
24968 do
24969   IFS=$as_save_IFS
24970   test -z "$as_dir" && as_dir=.
24971     for ac_exec_ext in '' $ac_executable_extensions; do
24972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24973     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
24974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24975     break 2
24976   fi
24977 done
24978   done
24979 IFS=$as_save_IFS
24980 
24981   ;;
24982 esac
24983 fi
24984 JAVA=$ac_cv_path_JAVA
24985 if test -n "$JAVA"; then
24986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
24987 $as_echo "$JAVA" >&6; }
24988 else
24989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24990 $as_echo "no" >&6; }
24991 fi
24992 
24993 
24994         if test "x$JAVA" = x; then
24995           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24996         fi
24997       else
24998         # Otherwise we believe it is a complete path. Use it as it is.
24999         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5
25000 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;}
25001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5
25002 $as_echo_n "checking for JAVA... " >&6; }
25003         if test ! -x "$tool_specified"; then
25004           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25005 $as_echo "not found" >&6; }
25006           as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5
25007         fi
25008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25009 $as_echo "$tool_specified" >&6; }
25010       fi
25011     fi
25012   fi
25013 
25014 
25015 
25016   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25017 
25018   # Publish this variable in the help.
25019 
25020 
25021   if test "x$JAVAC" = x; then
25022     # The variable is not set by user, try to locate tool using the code snippet
25023 
25024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
25025 $as_echo_n "checking for javac in Boot JDK... " >&6; }
25026       JAVAC=$BOOT_JDK/bin/javac
25027       if test ! -x $JAVAC; then
25028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25029 $as_echo "not found" >&6; }
25030         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25031 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25032         as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
25033       fi
25034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25035 $as_echo "ok" >&6; }
25036 
25037 
25038   else
25039     # The variable is set, but is it from the command line or the environment?
25040 
25041     # Try to remove the string !JAVAC! from our list.
25042     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/}
25043     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25044       # If it failed, the variable was not from the command line. Ignore it,
25045       # but warn the user (except for BASH, which is always set by the calling BASH).
25046       if test "xJAVAC" != xBASH; then
25047         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5
25048 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;}
25049       fi
25050       # Try to locate tool using the code snippet
25051 
25052       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
25053 $as_echo_n "checking for javac in Boot JDK... " >&6; }
25054       JAVAC=$BOOT_JDK/bin/javac
25055       if test ! -x $JAVAC; then
25056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25057 $as_echo "not found" >&6; }
25058         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25059 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25060         as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
25061       fi
25062       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25063 $as_echo "ok" >&6; }
25064 
25065 
25066     else
25067       # If it succeeded, then it was overridden by the user. We will use it
25068       # for the tool.
25069 
25070       # First remove it from the list of overridden variables, so we can test
25071       # for unknown variables in the end.
25072       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25073 
25074       # Check if the provided tool contains a complete path.
25075       tool_specified="$JAVAC"
25076       tool_basename="${tool_specified##*/}"
25077       if test "x$tool_basename" = "x$tool_specified"; then
25078         # A command without a complete path is provided, search $PATH.
25079         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5
25080 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;}
25081         # Extract the first word of "$tool_basename", so it can be a program name with args.
25082 set dummy $tool_basename; ac_word=$2
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25084 $as_echo_n "checking for $ac_word... " >&6; }
25085 if ${ac_cv_path_JAVAC+:} false; then :
25086   $as_echo_n "(cached) " >&6
25087 else
25088   case $JAVAC in
25089   [\\/]* | ?:[\\/]*)
25090   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25091   ;;
25092   *)
25093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25094 for as_dir in $PATH
25095 do
25096   IFS=$as_save_IFS
25097   test -z "$as_dir" && as_dir=.
25098     for ac_exec_ext in '' $ac_executable_extensions; do
25099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25100     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25102     break 2
25103   fi
25104 done
25105   done
25106 IFS=$as_save_IFS
25107 
25108   ;;
25109 esac
25110 fi
25111 JAVAC=$ac_cv_path_JAVAC
25112 if test -n "$JAVAC"; then
25113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25114 $as_echo "$JAVAC" >&6; }
25115 else
25116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25117 $as_echo "no" >&6; }
25118 fi
25119 
25120 
25121         if test "x$JAVAC" = x; then
25122           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25123         fi
25124       else
25125         # Otherwise we believe it is a complete path. Use it as it is.
25126         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5
25127 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;}
25128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5
25129 $as_echo_n "checking for JAVAC... " >&6; }
25130         if test ! -x "$tool_specified"; then
25131           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25132 $as_echo "not found" >&6; }
25133           as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5
25134         fi
25135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25136 $as_echo "$tool_specified" >&6; }
25137       fi
25138     fi
25139   fi
25140 
25141 
25142 
25143   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25144 
25145   # Publish this variable in the help.
25146 
25147 
25148   if test "x$JAVAH" = x; then
25149     # The variable is not set by user, try to locate tool using the code snippet
25150 
25151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
25152 $as_echo_n "checking for javah in Boot JDK... " >&6; }
25153       JAVAH=$BOOT_JDK/bin/javah
25154       if test ! -x $JAVAH; then
25155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25156 $as_echo "not found" >&6; }
25157         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25158 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25159         as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
25160       fi
25161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25162 $as_echo "ok" >&6; }
25163 
25164 
25165   else
25166     # The variable is set, but is it from the command line or the environment?
25167 
25168     # Try to remove the string !JAVAH! from our list.
25169     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/}
25170     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25171       # If it failed, the variable was not from the command line. Ignore it,
25172       # but warn the user (except for BASH, which is always set by the calling BASH).
25173       if test "xJAVAH" != xBASH; then
25174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5
25175 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;}
25176       fi
25177       # Try to locate tool using the code snippet
25178 
25179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
25180 $as_echo_n "checking for javah in Boot JDK... " >&6; }
25181       JAVAH=$BOOT_JDK/bin/javah
25182       if test ! -x $JAVAH; then
25183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25184 $as_echo "not found" >&6; }
25185         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25186 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25187         as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
25188       fi
25189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25190 $as_echo "ok" >&6; }
25191 
25192 
25193     else
25194       # If it succeeded, then it was overridden by the user. We will use it
25195       # for the tool.
25196 
25197       # First remove it from the list of overridden variables, so we can test
25198       # for unknown variables in the end.
25199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25200 
25201       # Check if the provided tool contains a complete path.
25202       tool_specified="$JAVAH"
25203       tool_basename="${tool_specified##*/}"
25204       if test "x$tool_basename" = "x$tool_specified"; then
25205         # A command without a complete path is provided, search $PATH.
25206         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5
25207 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;}
25208         # Extract the first word of "$tool_basename", so it can be a program name with args.
25209 set dummy $tool_basename; ac_word=$2
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25211 $as_echo_n "checking for $ac_word... " >&6; }
25212 if ${ac_cv_path_JAVAH+:} false; then :
25213   $as_echo_n "(cached) " >&6
25214 else
25215   case $JAVAH in
25216   [\\/]* | ?:[\\/]*)
25217   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
25218   ;;
25219   *)
25220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25221 for as_dir in $PATH
25222 do
25223   IFS=$as_save_IFS
25224   test -z "$as_dir" && as_dir=.
25225     for ac_exec_ext in '' $ac_executable_extensions; do
25226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25227     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25229     break 2
25230   fi
25231 done
25232   done
25233 IFS=$as_save_IFS
25234 
25235   ;;
25236 esac
25237 fi
25238 JAVAH=$ac_cv_path_JAVAH
25239 if test -n "$JAVAH"; then
25240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
25241 $as_echo "$JAVAH" >&6; }
25242 else
25243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25244 $as_echo "no" >&6; }
25245 fi
25246 
25247 
25248         if test "x$JAVAH" = x; then
25249           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25250         fi
25251       else
25252         # Otherwise we believe it is a complete path. Use it as it is.
25253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5
25254 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;}
25255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5
25256 $as_echo_n "checking for JAVAH... " >&6; }
25257         if test ! -x "$tool_specified"; then
25258           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25259 $as_echo "not found" >&6; }
25260           as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5
25261         fi
25262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25263 $as_echo "$tool_specified" >&6; }
25264       fi
25265     fi
25266   fi
25267 
25268 
25269 
25270   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25271 
25272   # Publish this variable in the help.
25273 
25274 
25275   if test "x$JAR" = x; then
25276     # The variable is not set by user, try to locate tool using the code snippet
25277 
25278       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
25279 $as_echo_n "checking for jar in Boot JDK... " >&6; }
25280       JAR=$BOOT_JDK/bin/jar
25281       if test ! -x $JAR; then
25282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25283 $as_echo "not found" >&6; }
25284         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25285 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25286         as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
25287       fi
25288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25289 $as_echo "ok" >&6; }
25290 
25291 
25292   else
25293     # The variable is set, but is it from the command line or the environment?
25294 
25295     # Try to remove the string !JAR! from our list.
25296     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/}
25297     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25298       # If it failed, the variable was not from the command line. Ignore it,
25299       # but warn the user (except for BASH, which is always set by the calling BASH).
25300       if test "xJAR" != xBASH; then
25301         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5
25302 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;}
25303       fi
25304       # Try to locate tool using the code snippet
25305 
25306       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
25307 $as_echo_n "checking for jar in Boot JDK... " >&6; }
25308       JAR=$BOOT_JDK/bin/jar
25309       if test ! -x $JAR; then
25310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25311 $as_echo "not found" >&6; }
25312         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25313 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25314         as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
25315       fi
25316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25317 $as_echo "ok" >&6; }
25318 
25319 
25320     else
25321       # If it succeeded, then it was overridden by the user. We will use it
25322       # for the tool.
25323 
25324       # First remove it from the list of overridden variables, so we can test
25325       # for unknown variables in the end.
25326       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25327 
25328       # Check if the provided tool contains a complete path.
25329       tool_specified="$JAR"
25330       tool_basename="${tool_specified##*/}"
25331       if test "x$tool_basename" = "x$tool_specified"; then
25332         # A command without a complete path is provided, search $PATH.
25333         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5
25334 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;}
25335         # Extract the first word of "$tool_basename", so it can be a program name with args.
25336 set dummy $tool_basename; ac_word=$2
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25338 $as_echo_n "checking for $ac_word... " >&6; }
25339 if ${ac_cv_path_JAR+:} false; then :
25340   $as_echo_n "(cached) " >&6
25341 else
25342   case $JAR in
25343   [\\/]* | ?:[\\/]*)
25344   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25345   ;;
25346   *)
25347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25348 for as_dir in $PATH
25349 do
25350   IFS=$as_save_IFS
25351   test -z "$as_dir" && as_dir=.
25352     for ac_exec_ext in '' $ac_executable_extensions; do
25353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25354     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25356     break 2
25357   fi
25358 done
25359   done
25360 IFS=$as_save_IFS
25361 
25362   ;;
25363 esac
25364 fi
25365 JAR=$ac_cv_path_JAR
25366 if test -n "$JAR"; then
25367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
25368 $as_echo "$JAR" >&6; }
25369 else
25370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25371 $as_echo "no" >&6; }
25372 fi
25373 
25374 
25375         if test "x$JAR" = x; then
25376           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25377         fi
25378       else
25379         # Otherwise we believe it is a complete path. Use it as it is.
25380         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5
25381 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;}
25382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5
25383 $as_echo_n "checking for JAR... " >&6; }
25384         if test ! -x "$tool_specified"; then
25385           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25386 $as_echo "not found" >&6; }
25387           as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5
25388         fi
25389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25390 $as_echo "$tool_specified" >&6; }
25391       fi
25392     fi
25393   fi
25394 
25395 
25396 
25397   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25398 
25399   # Publish this variable in the help.
25400 
25401 
25402   if test "x$NATIVE2ASCII" = x; then
25403     # The variable is not set by user, try to locate tool using the code snippet
25404 
25405       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
25406 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
25407       NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
25408       if test ! -x $NATIVE2ASCII; then
25409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25410 $as_echo "not found" >&6; }
25411         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25412 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25413         as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
25414       fi
25415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25416 $as_echo "ok" >&6; }
25417 
25418 
25419   else
25420     # The variable is set, but is it from the command line or the environment?
25421 
25422     # Try to remove the string !NATIVE2ASCII! from our list.
25423     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/}
25424     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25425       # If it failed, the variable was not from the command line. Ignore it,
25426       # but warn the user (except for BASH, which is always set by the calling BASH).
25427       if test "xNATIVE2ASCII" != xBASH; then
25428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5
25429 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;}
25430       fi
25431       # Try to locate tool using the code snippet
25432 
25433       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
25434 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
25435       NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
25436       if test ! -x $NATIVE2ASCII; then
25437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25438 $as_echo "not found" >&6; }
25439         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25440 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25441         as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
25442       fi
25443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25444 $as_echo "ok" >&6; }
25445 
25446 
25447     else
25448       # If it succeeded, then it was overridden by the user. We will use it
25449       # for the tool.
25450 
25451       # First remove it from the list of overridden variables, so we can test
25452       # for unknown variables in the end.
25453       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25454 
25455       # Check if the provided tool contains a complete path.
25456       tool_specified="$NATIVE2ASCII"
25457       tool_basename="${tool_specified##*/}"
25458       if test "x$tool_basename" = "x$tool_specified"; then
25459         # A command without a complete path is provided, search $PATH.
25460         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5
25461 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;}
25462         # Extract the first word of "$tool_basename", so it can be a program name with args.
25463 set dummy $tool_basename; ac_word=$2
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25465 $as_echo_n "checking for $ac_word... " >&6; }
25466 if ${ac_cv_path_NATIVE2ASCII+:} false; then :
25467   $as_echo_n "(cached) " >&6
25468 else
25469   case $NATIVE2ASCII in
25470   [\\/]* | ?:[\\/]*)
25471   ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path.
25472   ;;
25473   *)
25474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25475 for as_dir in $PATH
25476 do
25477   IFS=$as_save_IFS
25478   test -z "$as_dir" && as_dir=.
25479     for ac_exec_ext in '' $ac_executable_extensions; do
25480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25481     ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext"
25482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25483     break 2
25484   fi
25485 done
25486   done
25487 IFS=$as_save_IFS
25488 
25489   ;;
25490 esac
25491 fi
25492 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII
25493 if test -n "$NATIVE2ASCII"; then
25494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5
25495 $as_echo "$NATIVE2ASCII" >&6; }
25496 else
25497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25498 $as_echo "no" >&6; }
25499 fi
25500 
25501 
25502         if test "x$NATIVE2ASCII" = x; then
25503           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25504         fi
25505       else
25506         # Otherwise we believe it is a complete path. Use it as it is.
25507         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5
25508 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;}
25509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5
25510 $as_echo_n "checking for NATIVE2ASCII... " >&6; }
25511         if test ! -x "$tool_specified"; then
25512           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25513 $as_echo "not found" >&6; }
25514           as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5
25515         fi
25516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25517 $as_echo "$tool_specified" >&6; }
25518       fi
25519     fi
25520   fi
25521 
25522 
25523 
25524   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25525 
25526   # Publish this variable in the help.
25527 
25528 
25529   if test "x$JARSIGNER" = x; then
25530     # The variable is not set by user, try to locate tool using the code snippet
25531 
25532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5
25533 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; }
25534       JARSIGNER=$BOOT_JDK/bin/jarsigner
25535       if test ! -x $JARSIGNER; then
25536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25537 $as_echo "not found" >&6; }
25538         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25539 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25540         as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5
25541       fi
25542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25543 $as_echo "ok" >&6; }
25544 
25545 
25546   else
25547     # The variable is set, but is it from the command line or the environment?
25548 
25549     # Try to remove the string !JARSIGNER! from our list.
25550     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/}
25551     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25552       # If it failed, the variable was not from the command line. Ignore it,
25553       # but warn the user (except for BASH, which is always set by the calling BASH).
25554       if test "xJARSIGNER" != xBASH; then
25555         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5
25556 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;}
25557       fi
25558       # Try to locate tool using the code snippet
25559 
25560       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5
25561 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; }
25562       JARSIGNER=$BOOT_JDK/bin/jarsigner
25563       if test ! -x $JARSIGNER; then
25564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25565 $as_echo "not found" >&6; }
25566         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25567 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25568         as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5
25569       fi
25570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25571 $as_echo "ok" >&6; }
25572 
25573 
25574     else
25575       # If it succeeded, then it was overridden by the user. We will use it
25576       # for the tool.
25577 
25578       # First remove it from the list of overridden variables, so we can test
25579       # for unknown variables in the end.
25580       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25581 
25582       # Check if the provided tool contains a complete path.
25583       tool_specified="$JARSIGNER"
25584       tool_basename="${tool_specified##*/}"
25585       if test "x$tool_basename" = "x$tool_specified"; then
25586         # A command without a complete path is provided, search $PATH.
25587         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5
25588 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;}
25589         # Extract the first word of "$tool_basename", so it can be a program name with args.
25590 set dummy $tool_basename; ac_word=$2
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25592 $as_echo_n "checking for $ac_word... " >&6; }
25593 if ${ac_cv_path_JARSIGNER+:} false; then :
25594   $as_echo_n "(cached) " >&6
25595 else
25596   case $JARSIGNER in
25597   [\\/]* | ?:[\\/]*)
25598   ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path.
25599   ;;
25600   *)
25601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25603 do
25604   IFS=$as_save_IFS
25605   test -z "$as_dir" && as_dir=.
25606     for ac_exec_ext in '' $ac_executable_extensions; do
25607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25608     ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext"
25609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25610     break 2
25611   fi
25612 done
25613   done
25614 IFS=$as_save_IFS
25615 
25616   ;;
25617 esac
25618 fi
25619 JARSIGNER=$ac_cv_path_JARSIGNER
25620 if test -n "$JARSIGNER"; then
25621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5
25622 $as_echo "$JARSIGNER" >&6; }
25623 else
25624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25625 $as_echo "no" >&6; }
25626 fi
25627 
25628 
25629         if test "x$JARSIGNER" = x; then
25630           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25631         fi
25632       else
25633         # Otherwise we believe it is a complete path. Use it as it is.
25634         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5
25635 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;}
25636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5
25637 $as_echo_n "checking for JARSIGNER... " >&6; }
25638         if test ! -x "$tool_specified"; then
25639           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25640 $as_echo "not found" >&6; }
25641           as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5
25642         fi
25643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25644 $as_echo "$tool_specified" >&6; }
25645       fi
25646     fi
25647   fi
25648 
25649 
25650 
25651   # Finally, set some other options...
25652 
25653   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
25654   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
25655 
25656 
25657 
25658 
25659   ##############################################################################
25660   #
25661   # Specify options for anything that is run with the Boot JDK.
25662   #
25663 
25664 # Check whether --with-boot-jdk-jvmargs was given.
25665 if test "${with_boot_jdk_jvmargs+set}" = set; then :
25666   withval=$with_boot_jdk_jvmargs;
25667 fi
25668 
25669 
25670   if test "x$with_boot_jdk_jvmargs" = x; then
25671     # Not all JVM:s accept the same arguments on the command line.
25672     # OpenJDK specific increase in thread stack for JDK build,
25673     # well more specifically, when running javac.
25674     if test "x$BUILD_NUM_BITS" = x32; then
25675       STACK_SIZE=768
25676     else
25677       # Running Javac on a JVM on a 64-bit machine, the stack takes more space
25678       # since 64-bit pointers are pushed on the stach. Apparently, we need
25679       # to increase the stack space when javacing the JDK....
25680       STACK_SIZE=1536
25681     fi
25682 
25683     # Minimum amount of heap memory.
25684 
25685   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
25686   $ECHO "Command: $JAVA -Xms64M -version" >&5
25687   OUTPUT=`$JAVA -Xms64M -version 2>&1`
25688   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25689   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25690   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25691     boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M"
25692     JVM_ARG_OK=true
25693   else
25694     $ECHO "Arg failed:" >&5
25695     $ECHO "$OUTPUT" >&5
25696     JVM_ARG_OK=false
25697   fi
25698 
25699     if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_CPU" = "xppc64" ; then
25700       # Why does macosx need more heap? Its the huge JDK batch.
25701 
25702   $ECHO "Check if jvm arg is ok: -Xmx1600M" >&5
25703   $ECHO "Command: $JAVA -Xmx1600M -version" >&5
25704   OUTPUT=`$JAVA -Xmx1600M -version 2>&1`
25705   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25706   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25707   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25708     boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M"
25709     JVM_ARG_OK=true
25710   else
25711     $ECHO "Arg failed:" >&5
25712     $ECHO "$OUTPUT" >&5
25713     JVM_ARG_OK=false
25714   fi
25715 
25716     else
25717 
25718   $ECHO "Check if jvm arg is ok: -Xmx1100M" >&5
25719   $ECHO "Command: $JAVA -Xmx1100M -version" >&5
25720   OUTPUT=`$JAVA -Xmx1100M -version 2>&1`
25721   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25722   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25723   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25724     boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M"
25725     JVM_ARG_OK=true
25726   else
25727     $ECHO "Arg failed:" >&5
25728     $ECHO "$OUTPUT" >&5
25729     JVM_ARG_OK=false
25730   fi
25731 
25732     fi
25733     # When is adding -client something that speeds up the JVM?
25734     # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
25735 
25736   $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
25737   $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
25738   OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
25739   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25740   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25741   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25742     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE"
25743     JVM_ARG_OK=true
25744   else
25745     $ECHO "Arg failed:" >&5
25746     $ECHO "$OUTPUT" >&5
25747     JVM_ARG_OK=false
25748   fi
25749 
25750     # Disable special log output when a debug build is used as Boot JDK...
25751 
25752   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
25753   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
25754   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
25755   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25756   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25757   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25758     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
25759     JVM_ARG_OK=true
25760   else
25761     $ECHO "Arg failed:" >&5
25762     $ECHO "$OUTPUT" >&5
25763     JVM_ARG_OK=false
25764   fi
25765 
25766   fi
25767 
25768   BOOT_JDK_JVMARGS=$boot_jdk_jvmargs
25769 
25770 
25771 
25772 ###############################################################################
25773 #
25774 # Configure the sources to use. We can add or override individual directories.
25775 #
25776 ###############################################################################
25777 
25778 
25779   # Where are the sources. Any of these can be overridden
25780   # using --with-override-corba and the likes.
25781   LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
25782   CORBA_TOPDIR="$SRC_ROOT/corba"
25783   JAXP_TOPDIR="$SRC_ROOT/jaxp"
25784   JAXWS_TOPDIR="$SRC_ROOT/jaxws"
25785   HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
25786   NASHORN_TOPDIR="$SRC_ROOT/nashorn"
25787   JDK_TOPDIR="$SRC_ROOT/jdk"
25788 
25789 
25790 
25791 
25792 
25793 
25794 
25795 
25796 
25797 
25798   ###############################################################################
25799   #
25800   # Pickup additional source for a component from outside of the source root
25801   # or override source for a component.
25802   #
25803 
25804 # Check whether --with-add-source-root was given.
25805 if test "${with_add_source_root+set}" = set; then :
25806   withval=$with_add_source_root;
25807 fi
25808 
25809 
25810 
25811 # Check whether --with-override-source-root was given.
25812 if test "${with_override_source_root+set}" = set; then :
25813   withval=$with_override_source_root;
25814 fi
25815 
25816 
25817 
25818 # Check whether --with-adds-and-overrides was given.
25819 if test "${with_adds_and_overrides+set}" = set; then :
25820   withval=$with_adds_and_overrides;
25821 fi
25822 
25823 
25824   if test "x$with_adds_and_overrides" != x; then
25825     with_add_source_root="$with_adds_and_overrides/adds"
25826     with_override_source_root="$with_adds_and_overrides/overrides"
25827   fi
25828 
25829   if test "x$with_add_source_root" != x; then
25830     if ! test -d $with_add_source_root; then
25831       as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
25832     fi
25833     CURDIR="$PWD"
25834     cd "$with_add_source_root"
25835     ADD_SRC_ROOT="`pwd`"
25836     cd "$CURDIR"
25837     # Verify that the addon source root does not have any root makefiles.
25838     # If it does, then it is usually an error, prevent this.
25839     if test -f $with_add_source_root/langtools/make/Makefile; then
25840       as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5
25841     fi
25842     if test -f $with_add_source_root/corba/make/Makefile; then
25843       as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5
25844     fi
25845     if test -f $with_add_source_root/jaxp/make/Makefile; then
25846       as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5
25847     fi
25848     if test -f $with_add_source_root/jaxws/make/Makefile; then
25849       as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5
25850     fi
25851     if test -f $with_add_source_root/hotspot/make/Makefile; then
25852       as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5
25853     fi
25854     if test -f $with_add_source_root/nashorn/make/Makefile; then
25855       as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5
25856     fi
25857     if test -f $with_add_source_root/jdk/make/Makefile; then
25858       as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5
25859     fi
25860   fi
25861 
25862 
25863   if test "x$with_override_source_root" != x; then
25864     if ! test -d $with_override_source_root; then
25865       as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
25866     fi
25867     CURDIR="$PWD"
25868     cd "$with_override_source_root"
25869     OVERRIDE_SRC_ROOT="`pwd`"
25870     cd "$CURDIR"
25871     if test -f $with_override_source_root/langtools/make/Makefile; then
25872       as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5
25873     fi
25874     if test -f $with_override_source_root/corba/make/Makefile; then
25875       as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5
25876     fi
25877     if test -f $with_override_source_root/jaxp/make/Makefile; then
25878       as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5
25879     fi
25880     if test -f $with_override_source_root/jaxws/make/Makefile; then
25881       as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5
25882     fi
25883     if test -f $with_override_source_root/hotspot/make/Makefile; then
25884       as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5
25885     fi
25886     if test -f $with_override_source_root/nashorn/make/Makefile; then
25887       as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5
25888     fi
25889     if test -f $with_override_source_root/jdk/make/Makefile; then
25890       as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5
25891     fi
25892   fi
25893 
25894 
25895   ###############################################################################
25896   #
25897   # Override a repo completely, this is used for example when you have 3 small
25898   # development sandboxes of the langtools sources and want to avoid having 3 full
25899   # OpenJDK sources checked out on disk.
25900   #
25901   # Assuming that the 3 langtools sandboxes are located here:
25902   # /home/fredrik/sandbox1/langtools
25903   # /home/fredrik/sandbox2/langtools
25904   # /home/fredrik/sandbox3/langtools
25905   #
25906   # From the source root you create build subdirs manually:
25907   #     mkdir -p build1 build2 build3
25908   # in each build directory run:
25909   #     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
25910   #     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
25911   #     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
25912   #
25913 
25914 
25915 # Check whether --with-override-langtools was given.
25916 if test "${with_override_langtools+set}" = set; then :
25917   withval=$with_override_langtools;
25918 fi
25919 
25920 
25921 
25922 # Check whether --with-override-corba was given.
25923 if test "${with_override_corba+set}" = set; then :
25924   withval=$with_override_corba;
25925 fi
25926 
25927 
25928 
25929 # Check whether --with-override-jaxp was given.
25930 if test "${with_override_jaxp+set}" = set; then :
25931   withval=$with_override_jaxp;
25932 fi
25933 
25934 
25935 
25936 # Check whether --with-override-jaxws was given.
25937 if test "${with_override_jaxws+set}" = set; then :
25938   withval=$with_override_jaxws;
25939 fi
25940 
25941 
25942 
25943 # Check whether --with-override-hotspot was given.
25944 if test "${with_override_hotspot+set}" = set; then :
25945   withval=$with_override_hotspot;
25946 fi
25947 
25948 
25949 
25950 # Check whether --with-override-nashorn was given.
25951 if test "${with_override_nashorn+set}" = set; then :
25952   withval=$with_override_nashorn;
25953 fi
25954 
25955 
25956 
25957 # Check whether --with-override-jdk was given.
25958 if test "${with_override_jdk+set}" = set; then :
25959   withval=$with_override_jdk;
25960 fi
25961 
25962 
25963   if test "x$with_override_langtools" != x; then
25964     CURDIR="$PWD"
25965     cd "$with_override_langtools"
25966     LANGTOOLS_TOPDIR="`pwd`"
25967     cd "$CURDIR"
25968     if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then
25969       as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
25970     fi
25971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
25972 $as_echo_n "checking if langtools should be overridden... " >&6; }
25973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
25974 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
25975   fi
25976   if test "x$with_override_corba" != x; then
25977     CURDIR="$PWD"
25978     cd "$with_override_corba"
25979     CORBA_TOPDIR="`pwd`"
25980     cd "$CURDIR"
25981     if ! test -f $CORBA_TOPDIR/make/Makefile; then
25982       as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
25983     fi
25984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
25985 $as_echo_n "checking if corba should be overridden... " >&6; }
25986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
25987 $as_echo "yes with $CORBA_TOPDIR" >&6; }
25988   fi
25989   if test "x$with_override_jaxp" != x; then
25990     CURDIR="$PWD"
25991     cd "$with_override_jaxp"
25992     JAXP_TOPDIR="`pwd`"
25993     cd "$CURDIR"
25994     if ! test -f $JAXP_TOPDIR/make/Makefile; then
25995       as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
25996     fi
25997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
25998 $as_echo_n "checking if jaxp should be overridden... " >&6; }
25999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
26000 $as_echo "yes with $JAXP_TOPDIR" >&6; }
26001   fi
26002   if test "x$with_override_jaxws" != x; then
26003     CURDIR="$PWD"
26004     cd "$with_override_jaxws"
26005     JAXWS_TOPDIR="`pwd`"
26006     cd "$CURDIR"
26007     if ! test -f $JAXWS_TOPDIR/make/Makefile; then
26008       as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
26009     fi
26010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
26011 $as_echo_n "checking if jaxws should be overridden... " >&6; }
26012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
26013 $as_echo "yes with $JAXWS_TOPDIR" >&6; }
26014   fi
26015   if test "x$with_override_hotspot" != x; then
26016     CURDIR="$PWD"
26017     cd "$with_override_hotspot"
26018     HOTSPOT_TOPDIR="`pwd`"
26019     cd "$CURDIR"
26020     if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then
26021       as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
26022     fi
26023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
26024 $as_echo_n "checking if hotspot should be overridden... " >&6; }
26025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
26026 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
26027   fi
26028   if test "x$with_override_nashorn" != x; then
26029     CURDIR="$PWD"
26030     cd "$with_override_nashorn"
26031     NASHORN_TOPDIR="`pwd`"
26032     cd "$CURDIR"
26033     if ! test -f $NASHORN_TOPDIR/make/Makefile; then
26034       as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5
26035     fi
26036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5
26037 $as_echo_n "checking if nashorn should be overridden... " >&6; }
26038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5
26039 $as_echo "yes with $NASHORN_TOPDIR" >&6; }
26040   fi
26041   if test "x$with_override_jdk" != x; then
26042     CURDIR="$PWD"
26043     cd "$with_override_jdk"
26044     JDK_TOPDIR="`pwd`"
26045     cd "$CURDIR"
26046     if ! test -f $JDK_TOPDIR/make/Makefile; then
26047       as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
26048     fi
26049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
26050 $as_echo_n "checking if JDK should be overridden... " >&6; }
26051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
26052 $as_echo "yes with $JDK_TOPDIR" >&6; }
26053   fi
26054 
26055 
26056   BUILD_OUTPUT="$OUTPUT_ROOT"
26057 
26058 
26059   HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
26060   BUILD_HOTSPOT=true
26061 
26062 
26063 
26064 # Check whether --with-import-hotspot was given.
26065 if test "${with_import_hotspot+set}" = set; then :
26066   withval=$with_import_hotspot;
26067 fi
26068 
26069   if test "x$with_import_hotspot" != x; then
26070     CURDIR="$PWD"
26071     cd "$with_import_hotspot"
26072     HOTSPOT_DIST="`pwd`"
26073     cd "$CURDIR"
26074     if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then
26075       as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5
26076     fi
26077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5
26078 $as_echo_n "checking if hotspot should be imported... " >&6; }
26079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5
26080 $as_echo "yes from $HOTSPOT_DIST" >&6; }
26081     BUILD_HOTSPOT=false
26082   fi
26083 
26084   JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
26085 
26086 
26087 ###############################################################################
26088 #
26089 # Setup the toolchain (compilers etc), i.e. the tools that need to be
26090 # cross-compilation aware.
26091 #
26092 ###############################################################################
26093 
26094 
26095   ###############################################################################
26096   #
26097   # Configure the development tool paths and potential sysroot.
26098   #
26099   ac_ext=cpp
26100 ac_cpp='$CXXCPP $CPPFLAGS'
26101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26104 
26105 
26106   # The option used to specify the target .o,.a or .so file.
26107   # When compiling, how to specify the to be created object file.
26108   CC_OUT_OPTION='-o$(SPACE)'
26109   # When linking, how to specify the to be created executable.
26110   EXE_OUT_OPTION='-o$(SPACE)'
26111   # When linking, how to specify the to be created dynamically linkable library.
26112   LD_OUT_OPTION='-o$(SPACE)'
26113   # When archiving, how to specify the to be create static archive for object files.
26114   AR_OUT_OPTION='rcs$(SPACE)'
26115 
26116 
26117 
26118 
26119 
26120 # Locate the actual tools
26121 
26122 
26123 # Check whether --with-jtreg was given.
26124 if test "${with_jtreg+set}" = set; then :
26125   withval=$with_jtreg;
26126 else
26127   with_jtreg=no
26128 fi
26129 
26130 
26131   if test "x$with_jtreg" = xno; then
26132     # jtreg disabled
26133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
26134 $as_echo_n "checking for jtreg... " >&6; }
26135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26136 $as_echo "no" >&6; }
26137   else
26138     if test "x$with_jtreg" != xyes; then
26139       # with path specified.
26140       JT_HOME="$with_jtreg"
26141     fi
26142 
26143     if test "x$JT_HOME" != x; then
26144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
26145 $as_echo_n "checking for jtreg... " >&6; }
26146 
26147       # use JT_HOME enviroment var.
26148 
26149   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26150 
26151   # Input might be given as Windows format, start by converting to
26152   # unix format.
26153   path="$JT_HOME"
26154   new_path=`$CYGPATH -u "$path"`
26155 
26156   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26157   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26158   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26159   # "foo.exe" is OK but "foo" is an error.
26160   #
26161   # This test is therefore slightly more accurate than "test -f" to check for file precense.
26162   # It is also a way to make sure we got the proper file name for the real test later on.
26163   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
26164   if test "x$test_shortpath" = x; then
26165     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
26166 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
26167     as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5
26168   fi
26169 
26170   # Call helper function which possibly converts this using DOS-style short mode.
26171   # If so, the updated path is stored in $new_path.
26172 
26173   input_path="$new_path"
26174   # Check if we need to convert this using DOS-style short mode. If the path
26175   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26176   # take no chances and rewrite it.
26177   # Note: m4 eats our [], so we need to use [ and ] instead.
26178   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
26179   if test "x$has_forbidden_chars" != x; then
26180     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26181     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
26182     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
26183     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
26184       # Going to short mode and back again did indeed matter. Since short mode is
26185       # case insensitive, let's make it lowercase to improve readability.
26186       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26187       # Now convert it back to Unix-stile (cygpath)
26188       input_path=`$CYGPATH -u "$shortmode_path"`
26189       new_path="$input_path"
26190     fi
26191   fi
26192 
26193   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
26194   if test "x$test_cygdrive_prefix" = x; then
26195     # As a simple fix, exclude /usr/bin since it's not a real path.
26196     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
26197       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
26198       # a path prefixed by /cygdrive for fixpath to work.
26199       new_path="$CYGWIN_ROOT_PATH$input_path"
26200     fi
26201   fi
26202 
26203 
26204   if test "x$path" != "x$new_path"; then
26205     JT_HOME="$new_path"
26206     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
26207 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
26208   fi
26209 
26210   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26211 
26212   path="$JT_HOME"
26213   has_colon=`$ECHO $path | $GREP ^.:`
26214   new_path="$path"
26215   if test "x$has_colon" = x; then
26216     # Not in mixed or Windows style, start by that.
26217     new_path=`cmd //c echo $path`
26218   fi
26219 
26220 
26221   input_path="$new_path"
26222   # Check if we need to convert this using DOS-style short mode. If the path
26223   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26224   # take no chances and rewrite it.
26225   # Note: m4 eats our [], so we need to use [ and ] instead.
26226   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
26227   if test "x$has_forbidden_chars" != x; then
26228     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26229     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26230   fi
26231 
26232 
26233   windows_path="$new_path"
26234   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26235     unix_path=`$CYGPATH -u "$windows_path"`
26236     new_path="$unix_path"
26237   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26238     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26239     new_path="$unix_path"
26240   fi
26241 
26242   if test "x$path" != "x$new_path"; then
26243     JT_HOME="$new_path"
26244     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
26245 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
26246   fi
26247 
26248   # Save the first 10 bytes of this path to the storage, so fixpath can work.
26249   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
26250 
26251   else
26252     # We're on a posix platform. Hooray! :)
26253     path="$JT_HOME"
26254     has_space=`$ECHO "$path" | $GREP " "`
26255     if test "x$has_space" != x; then
26256       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
26257 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
26258       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
26259     fi
26260 
26261     # Use eval to expand a potential ~
26262     eval path="$path"
26263     if test ! -f "$path" && test ! -d "$path"; then
26264       as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5
26265     fi
26266 
26267     JT_HOME="`cd "$path"; $THEPWDCMD -L`"
26268   fi
26269 
26270 
26271       # jtreg win32 script works for everybody
26272       JTREGEXE="$JT_HOME/win32/bin/jtreg"
26273 
26274       if test ! -f "$JTREGEXE"; then
26275         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
26276       fi
26277 
26278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26279 $as_echo "$JTREGEXE" >&6; }
26280     else
26281       # try to find jtreg on path
26282 
26283 
26284 
26285   # Publish this variable in the help.
26286 
26287 
26288   if test "x$JTREGEXE" = x; then
26289     # The variable is not set by user, try to locate tool using the code snippet
26290     for ac_prog in jtreg
26291 do
26292   # Extract the first word of "$ac_prog", so it can be a program name with args.
26293 set dummy $ac_prog; ac_word=$2
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26295 $as_echo_n "checking for $ac_word... " >&6; }
26296 if ${ac_cv_path_JTREGEXE+:} false; then :
26297   $as_echo_n "(cached) " >&6
26298 else
26299   case $JTREGEXE in
26300   [\\/]* | ?:[\\/]*)
26301   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
26302   ;;
26303   *)
26304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26305 for as_dir in $PATH
26306 do
26307   IFS=$as_save_IFS
26308   test -z "$as_dir" && as_dir=.
26309     for ac_exec_ext in '' $ac_executable_extensions; do
26310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26311     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
26312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26313     break 2
26314   fi
26315 done
26316   done
26317 IFS=$as_save_IFS
26318 
26319   ;;
26320 esac
26321 fi
26322 JTREGEXE=$ac_cv_path_JTREGEXE
26323 if test -n "$JTREGEXE"; then
26324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26325 $as_echo "$JTREGEXE" >&6; }
26326 else
26327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26328 $as_echo "no" >&6; }
26329 fi
26330 
26331 
26332   test -n "$JTREGEXE" && break
26333 done
26334 
26335   else
26336     # The variable is set, but is it from the command line or the environment?
26337 
26338     # Try to remove the string !JTREGEXE! from our list.
26339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/}
26340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
26341       # If it failed, the variable was not from the command line. Ignore it,
26342       # but warn the user (except for BASH, which is always set by the calling BASH).
26343       if test "xJTREGEXE" != xBASH; then
26344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5
26345 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;}
26346       fi
26347       # Try to locate tool using the code snippet
26348       for ac_prog in jtreg
26349 do
26350   # Extract the first word of "$ac_prog", so it can be a program name with args.
26351 set dummy $ac_prog; ac_word=$2
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26353 $as_echo_n "checking for $ac_word... " >&6; }
26354 if ${ac_cv_path_JTREGEXE+:} false; then :
26355   $as_echo_n "(cached) " >&6
26356 else
26357   case $JTREGEXE in
26358   [\\/]* | ?:[\\/]*)
26359   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
26360   ;;
26361   *)
26362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26363 for as_dir in $PATH
26364 do
26365   IFS=$as_save_IFS
26366   test -z "$as_dir" && as_dir=.
26367     for ac_exec_ext in '' $ac_executable_extensions; do
26368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26369     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
26370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26371     break 2
26372   fi
26373 done
26374   done
26375 IFS=$as_save_IFS
26376 
26377   ;;
26378 esac
26379 fi
26380 JTREGEXE=$ac_cv_path_JTREGEXE
26381 if test -n "$JTREGEXE"; then
26382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26383 $as_echo "$JTREGEXE" >&6; }
26384 else
26385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26386 $as_echo "no" >&6; }
26387 fi
26388 
26389 
26390   test -n "$JTREGEXE" && break
26391 done
26392 
26393     else
26394       # If it succeeded, then it was overridden by the user. We will use it
26395       # for the tool.
26396 
26397       # First remove it from the list of overridden variables, so we can test
26398       # for unknown variables in the end.
26399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
26400 
26401       # Check if the provided tool contains a complete path.
26402       tool_specified="$JTREGEXE"
26403       tool_basename="${tool_specified##*/}"
26404       if test "x$tool_basename" = "x$tool_specified"; then
26405         # A command without a complete path is provided, search $PATH.
26406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5
26407 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;}
26408         # Extract the first word of "$tool_basename", so it can be a program name with args.
26409 set dummy $tool_basename; ac_word=$2
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26411 $as_echo_n "checking for $ac_word... " >&6; }
26412 if ${ac_cv_path_JTREGEXE+:} false; then :
26413   $as_echo_n "(cached) " >&6
26414 else
26415   case $JTREGEXE in
26416   [\\/]* | ?:[\\/]*)
26417   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
26418   ;;
26419   *)
26420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26421 for as_dir in $PATH
26422 do
26423   IFS=$as_save_IFS
26424   test -z "$as_dir" && as_dir=.
26425     for ac_exec_ext in '' $ac_executable_extensions; do
26426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26427     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
26428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26429     break 2
26430   fi
26431 done
26432   done
26433 IFS=$as_save_IFS
26434 
26435   ;;
26436 esac
26437 fi
26438 JTREGEXE=$ac_cv_path_JTREGEXE
26439 if test -n "$JTREGEXE"; then
26440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26441 $as_echo "$JTREGEXE" >&6; }
26442 else
26443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26444 $as_echo "no" >&6; }
26445 fi
26446 
26447 
26448         if test "x$JTREGEXE" = x; then
26449           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
26450         fi
26451       else
26452         # Otherwise we believe it is a complete path. Use it as it is.
26453         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5
26454 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;}
26455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5
26456 $as_echo_n "checking for JTREGEXE... " >&6; }
26457         if test ! -x "$tool_specified"; then
26458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26459 $as_echo "not found" >&6; }
26460           as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
26461         fi
26462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
26463 $as_echo "$tool_specified" >&6; }
26464       fi
26465     fi
26466   fi
26467 
26468 
26469 
26470   if test "x$JTREGEXE" = x; then
26471     as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5
26472   fi
26473 
26474 
26475       JT_HOME="`$DIRNAME $JTREGEXE`"
26476     fi
26477   fi
26478 
26479 
26480 
26481 
26482 
26483   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
26484 
26485   # Store path to cygwin link.exe to help excluding it when searching for
26486   # VS linker. This must be done before changing the PATH when looking for VS.
26487   # Extract the first word of "link", so it can be a program name with args.
26488 set dummy link; ac_word=$2
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26490 $as_echo_n "checking for $ac_word... " >&6; }
26491 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
26492   $as_echo_n "(cached) " >&6
26493 else
26494   case $CYGWIN_LINK in
26495   [\\/]* | ?:[\\/]*)
26496   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
26497   ;;
26498   *)
26499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26500 for as_dir in $PATH
26501 do
26502   IFS=$as_save_IFS
26503   test -z "$as_dir" && as_dir=.
26504     for ac_exec_ext in '' $ac_executable_extensions; do
26505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26506     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
26507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26508     break 2
26509   fi
26510 done
26511   done
26512 IFS=$as_save_IFS
26513 
26514   ;;
26515 esac
26516 fi
26517 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
26518 if test -n "$CYGWIN_LINK"; then
26519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
26520 $as_echo "$CYGWIN_LINK" >&6; }
26521 else
26522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26523 $as_echo "no" >&6; }
26524 fi
26525 
26526 
26527   if test "x$CYGWIN_LINK" != x; then
26528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5
26529 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; }
26530     "$CYGWIN_LINK" --version > /dev/null
26531     if test $? -eq 0 ; then
26532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26533 $as_echo "yes" >&6; }
26534     else
26535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26536 $as_echo "no" >&6; }
26537       # This might be the VS linker. Don't exclude it later on.
26538       CYGWIN_LINK=""
26539     fi
26540   fi
26541 
26542   # First-hand choice is to locate and run the vsvars bat file.
26543 
26544   if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26545     VCVARSFILE="vc/bin/vcvars32.bat"
26546   else
26547     VCVARSFILE="vc/bin/amd64/vcvars64.bat"
26548   fi
26549 
26550   VS_ENV_CMD=""
26551   VS_ENV_ARGS=""
26552   if test "x$with_toolsdir" != x; then
26553 
26554   if test "x$VS_ENV_CMD" = x; then
26555     VS100BASE="$with_toolsdir/../.."
26556     METHOD="--with-tools-dir"
26557 
26558   windows_path="$VS100BASE"
26559   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26560     unix_path=`$CYGPATH -u "$windows_path"`
26561     VS100BASE="$unix_path"
26562   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26563     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26564     VS100BASE="$unix_path"
26565   fi
26566 
26567     if test -d "$VS100BASE"; then
26568       if test -f "$VS100BASE/$VCVARSFILE"; then
26569         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26570 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26571         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26572       else
26573         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26574 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26575         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26576 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26577       fi
26578     fi
26579   fi
26580 
26581   fi
26582 
26583   if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then
26584     # Having specified an argument which is incorrect will produce an instant failure;
26585     # we should not go on looking
26586     { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5
26587 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;}
26588     { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5
26589 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;}
26590     as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5
26591   fi
26592 
26593   if test "x$VS100COMNTOOLS" != x; then
26594 
26595   if test "x$VS_ENV_CMD" = x; then
26596     VS100BASE="$VS100COMNTOOLS/../.."
26597     METHOD="VS100COMNTOOLS variable"
26598 
26599   windows_path="$VS100BASE"
26600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26601     unix_path=`$CYGPATH -u "$windows_path"`
26602     VS100BASE="$unix_path"
26603   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26604     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26605     VS100BASE="$unix_path"
26606   fi
26607 
26608     if test -d "$VS100BASE"; then
26609       if test -f "$VS100BASE/$VCVARSFILE"; then
26610         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26611 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26612         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26613       else
26614         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26615 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26616         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26617 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26618       fi
26619     fi
26620   fi
26621 
26622   fi
26623   if test "x$PROGRAMFILES" != x; then
26624 
26625   if test "x$VS_ENV_CMD" = x; then
26626     VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0"
26627     METHOD="well-known name"
26628 
26629   windows_path="$VS100BASE"
26630   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26631     unix_path=`$CYGPATH -u "$windows_path"`
26632     VS100BASE="$unix_path"
26633   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26634     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26635     VS100BASE="$unix_path"
26636   fi
26637 
26638     if test -d "$VS100BASE"; then
26639       if test -f "$VS100BASE/$VCVARSFILE"; then
26640         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26641 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26642         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26643       else
26644         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26645 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26646         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26647 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26648       fi
26649     fi
26650   fi
26651 
26652   fi
26653 
26654   if test "x$VS_ENV_CMD" = x; then
26655     VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0"
26656     METHOD="well-known name"
26657 
26658   windows_path="$VS100BASE"
26659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26660     unix_path=`$CYGPATH -u "$windows_path"`
26661     VS100BASE="$unix_path"
26662   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26663     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26664     VS100BASE="$unix_path"
26665   fi
26666 
26667     if test -d "$VS100BASE"; then
26668       if test -f "$VS100BASE/$VCVARSFILE"; then
26669         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26670 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26671         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26672       else
26673         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26674 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26675         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26676 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26677       fi
26678     fi
26679   fi
26680 
26681 
26682   if test "x$VS_ENV_CMD" = x; then
26683     VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0"
26684     METHOD="well-known name"
26685 
26686   windows_path="$VS100BASE"
26687   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26688     unix_path=`$CYGPATH -u "$windows_path"`
26689     VS100BASE="$unix_path"
26690   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26691     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26692     VS100BASE="$unix_path"
26693   fi
26694 
26695     if test -d "$VS100BASE"; then
26696       if test -f "$VS100BASE/$VCVARSFILE"; then
26697         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26698 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26699         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26700       else
26701         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26702 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26703         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26704 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26705       fi
26706     fi
26707   fi
26708 
26709 
26710   if test "x$ProgramW6432" != x; then
26711 
26712   if test "x$VS_ENV_CMD" = x; then
26713     WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin"
26714     METHOD="well-known name"
26715 
26716   windows_path="$WIN_SDK_BASE"
26717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26718     unix_path=`$CYGPATH -u "$windows_path"`
26719     WIN_SDK_BASE="$unix_path"
26720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26722     WIN_SDK_BASE="$unix_path"
26723   fi
26724 
26725     if test -d "$WIN_SDK_BASE"; then
26726       # There have been cases of partial or broken SDK installations. A missing
26727       # lib dir is not going to work.
26728       if test ! -d "$WIN_SDK_BASE/../lib"; then
26729         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26730 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26731         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26732 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26733       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26734         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26735 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26736         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26737         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26738           VS_ENV_ARGS="/x86"
26739         else
26740           VS_ENV_ARGS="/x64"
26741         fi
26742       else
26743         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26744 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26745         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26746 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26747       fi
26748     fi
26749   fi
26750 
26751   fi
26752   if test "x$PROGRAMW6432" != x; then
26753 
26754   if test "x$VS_ENV_CMD" = x; then
26755     WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin"
26756     METHOD="well-known name"
26757 
26758   windows_path="$WIN_SDK_BASE"
26759   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26760     unix_path=`$CYGPATH -u "$windows_path"`
26761     WIN_SDK_BASE="$unix_path"
26762   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26763     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26764     WIN_SDK_BASE="$unix_path"
26765   fi
26766 
26767     if test -d "$WIN_SDK_BASE"; then
26768       # There have been cases of partial or broken SDK installations. A missing
26769       # lib dir is not going to work.
26770       if test ! -d "$WIN_SDK_BASE/../lib"; then
26771         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26772 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26773         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26774 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26775       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26776         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26777 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26778         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26779         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26780           VS_ENV_ARGS="/x86"
26781         else
26782           VS_ENV_ARGS="/x64"
26783         fi
26784       else
26785         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26786 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26787         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26788 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26789       fi
26790     fi
26791   fi
26792 
26793   fi
26794   if test "x$PROGRAMFILES" != x; then
26795 
26796   if test "x$VS_ENV_CMD" = x; then
26797     WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin"
26798     METHOD="well-known name"
26799 
26800   windows_path="$WIN_SDK_BASE"
26801   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26802     unix_path=`$CYGPATH -u "$windows_path"`
26803     WIN_SDK_BASE="$unix_path"
26804   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26805     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26806     WIN_SDK_BASE="$unix_path"
26807   fi
26808 
26809     if test -d "$WIN_SDK_BASE"; then
26810       # There have been cases of partial or broken SDK installations. A missing
26811       # lib dir is not going to work.
26812       if test ! -d "$WIN_SDK_BASE/../lib"; then
26813         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26814 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26815         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26816 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26817       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26818         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26819 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26820         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26821         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26822           VS_ENV_ARGS="/x86"
26823         else
26824           VS_ENV_ARGS="/x64"
26825         fi
26826       else
26827         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26828 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26829         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26830 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26831       fi
26832     fi
26833   fi
26834 
26835   fi
26836 
26837   if test "x$VS_ENV_CMD" = x; then
26838     WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin"
26839     METHOD="well-known name"
26840 
26841   windows_path="$WIN_SDK_BASE"
26842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26843     unix_path=`$CYGPATH -u "$windows_path"`
26844     WIN_SDK_BASE="$unix_path"
26845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26846     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26847     WIN_SDK_BASE="$unix_path"
26848   fi
26849 
26850     if test -d "$WIN_SDK_BASE"; then
26851       # There have been cases of partial or broken SDK installations. A missing
26852       # lib dir is not going to work.
26853       if test ! -d "$WIN_SDK_BASE/../lib"; then
26854         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26855 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26856         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26857 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26858       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26859         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26860 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26861         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26862         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26863           VS_ENV_ARGS="/x86"
26864         else
26865           VS_ENV_ARGS="/x64"
26866         fi
26867       else
26868         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26869 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26870         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26871 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26872       fi
26873     fi
26874   fi
26875 
26876 
26877   if test "x$VS_ENV_CMD" = x; then
26878     WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin"
26879     METHOD="well-known name"
26880 
26881   windows_path="$WIN_SDK_BASE"
26882   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26883     unix_path=`$CYGPATH -u "$windows_path"`
26884     WIN_SDK_BASE="$unix_path"
26885   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26886     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26887     WIN_SDK_BASE="$unix_path"
26888   fi
26889 
26890     if test -d "$WIN_SDK_BASE"; then
26891       # There have been cases of partial or broken SDK installations. A missing
26892       # lib dir is not going to work.
26893       if test ! -d "$WIN_SDK_BASE/../lib"; then
26894         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26895 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26896         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26897 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26898       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26899         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26900 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26901         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26902         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26903           VS_ENV_ARGS="/x86"
26904         else
26905           VS_ENV_ARGS="/x64"
26906         fi
26907       else
26908         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26909 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26910         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26911 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26912       fi
26913     fi
26914   fi
26915 
26916 
26917   if test "x$VS_ENV_CMD" != x; then
26918     # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file.
26919 
26920   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26921 
26922   # First separate the path from the arguments. This will split at the first
26923   # space.
26924   complete="$VS_ENV_CMD"
26925   path="${complete%% *}"
26926   tmp="$complete EOL"
26927   arguments="${tmp#* }"
26928 
26929   # Input might be given as Windows format, start by converting to
26930   # unix format.
26931   new_path=`$CYGPATH -u "$path"`
26932 
26933   # Now try to locate executable using which
26934   new_path=`$WHICH "$new_path" 2> /dev/null`
26935   # bat and cmd files are not always considered executable in cygwin causing which
26936   # to not find them
26937   if test "x$new_path" = x \
26938       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26939       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26940     new_path=`$CYGPATH -u "$path"`
26941   fi
26942   if test "x$new_path" = x; then
26943     # Oops. Which didn't find the executable.
26944     # The splitting of arguments from the executable at a space might have been incorrect,
26945     # since paths with space are more likely in Windows. Give it another try with the whole
26946     # argument.
26947     path="$complete"
26948     arguments="EOL"
26949     new_path=`$CYGPATH -u "$path"`
26950     new_path=`$WHICH "$new_path" 2> /dev/null`
26951     # bat and cmd files are not always considered executable in cygwin causing which
26952     # to not find them
26953     if test "x$new_path" = x \
26954         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26955         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26956       new_path=`$CYGPATH -u "$path"`
26957     fi
26958     if test "x$new_path" = x; then
26959       # It's still not found. Now this is an unrecoverable error.
26960       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
26961 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
26962       has_space=`$ECHO "$complete" | $GREP " "`
26963       if test "x$has_space" != x; then
26964         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26965 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26966       fi
26967       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
26968     fi
26969   fi
26970 
26971   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26972   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26973   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26974   # "foo.exe" is OK but "foo" is an error.
26975   #
26976   # This test is therefore slightly more accurate than "test -f" to check for file presence.
26977   # It is also a way to make sure we got the proper file name for the real test later on.
26978   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
26979   if test "x$test_shortpath" = x; then
26980     # Short path failed, file does not exist as specified.
26981     # Try adding .exe or .cmd
26982     if test -f "${new_path}.exe"; then
26983       input_to_shortpath="${new_path}.exe"
26984     elif test -f "${new_path}.cmd"; then
26985       input_to_shortpath="${new_path}.cmd"
26986     else
26987       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5
26988 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;}
26989       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
26990 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
26991       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
26992     fi
26993   else
26994     input_to_shortpath="$new_path"
26995   fi
26996 
26997   # Call helper function which possibly converts this using DOS-style short mode.
26998   # If so, the updated path is stored in $new_path.
26999   new_path="$input_to_shortpath"
27000 
27001   input_path="$input_to_shortpath"
27002   # Check if we need to convert this using DOS-style short mode. If the path
27003   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27004   # take no chances and rewrite it.
27005   # Note: m4 eats our [], so we need to use [ and ] instead.
27006   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27007   if test "x$has_forbidden_chars" != x; then
27008     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27009     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27010     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27011     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27012       # Going to short mode and back again did indeed matter. Since short mode is
27013       # case insensitive, let's make it lowercase to improve readability.
27014       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27015       # Now convert it back to Unix-stile (cygpath)
27016       input_path=`$CYGPATH -u "$shortmode_path"`
27017       new_path="$input_path"
27018     fi
27019   fi
27020 
27021   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27022   if test "x$test_cygdrive_prefix" = x; then
27023     # As a simple fix, exclude /usr/bin since it's not a real path.
27024     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
27025       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27026       # a path prefixed by /cygdrive for fixpath to work.
27027       new_path="$CYGWIN_ROOT_PATH$input_path"
27028     fi
27029   fi
27030 
27031   # remove trailing .exe if any
27032   new_path="${new_path/%.exe/}"
27033 
27034   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27035 
27036   # First separate the path from the arguments. This will split at the first
27037   # space.
27038   complete="$VS_ENV_CMD"
27039   path="${complete%% *}"
27040   tmp="$complete EOL"
27041   arguments="${tmp#* }"
27042 
27043   # Input might be given as Windows format, start by converting to
27044   # unix format.
27045   new_path="$path"
27046 
27047   windows_path="$new_path"
27048   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27049     unix_path=`$CYGPATH -u "$windows_path"`
27050     new_path="$unix_path"
27051   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27052     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27053     new_path="$unix_path"
27054   fi
27055 
27056 
27057   # Now try to locate executable using which
27058   new_path=`$WHICH "$new_path" 2> /dev/null`
27059 
27060   if test "x$new_path" = x; then
27061     # Oops. Which didn't find the executable.
27062     # The splitting of arguments from the executable at a space might have been incorrect,
27063     # since paths with space are more likely in Windows. Give it another try with the whole
27064     # argument.
27065     path="$complete"
27066     arguments="EOL"
27067     new_path="$path"
27068 
27069   windows_path="$new_path"
27070   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27071     unix_path=`$CYGPATH -u "$windows_path"`
27072     new_path="$unix_path"
27073   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27074     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27075     new_path="$unix_path"
27076   fi
27077 
27078 
27079     new_path=`$WHICH "$new_path" 2> /dev/null`
27080 
27081     if test "x$new_path" = x; then
27082       # It's still not found. Now this is an unrecoverable error.
27083       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27084 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27085       has_space=`$ECHO "$complete" | $GREP " "`
27086       if test "x$has_space" != x; then
27087         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27088 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27089       fi
27090       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27091     fi
27092   fi
27093 
27094   # Now new_path has a complete unix path to the binary
27095   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
27096     # Keep paths in /bin as-is, but remove trailing .exe if any
27097     new_path="${new_path/%.exe/}"
27098     # Do not save /bin paths to all_fixpath_prefixes!
27099   else
27100     # Not in mixed or Windows style, start by that.
27101     new_path=`cmd //c echo $new_path`
27102 
27103   input_path="$new_path"
27104   # Check if we need to convert this using DOS-style short mode. If the path
27105   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27106   # take no chances and rewrite it.
27107   # Note: m4 eats our [], so we need to use [ and ] instead.
27108   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27109   if test "x$has_forbidden_chars" != x; then
27110     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27111     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27112   fi
27113 
27114     # Output is in $new_path
27115 
27116   windows_path="$new_path"
27117   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27118     unix_path=`$CYGPATH -u "$windows_path"`
27119     new_path="$unix_path"
27120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27121     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27122     new_path="$unix_path"
27123   fi
27124 
27125     # remove trailing .exe if any
27126     new_path="${new_path/%.exe/}"
27127 
27128     # Save the first 10 bytes of this path to the storage, so fixpath can work.
27129     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27130   fi
27131 
27132   else
27133     # We're on a posix platform. Hooray! :)
27134     # First separate the path from the arguments. This will split at the first
27135     # space.
27136     complete="$VS_ENV_CMD"
27137     path="${complete%% *}"
27138     tmp="$complete EOL"
27139     arguments="${tmp#* }"
27140 
27141     # Cannot rely on the command "which" here since it doesn't always work.
27142     is_absolute_path=`$ECHO "$path" | $GREP ^/`
27143     if test -z "$is_absolute_path"; then
27144       # Path to executable is not absolute. Find it.
27145       IFS_save="$IFS"
27146       IFS=:
27147       for p in $PATH; do
27148         if test -f "$p/$path" && test -x "$p/$path"; then
27149           new_path="$p/$path"
27150           break
27151         fi
27152       done
27153       IFS="$IFS_save"
27154     else
27155       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&5
27156 $as_echo "$as_me: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&6;}
27157       new_path="$path"
27158     fi
27159 
27160     if test "x$new_path" = x; then
27161       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27162 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27163       has_space=`$ECHO "$complete" | $GREP " "`
27164       if test "x$has_space" != x; then
27165         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
27166 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27167       fi
27168       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27169     fi
27170   fi
27171 
27172   # Now join together the path and the arguments once again
27173   if test "x$arguments" != xEOL; then
27174     new_complete="$new_path ${arguments% *}"
27175   else
27176     new_complete="$new_path"
27177   fi
27178 
27179   if test "x$complete" != "x$new_complete"; then
27180     VS_ENV_CMD="$new_complete"
27181     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5
27182 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;}
27183   fi
27184 
27185 
27186     # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
27187     { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5
27188 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
27189     cd $OUTPUT_ROOT
27190     # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted
27191     # to autoconf standards.
27192 
27193     #----
27194 
27195     # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment)
27196     # but calculate the difference in Cygwin environment before/after running it and then
27197     # apply the diff.
27198 
27199     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
27200       _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"`
27201       _dosvs10varsall=`cygpath -a -w -s $_vs10varsall`
27202       _dosbash=`cygpath -a -w -s \`which bash\`.*`
27203     else
27204       _dosvs10varsall=`cmd //c echo $VS_ENV_CMD`
27205       _dosbash=`cmd //c echo \`which bash\``
27206     fi
27207 
27208     # generate the set of exported vars before/after the vs10 setup
27209     $ECHO "@echo off"                                           >  localdevenvtmp.bat
27210     $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat
27211     $ECHO "call $_dosvs10varsall $VS_ENV_ARGS"                  >> localdevenvtmp.bat
27212     $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat
27213 
27214     # Now execute the newly created bat file.
27215     # The | cat is to stop SetEnv.Cmd to mess with system colors on msys
27216     cmd /c localdevenvtmp.bat | cat
27217 
27218     # apply the diff (less some non-vs10 vars named by "!")
27219     $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort
27220     $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort
27221     $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh
27222 
27223     # cleanup
27224     $RM localdevenvtmp*
27225     #----
27226     cd $CURDIR
27227     if test ! -s $OUTPUT_ROOT/localdevenv.sh; then
27228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27229 $as_echo "no" >&6; }
27230       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5
27231 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;}
27232       { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27233 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27234       { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27235 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27236       as_fn_error $? "Cannot continue" "$LINENO" 5
27237     fi
27238 
27239     # Now set all paths and other env variables. This will allow the rest of
27240     # the configure script to find and run the compiler in the proper way.
27241     { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5
27242 $as_echo "$as_me: Setting extracted environment variables" >&6;}
27243     . $OUTPUT_ROOT/localdevenv.sh
27244   else
27245     # We did not find a vsvars bat file, let's hope we are run from a VS command prompt.
27246     { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5
27247 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;}
27248   fi
27249 
27250   # At this point, we should have corrent variables in the environment, or we can't continue.
27251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5
27252 $as_echo_n "checking for Visual Studio variables... " >&6; }
27253 
27254   if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then
27255     if test "x$INCLUDE" = x || test "x$LIB" = x; then
27256       { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5
27257 $as_echo "present but broken" >&6; }
27258       as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5
27259     else
27260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27261 $as_echo "ok" >&6; }
27262       # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
27263       VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
27264       VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
27265       # Remove any paths containing # (typically F#) as that messes up make
27266       PATH=`$ECHO "$PATH" | $SED 's/[^:#]*#[^:]*://g'`
27267       VS_PATH="$PATH"
27268 
27269 
27270 
27271     fi
27272   else
27273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27274 $as_echo "not found" >&6; }
27275 
27276     if test "x$VS_ENV_CMD" = x; then
27277       { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5
27278 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;}
27279       { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5
27280 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;}
27281     else
27282       { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5
27283 $as_echo "$as_me: Running the extraction script failed." >&6;}
27284     fi
27285     { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27286 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27287     { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27288 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27289     as_fn_error $? "Cannot continue" "$LINENO" 5
27290   fi
27291 
27292 
27293 
27294 # Check whether --with-msvcr-dll was given.
27295 if test "${with_msvcr_dll+set}" = set; then :
27296   withval=$with_msvcr_dll;
27297 fi
27298 
27299 
27300   if test "x$with_msvcr_dll" != x; then
27301     # If given explicitely by user, do not probe. If not present, fail directly.
27302 
27303   POSSIBLE_MSVCR_DLL="$with_msvcr_dll"
27304   METHOD="--with-msvcr-dll"
27305   if test -e "$POSSIBLE_MSVCR_DLL"; then
27306     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27307 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27308 
27309     # Need to check if the found msvcr is correct architecture
27310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27311 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27312     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27313     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27314       CORRECT_MSVCR_ARCH=386
27315     else
27316       CORRECT_MSVCR_ARCH=x86-64
27317     fi
27318     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27320 $as_echo "ok" >&6; }
27321       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27323 $as_echo_n "checking for msvcr100.dll... " >&6; }
27324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27325 $as_echo "$MSVCR_DLL" >&6; }
27326     else
27327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27328 $as_echo "incorrect, ignoring" >&6; }
27329       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27330 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27331     fi
27332   fi
27333 
27334     if test "x$MSVCR_DLL" = x; then
27335       as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5
27336     fi
27337   fi
27338 
27339   if test "x$MSVCR_DLL" = x; then
27340     # Probe: Using well-known location from Visual Studio 10.0
27341     if test "x$VCINSTALLDIR" != x; then
27342       CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR"
27343 
27344   windows_path="$CYGWIN_VC_INSTALL_DIR"
27345   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27346     unix_path=`$CYGPATH -u "$windows_path"`
27347     CYGWIN_VC_INSTALL_DIR="$unix_path"
27348   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27349     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27350     CYGWIN_VC_INSTALL_DIR="$unix_path"
27351   fi
27352 
27353       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
27354         POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll"
27355       else
27356         POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll"
27357       fi
27358 
27359   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27360   METHOD="well-known location in VCINSTALLDIR"
27361   if test -e "$POSSIBLE_MSVCR_DLL"; then
27362     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27363 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27364 
27365     # Need to check if the found msvcr is correct architecture
27366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27367 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27368     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27369     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27370       CORRECT_MSVCR_ARCH=386
27371     else
27372       CORRECT_MSVCR_ARCH=x86-64
27373     fi
27374     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27376 $as_echo "ok" >&6; }
27377       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27378       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27379 $as_echo_n "checking for msvcr100.dll... " >&6; }
27380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27381 $as_echo "$MSVCR_DLL" >&6; }
27382     else
27383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27384 $as_echo "incorrect, ignoring" >&6; }
27385       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27386 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27387     fi
27388   fi
27389 
27390     fi
27391   fi
27392 
27393   if test "x$MSVCR_DLL" = x; then
27394     # Probe: Check in the Boot JDK directory.
27395     POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll"
27396 
27397   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27398   METHOD="well-known location in Boot JDK"
27399   if test -e "$POSSIBLE_MSVCR_DLL"; then
27400     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27401 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27402 
27403     # Need to check if the found msvcr is correct architecture
27404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27405 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27406     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27407     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27408       CORRECT_MSVCR_ARCH=386
27409     else
27410       CORRECT_MSVCR_ARCH=x86-64
27411     fi
27412     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27413       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27414 $as_echo "ok" >&6; }
27415       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27416       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27417 $as_echo_n "checking for msvcr100.dll... " >&6; }
27418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27419 $as_echo "$MSVCR_DLL" >&6; }
27420     else
27421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27422 $as_echo "incorrect, ignoring" >&6; }
27423       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27424 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27425     fi
27426   fi
27427 
27428   fi
27429 
27430   if test "x$MSVCR_DLL" = x; then
27431     # Probe: Look in the Windows system32 directory
27432     CYGWIN_SYSTEMROOT="$SYSTEMROOT"
27433 
27434   windows_path="$CYGWIN_SYSTEMROOT"
27435   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27436     unix_path=`$CYGPATH -u "$windows_path"`
27437     CYGWIN_SYSTEMROOT="$unix_path"
27438   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27439     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27440     CYGWIN_SYSTEMROOT="$unix_path"
27441   fi
27442 
27443     POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll"
27444 
27445   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27446   METHOD="well-known location in SYSTEMROOT"
27447   if test -e "$POSSIBLE_MSVCR_DLL"; then
27448     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27449 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27450 
27451     # Need to check if the found msvcr is correct architecture
27452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27453 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27454     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27455     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27456       CORRECT_MSVCR_ARCH=386
27457     else
27458       CORRECT_MSVCR_ARCH=x86-64
27459     fi
27460     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27462 $as_echo "ok" >&6; }
27463       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27464       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27465 $as_echo_n "checking for msvcr100.dll... " >&6; }
27466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27467 $as_echo "$MSVCR_DLL" >&6; }
27468     else
27469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27470 $as_echo "incorrect, ignoring" >&6; }
27471       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27472 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27473     fi
27474   fi
27475 
27476   fi
27477 
27478   if test "x$MSVCR_DLL" = x; then
27479     # Probe: If Visual Studio Express is installed, there is usually one with the debugger
27480     if test "x$VS100COMNTOOLS" != x; then
27481       CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.."
27482 
27483   windows_path="$CYGWIN_VS_TOOLS_DIR"
27484   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27485     unix_path=`$CYGPATH -u "$windows_path"`
27486     CYGWIN_VS_TOOLS_DIR="$unix_path"
27487   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27488     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27489     CYGWIN_VS_TOOLS_DIR="$unix_path"
27490   fi
27491 
27492       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
27493         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1`
27494       else
27495         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1`
27496       fi
27497 
27498   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27499   METHOD="search of VS100COMNTOOLS"
27500   if test -e "$POSSIBLE_MSVCR_DLL"; then
27501     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27502 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27503 
27504     # Need to check if the found msvcr is correct architecture
27505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27506 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27507     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27508     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27509       CORRECT_MSVCR_ARCH=386
27510     else
27511       CORRECT_MSVCR_ARCH=x86-64
27512     fi
27513     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27515 $as_echo "ok" >&6; }
27516       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27517       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27518 $as_echo_n "checking for msvcr100.dll... " >&6; }
27519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27520 $as_echo "$MSVCR_DLL" >&6; }
27521     else
27522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27523 $as_echo "incorrect, ignoring" >&6; }
27524       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27525 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27526     fi
27527   fi
27528 
27529     fi
27530   fi
27531 
27532   if test "x$MSVCR_DLL" = x; then
27533     # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now.
27534     # (This was the original behaviour; kept since it might turn up something)
27535     if test "x$CYGWIN_VC_INSTALL_DIR" != x; then
27536       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
27537         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1`
27538       else
27539         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1`
27540         if test "x$POSSIBLE_MSVCR_DLL" = x; then
27541           # We're grasping at straws now...
27542           POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1`
27543         fi
27544       fi
27545 
27546 
27547   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27548   METHOD="search of VCINSTALLDIR"
27549   if test -e "$POSSIBLE_MSVCR_DLL"; then
27550     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27551 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27552 
27553     # Need to check if the found msvcr is correct architecture
27554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27555 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27556     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27557     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27558       CORRECT_MSVCR_ARCH=386
27559     else
27560       CORRECT_MSVCR_ARCH=x86-64
27561     fi
27562     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27563       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27564 $as_echo "ok" >&6; }
27565       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27567 $as_echo_n "checking for msvcr100.dll... " >&6; }
27568       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27569 $as_echo "$MSVCR_DLL" >&6; }
27570     else
27571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27572 $as_echo "incorrect, ignoring" >&6; }
27573       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27574 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27575     fi
27576   fi
27577 
27578     fi
27579   fi
27580 
27581   if test "x$MSVCR_DLL" = x; then
27582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27583 $as_echo_n "checking for msvcr100.dll... " >&6; }
27584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27585 $as_echo "no" >&6; }
27586     as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5
27587   fi
27588 
27589 
27590   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27591 
27592   # Input might be given as Windows format, start by converting to
27593   # unix format.
27594   path="$MSVCR_DLL"
27595   new_path=`$CYGPATH -u "$path"`
27596 
27597   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27598   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27599   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27600   # "foo.exe" is OK but "foo" is an error.
27601   #
27602   # This test is therefore slightly more accurate than "test -f" to check for file precense.
27603   # It is also a way to make sure we got the proper file name for the real test later on.
27604   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
27605   if test "x$test_shortpath" = x; then
27606     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
27607 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
27608     as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5
27609   fi
27610 
27611   # Call helper function which possibly converts this using DOS-style short mode.
27612   # If so, the updated path is stored in $new_path.
27613 
27614   input_path="$new_path"
27615   # Check if we need to convert this using DOS-style short mode. If the path
27616   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27617   # take no chances and rewrite it.
27618   # Note: m4 eats our [], so we need to use [ and ] instead.
27619   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27620   if test "x$has_forbidden_chars" != x; then
27621     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27622     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27623     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27624     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27625       # Going to short mode and back again did indeed matter. Since short mode is
27626       # case insensitive, let's make it lowercase to improve readability.
27627       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27628       # Now convert it back to Unix-stile (cygpath)
27629       input_path=`$CYGPATH -u "$shortmode_path"`
27630       new_path="$input_path"
27631     fi
27632   fi
27633 
27634   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27635   if test "x$test_cygdrive_prefix" = x; then
27636     # As a simple fix, exclude /usr/bin since it's not a real path.
27637     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
27638       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27639       # a path prefixed by /cygdrive for fixpath to work.
27640       new_path="$CYGWIN_ROOT_PATH$input_path"
27641     fi
27642   fi
27643 
27644 
27645   if test "x$path" != "x$new_path"; then
27646     MSVCR_DLL="$new_path"
27647     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
27648 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
27649   fi
27650 
27651   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27652 
27653   path="$MSVCR_DLL"
27654   has_colon=`$ECHO $path | $GREP ^.:`
27655   new_path="$path"
27656   if test "x$has_colon" = x; then
27657     # Not in mixed or Windows style, start by that.
27658     new_path=`cmd //c echo $path`
27659   fi
27660 
27661 
27662   input_path="$new_path"
27663   # Check if we need to convert this using DOS-style short mode. If the path
27664   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27665   # take no chances and rewrite it.
27666   # Note: m4 eats our [], so we need to use [ and ] instead.
27667   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27668   if test "x$has_forbidden_chars" != x; then
27669     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27670     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27671   fi
27672 
27673 
27674   windows_path="$new_path"
27675   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27676     unix_path=`$CYGPATH -u "$windows_path"`
27677     new_path="$unix_path"
27678   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27679     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27680     new_path="$unix_path"
27681   fi
27682 
27683   if test "x$path" != "x$new_path"; then
27684     MSVCR_DLL="$new_path"
27685     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
27686 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
27687   fi
27688 
27689   # Save the first 10 bytes of this path to the storage, so fixpath can work.
27690   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27691 
27692   else
27693     # We're on a posix platform. Hooray! :)
27694     path="$MSVCR_DLL"
27695     has_space=`$ECHO "$path" | $GREP " "`
27696     if test "x$has_space" != x; then
27697       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
27698 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
27699       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
27700     fi
27701 
27702     # Use eval to expand a potential ~
27703     eval path="$path"
27704     if test ! -f "$path" && test ! -d "$path"; then
27705       as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5
27706     fi
27707 
27708     MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`"
27709   fi
27710 
27711 
27712 
27713 
27714 # Check whether --with-dxsdk was given.
27715 if test "${with_dxsdk+set}" = set; then :
27716   withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5
27717 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;}
27718 fi
27719 
27720 
27721 
27722 
27723 # Check whether --with-dxsdk-lib was given.
27724 if test "${with_dxsdk_lib+set}" = set; then :
27725   withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5
27726 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;}
27727 fi
27728 
27729 
27730 
27731 
27732 # Check whether --with-dxsdk-include was given.
27733 if test "${with_dxsdk_include+set}" = set; then :
27734   withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5
27735 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;}
27736 fi
27737 
27738 
27739   fi
27740 
27741 
27742 
27743   # If --build AND --host is set, then the configure script will find any
27744   # cross compilation tools in the PATH. Cross compilation tools
27745   # follows the cross compilation standard where they are prefixed with ${host}.
27746   # For example the binary i686-sun-solaris2.10-gcc
27747   # will cross compile for i686-sun-solaris2.10
27748   # If neither of build and host is not set, then build=host and the
27749   # default compiler found in the path will be used.
27750   # Setting only --host, does not seem to be really supported.
27751   # Please set both --build and --host if you want to cross compile.
27752 
27753   if test "x$COMPILE_TYPE" = "xcross"; then
27754     # Now we to find a C/C++ compiler that can build executables for the build
27755     # platform. We can't use the AC_PROG_CC macro, since it can only be used
27756     # once. Also, we need to do this before adding a tools dir to the path,
27757     # otherwise we might pick up cross-compilers which don't use standard naming.
27758     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
27759     # to wait until they are properly discovered.
27760 
27761 
27762   # Publish this variable in the help.
27763 
27764 
27765   if test "x$BUILD_CC" = x; then
27766     # The variable is not set by user, try to locate tool using the code snippet
27767     for ac_prog in cl cc gcc
27768 do
27769   # Extract the first word of "$ac_prog", so it can be a program name with args.
27770 set dummy $ac_prog; ac_word=$2
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27772 $as_echo_n "checking for $ac_word... " >&6; }
27773 if ${ac_cv_path_BUILD_CC+:} false; then :
27774   $as_echo_n "(cached) " >&6
27775 else
27776   case $BUILD_CC in
27777   [\\/]* | ?:[\\/]*)
27778   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
27779   ;;
27780   *)
27781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27782 for as_dir in $PATH
27783 do
27784   IFS=$as_save_IFS
27785   test -z "$as_dir" && as_dir=.
27786     for ac_exec_ext in '' $ac_executable_extensions; do
27787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27788     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
27789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27790     break 2
27791   fi
27792 done
27793   done
27794 IFS=$as_save_IFS
27795 
27796   ;;
27797 esac
27798 fi
27799 BUILD_CC=$ac_cv_path_BUILD_CC
27800 if test -n "$BUILD_CC"; then
27801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
27802 $as_echo "$BUILD_CC" >&6; }
27803 else
27804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27805 $as_echo "no" >&6; }
27806 fi
27807 
27808 
27809   test -n "$BUILD_CC" && break
27810 done
27811 
27812   else
27813     # The variable is set, but is it from the command line or the environment?
27814 
27815     # Try to remove the string !BUILD_CC! from our list.
27816     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/}
27817     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
27818       # If it failed, the variable was not from the command line. Ignore it,
27819       # but warn the user (except for BASH, which is always set by the calling BASH).
27820       if test "xBUILD_CC" != xBASH; then
27821         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5
27822 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;}
27823       fi
27824       # Try to locate tool using the code snippet
27825       for ac_prog in cl cc gcc
27826 do
27827   # Extract the first word of "$ac_prog", so it can be a program name with args.
27828 set dummy $ac_prog; ac_word=$2
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27830 $as_echo_n "checking for $ac_word... " >&6; }
27831 if ${ac_cv_path_BUILD_CC+:} false; then :
27832   $as_echo_n "(cached) " >&6
27833 else
27834   case $BUILD_CC in
27835   [\\/]* | ?:[\\/]*)
27836   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
27837   ;;
27838   *)
27839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27840 for as_dir in $PATH
27841 do
27842   IFS=$as_save_IFS
27843   test -z "$as_dir" && as_dir=.
27844     for ac_exec_ext in '' $ac_executable_extensions; do
27845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27846     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
27847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27848     break 2
27849   fi
27850 done
27851   done
27852 IFS=$as_save_IFS
27853 
27854   ;;
27855 esac
27856 fi
27857 BUILD_CC=$ac_cv_path_BUILD_CC
27858 if test -n "$BUILD_CC"; then
27859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
27860 $as_echo "$BUILD_CC" >&6; }
27861 else
27862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27863 $as_echo "no" >&6; }
27864 fi
27865 
27866 
27867   test -n "$BUILD_CC" && break
27868 done
27869 
27870     else
27871       # If it succeeded, then it was overridden by the user. We will use it
27872       # for the tool.
27873 
27874       # First remove it from the list of overridden variables, so we can test
27875       # for unknown variables in the end.
27876       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
27877 
27878       # Check if the provided tool contains a complete path.
27879       tool_specified="$BUILD_CC"
27880       tool_basename="${tool_specified##*/}"
27881       if test "x$tool_basename" = "x$tool_specified"; then
27882         # A command without a complete path is provided, search $PATH.
27883         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5
27884 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;}
27885         # Extract the first word of "$tool_basename", so it can be a program name with args.
27886 set dummy $tool_basename; ac_word=$2
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27888 $as_echo_n "checking for $ac_word... " >&6; }
27889 if ${ac_cv_path_BUILD_CC+:} false; then :
27890   $as_echo_n "(cached) " >&6
27891 else
27892   case $BUILD_CC in
27893   [\\/]* | ?:[\\/]*)
27894   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
27895   ;;
27896   *)
27897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27898 for as_dir in $PATH
27899 do
27900   IFS=$as_save_IFS
27901   test -z "$as_dir" && as_dir=.
27902     for ac_exec_ext in '' $ac_executable_extensions; do
27903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27904     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
27905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27906     break 2
27907   fi
27908 done
27909   done
27910 IFS=$as_save_IFS
27911 
27912   ;;
27913 esac
27914 fi
27915 BUILD_CC=$ac_cv_path_BUILD_CC
27916 if test -n "$BUILD_CC"; then
27917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
27918 $as_echo "$BUILD_CC" >&6; }
27919 else
27920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27921 $as_echo "no" >&6; }
27922 fi
27923 
27924 
27925         if test "x$BUILD_CC" = x; then
27926           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
27927         fi
27928       else
27929         # Otherwise we believe it is a complete path. Use it as it is.
27930         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5
27931 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;}
27932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5
27933 $as_echo_n "checking for BUILD_CC... " >&6; }
27934         if test ! -x "$tool_specified"; then
27935           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27936 $as_echo "not found" >&6; }
27937           as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5
27938         fi
27939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
27940 $as_echo "$tool_specified" >&6; }
27941       fi
27942     fi
27943   fi
27944 
27945 
27946 
27947   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27948 
27949   # First separate the path from the arguments. This will split at the first
27950   # space.
27951   complete="$BUILD_CC"
27952   path="${complete%% *}"
27953   tmp="$complete EOL"
27954   arguments="${tmp#* }"
27955 
27956   # Input might be given as Windows format, start by converting to
27957   # unix format.
27958   new_path=`$CYGPATH -u "$path"`
27959 
27960   # Now try to locate executable using which
27961   new_path=`$WHICH "$new_path" 2> /dev/null`
27962   # bat and cmd files are not always considered executable in cygwin causing which
27963   # to not find them
27964   if test "x$new_path" = x \
27965       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27966       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27967     new_path=`$CYGPATH -u "$path"`
27968   fi
27969   if test "x$new_path" = x; then
27970     # Oops. Which didn't find the executable.
27971     # The splitting of arguments from the executable at a space might have been incorrect,
27972     # since paths with space are more likely in Windows. Give it another try with the whole
27973     # argument.
27974     path="$complete"
27975     arguments="EOL"
27976     new_path=`$CYGPATH -u "$path"`
27977     new_path=`$WHICH "$new_path" 2> /dev/null`
27978     # bat and cmd files are not always considered executable in cygwin causing which
27979     # to not find them
27980     if test "x$new_path" = x \
27981         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27982         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27983       new_path=`$CYGPATH -u "$path"`
27984     fi
27985     if test "x$new_path" = x; then
27986       # It's still not found. Now this is an unrecoverable error.
27987       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
27988 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
27989       has_space=`$ECHO "$complete" | $GREP " "`
27990       if test "x$has_space" != x; then
27991         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27992 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27993       fi
27994       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
27995     fi
27996   fi
27997 
27998   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27999   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28000   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28001   # "foo.exe" is OK but "foo" is an error.
28002   #
28003   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28004   # It is also a way to make sure we got the proper file name for the real test later on.
28005   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28006   if test "x$test_shortpath" = x; then
28007     # Short path failed, file does not exist as specified.
28008     # Try adding .exe or .cmd
28009     if test -f "${new_path}.exe"; then
28010       input_to_shortpath="${new_path}.exe"
28011     elif test -f "${new_path}.cmd"; then
28012       input_to_shortpath="${new_path}.cmd"
28013     else
28014       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5
28015 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;}
28016       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28017 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28018       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
28019     fi
28020   else
28021     input_to_shortpath="$new_path"
28022   fi
28023 
28024   # Call helper function which possibly converts this using DOS-style short mode.
28025   # If so, the updated path is stored in $new_path.
28026   new_path="$input_to_shortpath"
28027 
28028   input_path="$input_to_shortpath"
28029   # Check if we need to convert this using DOS-style short mode. If the path
28030   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28031   # take no chances and rewrite it.
28032   # Note: m4 eats our [], so we need to use [ and ] instead.
28033   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28034   if test "x$has_forbidden_chars" != x; then
28035     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28036     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28037     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28038     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28039       # Going to short mode and back again did indeed matter. Since short mode is
28040       # case insensitive, let's make it lowercase to improve readability.
28041       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28042       # Now convert it back to Unix-stile (cygpath)
28043       input_path=`$CYGPATH -u "$shortmode_path"`
28044       new_path="$input_path"
28045     fi
28046   fi
28047 
28048   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28049   if test "x$test_cygdrive_prefix" = x; then
28050     # As a simple fix, exclude /usr/bin since it's not a real path.
28051     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28052       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28053       # a path prefixed by /cygdrive for fixpath to work.
28054       new_path="$CYGWIN_ROOT_PATH$input_path"
28055     fi
28056   fi
28057 
28058   # remove trailing .exe if any
28059   new_path="${new_path/%.exe/}"
28060 
28061   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28062 
28063   # First separate the path from the arguments. This will split at the first
28064   # space.
28065   complete="$BUILD_CC"
28066   path="${complete%% *}"
28067   tmp="$complete EOL"
28068   arguments="${tmp#* }"
28069 
28070   # Input might be given as Windows format, start by converting to
28071   # unix format.
28072   new_path="$path"
28073 
28074   windows_path="$new_path"
28075   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28076     unix_path=`$CYGPATH -u "$windows_path"`
28077     new_path="$unix_path"
28078   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28079     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28080     new_path="$unix_path"
28081   fi
28082 
28083 
28084   # Now try to locate executable using which
28085   new_path=`$WHICH "$new_path" 2> /dev/null`
28086 
28087   if test "x$new_path" = x; then
28088     # Oops. Which didn't find the executable.
28089     # The splitting of arguments from the executable at a space might have been incorrect,
28090     # since paths with space are more likely in Windows. Give it another try with the whole
28091     # argument.
28092     path="$complete"
28093     arguments="EOL"
28094     new_path="$path"
28095 
28096   windows_path="$new_path"
28097   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28098     unix_path=`$CYGPATH -u "$windows_path"`
28099     new_path="$unix_path"
28100   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28101     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28102     new_path="$unix_path"
28103   fi
28104 
28105 
28106     new_path=`$WHICH "$new_path" 2> /dev/null`
28107 
28108     if test "x$new_path" = x; then
28109       # It's still not found. Now this is an unrecoverable error.
28110       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
28111 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
28112       has_space=`$ECHO "$complete" | $GREP " "`
28113       if test "x$has_space" != x; then
28114         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28115 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28116       fi
28117       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
28118     fi
28119   fi
28120 
28121   # Now new_path has a complete unix path to the binary
28122   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28123     # Keep paths in /bin as-is, but remove trailing .exe if any
28124     new_path="${new_path/%.exe/}"
28125     # Do not save /bin paths to all_fixpath_prefixes!
28126   else
28127     # Not in mixed or Windows style, start by that.
28128     new_path=`cmd //c echo $new_path`
28129 
28130   input_path="$new_path"
28131   # Check if we need to convert this using DOS-style short mode. If the path
28132   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28133   # take no chances and rewrite it.
28134   # Note: m4 eats our [], so we need to use [ and ] instead.
28135   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28136   if test "x$has_forbidden_chars" != x; then
28137     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28138     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28139   fi
28140 
28141     # Output is in $new_path
28142 
28143   windows_path="$new_path"
28144   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28145     unix_path=`$CYGPATH -u "$windows_path"`
28146     new_path="$unix_path"
28147   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28148     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28149     new_path="$unix_path"
28150   fi
28151 
28152     # remove trailing .exe if any
28153     new_path="${new_path/%.exe/}"
28154 
28155     # Save the first 10 bytes of this path to the storage, so fixpath can work.
28156     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28157   fi
28158 
28159   else
28160     # We're on a posix platform. Hooray! :)
28161     # First separate the path from the arguments. This will split at the first
28162     # space.
28163     complete="$BUILD_CC"
28164     path="${complete%% *}"
28165     tmp="$complete EOL"
28166     arguments="${tmp#* }"
28167 
28168     # Cannot rely on the command "which" here since it doesn't always work.
28169     is_absolute_path=`$ECHO "$path" | $GREP ^/`
28170     if test -z "$is_absolute_path"; then
28171       # Path to executable is not absolute. Find it.
28172       IFS_save="$IFS"
28173       IFS=:
28174       for p in $PATH; do
28175         if test -f "$p/$path" && test -x "$p/$path"; then
28176           new_path="$p/$path"
28177           break
28178         fi
28179       done
28180       IFS="$IFS_save"
28181     else
28182       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CC (as $path) failed, using $path directly." >&5
28183 $as_echo "$as_me: Resolving BUILD_CC (as $path) failed, using $path directly." >&6;}
28184       new_path="$path"
28185     fi
28186 
28187     if test "x$new_path" = x; then
28188       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
28189 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
28190       has_space=`$ECHO "$complete" | $GREP " "`
28191       if test "x$has_space" != x; then
28192         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28193 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28194       fi
28195       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
28196     fi
28197   fi
28198 
28199   # Now join together the path and the arguments once again
28200   if test "x$arguments" != xEOL; then
28201     new_complete="$new_path ${arguments% *}"
28202   else
28203     new_complete="$new_path"
28204   fi
28205 
28206   if test "x$complete" != "x$new_complete"; then
28207     BUILD_CC="$new_complete"
28208     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
28209 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
28210   fi
28211 
28212 
28213 
28214   # Publish this variable in the help.
28215 
28216 
28217   if test "x$BUILD_CXX" = x; then
28218     # The variable is not set by user, try to locate tool using the code snippet
28219     for ac_prog in cl CC g++
28220 do
28221   # Extract the first word of "$ac_prog", so it can be a program name with args.
28222 set dummy $ac_prog; ac_word=$2
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28224 $as_echo_n "checking for $ac_word... " >&6; }
28225 if ${ac_cv_path_BUILD_CXX+:} false; then :
28226   $as_echo_n "(cached) " >&6
28227 else
28228   case $BUILD_CXX in
28229   [\\/]* | ?:[\\/]*)
28230   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
28231   ;;
28232   *)
28233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28234 for as_dir in $PATH
28235 do
28236   IFS=$as_save_IFS
28237   test -z "$as_dir" && as_dir=.
28238     for ac_exec_ext in '' $ac_executable_extensions; do
28239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28240     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
28241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28242     break 2
28243   fi
28244 done
28245   done
28246 IFS=$as_save_IFS
28247 
28248   ;;
28249 esac
28250 fi
28251 BUILD_CXX=$ac_cv_path_BUILD_CXX
28252 if test -n "$BUILD_CXX"; then
28253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
28254 $as_echo "$BUILD_CXX" >&6; }
28255 else
28256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28257 $as_echo "no" >&6; }
28258 fi
28259 
28260 
28261   test -n "$BUILD_CXX" && break
28262 done
28263 
28264   else
28265     # The variable is set, but is it from the command line or the environment?
28266 
28267     # Try to remove the string !BUILD_CXX! from our list.
28268     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/}
28269     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
28270       # If it failed, the variable was not from the command line. Ignore it,
28271       # but warn the user (except for BASH, which is always set by the calling BASH).
28272       if test "xBUILD_CXX" != xBASH; then
28273         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5
28274 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;}
28275       fi
28276       # Try to locate tool using the code snippet
28277       for ac_prog in cl CC g++
28278 do
28279   # Extract the first word of "$ac_prog", so it can be a program name with args.
28280 set dummy $ac_prog; ac_word=$2
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28282 $as_echo_n "checking for $ac_word... " >&6; }
28283 if ${ac_cv_path_BUILD_CXX+:} false; then :
28284   $as_echo_n "(cached) " >&6
28285 else
28286   case $BUILD_CXX in
28287   [\\/]* | ?:[\\/]*)
28288   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
28289   ;;
28290   *)
28291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28292 for as_dir in $PATH
28293 do
28294   IFS=$as_save_IFS
28295   test -z "$as_dir" && as_dir=.
28296     for ac_exec_ext in '' $ac_executable_extensions; do
28297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28298     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
28299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28300     break 2
28301   fi
28302 done
28303   done
28304 IFS=$as_save_IFS
28305 
28306   ;;
28307 esac
28308 fi
28309 BUILD_CXX=$ac_cv_path_BUILD_CXX
28310 if test -n "$BUILD_CXX"; then
28311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
28312 $as_echo "$BUILD_CXX" >&6; }
28313 else
28314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28315 $as_echo "no" >&6; }
28316 fi
28317 
28318 
28319   test -n "$BUILD_CXX" && break
28320 done
28321 
28322     else
28323       # If it succeeded, then it was overridden by the user. We will use it
28324       # for the tool.
28325 
28326       # First remove it from the list of overridden variables, so we can test
28327       # for unknown variables in the end.
28328       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
28329 
28330       # Check if the provided tool contains a complete path.
28331       tool_specified="$BUILD_CXX"
28332       tool_basename="${tool_specified##*/}"
28333       if test "x$tool_basename" = "x$tool_specified"; then
28334         # A command without a complete path is provided, search $PATH.
28335         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5
28336 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;}
28337         # Extract the first word of "$tool_basename", so it can be a program name with args.
28338 set dummy $tool_basename; ac_word=$2
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28340 $as_echo_n "checking for $ac_word... " >&6; }
28341 if ${ac_cv_path_BUILD_CXX+:} false; then :
28342   $as_echo_n "(cached) " >&6
28343 else
28344   case $BUILD_CXX in
28345   [\\/]* | ?:[\\/]*)
28346   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
28347   ;;
28348   *)
28349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28350 for as_dir in $PATH
28351 do
28352   IFS=$as_save_IFS
28353   test -z "$as_dir" && as_dir=.
28354     for ac_exec_ext in '' $ac_executable_extensions; do
28355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28356     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
28357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28358     break 2
28359   fi
28360 done
28361   done
28362 IFS=$as_save_IFS
28363 
28364   ;;
28365 esac
28366 fi
28367 BUILD_CXX=$ac_cv_path_BUILD_CXX
28368 if test -n "$BUILD_CXX"; then
28369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
28370 $as_echo "$BUILD_CXX" >&6; }
28371 else
28372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28374 fi
28375 
28376 
28377         if test "x$BUILD_CXX" = x; then
28378           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
28379         fi
28380       else
28381         # Otherwise we believe it is a complete path. Use it as it is.
28382         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5
28383 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;}
28384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5
28385 $as_echo_n "checking for BUILD_CXX... " >&6; }
28386         if test ! -x "$tool_specified"; then
28387           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28388 $as_echo "not found" >&6; }
28389           as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5
28390         fi
28391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
28392 $as_echo "$tool_specified" >&6; }
28393       fi
28394     fi
28395   fi
28396 
28397 
28398 
28399   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28400 
28401   # First separate the path from the arguments. This will split at the first
28402   # space.
28403   complete="$BUILD_CXX"
28404   path="${complete%% *}"
28405   tmp="$complete EOL"
28406   arguments="${tmp#* }"
28407 
28408   # Input might be given as Windows format, start by converting to
28409   # unix format.
28410   new_path=`$CYGPATH -u "$path"`
28411 
28412   # Now try to locate executable using which
28413   new_path=`$WHICH "$new_path" 2> /dev/null`
28414   # bat and cmd files are not always considered executable in cygwin causing which
28415   # to not find them
28416   if test "x$new_path" = x \
28417       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28418       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28419     new_path=`$CYGPATH -u "$path"`
28420   fi
28421   if test "x$new_path" = x; then
28422     # Oops. Which didn't find the executable.
28423     # The splitting of arguments from the executable at a space might have been incorrect,
28424     # since paths with space are more likely in Windows. Give it another try with the whole
28425     # argument.
28426     path="$complete"
28427     arguments="EOL"
28428     new_path=`$CYGPATH -u "$path"`
28429     new_path=`$WHICH "$new_path" 2> /dev/null`
28430     # bat and cmd files are not always considered executable in cygwin causing which
28431     # to not find them
28432     if test "x$new_path" = x \
28433         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28434         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28435       new_path=`$CYGPATH -u "$path"`
28436     fi
28437     if test "x$new_path" = x; then
28438       # It's still not found. Now this is an unrecoverable error.
28439       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
28440 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
28441       has_space=`$ECHO "$complete" | $GREP " "`
28442       if test "x$has_space" != x; then
28443         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28444 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28445       fi
28446       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28447     fi
28448   fi
28449 
28450   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28451   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28452   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28453   # "foo.exe" is OK but "foo" is an error.
28454   #
28455   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28456   # It is also a way to make sure we got the proper file name for the real test later on.
28457   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28458   if test "x$test_shortpath" = x; then
28459     # Short path failed, file does not exist as specified.
28460     # Try adding .exe or .cmd
28461     if test -f "${new_path}.exe"; then
28462       input_to_shortpath="${new_path}.exe"
28463     elif test -f "${new_path}.cmd"; then
28464       input_to_shortpath="${new_path}.cmd"
28465     else
28466       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5
28467 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;}
28468       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28469 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28470       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28471     fi
28472   else
28473     input_to_shortpath="$new_path"
28474   fi
28475 
28476   # Call helper function which possibly converts this using DOS-style short mode.
28477   # If so, the updated path is stored in $new_path.
28478   new_path="$input_to_shortpath"
28479 
28480   input_path="$input_to_shortpath"
28481   # Check if we need to convert this using DOS-style short mode. If the path
28482   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28483   # take no chances and rewrite it.
28484   # Note: m4 eats our [], so we need to use [ and ] instead.
28485   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28486   if test "x$has_forbidden_chars" != x; then
28487     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28488     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28489     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28490     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28491       # Going to short mode and back again did indeed matter. Since short mode is
28492       # case insensitive, let's make it lowercase to improve readability.
28493       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28494       # Now convert it back to Unix-stile (cygpath)
28495       input_path=`$CYGPATH -u "$shortmode_path"`
28496       new_path="$input_path"
28497     fi
28498   fi
28499 
28500   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28501   if test "x$test_cygdrive_prefix" = x; then
28502     # As a simple fix, exclude /usr/bin since it's not a real path.
28503     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28504       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28505       # a path prefixed by /cygdrive for fixpath to work.
28506       new_path="$CYGWIN_ROOT_PATH$input_path"
28507     fi
28508   fi
28509 
28510   # remove trailing .exe if any
28511   new_path="${new_path/%.exe/}"
28512 
28513   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28514 
28515   # First separate the path from the arguments. This will split at the first
28516   # space.
28517   complete="$BUILD_CXX"
28518   path="${complete%% *}"
28519   tmp="$complete EOL"
28520   arguments="${tmp#* }"
28521 
28522   # Input might be given as Windows format, start by converting to
28523   # unix format.
28524   new_path="$path"
28525 
28526   windows_path="$new_path"
28527   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28528     unix_path=`$CYGPATH -u "$windows_path"`
28529     new_path="$unix_path"
28530   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28531     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28532     new_path="$unix_path"
28533   fi
28534 
28535 
28536   # Now try to locate executable using which
28537   new_path=`$WHICH "$new_path" 2> /dev/null`
28538 
28539   if test "x$new_path" = x; then
28540     # Oops. Which didn't find the executable.
28541     # The splitting of arguments from the executable at a space might have been incorrect,
28542     # since paths with space are more likely in Windows. Give it another try with the whole
28543     # argument.
28544     path="$complete"
28545     arguments="EOL"
28546     new_path="$path"
28547 
28548   windows_path="$new_path"
28549   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28550     unix_path=`$CYGPATH -u "$windows_path"`
28551     new_path="$unix_path"
28552   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28553     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28554     new_path="$unix_path"
28555   fi
28556 
28557 
28558     new_path=`$WHICH "$new_path" 2> /dev/null`
28559 
28560     if test "x$new_path" = x; then
28561       # It's still not found. Now this is an unrecoverable error.
28562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
28563 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
28564       has_space=`$ECHO "$complete" | $GREP " "`
28565       if test "x$has_space" != x; then
28566         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28568       fi
28569       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28570     fi
28571   fi
28572 
28573   # Now new_path has a complete unix path to the binary
28574   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28575     # Keep paths in /bin as-is, but remove trailing .exe if any
28576     new_path="${new_path/%.exe/}"
28577     # Do not save /bin paths to all_fixpath_prefixes!
28578   else
28579     # Not in mixed or Windows style, start by that.
28580     new_path=`cmd //c echo $new_path`
28581 
28582   input_path="$new_path"
28583   # Check if we need to convert this using DOS-style short mode. If the path
28584   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28585   # take no chances and rewrite it.
28586   # Note: m4 eats our [], so we need to use [ and ] instead.
28587   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28588   if test "x$has_forbidden_chars" != x; then
28589     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28590     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28591   fi
28592 
28593     # Output is in $new_path
28594 
28595   windows_path="$new_path"
28596   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28597     unix_path=`$CYGPATH -u "$windows_path"`
28598     new_path="$unix_path"
28599   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28600     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28601     new_path="$unix_path"
28602   fi
28603 
28604     # remove trailing .exe if any
28605     new_path="${new_path/%.exe/}"
28606 
28607     # Save the first 10 bytes of this path to the storage, so fixpath can work.
28608     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28609   fi
28610 
28611   else
28612     # We're on a posix platform. Hooray! :)
28613     # First separate the path from the arguments. This will split at the first
28614     # space.
28615     complete="$BUILD_CXX"
28616     path="${complete%% *}"
28617     tmp="$complete EOL"
28618     arguments="${tmp#* }"
28619 
28620     # Cannot rely on the command "which" here since it doesn't always work.
28621     is_absolute_path=`$ECHO "$path" | $GREP ^/`
28622     if test -z "$is_absolute_path"; then
28623       # Path to executable is not absolute. Find it.
28624       IFS_save="$IFS"
28625       IFS=:
28626       for p in $PATH; do
28627         if test -f "$p/$path" && test -x "$p/$path"; then
28628           new_path="$p/$path"
28629           break
28630         fi
28631       done
28632       IFS="$IFS_save"
28633     else
28634       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CXX (as $path) failed, using $path directly." >&5
28635 $as_echo "$as_me: Resolving BUILD_CXX (as $path) failed, using $path directly." >&6;}
28636       new_path="$path"
28637     fi
28638 
28639     if test "x$new_path" = x; then
28640       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
28641 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
28642       has_space=`$ECHO "$complete" | $GREP " "`
28643       if test "x$has_space" != x; then
28644         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28645 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28646       fi
28647       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28648     fi
28649   fi
28650 
28651   # Now join together the path and the arguments once again
28652   if test "x$arguments" != xEOL; then
28653     new_complete="$new_path ${arguments% *}"
28654   else
28655     new_complete="$new_path"
28656   fi
28657 
28658   if test "x$complete" != "x$new_complete"; then
28659     BUILD_CXX="$new_complete"
28660     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
28661 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
28662   fi
28663 
28664 
28665 
28666   # Publish this variable in the help.
28667 
28668 
28669   if test "x$BUILD_LD" = x; then
28670     # The variable is not set by user, try to locate tool using the code snippet
28671     for ac_prog in ld
28672 do
28673   # Extract the first word of "$ac_prog", so it can be a program name with args.
28674 set dummy $ac_prog; ac_word=$2
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28676 $as_echo_n "checking for $ac_word... " >&6; }
28677 if ${ac_cv_path_BUILD_LD+:} false; then :
28678   $as_echo_n "(cached) " >&6
28679 else
28680   case $BUILD_LD in
28681   [\\/]* | ?:[\\/]*)
28682   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
28683   ;;
28684   *)
28685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28686 for as_dir in $PATH
28687 do
28688   IFS=$as_save_IFS
28689   test -z "$as_dir" && as_dir=.
28690     for ac_exec_ext in '' $ac_executable_extensions; do
28691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28692     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
28693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28694     break 2
28695   fi
28696 done
28697   done
28698 IFS=$as_save_IFS
28699 
28700   ;;
28701 esac
28702 fi
28703 BUILD_LD=$ac_cv_path_BUILD_LD
28704 if test -n "$BUILD_LD"; then
28705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
28706 $as_echo "$BUILD_LD" >&6; }
28707 else
28708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28709 $as_echo "no" >&6; }
28710 fi
28711 
28712 
28713   test -n "$BUILD_LD" && break
28714 done
28715 
28716   else
28717     # The variable is set, but is it from the command line or the environment?
28718 
28719     # Try to remove the string !BUILD_LD! from our list.
28720     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/}
28721     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
28722       # If it failed, the variable was not from the command line. Ignore it,
28723       # but warn the user (except for BASH, which is always set by the calling BASH).
28724       if test "xBUILD_LD" != xBASH; then
28725         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5
28726 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;}
28727       fi
28728       # Try to locate tool using the code snippet
28729       for ac_prog in ld
28730 do
28731   # Extract the first word of "$ac_prog", so it can be a program name with args.
28732 set dummy $ac_prog; ac_word=$2
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28734 $as_echo_n "checking for $ac_word... " >&6; }
28735 if ${ac_cv_path_BUILD_LD+:} false; then :
28736   $as_echo_n "(cached) " >&6
28737 else
28738   case $BUILD_LD in
28739   [\\/]* | ?:[\\/]*)
28740   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
28741   ;;
28742   *)
28743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28744 for as_dir in $PATH
28745 do
28746   IFS=$as_save_IFS
28747   test -z "$as_dir" && as_dir=.
28748     for ac_exec_ext in '' $ac_executable_extensions; do
28749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28750     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
28751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28752     break 2
28753   fi
28754 done
28755   done
28756 IFS=$as_save_IFS
28757 
28758   ;;
28759 esac
28760 fi
28761 BUILD_LD=$ac_cv_path_BUILD_LD
28762 if test -n "$BUILD_LD"; then
28763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
28764 $as_echo "$BUILD_LD" >&6; }
28765 else
28766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28767 $as_echo "no" >&6; }
28768 fi
28769 
28770 
28771   test -n "$BUILD_LD" && break
28772 done
28773 
28774     else
28775       # If it succeeded, then it was overridden by the user. We will use it
28776       # for the tool.
28777 
28778       # First remove it from the list of overridden variables, so we can test
28779       # for unknown variables in the end.
28780       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
28781 
28782       # Check if the provided tool contains a complete path.
28783       tool_specified="$BUILD_LD"
28784       tool_basename="${tool_specified##*/}"
28785       if test "x$tool_basename" = "x$tool_specified"; then
28786         # A command without a complete path is provided, search $PATH.
28787         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5
28788 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;}
28789         # Extract the first word of "$tool_basename", so it can be a program name with args.
28790 set dummy $tool_basename; ac_word=$2
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28792 $as_echo_n "checking for $ac_word... " >&6; }
28793 if ${ac_cv_path_BUILD_LD+:} false; then :
28794   $as_echo_n "(cached) " >&6
28795 else
28796   case $BUILD_LD in
28797   [\\/]* | ?:[\\/]*)
28798   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
28799   ;;
28800   *)
28801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28802 for as_dir in $PATH
28803 do
28804   IFS=$as_save_IFS
28805   test -z "$as_dir" && as_dir=.
28806     for ac_exec_ext in '' $ac_executable_extensions; do
28807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28808     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
28809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28810     break 2
28811   fi
28812 done
28813   done
28814 IFS=$as_save_IFS
28815 
28816   ;;
28817 esac
28818 fi
28819 BUILD_LD=$ac_cv_path_BUILD_LD
28820 if test -n "$BUILD_LD"; then
28821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
28822 $as_echo "$BUILD_LD" >&6; }
28823 else
28824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28825 $as_echo "no" >&6; }
28826 fi
28827 
28828 
28829         if test "x$BUILD_LD" = x; then
28830           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
28831         fi
28832       else
28833         # Otherwise we believe it is a complete path. Use it as it is.
28834         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5
28835 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;}
28836         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5
28837 $as_echo_n "checking for BUILD_LD... " >&6; }
28838         if test ! -x "$tool_specified"; then
28839           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28840 $as_echo "not found" >&6; }
28841           as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5
28842         fi
28843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
28844 $as_echo "$tool_specified" >&6; }
28845       fi
28846     fi
28847   fi
28848 
28849 
28850 
28851   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28852 
28853   # First separate the path from the arguments. This will split at the first
28854   # space.
28855   complete="$BUILD_LD"
28856   path="${complete%% *}"
28857   tmp="$complete EOL"
28858   arguments="${tmp#* }"
28859 
28860   # Input might be given as Windows format, start by converting to
28861   # unix format.
28862   new_path=`$CYGPATH -u "$path"`
28863 
28864   # Now try to locate executable using which
28865   new_path=`$WHICH "$new_path" 2> /dev/null`
28866   # bat and cmd files are not always considered executable in cygwin causing which
28867   # to not find them
28868   if test "x$new_path" = x \
28869       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28870       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28871     new_path=`$CYGPATH -u "$path"`
28872   fi
28873   if test "x$new_path" = x; then
28874     # Oops. Which didn't find the executable.
28875     # The splitting of arguments from the executable at a space might have been incorrect,
28876     # since paths with space are more likely in Windows. Give it another try with the whole
28877     # argument.
28878     path="$complete"
28879     arguments="EOL"
28880     new_path=`$CYGPATH -u "$path"`
28881     new_path=`$WHICH "$new_path" 2> /dev/null`
28882     # bat and cmd files are not always considered executable in cygwin causing which
28883     # to not find them
28884     if test "x$new_path" = x \
28885         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28886         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28887       new_path=`$CYGPATH -u "$path"`
28888     fi
28889     if test "x$new_path" = x; then
28890       # It's still not found. Now this is an unrecoverable error.
28891       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
28892 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
28893       has_space=`$ECHO "$complete" | $GREP " "`
28894       if test "x$has_space" != x; then
28895         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28896 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28897       fi
28898       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
28899     fi
28900   fi
28901 
28902   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28903   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28904   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28905   # "foo.exe" is OK but "foo" is an error.
28906   #
28907   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28908   # It is also a way to make sure we got the proper file name for the real test later on.
28909   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28910   if test "x$test_shortpath" = x; then
28911     # Short path failed, file does not exist as specified.
28912     # Try adding .exe or .cmd
28913     if test -f "${new_path}.exe"; then
28914       input_to_shortpath="${new_path}.exe"
28915     elif test -f "${new_path}.cmd"; then
28916       input_to_shortpath="${new_path}.cmd"
28917     else
28918       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5
28919 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;}
28920       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28921 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28922       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
28923     fi
28924   else
28925     input_to_shortpath="$new_path"
28926   fi
28927 
28928   # Call helper function which possibly converts this using DOS-style short mode.
28929   # If so, the updated path is stored in $new_path.
28930   new_path="$input_to_shortpath"
28931 
28932   input_path="$input_to_shortpath"
28933   # Check if we need to convert this using DOS-style short mode. If the path
28934   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28935   # take no chances and rewrite it.
28936   # Note: m4 eats our [], so we need to use [ and ] instead.
28937   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28938   if test "x$has_forbidden_chars" != x; then
28939     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28940     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28941     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28942     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28943       # Going to short mode and back again did indeed matter. Since short mode is
28944       # case insensitive, let's make it lowercase to improve readability.
28945       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28946       # Now convert it back to Unix-stile (cygpath)
28947       input_path=`$CYGPATH -u "$shortmode_path"`
28948       new_path="$input_path"
28949     fi
28950   fi
28951 
28952   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28953   if test "x$test_cygdrive_prefix" = x; then
28954     # As a simple fix, exclude /usr/bin since it's not a real path.
28955     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28956       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28957       # a path prefixed by /cygdrive for fixpath to work.
28958       new_path="$CYGWIN_ROOT_PATH$input_path"
28959     fi
28960   fi
28961 
28962   # remove trailing .exe if any
28963   new_path="${new_path/%.exe/}"
28964 
28965   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28966 
28967   # First separate the path from the arguments. This will split at the first
28968   # space.
28969   complete="$BUILD_LD"
28970   path="${complete%% *}"
28971   tmp="$complete EOL"
28972   arguments="${tmp#* }"
28973 
28974   # Input might be given as Windows format, start by converting to
28975   # unix format.
28976   new_path="$path"
28977 
28978   windows_path="$new_path"
28979   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28980     unix_path=`$CYGPATH -u "$windows_path"`
28981     new_path="$unix_path"
28982   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28983     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28984     new_path="$unix_path"
28985   fi
28986 
28987 
28988   # Now try to locate executable using which
28989   new_path=`$WHICH "$new_path" 2> /dev/null`
28990 
28991   if test "x$new_path" = x; then
28992     # Oops. Which didn't find the executable.
28993     # The splitting of arguments from the executable at a space might have been incorrect,
28994     # since paths with space are more likely in Windows. Give it another try with the whole
28995     # argument.
28996     path="$complete"
28997     arguments="EOL"
28998     new_path="$path"
28999 
29000   windows_path="$new_path"
29001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29002     unix_path=`$CYGPATH -u "$windows_path"`
29003     new_path="$unix_path"
29004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29006     new_path="$unix_path"
29007   fi
29008 
29009 
29010     new_path=`$WHICH "$new_path" 2> /dev/null`
29011 
29012     if test "x$new_path" = x; then
29013       # It's still not found. Now this is an unrecoverable error.
29014       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
29015 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
29016       has_space=`$ECHO "$complete" | $GREP " "`
29017       if test "x$has_space" != x; then
29018         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29019 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29020       fi
29021       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
29022     fi
29023   fi
29024 
29025   # Now new_path has a complete unix path to the binary
29026   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
29027     # Keep paths in /bin as-is, but remove trailing .exe if any
29028     new_path="${new_path/%.exe/}"
29029     # Do not save /bin paths to all_fixpath_prefixes!
29030   else
29031     # Not in mixed or Windows style, start by that.
29032     new_path=`cmd //c echo $new_path`
29033 
29034   input_path="$new_path"
29035   # Check if we need to convert this using DOS-style short mode. If the path
29036   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29037   # take no chances and rewrite it.
29038   # Note: m4 eats our [], so we need to use [ and ] instead.
29039   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
29040   if test "x$has_forbidden_chars" != x; then
29041     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29042     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29043   fi
29044 
29045     # Output is in $new_path
29046 
29047   windows_path="$new_path"
29048   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29049     unix_path=`$CYGPATH -u "$windows_path"`
29050     new_path="$unix_path"
29051   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29052     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29053     new_path="$unix_path"
29054   fi
29055 
29056     # remove trailing .exe if any
29057     new_path="${new_path/%.exe/}"
29058 
29059     # Save the first 10 bytes of this path to the storage, so fixpath can work.
29060     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
29061   fi
29062 
29063   else
29064     # We're on a posix platform. Hooray! :)
29065     # First separate the path from the arguments. This will split at the first
29066     # space.
29067     complete="$BUILD_LD"
29068     path="${complete%% *}"
29069     tmp="$complete EOL"
29070     arguments="${tmp#* }"
29071 
29072     # Cannot rely on the command "which" here since it doesn't always work.
29073     is_absolute_path=`$ECHO "$path" | $GREP ^/`
29074     if test -z "$is_absolute_path"; then
29075       # Path to executable is not absolute. Find it.
29076       IFS_save="$IFS"
29077       IFS=:
29078       for p in $PATH; do
29079         if test -f "$p/$path" && test -x "$p/$path"; then
29080           new_path="$p/$path"
29081           break
29082         fi
29083       done
29084       IFS="$IFS_save"
29085     else
29086       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_LD (as $path) failed, using $path directly." >&5
29087 $as_echo "$as_me: Resolving BUILD_LD (as $path) failed, using $path directly." >&6;}
29088       new_path="$path"
29089     fi
29090 
29091     if test "x$new_path" = x; then
29092       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
29093 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
29094       has_space=`$ECHO "$complete" | $GREP " "`
29095       if test "x$has_space" != x; then
29096         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
29097 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
29098       fi
29099       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
29100     fi
29101   fi
29102 
29103   # Now join together the path and the arguments once again
29104   if test "x$arguments" != xEOL; then
29105     new_complete="$new_path ${arguments% *}"
29106   else
29107     new_complete="$new_path"
29108   fi
29109 
29110   if test "x$complete" != "x$new_complete"; then
29111     BUILD_LD="$new_complete"
29112     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5
29113 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;}
29114   fi
29115 
29116   fi
29117 
29118 
29119 
29120 
29121   # If a devkit is found on the builddeps server, then prepend its path to the
29122   # PATH variable. If there are cross compilers available in the devkit, these
29123   # will be found by AC_PROG_CC et al.
29124   DEVKIT=
29125 
29126 
29127   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
29128     # Source the builddeps file again, to make sure it uses the latest variables!
29129     . $builddepsfile
29130     # Look for a target and build machine specific resource!
29131     eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
29132     if test "x$resource" = x; then
29133       # Ok, lets instead look for a target specific resource
29134       eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}}
29135     fi
29136     if test "x$resource" = x; then
29137       # Ok, lets instead look for a build specific resource
29138       eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
29139     fi
29140     if test "x$resource" = x; then
29141       # Ok, lets instead look for a generic resource
29142       # (The devkit comes from M4 and not the shell, thus no need for eval here.)
29143       resource=${builddep_devkit}
29144     fi
29145     if test "x$resource" != x; then
29146       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
29147 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
29148       # If the resource in the builddeps.conf file is an existing directory,
29149       # for example /java/linux/cups
29150       if test -d ${resource}; then
29151         depdir=${resource}
29152       else
29153 
29154   # devkit is for example mymodule
29155   # $resource is for example libs/general/libmymod_1_2_3.zip
29156   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
29157   # $with_builddeps_dir is for example /localhome/builddeps
29158   # depdir is the name of the variable into which we store the depdir, eg MYMOD
29159   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
29160   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
29161   filename=`basename $resource`
29162   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
29163   filebase=${filename%%.*}
29164   extension=${filename#*.}
29165   installdir=$with_builddeps_dir/$filebase
29166   if test ! -f $installdir/$filename.unpacked; then
29167     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
29168 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
29169     if test ! -d $installdir; then
29170       mkdir -p $installdir
29171     fi
29172     if test ! -d $installdir; then
29173       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
29174     fi
29175     tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
29176     touch $tmpfile
29177     if test ! -f $tmpfile; then
29178       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
29179     fi
29180 
29181   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
29182   # $tmpfile is the local file name for the downloaded file.
29183   VALID_TOOL=no
29184   if test "x$BDEPS_FTP" = xwget; then
29185     VALID_TOOL=yes
29186     wget -O $tmpfile $with_builddeps_server/$resource
29187   fi
29188   if test "x$BDEPS_FTP" = xlftp; then
29189     VALID_TOOL=yes
29190     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
29191   fi
29192   if test "x$BDEPS_FTP" = xftp; then
29193     VALID_TOOL=yes
29194     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
29195     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
29196     FTPUSERPWD=${FTPSERVER%%@*}
29197     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
29198       FTPUSER=${userpwd%%:*}
29199       FTPPWD=${userpwd#*@}
29200       FTPSERVER=${FTPSERVER#*@}
29201     else
29202       FTPUSER=ftp
29203       FTPPWD=ftp
29204     fi
29205     # the "pass" command does not work on some
29206     # ftp clients (read ftp.exe) but if it works,
29207     # passive mode is better!
29208     ( \
29209         echo "user $FTPUSER $FTPPWD"        ; \
29210         echo "pass"                         ; \
29211         echo "bin"                          ; \
29212         echo "get $FTPPATH $tmpfile"              ; \
29213     ) | ftp -in $FTPSERVER
29214   fi
29215   if test "x$VALID_TOOL" != xyes; then
29216     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
29217   fi
29218 
29219     mv $tmpfile $installdir/$filename
29220     if test ! -s $installdir/$filename; then
29221       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
29222     fi
29223     case "$extension" in
29224       zip)  echo "Unzipping $installdir/$filename..."
29225         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
29226         ;;
29227       tar.gz) echo "Untaring $installdir/$filename..."
29228         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
29229         ;;
29230       tgz) echo "Untaring $installdir/$filename..."
29231         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
29232         ;;
29233       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
29234         ;;
29235     esac
29236   fi
29237   if test -f $installdir/$filename.unpacked; then
29238     depdir=$installdir
29239   fi
29240 
29241       fi
29242       # Source the builddeps file again, because in the previous command, the depdir
29243       # was updated to point at the current build dependency install directory.
29244       . $builddepsfile
29245       # Now extract variables from the builddeps.conf files.
29246       theroot=${builddep_devkit_ROOT}
29247       thecflags=${builddep_devkit_CFLAGS}
29248       thelibs=${builddep_devkit_LIBS}
29249       if test "x$depdir" = x; then
29250         as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
29251       fi
29252       DEVKIT=$depdir
29253       if test "x$theroot" != x; then
29254         DEVKIT="$theroot"
29255       fi
29256       if test "x$thecflags" != x; then
29257         DEVKIT_CFLAGS="$thecflags"
29258       fi
29259       if test "x$thelibs" != x; then
29260         DEVKIT_LIBS="$thelibs"
29261       fi
29262 
29263         # Found devkit
29264         PATH="$DEVKIT/bin:$PATH"
29265         SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root"
29266         if test "x$x_includes" = "xNONE"; then
29267           x_includes="$SYS_ROOT/usr/include/X11"
29268         fi
29269         if test "x$x_libraries" = "xNONE"; then
29270           x_libraries="$SYS_ROOT/usr/lib"
29271         fi
29272 
29273 
29274     fi
29275 
29276   fi
29277 
29278 
29279   # Store the CFLAGS etal passed to the configure script.
29280   ORG_CFLAGS="$CFLAGS"
29281   ORG_CXXFLAGS="$CXXFLAGS"
29282   ORG_OBJCFLAGS="$OBJCFLAGS"
29283 
29284   # autoconf magic only relies on PATH, so update it if tools dir is specified
29285   OLD_PATH="$PATH"
29286   if test "x$TOOLS_DIR" != x; then
29287     PATH=$TOOLS_DIR:$PATH
29288   fi
29289 
29290 
29291   ### Locate C compiler (CC)
29292 
29293   # On windows, only cl.exe is supported.
29294   # On Solaris, cc is preferred to gcc.
29295   # Elsewhere, gcc is preferred to cc.
29296 
29297   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
29298     COMPILER_CHECK_LIST="cl"
29299   elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
29300     COMPILER_CHECK_LIST="cc gcc"
29301   elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
29302     # Do not probe for cc on AIX.
29303     COMPILER_CHECK_LIST="xlc_r"
29304   else
29305     COMPILER_CHECK_LIST="gcc cc"
29306   fi
29307 
29308 
29309   COMPILER_NAME=C
29310   SEARCH_LIST="$COMPILER_CHECK_LIST"
29311 
29312   if test "x$CC" != x; then
29313     # User has supplied compiler name already, always let that override.
29314     { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5
29315 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;}
29316     if test "x`basename $CC`" = "x$CC"; then
29317       # A command without a complete path is provided, search $PATH.
29318 
29319       for ac_prog in $CC
29320 do
29321   # Extract the first word of "$ac_prog", so it can be a program name with args.
29322 set dummy $ac_prog; ac_word=$2
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29324 $as_echo_n "checking for $ac_word... " >&6; }
29325 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
29326   $as_echo_n "(cached) " >&6
29327 else
29328   case $POTENTIAL_CC in
29329   [\\/]* | ?:[\\/]*)
29330   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
29331   ;;
29332   *)
29333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29334 for as_dir in $PATH
29335 do
29336   IFS=$as_save_IFS
29337   test -z "$as_dir" && as_dir=.
29338     for ac_exec_ext in '' $ac_executable_extensions; do
29339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29340     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
29341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29342     break 2
29343   fi
29344 done
29345   done
29346 IFS=$as_save_IFS
29347 
29348   ;;
29349 esac
29350 fi
29351 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
29352 if test -n "$POTENTIAL_CC"; then
29353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
29354 $as_echo "$POTENTIAL_CC" >&6; }
29355 else
29356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29357 $as_echo "no" >&6; }
29358 fi
29359 
29360 
29361   test -n "$POTENTIAL_CC" && break
29362 done
29363 
29364       if test "x$POTENTIAL_CC" != x; then
29365         CC=$POTENTIAL_CC
29366       else
29367         as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5
29368       fi
29369     else
29370       # Otherwise it might already be a complete path
29371       if test ! -x "$CC"; then
29372         as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5
29373       fi
29374     fi
29375   else
29376     # No user supplied value. Locate compiler ourselves
29377     CC=
29378     # If TOOLS_DIR is set, check for all compiler names in there first
29379     # before checking the rest of the PATH.
29380     if test -n "$TOOLS_DIR"; then
29381       PATH_save="$PATH"
29382       PATH="$TOOLS_DIR"
29383       for ac_prog in $SEARCH_LIST
29384 do
29385   # Extract the first word of "$ac_prog", so it can be a program name with args.
29386 set dummy $ac_prog; ac_word=$2
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29388 $as_echo_n "checking for $ac_word... " >&6; }
29389 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
29390   $as_echo_n "(cached) " >&6
29391 else
29392   case $TOOLS_DIR_CC in
29393   [\\/]* | ?:[\\/]*)
29394   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
29395   ;;
29396   *)
29397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29398 for as_dir in $PATH
29399 do
29400   IFS=$as_save_IFS
29401   test -z "$as_dir" && as_dir=.
29402     for ac_exec_ext in '' $ac_executable_extensions; do
29403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29404     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
29405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29406     break 2
29407   fi
29408 done
29409   done
29410 IFS=$as_save_IFS
29411 
29412   ;;
29413 esac
29414 fi
29415 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
29416 if test -n "$TOOLS_DIR_CC"; then
29417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
29418 $as_echo "$TOOLS_DIR_CC" >&6; }
29419 else
29420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29421 $as_echo "no" >&6; }
29422 fi
29423 
29424 
29425   test -n "$TOOLS_DIR_CC" && break
29426 done
29427 
29428       CC=$TOOLS_DIR_CC
29429       PATH="$PATH_save"
29430     fi
29431 
29432     # AC_PATH_PROGS can't be run multiple times with the same variable,
29433     # so create a new name for this run.
29434     if test "x$CC" = x; then
29435       for ac_prog in $SEARCH_LIST
29436 do
29437   # Extract the first word of "$ac_prog", so it can be a program name with args.
29438 set dummy $ac_prog; ac_word=$2
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29440 $as_echo_n "checking for $ac_word... " >&6; }
29441 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
29442   $as_echo_n "(cached) " >&6
29443 else
29444   case $POTENTIAL_CC in
29445   [\\/]* | ?:[\\/]*)
29446   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
29447   ;;
29448   *)
29449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29450 for as_dir in $PATH
29451 do
29452   IFS=$as_save_IFS
29453   test -z "$as_dir" && as_dir=.
29454     for ac_exec_ext in '' $ac_executable_extensions; do
29455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29456     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
29457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29458     break 2
29459   fi
29460 done
29461   done
29462 IFS=$as_save_IFS
29463 
29464   ;;
29465 esac
29466 fi
29467 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
29468 if test -n "$POTENTIAL_CC"; then
29469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
29470 $as_echo "$POTENTIAL_CC" >&6; }
29471 else
29472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29473 $as_echo "no" >&6; }
29474 fi
29475 
29476 
29477   test -n "$POTENTIAL_CC" && break
29478 done
29479 
29480       CC=$POTENTIAL_CC
29481     fi
29482 
29483     if test "x$CC" = x; then
29484 
29485   # Print a helpful message on how to acquire the necessary build dependency.
29486   # devkit is the help tag: freetype, cups, pulse, alsa etc
29487   MISSING_DEPENDENCY=devkit
29488 
29489   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29490     cygwin_help $MISSING_DEPENDENCY
29491   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29492     msys_help $MISSING_DEPENDENCY
29493   else
29494     PKGHANDLER_COMMAND=
29495 
29496     case $PKGHANDLER in
29497       apt-get)
29498         apt_help     $MISSING_DEPENDENCY ;;
29499       yum)
29500         yum_help     $MISSING_DEPENDENCY ;;
29501       port)
29502         port_help    $MISSING_DEPENDENCY ;;
29503       pkgutil)
29504         pkgutil_help $MISSING_DEPENDENCY ;;
29505       pkgadd)
29506         pkgadd_help  $MISSING_DEPENDENCY ;;
29507     esac
29508 
29509     if test "x$PKGHANDLER_COMMAND" != x; then
29510       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
29511     fi
29512   fi
29513 
29514       as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
29515     fi
29516   fi
29517 
29518   # Now we have a compiler binary in CC. Make sure it's okay.
29519 
29520   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29521 
29522   # First separate the path from the arguments. This will split at the first
29523   # space.
29524   complete="$CC"
29525   path="${complete%% *}"
29526   tmp="$complete EOL"
29527   arguments="${tmp#* }"
29528 
29529   # Input might be given as Windows format, start by converting to
29530   # unix format.
29531   new_path=`$CYGPATH -u "$path"`
29532 
29533   # Now try to locate executable using which
29534   new_path=`$WHICH "$new_path" 2> /dev/null`
29535   # bat and cmd files are not always considered executable in cygwin causing which
29536   # to not find them
29537   if test "x$new_path" = x \
29538       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29539       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29540     new_path=`$CYGPATH -u "$path"`
29541   fi
29542   if test "x$new_path" = x; then
29543     # Oops. Which didn't find the executable.
29544     # The splitting of arguments from the executable at a space might have been incorrect,
29545     # since paths with space are more likely in Windows. Give it another try with the whole
29546     # argument.
29547     path="$complete"
29548     arguments="EOL"
29549     new_path=`$CYGPATH -u "$path"`
29550     new_path=`$WHICH "$new_path" 2> /dev/null`
29551     # bat and cmd files are not always considered executable in cygwin causing which
29552     # to not find them
29553     if test "x$new_path" = x \
29554         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29555         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29556       new_path=`$CYGPATH -u "$path"`
29557     fi
29558     if test "x$new_path" = x; then
29559       # It's still not found. Now this is an unrecoverable error.
29560       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
29561 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
29562       has_space=`$ECHO "$complete" | $GREP " "`
29563       if test "x$has_space" != x; then
29564         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29565 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29566       fi
29567       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29568     fi
29569   fi
29570 
29571   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
29572   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
29573   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
29574   # "foo.exe" is OK but "foo" is an error.
29575   #
29576   # This test is therefore slightly more accurate than "test -f" to check for file presence.
29577   # It is also a way to make sure we got the proper file name for the real test later on.
29578   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
29579   if test "x$test_shortpath" = x; then
29580     # Short path failed, file does not exist as specified.
29581     # Try adding .exe or .cmd
29582     if test -f "${new_path}.exe"; then
29583       input_to_shortpath="${new_path}.exe"
29584     elif test -f "${new_path}.cmd"; then
29585       input_to_shortpath="${new_path}.cmd"
29586     else
29587       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5
29588 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;}
29589       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
29590 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
29591       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29592     fi
29593   else
29594     input_to_shortpath="$new_path"
29595   fi
29596 
29597   # Call helper function which possibly converts this using DOS-style short mode.
29598   # If so, the updated path is stored in $new_path.
29599   new_path="$input_to_shortpath"
29600 
29601   input_path="$input_to_shortpath"
29602   # Check if we need to convert this using DOS-style short mode. If the path
29603   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29604   # take no chances and rewrite it.
29605   # Note: m4 eats our [], so we need to use [ and ] instead.
29606   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
29607   if test "x$has_forbidden_chars" != x; then
29608     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29609     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
29610     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
29611     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
29612       # Going to short mode and back again did indeed matter. Since short mode is
29613       # case insensitive, let's make it lowercase to improve readability.
29614       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29615       # Now convert it back to Unix-stile (cygpath)
29616       input_path=`$CYGPATH -u "$shortmode_path"`
29617       new_path="$input_path"
29618     fi
29619   fi
29620 
29621   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
29622   if test "x$test_cygdrive_prefix" = x; then
29623     # As a simple fix, exclude /usr/bin since it's not a real path.
29624     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
29625       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
29626       # a path prefixed by /cygdrive for fixpath to work.
29627       new_path="$CYGWIN_ROOT_PATH$input_path"
29628     fi
29629   fi
29630 
29631   # remove trailing .exe if any
29632   new_path="${new_path/%.exe/}"
29633 
29634   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29635 
29636   # First separate the path from the arguments. This will split at the first
29637   # space.
29638   complete="$CC"
29639   path="${complete%% *}"
29640   tmp="$complete EOL"
29641   arguments="${tmp#* }"
29642 
29643   # Input might be given as Windows format, start by converting to
29644   # unix format.
29645   new_path="$path"
29646 
29647   windows_path="$new_path"
29648   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29649     unix_path=`$CYGPATH -u "$windows_path"`
29650     new_path="$unix_path"
29651   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29652     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29653     new_path="$unix_path"
29654   fi
29655 
29656 
29657   # Now try to locate executable using which
29658   new_path=`$WHICH "$new_path" 2> /dev/null`
29659 
29660   if test "x$new_path" = x; then
29661     # Oops. Which didn't find the executable.
29662     # The splitting of arguments from the executable at a space might have been incorrect,
29663     # since paths with space are more likely in Windows. Give it another try with the whole
29664     # argument.
29665     path="$complete"
29666     arguments="EOL"
29667     new_path="$path"
29668 
29669   windows_path="$new_path"
29670   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29671     unix_path=`$CYGPATH -u "$windows_path"`
29672     new_path="$unix_path"
29673   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29674     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29675     new_path="$unix_path"
29676   fi
29677 
29678 
29679     new_path=`$WHICH "$new_path" 2> /dev/null`
29680 
29681     if test "x$new_path" = x; then
29682       # It's still not found. Now this is an unrecoverable error.
29683       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
29684 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
29685       has_space=`$ECHO "$complete" | $GREP " "`
29686       if test "x$has_space" != x; then
29687         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29688 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29689       fi
29690       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29691     fi
29692   fi
29693 
29694   # Now new_path has a complete unix path to the binary
29695   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
29696     # Keep paths in /bin as-is, but remove trailing .exe if any
29697     new_path="${new_path/%.exe/}"
29698     # Do not save /bin paths to all_fixpath_prefixes!
29699   else
29700     # Not in mixed or Windows style, start by that.
29701     new_path=`cmd //c echo $new_path`
29702 
29703   input_path="$new_path"
29704   # Check if we need to convert this using DOS-style short mode. If the path
29705   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29706   # take no chances and rewrite it.
29707   # Note: m4 eats our [], so we need to use [ and ] instead.
29708   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
29709   if test "x$has_forbidden_chars" != x; then
29710     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29711     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29712   fi
29713 
29714     # Output is in $new_path
29715 
29716   windows_path="$new_path"
29717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29718     unix_path=`$CYGPATH -u "$windows_path"`
29719     new_path="$unix_path"
29720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29722     new_path="$unix_path"
29723   fi
29724 
29725     # remove trailing .exe if any
29726     new_path="${new_path/%.exe/}"
29727 
29728     # Save the first 10 bytes of this path to the storage, so fixpath can work.
29729     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
29730   fi
29731 
29732   else
29733     # We're on a posix platform. Hooray! :)
29734     # First separate the path from the arguments. This will split at the first
29735     # space.
29736     complete="$CC"
29737     path="${complete%% *}"
29738     tmp="$complete EOL"
29739     arguments="${tmp#* }"
29740 
29741     # Cannot rely on the command "which" here since it doesn't always work.
29742     is_absolute_path=`$ECHO "$path" | $GREP ^/`
29743     if test -z "$is_absolute_path"; then
29744       # Path to executable is not absolute. Find it.
29745       IFS_save="$IFS"
29746       IFS=:
29747       for p in $PATH; do
29748         if test -f "$p/$path" && test -x "$p/$path"; then
29749           new_path="$p/$path"
29750           break
29751         fi
29752       done
29753       IFS="$IFS_save"
29754     else
29755       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CC (as $path) failed, using $path directly." >&5
29756 $as_echo "$as_me: Resolving CC (as $path) failed, using $path directly." >&6;}
29757       new_path="$path"
29758     fi
29759 
29760     if test "x$new_path" = x; then
29761       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
29762 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
29763       has_space=`$ECHO "$complete" | $GREP " "`
29764       if test "x$has_space" != x; then
29765         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
29766 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
29767       fi
29768       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29769     fi
29770   fi
29771 
29772   # Now join together the path and the arguments once again
29773   if test "x$arguments" != xEOL; then
29774     new_complete="$new_path ${arguments% *}"
29775   else
29776     new_complete="$new_path"
29777   fi
29778 
29779   if test "x$complete" != "x$new_complete"; then
29780     CC="$new_complete"
29781     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
29782 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
29783   fi
29784 
29785   TEST_COMPILER="$CC"
29786   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
29787   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
29788   if test "x$OPENJDK_BUILD_OS" != xaix; then
29789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
29790 $as_echo_n "checking resolved symbolic links for CC... " >&6; }
29791 
29792   if test "x$OPENJDK_BUILD_OS" != xwindows; then
29793     # Follow a chain of symbolic links. Use readlink
29794     # where it exists, else fall back to horribly
29795     # complicated shell code.
29796     if test "x$READLINK_TESTED" != yes; then
29797       # On MacOSX there is a readlink tool with a different
29798       # purpose than the GNU readlink tool. Check the found readlink.
29799       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
29800       if test "x$ISGNU" = x; then
29801         # A readlink that we do not know how to use.
29802         # Are there other non-GNU readlinks out there?
29803         READLINK_TESTED=yes
29804         READLINK=
29805       fi
29806     fi
29807 
29808     if test "x$READLINK" != x; then
29809       TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
29810     else
29811       # Save the current directory for restoring afterwards
29812       STARTDIR=$PWD
29813       COUNTER=0
29814       sym_link_dir=`$DIRNAME $TEST_COMPILER`
29815       sym_link_file=`$BASENAME $TEST_COMPILER`
29816       cd $sym_link_dir
29817       # Use -P flag to resolve symlinks in directories.
29818       cd `$THEPWDCMD -P`
29819       sym_link_dir=`$THEPWDCMD -P`
29820       # Resolve file symlinks
29821       while test $COUNTER -lt 20; do
29822         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
29823         if test "x$ISLINK" == x; then
29824           # This is not a symbolic link! We are done!
29825           break
29826         fi
29827         # Again resolve directory symlinks since the target of the just found
29828         # link could be in a different directory
29829         cd `$DIRNAME $ISLINK`
29830         sym_link_dir=`$THEPWDCMD -P`
29831         sym_link_file=`$BASENAME $ISLINK`
29832         let COUNTER=COUNTER+1
29833       done
29834       cd $STARTDIR
29835       TEST_COMPILER=$sym_link_dir/$sym_link_file
29836     fi
29837   fi
29838 
29839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
29840 $as_echo "$TEST_COMPILER" >&6; }
29841   fi
29842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
29843 $as_echo_n "checking if CC is disguised ccache... " >&6; }
29844 
29845   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
29846   if test "x$COMPILER_BASENAME" = "xccache"; then
29847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
29848 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
29849     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
29850     # We want to control ccache invocation ourselves, so ignore this cc and try
29851     # searching again.
29852 
29853     # Remove the path to the fake ccache cc from the PATH
29854     RETRY_COMPILER_SAVED_PATH="$PATH"
29855     COMPILER_DIRNAME=`$DIRNAME $CC`
29856     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
29857 
29858     # Try again looking for our compiler
29859     if test -n "$ac_tool_prefix"; then
29860   for ac_prog in $COMPILER_CHECK_LIST
29861   do
29862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29865 $as_echo_n "checking for $ac_word... " >&6; }
29866 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
29867   $as_echo_n "(cached) " >&6
29868 else
29869   if test -n "$PROPER_COMPILER_CC"; then
29870   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
29871 else
29872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29873 for as_dir in $PATH
29874 do
29875   IFS=$as_save_IFS
29876   test -z "$as_dir" && as_dir=.
29877     for ac_exec_ext in '' $ac_executable_extensions; do
29878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29879     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
29880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29881     break 2
29882   fi
29883 done
29884   done
29885 IFS=$as_save_IFS
29886 
29887 fi
29888 fi
29889 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
29890 if test -n "$PROPER_COMPILER_CC"; then
29891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
29892 $as_echo "$PROPER_COMPILER_CC" >&6; }
29893 else
29894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895 $as_echo "no" >&6; }
29896 fi
29897 
29898 
29899     test -n "$PROPER_COMPILER_CC" && break
29900   done
29901 fi
29902 if test -z "$PROPER_COMPILER_CC"; then
29903   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
29904   for ac_prog in $COMPILER_CHECK_LIST
29905 do
29906   # Extract the first word of "$ac_prog", so it can be a program name with args.
29907 set dummy $ac_prog; ac_word=$2
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29909 $as_echo_n "checking for $ac_word... " >&6; }
29910 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
29911   $as_echo_n "(cached) " >&6
29912 else
29913   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
29914   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
29915 else
29916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29917 for as_dir in $PATH
29918 do
29919   IFS=$as_save_IFS
29920   test -z "$as_dir" && as_dir=.
29921     for ac_exec_ext in '' $ac_executable_extensions; do
29922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29923     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
29924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29925     break 2
29926   fi
29927 done
29928   done
29929 IFS=$as_save_IFS
29930 
29931 fi
29932 fi
29933 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
29934 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
29935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
29936 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
29937 else
29938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29940 fi
29941 
29942 
29943   test -n "$ac_ct_PROPER_COMPILER_CC" && break
29944 done
29945 
29946   if test "x$ac_ct_PROPER_COMPILER_CC" = x; then
29947     PROPER_COMPILER_CC=""
29948   else
29949     case $cross_compiling:$ac_tool_warned in
29950 yes:)
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29953 ac_tool_warned=yes ;;
29954 esac
29955     PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC
29956   fi
29957 fi
29958 
29959 
29960   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29961 
29962   # First separate the path from the arguments. This will split at the first
29963   # space.
29964   complete="$PROPER_COMPILER_CC"
29965   path="${complete%% *}"
29966   tmp="$complete EOL"
29967   arguments="${tmp#* }"
29968 
29969   # Input might be given as Windows format, start by converting to
29970   # unix format.
29971   new_path=`$CYGPATH -u "$path"`
29972 
29973   # Now try to locate executable using which
29974   new_path=`$WHICH "$new_path" 2> /dev/null`
29975   # bat and cmd files are not always considered executable in cygwin causing which
29976   # to not find them
29977   if test "x$new_path" = x \
29978       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29979       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29980     new_path=`$CYGPATH -u "$path"`
29981   fi
29982   if test "x$new_path" = x; then
29983     # Oops. Which didn't find the executable.
29984     # The splitting of arguments from the executable at a space might have been incorrect,
29985     # since paths with space are more likely in Windows. Give it another try with the whole
29986     # argument.
29987     path="$complete"
29988     arguments="EOL"
29989     new_path=`$CYGPATH -u "$path"`
29990     new_path=`$WHICH "$new_path" 2> /dev/null`
29991     # bat and cmd files are not always considered executable in cygwin causing which
29992     # to not find them
29993     if test "x$new_path" = x \
29994         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29995         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29996       new_path=`$CYGPATH -u "$path"`
29997     fi
29998     if test "x$new_path" = x; then
29999       # It's still not found. Now this is an unrecoverable error.
30000       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
30001 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
30002       has_space=`$ECHO "$complete" | $GREP " "`
30003       if test "x$has_space" != x; then
30004         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30005 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30006       fi
30007       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30008     fi
30009   fi
30010 
30011   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
30012   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
30013   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
30014   # "foo.exe" is OK but "foo" is an error.
30015   #
30016   # This test is therefore slightly more accurate than "test -f" to check for file presence.
30017   # It is also a way to make sure we got the proper file name for the real test later on.
30018   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
30019   if test "x$test_shortpath" = x; then
30020     # Short path failed, file does not exist as specified.
30021     # Try adding .exe or .cmd
30022     if test -f "${new_path}.exe"; then
30023       input_to_shortpath="${new_path}.exe"
30024     elif test -f "${new_path}.cmd"; then
30025       input_to_shortpath="${new_path}.cmd"
30026     else
30027       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5
30028 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;}
30029       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
30030 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
30031       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30032     fi
30033   else
30034     input_to_shortpath="$new_path"
30035   fi
30036 
30037   # Call helper function which possibly converts this using DOS-style short mode.
30038   # If so, the updated path is stored in $new_path.
30039   new_path="$input_to_shortpath"
30040 
30041   input_path="$input_to_shortpath"
30042   # Check if we need to convert this using DOS-style short mode. If the path
30043   # contains just simple characters, use it. Otherwise (spaces, weird characters),
30044   # take no chances and rewrite it.
30045   # Note: m4 eats our [], so we need to use [ and ] instead.
30046   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
30047   if test "x$has_forbidden_chars" != x; then
30048     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30049     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
30050     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
30051     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
30052       # Going to short mode and back again did indeed matter. Since short mode is
30053       # case insensitive, let's make it lowercase to improve readability.
30054       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30055       # Now convert it back to Unix-stile (cygpath)
30056       input_path=`$CYGPATH -u "$shortmode_path"`
30057       new_path="$input_path"
30058     fi
30059   fi
30060 
30061   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
30062   if test "x$test_cygdrive_prefix" = x; then
30063     # As a simple fix, exclude /usr/bin since it's not a real path.
30064     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
30065       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
30066       # a path prefixed by /cygdrive for fixpath to work.
30067       new_path="$CYGWIN_ROOT_PATH$input_path"
30068     fi
30069   fi
30070 
30071   # remove trailing .exe if any
30072   new_path="${new_path/%.exe/}"
30073 
30074   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30075 
30076   # First separate the path from the arguments. This will split at the first
30077   # space.
30078   complete="$PROPER_COMPILER_CC"
30079   path="${complete%% *}"
30080   tmp="$complete EOL"
30081   arguments="${tmp#* }"
30082 
30083   # Input might be given as Windows format, start by converting to
30084   # unix format.
30085   new_path="$path"
30086 
30087   windows_path="$new_path"
30088   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30089     unix_path=`$CYGPATH -u "$windows_path"`
30090     new_path="$unix_path"
30091   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30092     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30093     new_path="$unix_path"
30094   fi
30095 
30096 
30097   # Now try to locate executable using which
30098   new_path=`$WHICH "$new_path" 2> /dev/null`
30099 
30100   if test "x$new_path" = x; then
30101     # Oops. Which didn't find the executable.
30102     # The splitting of arguments from the executable at a space might have been incorrect,
30103     # since paths with space are more likely in Windows. Give it another try with the whole
30104     # argument.
30105     path="$complete"
30106     arguments="EOL"
30107     new_path="$path"
30108 
30109   windows_path="$new_path"
30110   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30111     unix_path=`$CYGPATH -u "$windows_path"`
30112     new_path="$unix_path"
30113   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30114     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30115     new_path="$unix_path"
30116   fi
30117 
30118 
30119     new_path=`$WHICH "$new_path" 2> /dev/null`
30120 
30121     if test "x$new_path" = x; then
30122       # It's still not found. Now this is an unrecoverable error.
30123       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
30124 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
30125       has_space=`$ECHO "$complete" | $GREP " "`
30126       if test "x$has_space" != x; then
30127         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30129       fi
30130       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30131     fi
30132   fi
30133 
30134   # Now new_path has a complete unix path to the binary
30135   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
30136     # Keep paths in /bin as-is, but remove trailing .exe if any
30137     new_path="${new_path/%.exe/}"
30138     # Do not save /bin paths to all_fixpath_prefixes!
30139   else
30140     # Not in mixed or Windows style, start by that.
30141     new_path=`cmd //c echo $new_path`
30142 
30143   input_path="$new_path"
30144   # Check if we need to convert this using DOS-style short mode. If the path
30145   # contains just simple characters, use it. Otherwise (spaces, weird characters),
30146   # take no chances and rewrite it.
30147   # Note: m4 eats our [], so we need to use [ and ] instead.
30148   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
30149   if test "x$has_forbidden_chars" != x; then
30150     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30151     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30152   fi
30153 
30154     # Output is in $new_path
30155 
30156   windows_path="$new_path"
30157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30158     unix_path=`$CYGPATH -u "$windows_path"`
30159     new_path="$unix_path"
30160   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30161     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30162     new_path="$unix_path"
30163   fi
30164 
30165     # remove trailing .exe if any
30166     new_path="${new_path/%.exe/}"
30167 
30168     # Save the first 10 bytes of this path to the storage, so fixpath can work.
30169     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
30170   fi
30171 
30172   else
30173     # We're on a posix platform. Hooray! :)
30174     # First separate the path from the arguments. This will split at the first
30175     # space.
30176     complete="$PROPER_COMPILER_CC"
30177     path="${complete%% *}"
30178     tmp="$complete EOL"
30179     arguments="${tmp#* }"
30180 
30181     # Cannot rely on the command "which" here since it doesn't always work.
30182     is_absolute_path=`$ECHO "$path" | $GREP ^/`
30183     if test -z "$is_absolute_path"; then
30184       # Path to executable is not absolute. Find it.
30185       IFS_save="$IFS"
30186       IFS=:
30187       for p in $PATH; do
30188         if test -f "$p/$path" && test -x "$p/$path"; then
30189           new_path="$p/$path"
30190           break
30191         fi
30192       done
30193       IFS="$IFS_save"
30194     else
30195       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&5
30196 $as_echo "$as_me: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&6;}
30197       new_path="$path"
30198     fi
30199 
30200     if test "x$new_path" = x; then
30201       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
30202 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
30203       has_space=`$ECHO "$complete" | $GREP " "`
30204       if test "x$has_space" != x; then
30205         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
30206 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
30207       fi
30208       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30209     fi
30210   fi
30211 
30212   # Now join together the path and the arguments once again
30213   if test "x$arguments" != xEOL; then
30214     new_complete="$new_path ${arguments% *}"
30215   else
30216     new_complete="$new_path"
30217   fi
30218 
30219   if test "x$complete" != "x$new_complete"; then
30220     PROPER_COMPILER_CC="$new_complete"
30221     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5
30222 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;}
30223   fi
30224 
30225     PATH="$RETRY_COMPILER_SAVED_PATH"
30226 
30227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5
30228 $as_echo_n "checking for resolved symbolic links for CC... " >&6; }
30229 
30230   if test "x$OPENJDK_BUILD_OS" != xwindows; then
30231     # Follow a chain of symbolic links. Use readlink
30232     # where it exists, else fall back to horribly
30233     # complicated shell code.
30234     if test "x$READLINK_TESTED" != yes; then
30235       # On MacOSX there is a readlink tool with a different
30236       # purpose than the GNU readlink tool. Check the found readlink.
30237       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
30238       if test "x$ISGNU" = x; then
30239         # A readlink that we do not know how to use.
30240         # Are there other non-GNU readlinks out there?
30241         READLINK_TESTED=yes
30242         READLINK=
30243       fi
30244     fi
30245 
30246     if test "x$READLINK" != x; then
30247       PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC`
30248     else
30249       # Save the current directory for restoring afterwards
30250       STARTDIR=$PWD
30251       COUNTER=0
30252       sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC`
30253       sym_link_file=`$BASENAME $PROPER_COMPILER_CC`
30254       cd $sym_link_dir
30255       # Use -P flag to resolve symlinks in directories.
30256       cd `$THEPWDCMD -P`
30257       sym_link_dir=`$THEPWDCMD -P`
30258       # Resolve file symlinks
30259       while test $COUNTER -lt 20; do
30260         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
30261         if test "x$ISLINK" == x; then
30262           # This is not a symbolic link! We are done!
30263           break
30264         fi
30265         # Again resolve directory symlinks since the target of the just found
30266         # link could be in a different directory
30267         cd `$DIRNAME $ISLINK`
30268         sym_link_dir=`$THEPWDCMD -P`
30269         sym_link_file=`$BASENAME $ISLINK`
30270         let COUNTER=COUNTER+1
30271       done
30272       cd $STARTDIR
30273       PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file
30274     fi
30275   fi
30276 
30277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
30278 $as_echo "$PROPER_COMPILER_CC" >&6; }
30279     CC="$PROPER_COMPILER_CC"
30280   else
30281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5
30282 $as_echo "no, keeping CC" >&6; }
30283   fi
30284 
30285 
30286   COMPILER=$CC
30287   COMPILER_NAME=$COMPILER_NAME
30288 
30289   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30290     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
30291     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
30292     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
30293     if test $? -ne 0; then
30294       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
30295 
30296       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
30297 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
30298       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
30299 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
30300       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30301     else
30302       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
30303       COMPILER_VENDOR="Sun Studio"
30304     fi
30305   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
30306       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
30307       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
30308       if test $? -ne 0; then
30309         as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
30310       else
30311         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
30312         COMPILER_VENDOR='IBM'
30313       fi
30314   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
30315     # First line typically looks something like:
30316     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
30317     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
30318     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
30319     COMPILER_VENDOR="Microsoft CL.EXE"
30320     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
30321     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
30322       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
30323         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
30324       fi
30325     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
30326       if test "x$COMPILER_CPU_TEST" != "xx64"; then
30327         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
30328       fi
30329     fi
30330   else
30331     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
30332     # Check that this is likely to be GCC.
30333     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
30334     if test $? -ne 0; then
30335       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5
30336 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;}
30337       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5
30338 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;}
30339       as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30340     fi
30341 
30342     # First line typically looks something like:
30343     # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
30344     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"`
30345     COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"`
30346   fi
30347   # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker)
30348   CC_VERSION="$COMPILER_VERSION"
30349   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
30350   CC_VENDOR="$COMPILER_VENDOR"
30351 
30352   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
30353 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
30354 
30355 
30356   # Now that we have resolved CC ourself, let autoconf have its go at it
30357   ac_ext=c
30358 ac_cpp='$CPP $CPPFLAGS'
30359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30362 if test -n "$ac_tool_prefix"; then
30363   for ac_prog in $CC
30364   do
30365     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30368 $as_echo_n "checking for $ac_word... " >&6; }
30369 if ${ac_cv_prog_CC+:} false; then :
30370   $as_echo_n "(cached) " >&6
30371 else
30372   if test -n "$CC"; then
30373   ac_cv_prog_CC="$CC" # Let the user override the test.
30374 else
30375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30376 for as_dir in $PATH
30377 do
30378   IFS=$as_save_IFS
30379   test -z "$as_dir" && as_dir=.
30380     for ac_exec_ext in '' $ac_executable_extensions; do
30381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30382     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30384     break 2
30385   fi
30386 done
30387   done
30388 IFS=$as_save_IFS
30389 
30390 fi
30391 fi
30392 CC=$ac_cv_prog_CC
30393 if test -n "$CC"; then
30394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30395 $as_echo "$CC" >&6; }
30396 else
30397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30398 $as_echo "no" >&6; }
30399 fi
30400 
30401 
30402     test -n "$CC" && break
30403   done
30404 fi
30405 if test -z "$CC"; then
30406   ac_ct_CC=$CC
30407   for ac_prog in $CC
30408 do
30409   # Extract the first word of "$ac_prog", so it can be a program name with args.
30410 set dummy $ac_prog; ac_word=$2
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30412 $as_echo_n "checking for $ac_word... " >&6; }
30413 if ${ac_cv_prog_ac_ct_CC+:} false; then :
30414   $as_echo_n "(cached) " >&6
30415 else
30416   if test -n "$ac_ct_CC"; then
30417   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30418 else
30419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30420 for as_dir in $PATH
30421 do
30422   IFS=$as_save_IFS
30423   test -z "$as_dir" && as_dir=.
30424     for ac_exec_ext in '' $ac_executable_extensions; do
30425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30426     ac_cv_prog_ac_ct_CC="$ac_prog"
30427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30428     break 2
30429   fi
30430 done
30431   done
30432 IFS=$as_save_IFS
30433 
30434 fi
30435 fi
30436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30437 if test -n "$ac_ct_CC"; then
30438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30439 $as_echo "$ac_ct_CC" >&6; }
30440 else
30441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30442 $as_echo "no" >&6; }
30443 fi
30444 
30445 
30446   test -n "$ac_ct_CC" && break
30447 done
30448 
30449   if test "x$ac_ct_CC" = x; then
30450     CC=""
30451   else
30452     case $cross_compiling:$ac_tool_warned in
30453 yes:)
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30456 ac_tool_warned=yes ;;
30457 esac
30458     CC=$ac_ct_CC
30459   fi
30460 fi
30461 
30462 
30463 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30465 as_fn_error $? "no acceptable C compiler found in \$PATH
30466 See \`config.log' for more details" "$LINENO" 5; }
30467 
30468 # Provide some information about the compiler.
30469 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30470 set X $ac_compile
30471 ac_compiler=$2
30472 for ac_option in --version -v -V -qversion; do
30473   { { ac_try="$ac_compiler $ac_option >&5"
30474 case "(($ac_try" in
30475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476   *) ac_try_echo=$ac_try;;
30477 esac
30478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30479 $as_echo "$ac_try_echo"; } >&5
30480   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30481   ac_status=$?
30482   if test -s conftest.err; then
30483     sed '10a\
30484 ... rest of stderr output deleted ...
30485          10q' conftest.err >conftest.er1
30486     cat conftest.er1 >&5
30487   fi
30488   rm -f conftest.er1 conftest.err
30489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30490   test $ac_status = 0; }
30491 done
30492 
30493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30494 /* end confdefs.h.  */
30495 
30496 int
30497 main ()
30498 {
30499 
30500   ;
30501   return 0;
30502 }
30503 _ACEOF
30504 ac_clean_files_save=$ac_clean_files
30505 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30506 # Try to create an executable without -o first, disregard a.out.
30507 # It will help us diagnose broken compilers, and finding out an intuition
30508 # of exeext.
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30510 $as_echo_n "checking whether the C compiler works... " >&6; }
30511 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30512 
30513 # The possible output files:
30514 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
30515 
30516 ac_rmfiles=
30517 for ac_file in $ac_files
30518 do
30519   case $ac_file in
30520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30521     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
30522   esac
30523 done
30524 rm -f $ac_rmfiles
30525 
30526 if { { ac_try="$ac_link_default"
30527 case "(($ac_try" in
30528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529   *) ac_try_echo=$ac_try;;
30530 esac
30531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30532 $as_echo "$ac_try_echo"; } >&5
30533   (eval "$ac_link_default") 2>&5
30534   ac_status=$?
30535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30536   test $ac_status = 0; }; then :
30537   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
30538 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
30539 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
30540 # so that the user can short-circuit this test for compilers unknown to
30541 # Autoconf.
30542 for ac_file in $ac_files ''
30543 do
30544   test -f "$ac_file" || continue
30545   case $ac_file in
30546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
30547         ;;
30548     [ab].out )
30549         # We found the default executable, but exeext='' is most
30550         # certainly right.
30551         break;;
30552     *.* )
30553         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
30554         then :; else
30555            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30556         fi
30557         # We set ac_cv_exeext here because the later test for it is not
30558         # safe: cross compilers may not add the suffix if given an `-o'
30559         # argument, so we may need to know it at that point already.
30560         # Even if this section looks crufty: it has the advantage of
30561         # actually working.
30562         break;;
30563     * )
30564         break;;
30565   esac
30566 done
30567 test "$ac_cv_exeext" = no && ac_cv_exeext=
30568 
30569 else
30570   ac_file=''
30571 fi
30572 if test -z "$ac_file"; then :
30573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30574 $as_echo "no" >&6; }
30575 $as_echo "$as_me: failed program was:" >&5
30576 sed 's/^/| /' conftest.$ac_ext >&5
30577 
30578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30580 as_fn_error 77 "C compiler cannot create executables
30581 See \`config.log' for more details" "$LINENO" 5; }
30582 else
30583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30584 $as_echo "yes" >&6; }
30585 fi
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
30587 $as_echo_n "checking for C compiler default output file name... " >&6; }
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
30589 $as_echo "$ac_file" >&6; }
30590 ac_exeext=$ac_cv_exeext
30591 
30592 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
30593 ac_clean_files=$ac_clean_files_save
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
30595 $as_echo_n "checking for suffix of executables... " >&6; }
30596 if { { ac_try="$ac_link"
30597 case "(($ac_try" in
30598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599   *) ac_try_echo=$ac_try;;
30600 esac
30601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30602 $as_echo "$ac_try_echo"; } >&5
30603   (eval "$ac_link") 2>&5
30604   ac_status=$?
30605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30606   test $ac_status = 0; }; then :
30607   # If both `conftest.exe' and `conftest' are `present' (well, observable)
30608 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
30609 # work properly (i.e., refer to `conftest.exe'), while it won't with
30610 # `rm'.
30611 for ac_file in conftest.exe conftest conftest.*; do
30612   test -f "$ac_file" || continue
30613   case $ac_file in
30614     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30615     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30616           break;;
30617     * ) break;;
30618   esac
30619 done
30620 else
30621   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30623 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
30624 See \`config.log' for more details" "$LINENO" 5; }
30625 fi
30626 rm -f conftest conftest$ac_cv_exeext
30627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
30628 $as_echo "$ac_cv_exeext" >&6; }
30629 
30630 rm -f conftest.$ac_ext
30631 EXEEXT=$ac_cv_exeext
30632 ac_exeext=$EXEEXT
30633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30634 /* end confdefs.h.  */
30635 #include <stdio.h>
30636 int
30637 main ()
30638 {
30639 FILE *f = fopen ("conftest.out", "w");
30640  return ferror (f) || fclose (f) != 0;
30641 
30642   ;
30643   return 0;
30644 }
30645 _ACEOF
30646 ac_clean_files="$ac_clean_files conftest.out"
30647 # Check that the compiler produces executables we can run.  If not, either
30648 # the compiler is broken, or we cross compile.
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
30650 $as_echo_n "checking whether we are cross compiling... " >&6; }
30651 if test "$cross_compiling" != yes; then
30652   { { ac_try="$ac_link"
30653 case "(($ac_try" in
30654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655   *) ac_try_echo=$ac_try;;
30656 esac
30657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30658 $as_echo "$ac_try_echo"; } >&5
30659   (eval "$ac_link") 2>&5
30660   ac_status=$?
30661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30662   test $ac_status = 0; }
30663   if { ac_try='./conftest$ac_cv_exeext'
30664   { { case "(($ac_try" in
30665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666   *) ac_try_echo=$ac_try;;
30667 esac
30668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30669 $as_echo "$ac_try_echo"; } >&5
30670   (eval "$ac_try") 2>&5
30671   ac_status=$?
30672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30673   test $ac_status = 0; }; }; then
30674     cross_compiling=no
30675   else
30676     if test "$cross_compiling" = maybe; then
30677         cross_compiling=yes
30678     else
30679         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30681 as_fn_error $? "cannot run C compiled programs.
30682 If you meant to cross compile, use \`--host'.
30683 See \`config.log' for more details" "$LINENO" 5; }
30684     fi
30685   fi
30686 fi
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
30688 $as_echo "$cross_compiling" >&6; }
30689 
30690 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
30691 ac_clean_files=$ac_clean_files_save
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
30693 $as_echo_n "checking for suffix of object files... " >&6; }
30694 if ${ac_cv_objext+:} false; then :
30695   $as_echo_n "(cached) " >&6
30696 else
30697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30698 /* end confdefs.h.  */
30699 
30700 int
30701 main ()
30702 {
30703 
30704   ;
30705   return 0;
30706 }
30707 _ACEOF
30708 rm -f conftest.o conftest.obj
30709 if { { ac_try="$ac_compile"
30710 case "(($ac_try" in
30711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30712   *) ac_try_echo=$ac_try;;
30713 esac
30714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30715 $as_echo "$ac_try_echo"; } >&5
30716   (eval "$ac_compile") 2>&5
30717   ac_status=$?
30718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30719   test $ac_status = 0; }; then :
30720   for ac_file in conftest.o conftest.obj conftest.*; do
30721   test -f "$ac_file" || continue;
30722   case $ac_file in
30723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30724     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30725        break;;
30726   esac
30727 done
30728 else
30729   $as_echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30731 
30732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30734 as_fn_error $? "cannot compute suffix of object files: cannot compile
30735 See \`config.log' for more details" "$LINENO" 5; }
30736 fi
30737 rm -f conftest.$ac_cv_objext conftest.$ac_ext
30738 fi
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
30740 $as_echo "$ac_cv_objext" >&6; }
30741 OBJEXT=$ac_cv_objext
30742 ac_objext=$OBJEXT
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
30744 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30745 if ${ac_cv_c_compiler_gnu+:} false; then :
30746   $as_echo_n "(cached) " >&6
30747 else
30748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30749 /* end confdefs.h.  */
30750 
30751 int
30752 main ()
30753 {
30754 #ifndef __GNUC__
30755        choke me
30756 #endif
30757 
30758   ;
30759   return 0;
30760 }
30761 _ACEOF
30762 if ac_fn_c_try_compile "$LINENO"; then :
30763   ac_compiler_gnu=yes
30764 else
30765   ac_compiler_gnu=no
30766 fi
30767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
30769 
30770 fi
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
30772 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
30773 if test $ac_compiler_gnu = yes; then
30774   GCC=yes
30775 else
30776   GCC=
30777 fi
30778 ac_test_CFLAGS=${CFLAGS+set}
30779 ac_save_CFLAGS=$CFLAGS
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
30781 $as_echo_n "checking whether $CC accepts -g... " >&6; }
30782 if ${ac_cv_prog_cc_g+:} false; then :
30783   $as_echo_n "(cached) " >&6
30784 else
30785   ac_save_c_werror_flag=$ac_c_werror_flag
30786    ac_c_werror_flag=yes
30787    ac_cv_prog_cc_g=no
30788    CFLAGS="-g"
30789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30790 /* end confdefs.h.  */
30791 
30792 int
30793 main ()
30794 {
30795 
30796   ;
30797   return 0;
30798 }
30799 _ACEOF
30800 if ac_fn_c_try_compile "$LINENO"; then :
30801   ac_cv_prog_cc_g=yes
30802 else
30803   CFLAGS=""
30804       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805 /* end confdefs.h.  */
30806 
30807 int
30808 main ()
30809 {
30810 
30811   ;
30812   return 0;
30813 }
30814 _ACEOF
30815 if ac_fn_c_try_compile "$LINENO"; then :
30816 
30817 else
30818   ac_c_werror_flag=$ac_save_c_werror_flag
30819          CFLAGS="-g"
30820          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30821 /* end confdefs.h.  */
30822 
30823 int
30824 main ()
30825 {
30826 
30827   ;
30828   return 0;
30829 }
30830 _ACEOF
30831 if ac_fn_c_try_compile "$LINENO"; then :
30832   ac_cv_prog_cc_g=yes
30833 fi
30834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30835 fi
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 fi
30838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30839    ac_c_werror_flag=$ac_save_c_werror_flag
30840 fi
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
30842 $as_echo "$ac_cv_prog_cc_g" >&6; }
30843 if test "$ac_test_CFLAGS" = set; then
30844   CFLAGS=$ac_save_CFLAGS
30845 elif test $ac_cv_prog_cc_g = yes; then
30846   if test "$GCC" = yes; then
30847     CFLAGS="-g -O2"
30848   else
30849     CFLAGS="-g"
30850   fi
30851 else
30852   if test "$GCC" = yes; then
30853     CFLAGS="-O2"
30854   else
30855     CFLAGS=
30856   fi
30857 fi
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
30859 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
30860 if ${ac_cv_prog_cc_c89+:} false; then :
30861   $as_echo_n "(cached) " >&6
30862 else
30863   ac_cv_prog_cc_c89=no
30864 ac_save_CC=$CC
30865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30866 /* end confdefs.h.  */
30867 #include <stdarg.h>
30868 #include <stdio.h>
30869 struct stat;
30870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
30871 struct buf { int x; };
30872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
30873 static char *e (p, i)
30874      char **p;
30875      int i;
30876 {
30877   return p[i];
30878 }
30879 static char *f (char * (*g) (char **, int), char **p, ...)
30880 {
30881   char *s;
30882   va_list v;
30883   va_start (v,p);
30884   s = g (p, va_arg (v,int));
30885   va_end (v);
30886   return s;
30887 }
30888 
30889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
30890    function prototypes and stuff, but not '\xHH' hex character constants.
30891    These don't provoke an error unfortunately, instead are silently treated
30892    as 'x'.  The following induces an error, until -std is added to get
30893    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
30894    array size at least.  It's necessary to write '\x00'==0 to get something
30895    that's true only with -std.  */
30896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30897 
30898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30899    inside strings and character constants.  */
30900 #define FOO(x) 'x'
30901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30902 
30903 int test (int i, double x);
30904 struct s1 {int (*f) (int a);};
30905 struct s2 {int (*f) (double a);};
30906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30907 int argc;
30908 char **argv;
30909 int
30910 main ()
30911 {
30912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
30913   ;
30914   return 0;
30915 }
30916 _ACEOF
30917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30918         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30919 do
30920   CC="$ac_save_CC $ac_arg"
30921   if ac_fn_c_try_compile "$LINENO"; then :
30922   ac_cv_prog_cc_c89=$ac_arg
30923 fi
30924 rm -f core conftest.err conftest.$ac_objext
30925   test "x$ac_cv_prog_cc_c89" != "xno" && break
30926 done
30927 rm -f conftest.$ac_ext
30928 CC=$ac_save_CC
30929 
30930 fi
30931 # AC_CACHE_VAL
30932 case "x$ac_cv_prog_cc_c89" in
30933   x)
30934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
30935 $as_echo "none needed" >&6; } ;;
30936   xno)
30937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
30938 $as_echo "unsupported" >&6; } ;;
30939   *)
30940     CC="$CC $ac_cv_prog_cc_c89"
30941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
30942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30943 esac
30944 if test "x$ac_cv_prog_cc_c89" != xno; then :
30945 
30946 fi
30947 
30948 ac_ext=cpp
30949 ac_cpp='$CXXCPP $CPPFLAGS'
30950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30953 
30954 
30955   # Option used to tell the compiler whether to create 32- or 64-bit executables
30956   # Notice that CC contains the full compiler path at this point.
30957   case $CC in
30958     *xlc_r) COMPILER_TARGET_BITS_FLAG="-q";;
30959     *)      COMPILER_TARGET_BITS_FLAG="-m";;
30960   esac
30961 
30962 
30963   ### Locate C++ compiler (CXX)
30964 
30965   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
30966     COMPILER_CHECK_LIST="cl"
30967   elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
30968     COMPILER_CHECK_LIST="CC g++"
30969   elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
30970     # Do not probe for CC on AIX .
30971     COMPILER_CHECK_LIST="xlC_r"
30972   else
30973     COMPILER_CHECK_LIST="g++ CC"
30974   fi
30975 
30976 
30977   COMPILER_NAME=C++
30978   SEARCH_LIST="$COMPILER_CHECK_LIST"
30979 
30980   if test "x$CXX" != x; then
30981     # User has supplied compiler name already, always let that override.
30982     { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5
30983 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;}
30984     if test "x`basename $CXX`" = "x$CXX"; then
30985       # A command without a complete path is provided, search $PATH.
30986 
30987       for ac_prog in $CXX
30988 do
30989   # Extract the first word of "$ac_prog", so it can be a program name with args.
30990 set dummy $ac_prog; ac_word=$2
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30992 $as_echo_n "checking for $ac_word... " >&6; }
30993 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
30994   $as_echo_n "(cached) " >&6
30995 else
30996   case $POTENTIAL_CXX in
30997   [\\/]* | ?:[\\/]*)
30998   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
30999   ;;
31000   *)
31001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31002 for as_dir in $PATH
31003 do
31004   IFS=$as_save_IFS
31005   test -z "$as_dir" && as_dir=.
31006     for ac_exec_ext in '' $ac_executable_extensions; do
31007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31008     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
31009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31010     break 2
31011   fi
31012 done
31013   done
31014 IFS=$as_save_IFS
31015 
31016   ;;
31017 esac
31018 fi
31019 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
31020 if test -n "$POTENTIAL_CXX"; then
31021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
31022 $as_echo "$POTENTIAL_CXX" >&6; }
31023 else
31024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31025 $as_echo "no" >&6; }
31026 fi
31027 
31028 
31029   test -n "$POTENTIAL_CXX" && break
31030 done
31031 
31032       if test "x$POTENTIAL_CXX" != x; then
31033         CXX=$POTENTIAL_CXX
31034       else
31035         as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5
31036       fi
31037     else
31038       # Otherwise it might already be a complete path
31039       if test ! -x "$CXX"; then
31040         as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5
31041       fi
31042     fi
31043   else
31044     # No user supplied value. Locate compiler ourselves
31045     CXX=
31046     # If TOOLS_DIR is set, check for all compiler names in there first
31047     # before checking the rest of the PATH.
31048     if test -n "$TOOLS_DIR"; then
31049       PATH_save="$PATH"
31050       PATH="$TOOLS_DIR"
31051       for ac_prog in $SEARCH_LIST
31052 do
31053   # Extract the first word of "$ac_prog", so it can be a program name with args.
31054 set dummy $ac_prog; ac_word=$2
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31056 $as_echo_n "checking for $ac_word... " >&6; }
31057 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
31058   $as_echo_n "(cached) " >&6
31059 else
31060   case $TOOLS_DIR_CXX in
31061   [\\/]* | ?:[\\/]*)
31062   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
31063   ;;
31064   *)
31065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31066 for as_dir in $PATH
31067 do
31068   IFS=$as_save_IFS
31069   test -z "$as_dir" && as_dir=.
31070     for ac_exec_ext in '' $ac_executable_extensions; do
31071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31072     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
31073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31074     break 2
31075   fi
31076 done
31077   done
31078 IFS=$as_save_IFS
31079 
31080   ;;
31081 esac
31082 fi
31083 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
31084 if test -n "$TOOLS_DIR_CXX"; then
31085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
31086 $as_echo "$TOOLS_DIR_CXX" >&6; }
31087 else
31088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31089 $as_echo "no" >&6; }
31090 fi
31091 
31092 
31093   test -n "$TOOLS_DIR_CXX" && break
31094 done
31095 
31096       CXX=$TOOLS_DIR_CXX
31097       PATH="$PATH_save"
31098     fi
31099 
31100     # AC_PATH_PROGS can't be run multiple times with the same variable,
31101     # so create a new name for this run.
31102     if test "x$CXX" = x; then
31103       for ac_prog in $SEARCH_LIST
31104 do
31105   # Extract the first word of "$ac_prog", so it can be a program name with args.
31106 set dummy $ac_prog; ac_word=$2
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31108 $as_echo_n "checking for $ac_word... " >&6; }
31109 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
31110   $as_echo_n "(cached) " >&6
31111 else
31112   case $POTENTIAL_CXX in
31113   [\\/]* | ?:[\\/]*)
31114   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
31115   ;;
31116   *)
31117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118 for as_dir in $PATH
31119 do
31120   IFS=$as_save_IFS
31121   test -z "$as_dir" && as_dir=.
31122     for ac_exec_ext in '' $ac_executable_extensions; do
31123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31124     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
31125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31126     break 2
31127   fi
31128 done
31129   done
31130 IFS=$as_save_IFS
31131 
31132   ;;
31133 esac
31134 fi
31135 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
31136 if test -n "$POTENTIAL_CXX"; then
31137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
31138 $as_echo "$POTENTIAL_CXX" >&6; }
31139 else
31140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31141 $as_echo "no" >&6; }
31142 fi
31143 
31144 
31145   test -n "$POTENTIAL_CXX" && break
31146 done
31147 
31148       CXX=$POTENTIAL_CXX
31149     fi
31150 
31151     if test "x$CXX" = x; then
31152 
31153   # Print a helpful message on how to acquire the necessary build dependency.
31154   # devkit is the help tag: freetype, cups, pulse, alsa etc
31155   MISSING_DEPENDENCY=devkit
31156 
31157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31158     cygwin_help $MISSING_DEPENDENCY
31159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31160     msys_help $MISSING_DEPENDENCY
31161   else
31162     PKGHANDLER_COMMAND=
31163 
31164     case $PKGHANDLER in
31165       apt-get)
31166         apt_help     $MISSING_DEPENDENCY ;;
31167       yum)
31168         yum_help     $MISSING_DEPENDENCY ;;
31169       port)
31170         port_help    $MISSING_DEPENDENCY ;;
31171       pkgutil)
31172         pkgutil_help $MISSING_DEPENDENCY ;;
31173       pkgadd)
31174         pkgadd_help  $MISSING_DEPENDENCY ;;
31175     esac
31176 
31177     if test "x$PKGHANDLER_COMMAND" != x; then
31178       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31179     fi
31180   fi
31181 
31182       as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
31183     fi
31184   fi
31185 
31186   # Now we have a compiler binary in CXX. Make sure it's okay.
31187 
31188   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31189 
31190   # First separate the path from the arguments. This will split at the first
31191   # space.
31192   complete="$CXX"
31193   path="${complete%% *}"
31194   tmp="$complete EOL"
31195   arguments="${tmp#* }"
31196 
31197   # Input might be given as Windows format, start by converting to
31198   # unix format.
31199   new_path=`$CYGPATH -u "$path"`
31200 
31201   # Now try to locate executable using which
31202   new_path=`$WHICH "$new_path" 2> /dev/null`
31203   # bat and cmd files are not always considered executable in cygwin causing which
31204   # to not find them
31205   if test "x$new_path" = x \
31206       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31207       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31208     new_path=`$CYGPATH -u "$path"`
31209   fi
31210   if test "x$new_path" = x; then
31211     # Oops. Which didn't find the executable.
31212     # The splitting of arguments from the executable at a space might have been incorrect,
31213     # since paths with space are more likely in Windows. Give it another try with the whole
31214     # argument.
31215     path="$complete"
31216     arguments="EOL"
31217     new_path=`$CYGPATH -u "$path"`
31218     new_path=`$WHICH "$new_path" 2> /dev/null`
31219     # bat and cmd files are not always considered executable in cygwin causing which
31220     # to not find them
31221     if test "x$new_path" = x \
31222         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31223         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31224       new_path=`$CYGPATH -u "$path"`
31225     fi
31226     if test "x$new_path" = x; then
31227       # It's still not found. Now this is an unrecoverable error.
31228       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
31229 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
31230       has_space=`$ECHO "$complete" | $GREP " "`
31231       if test "x$has_space" != x; then
31232         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31233 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31234       fi
31235       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31236     fi
31237   fi
31238 
31239   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31240   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31241   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31242   # "foo.exe" is OK but "foo" is an error.
31243   #
31244   # This test is therefore slightly more accurate than "test -f" to check for file presence.
31245   # It is also a way to make sure we got the proper file name for the real test later on.
31246   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31247   if test "x$test_shortpath" = x; then
31248     # Short path failed, file does not exist as specified.
31249     # Try adding .exe or .cmd
31250     if test -f "${new_path}.exe"; then
31251       input_to_shortpath="${new_path}.exe"
31252     elif test -f "${new_path}.cmd"; then
31253       input_to_shortpath="${new_path}.cmd"
31254     else
31255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5
31256 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;}
31257       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31258 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31259       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31260     fi
31261   else
31262     input_to_shortpath="$new_path"
31263   fi
31264 
31265   # Call helper function which possibly converts this using DOS-style short mode.
31266   # If so, the updated path is stored in $new_path.
31267   new_path="$input_to_shortpath"
31268 
31269   input_path="$input_to_shortpath"
31270   # Check if we need to convert this using DOS-style short mode. If the path
31271   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31272   # take no chances and rewrite it.
31273   # Note: m4 eats our [], so we need to use [ and ] instead.
31274   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31275   if test "x$has_forbidden_chars" != x; then
31276     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31277     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31278     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31279     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31280       # Going to short mode and back again did indeed matter. Since short mode is
31281       # case insensitive, let's make it lowercase to improve readability.
31282       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31283       # Now convert it back to Unix-stile (cygpath)
31284       input_path=`$CYGPATH -u "$shortmode_path"`
31285       new_path="$input_path"
31286     fi
31287   fi
31288 
31289   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31290   if test "x$test_cygdrive_prefix" = x; then
31291     # As a simple fix, exclude /usr/bin since it's not a real path.
31292     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31293       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31294       # a path prefixed by /cygdrive for fixpath to work.
31295       new_path="$CYGWIN_ROOT_PATH$input_path"
31296     fi
31297   fi
31298 
31299   # remove trailing .exe if any
31300   new_path="${new_path/%.exe/}"
31301 
31302   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31303 
31304   # First separate the path from the arguments. This will split at the first
31305   # space.
31306   complete="$CXX"
31307   path="${complete%% *}"
31308   tmp="$complete EOL"
31309   arguments="${tmp#* }"
31310 
31311   # Input might be given as Windows format, start by converting to
31312   # unix format.
31313   new_path="$path"
31314 
31315   windows_path="$new_path"
31316   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31317     unix_path=`$CYGPATH -u "$windows_path"`
31318     new_path="$unix_path"
31319   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31320     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31321     new_path="$unix_path"
31322   fi
31323 
31324 
31325   # Now try to locate executable using which
31326   new_path=`$WHICH "$new_path" 2> /dev/null`
31327 
31328   if test "x$new_path" = x; then
31329     # Oops. Which didn't find the executable.
31330     # The splitting of arguments from the executable at a space might have been incorrect,
31331     # since paths with space are more likely in Windows. Give it another try with the whole
31332     # argument.
31333     path="$complete"
31334     arguments="EOL"
31335     new_path="$path"
31336 
31337   windows_path="$new_path"
31338   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31339     unix_path=`$CYGPATH -u "$windows_path"`
31340     new_path="$unix_path"
31341   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31342     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31343     new_path="$unix_path"
31344   fi
31345 
31346 
31347     new_path=`$WHICH "$new_path" 2> /dev/null`
31348 
31349     if test "x$new_path" = x; then
31350       # It's still not found. Now this is an unrecoverable error.
31351       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
31352 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
31353       has_space=`$ECHO "$complete" | $GREP " "`
31354       if test "x$has_space" != x; then
31355         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31356 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31357       fi
31358       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31359     fi
31360   fi
31361 
31362   # Now new_path has a complete unix path to the binary
31363   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31364     # Keep paths in /bin as-is, but remove trailing .exe if any
31365     new_path="${new_path/%.exe/}"
31366     # Do not save /bin paths to all_fixpath_prefixes!
31367   else
31368     # Not in mixed or Windows style, start by that.
31369     new_path=`cmd //c echo $new_path`
31370 
31371   input_path="$new_path"
31372   # Check if we need to convert this using DOS-style short mode. If the path
31373   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31374   # take no chances and rewrite it.
31375   # Note: m4 eats our [], so we need to use [ and ] instead.
31376   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31377   if test "x$has_forbidden_chars" != x; then
31378     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31379     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31380   fi
31381 
31382     # Output is in $new_path
31383 
31384   windows_path="$new_path"
31385   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31386     unix_path=`$CYGPATH -u "$windows_path"`
31387     new_path="$unix_path"
31388   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31389     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31390     new_path="$unix_path"
31391   fi
31392 
31393     # remove trailing .exe if any
31394     new_path="${new_path/%.exe/}"
31395 
31396     # Save the first 10 bytes of this path to the storage, so fixpath can work.
31397     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31398   fi
31399 
31400   else
31401     # We're on a posix platform. Hooray! :)
31402     # First separate the path from the arguments. This will split at the first
31403     # space.
31404     complete="$CXX"
31405     path="${complete%% *}"
31406     tmp="$complete EOL"
31407     arguments="${tmp#* }"
31408 
31409     # Cannot rely on the command "which" here since it doesn't always work.
31410     is_absolute_path=`$ECHO "$path" | $GREP ^/`
31411     if test -z "$is_absolute_path"; then
31412       # Path to executable is not absolute. Find it.
31413       IFS_save="$IFS"
31414       IFS=:
31415       for p in $PATH; do
31416         if test -f "$p/$path" && test -x "$p/$path"; then
31417           new_path="$p/$path"
31418           break
31419         fi
31420       done
31421       IFS="$IFS_save"
31422     else
31423       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXX (as $path) failed, using $path directly." >&5
31424 $as_echo "$as_me: Resolving CXX (as $path) failed, using $path directly." >&6;}
31425       new_path="$path"
31426     fi
31427 
31428     if test "x$new_path" = x; then
31429       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
31430 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
31431       has_space=`$ECHO "$complete" | $GREP " "`
31432       if test "x$has_space" != x; then
31433         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31434 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31435       fi
31436       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31437     fi
31438   fi
31439 
31440   # Now join together the path and the arguments once again
31441   if test "x$arguments" != xEOL; then
31442     new_complete="$new_path ${arguments% *}"
31443   else
31444     new_complete="$new_path"
31445   fi
31446 
31447   if test "x$complete" != "x$new_complete"; then
31448     CXX="$new_complete"
31449     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
31450 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
31451   fi
31452 
31453   TEST_COMPILER="$CXX"
31454   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
31455   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
31456   if test "x$OPENJDK_BUILD_OS" != xaix; then
31457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
31458 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }
31459 
31460   if test "x$OPENJDK_BUILD_OS" != xwindows; then
31461     # Follow a chain of symbolic links. Use readlink
31462     # where it exists, else fall back to horribly
31463     # complicated shell code.
31464     if test "x$READLINK_TESTED" != yes; then
31465       # On MacOSX there is a readlink tool with a different
31466       # purpose than the GNU readlink tool. Check the found readlink.
31467       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
31468       if test "x$ISGNU" = x; then
31469         # A readlink that we do not know how to use.
31470         # Are there other non-GNU readlinks out there?
31471         READLINK_TESTED=yes
31472         READLINK=
31473       fi
31474     fi
31475 
31476     if test "x$READLINK" != x; then
31477       TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
31478     else
31479       # Save the current directory for restoring afterwards
31480       STARTDIR=$PWD
31481       COUNTER=0
31482       sym_link_dir=`$DIRNAME $TEST_COMPILER`
31483       sym_link_file=`$BASENAME $TEST_COMPILER`
31484       cd $sym_link_dir
31485       # Use -P flag to resolve symlinks in directories.
31486       cd `$THEPWDCMD -P`
31487       sym_link_dir=`$THEPWDCMD -P`
31488       # Resolve file symlinks
31489       while test $COUNTER -lt 20; do
31490         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
31491         if test "x$ISLINK" == x; then
31492           # This is not a symbolic link! We are done!
31493           break
31494         fi
31495         # Again resolve directory symlinks since the target of the just found
31496         # link could be in a different directory
31497         cd `$DIRNAME $ISLINK`
31498         sym_link_dir=`$THEPWDCMD -P`
31499         sym_link_file=`$BASENAME $ISLINK`
31500         let COUNTER=COUNTER+1
31501       done
31502       cd $STARTDIR
31503       TEST_COMPILER=$sym_link_dir/$sym_link_file
31504     fi
31505   fi
31506 
31507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
31508 $as_echo "$TEST_COMPILER" >&6; }
31509   fi
31510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
31511 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
31512 
31513   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
31514   if test "x$COMPILER_BASENAME" = "xccache"; then
31515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
31516 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
31517     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
31518     # We want to control ccache invocation ourselves, so ignore this cc and try
31519     # searching again.
31520 
31521     # Remove the path to the fake ccache cc from the PATH
31522     RETRY_COMPILER_SAVED_PATH="$PATH"
31523     COMPILER_DIRNAME=`$DIRNAME $CXX`
31524     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
31525 
31526     # Try again looking for our compiler
31527     if test -n "$ac_tool_prefix"; then
31528   for ac_prog in $COMPILER_CHECK_LIST
31529   do
31530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31533 $as_echo_n "checking for $ac_word... " >&6; }
31534 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
31535   $as_echo_n "(cached) " >&6
31536 else
31537   if test -n "$PROPER_COMPILER_CXX"; then
31538   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
31539 else
31540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31541 for as_dir in $PATH
31542 do
31543   IFS=$as_save_IFS
31544   test -z "$as_dir" && as_dir=.
31545     for ac_exec_ext in '' $ac_executable_extensions; do
31546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31547     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
31548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31549     break 2
31550   fi
31551 done
31552   done
31553 IFS=$as_save_IFS
31554 
31555 fi
31556 fi
31557 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
31558 if test -n "$PROPER_COMPILER_CXX"; then
31559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
31560 $as_echo "$PROPER_COMPILER_CXX" >&6; }
31561 else
31562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31563 $as_echo "no" >&6; }
31564 fi
31565 
31566 
31567     test -n "$PROPER_COMPILER_CXX" && break
31568   done
31569 fi
31570 if test -z "$PROPER_COMPILER_CXX"; then
31571   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
31572   for ac_prog in $COMPILER_CHECK_LIST
31573 do
31574   # Extract the first word of "$ac_prog", so it can be a program name with args.
31575 set dummy $ac_prog; ac_word=$2
31576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31577 $as_echo_n "checking for $ac_word... " >&6; }
31578 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
31579   $as_echo_n "(cached) " >&6
31580 else
31581   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
31582   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
31583 else
31584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31585 for as_dir in $PATH
31586 do
31587   IFS=$as_save_IFS
31588   test -z "$as_dir" && as_dir=.
31589     for ac_exec_ext in '' $ac_executable_extensions; do
31590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31591     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
31592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31593     break 2
31594   fi
31595 done
31596   done
31597 IFS=$as_save_IFS
31598 
31599 fi
31600 fi
31601 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
31602 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
31603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
31604 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
31605 else
31606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31607 $as_echo "no" >&6; }
31608 fi
31609 
31610 
31611   test -n "$ac_ct_PROPER_COMPILER_CXX" && break
31612 done
31613 
31614   if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then
31615     PROPER_COMPILER_CXX=""
31616   else
31617     case $cross_compiling:$ac_tool_warned in
31618 yes:)
31619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31621 ac_tool_warned=yes ;;
31622 esac
31623     PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX
31624   fi
31625 fi
31626 
31627 
31628   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31629 
31630   # First separate the path from the arguments. This will split at the first
31631   # space.
31632   complete="$PROPER_COMPILER_CXX"
31633   path="${complete%% *}"
31634   tmp="$complete EOL"
31635   arguments="${tmp#* }"
31636 
31637   # Input might be given as Windows format, start by converting to
31638   # unix format.
31639   new_path=`$CYGPATH -u "$path"`
31640 
31641   # Now try to locate executable using which
31642   new_path=`$WHICH "$new_path" 2> /dev/null`
31643   # bat and cmd files are not always considered executable in cygwin causing which
31644   # to not find them
31645   if test "x$new_path" = x \
31646       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31647       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31648     new_path=`$CYGPATH -u "$path"`
31649   fi
31650   if test "x$new_path" = x; then
31651     # Oops. Which didn't find the executable.
31652     # The splitting of arguments from the executable at a space might have been incorrect,
31653     # since paths with space are more likely in Windows. Give it another try with the whole
31654     # argument.
31655     path="$complete"
31656     arguments="EOL"
31657     new_path=`$CYGPATH -u "$path"`
31658     new_path=`$WHICH "$new_path" 2> /dev/null`
31659     # bat and cmd files are not always considered executable in cygwin causing which
31660     # to not find them
31661     if test "x$new_path" = x \
31662         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31663         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31664       new_path=`$CYGPATH -u "$path"`
31665     fi
31666     if test "x$new_path" = x; then
31667       # It's still not found. Now this is an unrecoverable error.
31668       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
31669 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
31670       has_space=`$ECHO "$complete" | $GREP " "`
31671       if test "x$has_space" != x; then
31672         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31673 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31674       fi
31675       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31676     fi
31677   fi
31678 
31679   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31680   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31681   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31682   # "foo.exe" is OK but "foo" is an error.
31683   #
31684   # This test is therefore slightly more accurate than "test -f" to check for file presence.
31685   # It is also a way to make sure we got the proper file name for the real test later on.
31686   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31687   if test "x$test_shortpath" = x; then
31688     # Short path failed, file does not exist as specified.
31689     # Try adding .exe or .cmd
31690     if test -f "${new_path}.exe"; then
31691       input_to_shortpath="${new_path}.exe"
31692     elif test -f "${new_path}.cmd"; then
31693       input_to_shortpath="${new_path}.cmd"
31694     else
31695       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5
31696 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;}
31697       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31698 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31699       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31700     fi
31701   else
31702     input_to_shortpath="$new_path"
31703   fi
31704 
31705   # Call helper function which possibly converts this using DOS-style short mode.
31706   # If so, the updated path is stored in $new_path.
31707   new_path="$input_to_shortpath"
31708 
31709   input_path="$input_to_shortpath"
31710   # Check if we need to convert this using DOS-style short mode. If the path
31711   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31712   # take no chances and rewrite it.
31713   # Note: m4 eats our [], so we need to use [ and ] instead.
31714   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31715   if test "x$has_forbidden_chars" != x; then
31716     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31717     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31718     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31719     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31720       # Going to short mode and back again did indeed matter. Since short mode is
31721       # case insensitive, let's make it lowercase to improve readability.
31722       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31723       # Now convert it back to Unix-stile (cygpath)
31724       input_path=`$CYGPATH -u "$shortmode_path"`
31725       new_path="$input_path"
31726     fi
31727   fi
31728 
31729   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31730   if test "x$test_cygdrive_prefix" = x; then
31731     # As a simple fix, exclude /usr/bin since it's not a real path.
31732     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31733       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31734       # a path prefixed by /cygdrive for fixpath to work.
31735       new_path="$CYGWIN_ROOT_PATH$input_path"
31736     fi
31737   fi
31738 
31739   # remove trailing .exe if any
31740   new_path="${new_path/%.exe/}"
31741 
31742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31743 
31744   # First separate the path from the arguments. This will split at the first
31745   # space.
31746   complete="$PROPER_COMPILER_CXX"
31747   path="${complete%% *}"
31748   tmp="$complete EOL"
31749   arguments="${tmp#* }"
31750 
31751   # Input might be given as Windows format, start by converting to
31752   # unix format.
31753   new_path="$path"
31754 
31755   windows_path="$new_path"
31756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31757     unix_path=`$CYGPATH -u "$windows_path"`
31758     new_path="$unix_path"
31759   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31760     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31761     new_path="$unix_path"
31762   fi
31763 
31764 
31765   # Now try to locate executable using which
31766   new_path=`$WHICH "$new_path" 2> /dev/null`
31767 
31768   if test "x$new_path" = x; then
31769     # Oops. Which didn't find the executable.
31770     # The splitting of arguments from the executable at a space might have been incorrect,
31771     # since paths with space are more likely in Windows. Give it another try with the whole
31772     # argument.
31773     path="$complete"
31774     arguments="EOL"
31775     new_path="$path"
31776 
31777   windows_path="$new_path"
31778   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31779     unix_path=`$CYGPATH -u "$windows_path"`
31780     new_path="$unix_path"
31781   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31782     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31783     new_path="$unix_path"
31784   fi
31785 
31786 
31787     new_path=`$WHICH "$new_path" 2> /dev/null`
31788 
31789     if test "x$new_path" = x; then
31790       # It's still not found. Now this is an unrecoverable error.
31791       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
31792 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
31793       has_space=`$ECHO "$complete" | $GREP " "`
31794       if test "x$has_space" != x; then
31795         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31797       fi
31798       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31799     fi
31800   fi
31801 
31802   # Now new_path has a complete unix path to the binary
31803   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31804     # Keep paths in /bin as-is, but remove trailing .exe if any
31805     new_path="${new_path/%.exe/}"
31806     # Do not save /bin paths to all_fixpath_prefixes!
31807   else
31808     # Not in mixed or Windows style, start by that.
31809     new_path=`cmd //c echo $new_path`
31810 
31811   input_path="$new_path"
31812   # Check if we need to convert this using DOS-style short mode. If the path
31813   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31814   # take no chances and rewrite it.
31815   # Note: m4 eats our [], so we need to use [ and ] instead.
31816   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31817   if test "x$has_forbidden_chars" != x; then
31818     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31819     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31820   fi
31821 
31822     # Output is in $new_path
31823 
31824   windows_path="$new_path"
31825   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31826     unix_path=`$CYGPATH -u "$windows_path"`
31827     new_path="$unix_path"
31828   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31829     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31830     new_path="$unix_path"
31831   fi
31832 
31833     # remove trailing .exe if any
31834     new_path="${new_path/%.exe/}"
31835 
31836     # Save the first 10 bytes of this path to the storage, so fixpath can work.
31837     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31838   fi
31839 
31840   else
31841     # We're on a posix platform. Hooray! :)
31842     # First separate the path from the arguments. This will split at the first
31843     # space.
31844     complete="$PROPER_COMPILER_CXX"
31845     path="${complete%% *}"
31846     tmp="$complete EOL"
31847     arguments="${tmp#* }"
31848 
31849     # Cannot rely on the command "which" here since it doesn't always work.
31850     is_absolute_path=`$ECHO "$path" | $GREP ^/`
31851     if test -z "$is_absolute_path"; then
31852       # Path to executable is not absolute. Find it.
31853       IFS_save="$IFS"
31854       IFS=:
31855       for p in $PATH; do
31856         if test -f "$p/$path" && test -x "$p/$path"; then
31857           new_path="$p/$path"
31858           break
31859         fi
31860       done
31861       IFS="$IFS_save"
31862     else
31863       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&5
31864 $as_echo "$as_me: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&6;}
31865       new_path="$path"
31866     fi
31867 
31868     if test "x$new_path" = x; then
31869       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
31870 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
31871       has_space=`$ECHO "$complete" | $GREP " "`
31872       if test "x$has_space" != x; then
31873         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31874 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31875       fi
31876       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31877     fi
31878   fi
31879 
31880   # Now join together the path and the arguments once again
31881   if test "x$arguments" != xEOL; then
31882     new_complete="$new_path ${arguments% *}"
31883   else
31884     new_complete="$new_path"
31885   fi
31886 
31887   if test "x$complete" != "x$new_complete"; then
31888     PROPER_COMPILER_CXX="$new_complete"
31889     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5
31890 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;}
31891   fi
31892 
31893     PATH="$RETRY_COMPILER_SAVED_PATH"
31894 
31895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5
31896 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; }
31897 
31898   if test "x$OPENJDK_BUILD_OS" != xwindows; then
31899     # Follow a chain of symbolic links. Use readlink
31900     # where it exists, else fall back to horribly
31901     # complicated shell code.
31902     if test "x$READLINK_TESTED" != yes; then
31903       # On MacOSX there is a readlink tool with a different
31904       # purpose than the GNU readlink tool. Check the found readlink.
31905       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
31906       if test "x$ISGNU" = x; then
31907         # A readlink that we do not know how to use.
31908         # Are there other non-GNU readlinks out there?
31909         READLINK_TESTED=yes
31910         READLINK=
31911       fi
31912     fi
31913 
31914     if test "x$READLINK" != x; then
31915       PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX`
31916     else
31917       # Save the current directory for restoring afterwards
31918       STARTDIR=$PWD
31919       COUNTER=0
31920       sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX`
31921       sym_link_file=`$BASENAME $PROPER_COMPILER_CXX`
31922       cd $sym_link_dir
31923       # Use -P flag to resolve symlinks in directories.
31924       cd `$THEPWDCMD -P`
31925       sym_link_dir=`$THEPWDCMD -P`
31926       # Resolve file symlinks
31927       while test $COUNTER -lt 20; do
31928         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
31929         if test "x$ISLINK" == x; then
31930           # This is not a symbolic link! We are done!
31931           break
31932         fi
31933         # Again resolve directory symlinks since the target of the just found
31934         # link could be in a different directory
31935         cd `$DIRNAME $ISLINK`
31936         sym_link_dir=`$THEPWDCMD -P`
31937         sym_link_file=`$BASENAME $ISLINK`
31938         let COUNTER=COUNTER+1
31939       done
31940       cd $STARTDIR
31941       PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file
31942     fi
31943   fi
31944 
31945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
31946 $as_echo "$PROPER_COMPILER_CXX" >&6; }
31947     CXX="$PROPER_COMPILER_CXX"
31948   else
31949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5
31950 $as_echo "no, keeping CXX" >&6; }
31951   fi
31952 
31953 
31954   COMPILER=$CXX
31955   COMPILER_NAME=$COMPILER_NAME
31956 
31957   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
31958     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
31959     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
31960     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
31961     if test $? -ne 0; then
31962       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
31963 
31964       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
31965 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
31966       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
31967 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
31968       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
31969     else
31970       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
31971       COMPILER_VENDOR="Sun Studio"
31972     fi
31973   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
31974       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
31975       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
31976       if test $? -ne 0; then
31977         as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
31978       else
31979         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
31980         COMPILER_VENDOR='IBM'
31981       fi
31982   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
31983     # First line typically looks something like:
31984     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
31985     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
31986     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
31987     COMPILER_VENDOR="Microsoft CL.EXE"
31988     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
31989     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
31990       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
31991         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
31992       fi
31993     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
31994       if test "x$COMPILER_CPU_TEST" != "xx64"; then
31995         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
31996       fi
31997     fi
31998   else
31999     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
32000     # Check that this is likely to be GCC.
32001     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
32002     if test $? -ne 0; then
32003       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5
32004 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;}
32005       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5
32006 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;}
32007       as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
32008     fi
32009 
32010     # First line typically looks something like:
32011     # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
32012     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"`
32013     COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"`
32014   fi
32015   # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker)
32016   CXX_VERSION="$COMPILER_VERSION"
32017   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
32018   CXX_VENDOR="$COMPILER_VENDOR"
32019 
32020   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
32021 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
32022 
32023 
32024   # Now that we have resolved CXX ourself, let autoconf have its go at it
32025   ac_ext=cpp
32026 ac_cpp='$CXXCPP $CPPFLAGS'
32027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32030 if test -z "$CXX"; then
32031   if test -n "$CCC"; then
32032     CXX=$CCC
32033   else
32034     if test -n "$ac_tool_prefix"; then
32035   for ac_prog in $CXX
32036   do
32037     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32040 $as_echo_n "checking for $ac_word... " >&6; }
32041 if ${ac_cv_prog_CXX+:} false; then :
32042   $as_echo_n "(cached) " >&6
32043 else
32044   if test -n "$CXX"; then
32045   ac_cv_prog_CXX="$CXX" # Let the user override the test.
32046 else
32047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32048 for as_dir in $PATH
32049 do
32050   IFS=$as_save_IFS
32051   test -z "$as_dir" && as_dir=.
32052     for ac_exec_ext in '' $ac_executable_extensions; do
32053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32054     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
32055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32056     break 2
32057   fi
32058 done
32059   done
32060 IFS=$as_save_IFS
32061 
32062 fi
32063 fi
32064 CXX=$ac_cv_prog_CXX
32065 if test -n "$CXX"; then
32066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
32067 $as_echo "$CXX" >&6; }
32068 else
32069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070 $as_echo "no" >&6; }
32071 fi
32072 
32073 
32074     test -n "$CXX" && break
32075   done
32076 fi
32077 if test -z "$CXX"; then
32078   ac_ct_CXX=$CXX
32079   for ac_prog in $CXX
32080 do
32081   # Extract the first word of "$ac_prog", so it can be a program name with args.
32082 set dummy $ac_prog; ac_word=$2
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32084 $as_echo_n "checking for $ac_word... " >&6; }
32085 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
32086   $as_echo_n "(cached) " >&6
32087 else
32088   if test -n "$ac_ct_CXX"; then
32089   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32090 else
32091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32092 for as_dir in $PATH
32093 do
32094   IFS=$as_save_IFS
32095   test -z "$as_dir" && as_dir=.
32096     for ac_exec_ext in '' $ac_executable_extensions; do
32097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32098     ac_cv_prog_ac_ct_CXX="$ac_prog"
32099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32100     break 2
32101   fi
32102 done
32103   done
32104 IFS=$as_save_IFS
32105 
32106 fi
32107 fi
32108 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32109 if test -n "$ac_ct_CXX"; then
32110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
32111 $as_echo "$ac_ct_CXX" >&6; }
32112 else
32113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32114 $as_echo "no" >&6; }
32115 fi
32116 
32117 
32118   test -n "$ac_ct_CXX" && break
32119 done
32120 
32121   if test "x$ac_ct_CXX" = x; then
32122     CXX="g++"
32123   else
32124     case $cross_compiling:$ac_tool_warned in
32125 yes:)
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32128 ac_tool_warned=yes ;;
32129 esac
32130     CXX=$ac_ct_CXX
32131   fi
32132 fi
32133 
32134   fi
32135 fi
32136 # Provide some information about the compiler.
32137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
32138 set X $ac_compile
32139 ac_compiler=$2
32140 for ac_option in --version -v -V -qversion; do
32141   { { ac_try="$ac_compiler $ac_option >&5"
32142 case "(($ac_try" in
32143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144   *) ac_try_echo=$ac_try;;
32145 esac
32146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32147 $as_echo "$ac_try_echo"; } >&5
32148   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32149   ac_status=$?
32150   if test -s conftest.err; then
32151     sed '10a\
32152 ... rest of stderr output deleted ...
32153          10q' conftest.err >conftest.er1
32154     cat conftest.er1 >&5
32155   fi
32156   rm -f conftest.er1 conftest.err
32157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32158   test $ac_status = 0; }
32159 done
32160 
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
32162 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
32163 if ${ac_cv_cxx_compiler_gnu+:} false; then :
32164   $as_echo_n "(cached) " >&6
32165 else
32166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32167 /* end confdefs.h.  */
32168 
32169 int
32170 main ()
32171 {
32172 #ifndef __GNUC__
32173        choke me
32174 #endif
32175 
32176   ;
32177   return 0;
32178 }
32179 _ACEOF
32180 if ac_fn_cxx_try_compile "$LINENO"; then :
32181   ac_compiler_gnu=yes
32182 else
32183   ac_compiler_gnu=no
32184 fi
32185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32186 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
32187 
32188 fi
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
32190 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
32191 if test $ac_compiler_gnu = yes; then
32192   GXX=yes
32193 else
32194   GXX=
32195 fi
32196 ac_test_CXXFLAGS=${CXXFLAGS+set}
32197 ac_save_CXXFLAGS=$CXXFLAGS
32198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
32199 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
32200 if ${ac_cv_prog_cxx_g+:} false; then :
32201   $as_echo_n "(cached) " >&6
32202 else
32203   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
32204    ac_cxx_werror_flag=yes
32205    ac_cv_prog_cxx_g=no
32206    CXXFLAGS="-g"
32207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32208 /* end confdefs.h.  */
32209 
32210 int
32211 main ()
32212 {
32213 
32214   ;
32215   return 0;
32216 }
32217 _ACEOF
32218 if ac_fn_cxx_try_compile "$LINENO"; then :
32219   ac_cv_prog_cxx_g=yes
32220 else
32221   CXXFLAGS=""
32222       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32223 /* end confdefs.h.  */
32224 
32225 int
32226 main ()
32227 {
32228 
32229   ;
32230   return 0;
32231 }
32232 _ACEOF
32233 if ac_fn_cxx_try_compile "$LINENO"; then :
32234 
32235 else
32236   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32237          CXXFLAGS="-g"
32238          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32239 /* end confdefs.h.  */
32240 
32241 int
32242 main ()
32243 {
32244 
32245   ;
32246   return 0;
32247 }
32248 _ACEOF
32249 if ac_fn_cxx_try_compile "$LINENO"; then :
32250   ac_cv_prog_cxx_g=yes
32251 fi
32252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32253 fi
32254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32255 fi
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32258 fi
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
32260 $as_echo "$ac_cv_prog_cxx_g" >&6; }
32261 if test "$ac_test_CXXFLAGS" = set; then
32262   CXXFLAGS=$ac_save_CXXFLAGS
32263 elif test $ac_cv_prog_cxx_g = yes; then
32264   if test "$GXX" = yes; then
32265     CXXFLAGS="-g -O2"
32266   else
32267     CXXFLAGS="-g"
32268   fi
32269 else
32270   if test "$GXX" = yes; then
32271     CXXFLAGS="-O2"
32272   else
32273     CXXFLAGS=
32274   fi
32275 fi
32276 ac_ext=cpp
32277 ac_cpp='$CXXCPP $CPPFLAGS'
32278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32281 
32282 
32283   ### Locate other tools
32284 
32285   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32286     ac_ext=m
32287 ac_cpp='$OBJCPP $CPPFLAGS'
32288 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32289 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32290 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
32291 if test -n "$ac_tool_prefix"; then
32292   for ac_prog in gcc objcc objc cc CC
32293   do
32294     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32297 $as_echo_n "checking for $ac_word... " >&6; }
32298 if ${ac_cv_prog_OBJC+:} false; then :
32299   $as_echo_n "(cached) " >&6
32300 else
32301   if test -n "$OBJC"; then
32302   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
32303 else
32304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32305 for as_dir in $PATH
32306 do
32307   IFS=$as_save_IFS
32308   test -z "$as_dir" && as_dir=.
32309     for ac_exec_ext in '' $ac_executable_extensions; do
32310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32311     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
32312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32313     break 2
32314   fi
32315 done
32316   done
32317 IFS=$as_save_IFS
32318 
32319 fi
32320 fi
32321 OBJC=$ac_cv_prog_OBJC
32322 if test -n "$OBJC"; then
32323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
32324 $as_echo "$OBJC" >&6; }
32325 else
32326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32327 $as_echo "no" >&6; }
32328 fi
32329 
32330 
32331     test -n "$OBJC" && break
32332   done
32333 fi
32334 if test -z "$OBJC"; then
32335   ac_ct_OBJC=$OBJC
32336   for ac_prog in gcc objcc objc cc CC
32337 do
32338   # Extract the first word of "$ac_prog", so it can be a program name with args.
32339 set dummy $ac_prog; ac_word=$2
32340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32341 $as_echo_n "checking for $ac_word... " >&6; }
32342 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
32343   $as_echo_n "(cached) " >&6
32344 else
32345   if test -n "$ac_ct_OBJC"; then
32346   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
32347 else
32348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32349 for as_dir in $PATH
32350 do
32351   IFS=$as_save_IFS
32352   test -z "$as_dir" && as_dir=.
32353     for ac_exec_ext in '' $ac_executable_extensions; do
32354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32355     ac_cv_prog_ac_ct_OBJC="$ac_prog"
32356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32357     break 2
32358   fi
32359 done
32360   done
32361 IFS=$as_save_IFS
32362 
32363 fi
32364 fi
32365 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
32366 if test -n "$ac_ct_OBJC"; then
32367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
32368 $as_echo "$ac_ct_OBJC" >&6; }
32369 else
32370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32371 $as_echo "no" >&6; }
32372 fi
32373 
32374 
32375   test -n "$ac_ct_OBJC" && break
32376 done
32377 
32378   if test "x$ac_ct_OBJC" = x; then
32379     OBJC="gcc"
32380   else
32381     case $cross_compiling:$ac_tool_warned in
32382 yes:)
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32385 ac_tool_warned=yes ;;
32386 esac
32387     OBJC=$ac_ct_OBJC
32388   fi
32389 fi
32390 
32391 # Provide some information about the compiler.
32392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
32393 set X $ac_compile
32394 ac_compiler=$2
32395 for ac_option in --version -v -V -qversion; do
32396   { { ac_try="$ac_compiler $ac_option >&5"
32397 case "(($ac_try" in
32398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399   *) ac_try_echo=$ac_try;;
32400 esac
32401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32402 $as_echo "$ac_try_echo"; } >&5
32403   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32404   ac_status=$?
32405   if test -s conftest.err; then
32406     sed '10a\
32407 ... rest of stderr output deleted ...
32408          10q' conftest.err >conftest.er1
32409     cat conftest.er1 >&5
32410   fi
32411   rm -f conftest.er1 conftest.err
32412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32413   test $ac_status = 0; }
32414 done
32415 
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
32417 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
32418 if ${ac_cv_objc_compiler_gnu+:} false; then :
32419   $as_echo_n "(cached) " >&6
32420 else
32421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32422 /* end confdefs.h.  */
32423 
32424 int
32425 main ()
32426 {
32427 #ifndef __GNUC__
32428        choke me
32429 #endif
32430 
32431   ;
32432   return 0;
32433 }
32434 _ACEOF
32435 if ac_fn_objc_try_compile "$LINENO"; then :
32436   ac_compiler_gnu=yes
32437 else
32438   ac_compiler_gnu=no
32439 fi
32440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
32442 
32443 fi
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
32445 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
32446 if test $ac_compiler_gnu = yes; then
32447   GOBJC=yes
32448 else
32449   GOBJC=
32450 fi
32451 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
32452 ac_save_OBJCFLAGS=$OBJCFLAGS
32453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
32454 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
32455 if ${ac_cv_prog_objc_g+:} false; then :
32456   $as_echo_n "(cached) " >&6
32457 else
32458   ac_save_objc_werror_flag=$ac_objc_werror_flag
32459    ac_objc_werror_flag=yes
32460    ac_cv_prog_objc_g=no
32461    OBJCFLAGS="-g"
32462    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32463 /* end confdefs.h.  */
32464 
32465 int
32466 main ()
32467 {
32468 
32469   ;
32470   return 0;
32471 }
32472 _ACEOF
32473 if ac_fn_objc_try_compile "$LINENO"; then :
32474   ac_cv_prog_objc_g=yes
32475 else
32476   OBJCFLAGS=""
32477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32478 /* end confdefs.h.  */
32479 
32480 int
32481 main ()
32482 {
32483 
32484   ;
32485   return 0;
32486 }
32487 _ACEOF
32488 if ac_fn_objc_try_compile "$LINENO"; then :
32489 
32490 else
32491   ac_objc_werror_flag=$ac_save_objc_werror_flag
32492          OBJCFLAGS="-g"
32493          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32494 /* end confdefs.h.  */
32495 
32496 int
32497 main ()
32498 {
32499 
32500   ;
32501   return 0;
32502 }
32503 _ACEOF
32504 if ac_fn_objc_try_compile "$LINENO"; then :
32505   ac_cv_prog_objc_g=yes
32506 fi
32507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32508 fi
32509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32510 fi
32511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32512    ac_objc_werror_flag=$ac_save_objc_werror_flag
32513 fi
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
32515 $as_echo "$ac_cv_prog_objc_g" >&6; }
32516 if test "$ac_test_OBJCFLAGS" = set; then
32517   OBJCFLAGS=$ac_save_OBJCFLAGS
32518 elif test $ac_cv_prog_objc_g = yes; then
32519   if test "$GOBJC" = yes; then
32520     OBJCFLAGS="-g -O2"
32521   else
32522     OBJCFLAGS="-g"
32523   fi
32524 else
32525   if test "$GOBJC" = yes; then
32526     OBJCFLAGS="-O2"
32527   else
32528     OBJCFLAGS=
32529   fi
32530 fi
32531 ac_ext=cpp
32532 ac_cpp='$CXXCPP $CPPFLAGS'
32533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536 
32537 
32538   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32539 
32540   # First separate the path from the arguments. This will split at the first
32541   # space.
32542   complete="$OBJC"
32543   path="${complete%% *}"
32544   tmp="$complete EOL"
32545   arguments="${tmp#* }"
32546 
32547   # Input might be given as Windows format, start by converting to
32548   # unix format.
32549   new_path=`$CYGPATH -u "$path"`
32550 
32551   # Now try to locate executable using which
32552   new_path=`$WHICH "$new_path" 2> /dev/null`
32553   # bat and cmd files are not always considered executable in cygwin causing which
32554   # to not find them
32555   if test "x$new_path" = x \
32556       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32557       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32558     new_path=`$CYGPATH -u "$path"`
32559   fi
32560   if test "x$new_path" = x; then
32561     # Oops. Which didn't find the executable.
32562     # The splitting of arguments from the executable at a space might have been incorrect,
32563     # since paths with space are more likely in Windows. Give it another try with the whole
32564     # argument.
32565     path="$complete"
32566     arguments="EOL"
32567     new_path=`$CYGPATH -u "$path"`
32568     new_path=`$WHICH "$new_path" 2> /dev/null`
32569     # bat and cmd files are not always considered executable in cygwin causing which
32570     # to not find them
32571     if test "x$new_path" = x \
32572         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32573         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32574       new_path=`$CYGPATH -u "$path"`
32575     fi
32576     if test "x$new_path" = x; then
32577       # It's still not found. Now this is an unrecoverable error.
32578       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
32579 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
32580       has_space=`$ECHO "$complete" | $GREP " "`
32581       if test "x$has_space" != x; then
32582         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32583 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32584       fi
32585       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32586     fi
32587   fi
32588 
32589   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
32590   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
32591   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
32592   # "foo.exe" is OK but "foo" is an error.
32593   #
32594   # This test is therefore slightly more accurate than "test -f" to check for file presence.
32595   # It is also a way to make sure we got the proper file name for the real test later on.
32596   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
32597   if test "x$test_shortpath" = x; then
32598     # Short path failed, file does not exist as specified.
32599     # Try adding .exe or .cmd
32600     if test -f "${new_path}.exe"; then
32601       input_to_shortpath="${new_path}.exe"
32602     elif test -f "${new_path}.cmd"; then
32603       input_to_shortpath="${new_path}.cmd"
32604     else
32605       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5
32606 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;}
32607       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
32608 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
32609       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32610     fi
32611   else
32612     input_to_shortpath="$new_path"
32613   fi
32614 
32615   # Call helper function which possibly converts this using DOS-style short mode.
32616   # If so, the updated path is stored in $new_path.
32617   new_path="$input_to_shortpath"
32618 
32619   input_path="$input_to_shortpath"
32620   # Check if we need to convert this using DOS-style short mode. If the path
32621   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32622   # take no chances and rewrite it.
32623   # Note: m4 eats our [], so we need to use [ and ] instead.
32624   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32625   if test "x$has_forbidden_chars" != x; then
32626     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32627     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32628     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32629     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32630       # Going to short mode and back again did indeed matter. Since short mode is
32631       # case insensitive, let's make it lowercase to improve readability.
32632       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32633       # Now convert it back to Unix-stile (cygpath)
32634       input_path=`$CYGPATH -u "$shortmode_path"`
32635       new_path="$input_path"
32636     fi
32637   fi
32638 
32639   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32640   if test "x$test_cygdrive_prefix" = x; then
32641     # As a simple fix, exclude /usr/bin since it's not a real path.
32642     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32643       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32644       # a path prefixed by /cygdrive for fixpath to work.
32645       new_path="$CYGWIN_ROOT_PATH$input_path"
32646     fi
32647   fi
32648 
32649   # remove trailing .exe if any
32650   new_path="${new_path/%.exe/}"
32651 
32652   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32653 
32654   # First separate the path from the arguments. This will split at the first
32655   # space.
32656   complete="$OBJC"
32657   path="${complete%% *}"
32658   tmp="$complete EOL"
32659   arguments="${tmp#* }"
32660 
32661   # Input might be given as Windows format, start by converting to
32662   # unix format.
32663   new_path="$path"
32664 
32665   windows_path="$new_path"
32666   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32667     unix_path=`$CYGPATH -u "$windows_path"`
32668     new_path="$unix_path"
32669   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32670     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32671     new_path="$unix_path"
32672   fi
32673 
32674 
32675   # Now try to locate executable using which
32676   new_path=`$WHICH "$new_path" 2> /dev/null`
32677 
32678   if test "x$new_path" = x; then
32679     # Oops. Which didn't find the executable.
32680     # The splitting of arguments from the executable at a space might have been incorrect,
32681     # since paths with space are more likely in Windows. Give it another try with the whole
32682     # argument.
32683     path="$complete"
32684     arguments="EOL"
32685     new_path="$path"
32686 
32687   windows_path="$new_path"
32688   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32689     unix_path=`$CYGPATH -u "$windows_path"`
32690     new_path="$unix_path"
32691   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32692     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32693     new_path="$unix_path"
32694   fi
32695 
32696 
32697     new_path=`$WHICH "$new_path" 2> /dev/null`
32698 
32699     if test "x$new_path" = x; then
32700       # It's still not found. Now this is an unrecoverable error.
32701       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
32702 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
32703       has_space=`$ECHO "$complete" | $GREP " "`
32704       if test "x$has_space" != x; then
32705         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32706 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32707       fi
32708       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32709     fi
32710   fi
32711 
32712   # Now new_path has a complete unix path to the binary
32713   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32714     # Keep paths in /bin as-is, but remove trailing .exe if any
32715     new_path="${new_path/%.exe/}"
32716     # Do not save /bin paths to all_fixpath_prefixes!
32717   else
32718     # Not in mixed or Windows style, start by that.
32719     new_path=`cmd //c echo $new_path`
32720 
32721   input_path="$new_path"
32722   # Check if we need to convert this using DOS-style short mode. If the path
32723   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32724   # take no chances and rewrite it.
32725   # Note: m4 eats our [], so we need to use [ and ] instead.
32726   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32727   if test "x$has_forbidden_chars" != x; then
32728     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32729     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32730   fi
32731 
32732     # Output is in $new_path
32733 
32734   windows_path="$new_path"
32735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32736     unix_path=`$CYGPATH -u "$windows_path"`
32737     new_path="$unix_path"
32738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32740     new_path="$unix_path"
32741   fi
32742 
32743     # remove trailing .exe if any
32744     new_path="${new_path/%.exe/}"
32745 
32746     # Save the first 10 bytes of this path to the storage, so fixpath can work.
32747     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32748   fi
32749 
32750   else
32751     # We're on a posix platform. Hooray! :)
32752     # First separate the path from the arguments. This will split at the first
32753     # space.
32754     complete="$OBJC"
32755     path="${complete%% *}"
32756     tmp="$complete EOL"
32757     arguments="${tmp#* }"
32758 
32759     # Cannot rely on the command "which" here since it doesn't always work.
32760     is_absolute_path=`$ECHO "$path" | $GREP ^/`
32761     if test -z "$is_absolute_path"; then
32762       # Path to executable is not absolute. Find it.
32763       IFS_save="$IFS"
32764       IFS=:
32765       for p in $PATH; do
32766         if test -f "$p/$path" && test -x "$p/$path"; then
32767           new_path="$p/$path"
32768           break
32769         fi
32770       done
32771       IFS="$IFS_save"
32772     else
32773       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJC (as $path) failed, using $path directly." >&5
32774 $as_echo "$as_me: Resolving OBJC (as $path) failed, using $path directly." >&6;}
32775       new_path="$path"
32776     fi
32777 
32778     if test "x$new_path" = x; then
32779       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
32780 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
32781       has_space=`$ECHO "$complete" | $GREP " "`
32782       if test "x$has_space" != x; then
32783         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32784 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32785       fi
32786       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32787     fi
32788   fi
32789 
32790   # Now join together the path and the arguments once again
32791   if test "x$arguments" != xEOL; then
32792     new_complete="$new_path ${arguments% *}"
32793   else
32794     new_complete="$new_path"
32795   fi
32796 
32797   if test "x$complete" != "x$new_complete"; then
32798     OBJC="$new_complete"
32799     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5
32800 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;}
32801   fi
32802 
32803   else
32804     OBJC=
32805   fi
32806 
32807   # Restore the flags to the user specified values.
32808   # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
32809   CFLAGS="$ORG_CFLAGS"
32810   CXXFLAGS="$ORG_CXXFLAGS"
32811   OBJCFLAGS="$ORG_OBJCFLAGS"
32812 
32813   LD="$CC"
32814   LDEXE="$CC"
32815   LDCXX="$CXX"
32816   LDEXECXX="$CXX"
32817 
32818   # LDEXE is the linker to use, when creating executables.
32819 
32820   # Linking C++ libraries.
32821 
32822   # Linking C++ executables.
32823 
32824 
32825   if test "x$OPENJDK_TARGET_OS" != xwindows; then
32826 
32827 
32828   # Publish this variable in the help.
32829 
32830 
32831   if test "x$AR" = x; then
32832     # The variable is not set by user, try to locate tool using the code snippet
32833     if test -n "$ac_tool_prefix"; then
32834   for ac_prog in ar
32835   do
32836     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32839 $as_echo_n "checking for $ac_word... " >&6; }
32840 if ${ac_cv_prog_AR+:} false; then :
32841   $as_echo_n "(cached) " >&6
32842 else
32843   if test -n "$AR"; then
32844   ac_cv_prog_AR="$AR" # Let the user override the test.
32845 else
32846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32847 for as_dir in $PATH
32848 do
32849   IFS=$as_save_IFS
32850   test -z "$as_dir" && as_dir=.
32851     for ac_exec_ext in '' $ac_executable_extensions; do
32852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32853     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32855     break 2
32856   fi
32857 done
32858   done
32859 IFS=$as_save_IFS
32860 
32861 fi
32862 fi
32863 AR=$ac_cv_prog_AR
32864 if test -n "$AR"; then
32865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32866 $as_echo "$AR" >&6; }
32867 else
32868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32869 $as_echo "no" >&6; }
32870 fi
32871 
32872 
32873     test -n "$AR" && break
32874   done
32875 fi
32876 if test -z "$AR"; then
32877   ac_ct_AR=$AR
32878   for ac_prog in ar
32879 do
32880   # Extract the first word of "$ac_prog", so it can be a program name with args.
32881 set dummy $ac_prog; ac_word=$2
32882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32883 $as_echo_n "checking for $ac_word... " >&6; }
32884 if ${ac_cv_prog_ac_ct_AR+:} false; then :
32885   $as_echo_n "(cached) " >&6
32886 else
32887   if test -n "$ac_ct_AR"; then
32888   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
32889 else
32890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32891 for as_dir in $PATH
32892 do
32893   IFS=$as_save_IFS
32894   test -z "$as_dir" && as_dir=.
32895     for ac_exec_ext in '' $ac_executable_extensions; do
32896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32897     ac_cv_prog_ac_ct_AR="$ac_prog"
32898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32899     break 2
32900   fi
32901 done
32902   done
32903 IFS=$as_save_IFS
32904 
32905 fi
32906 fi
32907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
32908 if test -n "$ac_ct_AR"; then
32909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
32910 $as_echo "$ac_ct_AR" >&6; }
32911 else
32912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32913 $as_echo "no" >&6; }
32914 fi
32915 
32916 
32917   test -n "$ac_ct_AR" && break
32918 done
32919 
32920   if test "x$ac_ct_AR" = x; then
32921     AR=""
32922   else
32923     case $cross_compiling:$ac_tool_warned in
32924 yes:)
32925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32927 ac_tool_warned=yes ;;
32928 esac
32929     AR=$ac_ct_AR
32930   fi
32931 fi
32932 
32933   else
32934     # The variable is set, but is it from the command line or the environment?
32935 
32936     # Try to remove the string !AR! from our list.
32937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/}
32938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
32939       # If it failed, the variable was not from the command line. Ignore it,
32940       # but warn the user (except for BASH, which is always set by the calling BASH).
32941       if test "xAR" != xBASH; then
32942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5
32943 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;}
32944       fi
32945       # Try to locate tool using the code snippet
32946       if test -n "$ac_tool_prefix"; then
32947   for ac_prog in ar
32948   do
32949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32952 $as_echo_n "checking for $ac_word... " >&6; }
32953 if ${ac_cv_prog_AR+:} false; then :
32954   $as_echo_n "(cached) " >&6
32955 else
32956   if test -n "$AR"; then
32957   ac_cv_prog_AR="$AR" # Let the user override the test.
32958 else
32959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32960 for as_dir in $PATH
32961 do
32962   IFS=$as_save_IFS
32963   test -z "$as_dir" && as_dir=.
32964     for ac_exec_ext in '' $ac_executable_extensions; do
32965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32966     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32968     break 2
32969   fi
32970 done
32971   done
32972 IFS=$as_save_IFS
32973 
32974 fi
32975 fi
32976 AR=$ac_cv_prog_AR
32977 if test -n "$AR"; then
32978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32979 $as_echo "$AR" >&6; }
32980 else
32981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32982 $as_echo "no" >&6; }
32983 fi
32984 
32985 
32986     test -n "$AR" && break
32987   done
32988 fi
32989 if test -z "$AR"; then
32990   ac_ct_AR=$AR
32991   for ac_prog in ar
32992 do
32993   # Extract the first word of "$ac_prog", so it can be a program name with args.
32994 set dummy $ac_prog; ac_word=$2
32995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32996 $as_echo_n "checking for $ac_word... " >&6; }
32997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
32998   $as_echo_n "(cached) " >&6
32999 else
33000   if test -n "$ac_ct_AR"; then
33001   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
33002 else
33003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004 for as_dir in $PATH
33005 do
33006   IFS=$as_save_IFS
33007   test -z "$as_dir" && as_dir=.
33008     for ac_exec_ext in '' $ac_executable_extensions; do
33009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33010     ac_cv_prog_ac_ct_AR="$ac_prog"
33011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33012     break 2
33013   fi
33014 done
33015   done
33016 IFS=$as_save_IFS
33017 
33018 fi
33019 fi
33020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
33021 if test -n "$ac_ct_AR"; then
33022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
33023 $as_echo "$ac_ct_AR" >&6; }
33024 else
33025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33026 $as_echo "no" >&6; }
33027 fi
33028 
33029 
33030   test -n "$ac_ct_AR" && break
33031 done
33032 
33033   if test "x$ac_ct_AR" = x; then
33034     AR=""
33035   else
33036     case $cross_compiling:$ac_tool_warned in
33037 yes:)
33038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33040 ac_tool_warned=yes ;;
33041 esac
33042     AR=$ac_ct_AR
33043   fi
33044 fi
33045 
33046     else
33047       # If it succeeded, then it was overridden by the user. We will use it
33048       # for the tool.
33049 
33050       # First remove it from the list of overridden variables, so we can test
33051       # for unknown variables in the end.
33052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
33053 
33054       # Check if the provided tool contains a complete path.
33055       tool_specified="$AR"
33056       tool_basename="${tool_specified##*/}"
33057       if test "x$tool_basename" = "x$tool_specified"; then
33058         # A command without a complete path is provided, search $PATH.
33059         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5
33060 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;}
33061         # Extract the first word of "$tool_basename", so it can be a program name with args.
33062 set dummy $tool_basename; ac_word=$2
33063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33064 $as_echo_n "checking for $ac_word... " >&6; }
33065 if ${ac_cv_path_AR+:} false; then :
33066   $as_echo_n "(cached) " >&6
33067 else
33068   case $AR in
33069   [\\/]* | ?:[\\/]*)
33070   ac_cv_path_AR="$AR" # Let the user override the test with a path.
33071   ;;
33072   *)
33073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33074 for as_dir in $PATH
33075 do
33076   IFS=$as_save_IFS
33077   test -z "$as_dir" && as_dir=.
33078     for ac_exec_ext in '' $ac_executable_extensions; do
33079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33080     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
33081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33082     break 2
33083   fi
33084 done
33085   done
33086 IFS=$as_save_IFS
33087 
33088   ;;
33089 esac
33090 fi
33091 AR=$ac_cv_path_AR
33092 if test -n "$AR"; then
33093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
33094 $as_echo "$AR" >&6; }
33095 else
33096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33097 $as_echo "no" >&6; }
33098 fi
33099 
33100 
33101         if test "x$AR" = x; then
33102           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
33103         fi
33104       else
33105         # Otherwise we believe it is a complete path. Use it as it is.
33106         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5
33107 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;}
33108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5
33109 $as_echo_n "checking for AR... " >&6; }
33110         if test ! -x "$tool_specified"; then
33111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
33112 $as_echo "not found" >&6; }
33113           as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5
33114         fi
33115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
33116 $as_echo "$tool_specified" >&6; }
33117       fi
33118     fi
33119   fi
33120 
33121 
33122 
33123   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33124 
33125   # First separate the path from the arguments. This will split at the first
33126   # space.
33127   complete="$AR"
33128   path="${complete%% *}"
33129   tmp="$complete EOL"
33130   arguments="${tmp#* }"
33131 
33132   # Input might be given as Windows format, start by converting to
33133   # unix format.
33134   new_path=`$CYGPATH -u "$path"`
33135 
33136   # Now try to locate executable using which
33137   new_path=`$WHICH "$new_path" 2> /dev/null`
33138   # bat and cmd files are not always considered executable in cygwin causing which
33139   # to not find them
33140   if test "x$new_path" = x \
33141       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33142       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33143     new_path=`$CYGPATH -u "$path"`
33144   fi
33145   if test "x$new_path" = x; then
33146     # Oops. Which didn't find the executable.
33147     # The splitting of arguments from the executable at a space might have been incorrect,
33148     # since paths with space are more likely in Windows. Give it another try with the whole
33149     # argument.
33150     path="$complete"
33151     arguments="EOL"
33152     new_path=`$CYGPATH -u "$path"`
33153     new_path=`$WHICH "$new_path" 2> /dev/null`
33154     # bat and cmd files are not always considered executable in cygwin causing which
33155     # to not find them
33156     if test "x$new_path" = x \
33157         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33158         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33159       new_path=`$CYGPATH -u "$path"`
33160     fi
33161     if test "x$new_path" = x; then
33162       # It's still not found. Now this is an unrecoverable error.
33163       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
33164 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
33165       has_space=`$ECHO "$complete" | $GREP " "`
33166       if test "x$has_space" != x; then
33167         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33168 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33169       fi
33170       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33171     fi
33172   fi
33173 
33174   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33175   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33176   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33177   # "foo.exe" is OK but "foo" is an error.
33178   #
33179   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33180   # It is also a way to make sure we got the proper file name for the real test later on.
33181   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33182   if test "x$test_shortpath" = x; then
33183     # Short path failed, file does not exist as specified.
33184     # Try adding .exe or .cmd
33185     if test -f "${new_path}.exe"; then
33186       input_to_shortpath="${new_path}.exe"
33187     elif test -f "${new_path}.cmd"; then
33188       input_to_shortpath="${new_path}.cmd"
33189     else
33190       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5
33191 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;}
33192       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33193 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33194       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33195     fi
33196   else
33197     input_to_shortpath="$new_path"
33198   fi
33199 
33200   # Call helper function which possibly converts this using DOS-style short mode.
33201   # If so, the updated path is stored in $new_path.
33202   new_path="$input_to_shortpath"
33203 
33204   input_path="$input_to_shortpath"
33205   # Check if we need to convert this using DOS-style short mode. If the path
33206   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33207   # take no chances and rewrite it.
33208   # Note: m4 eats our [], so we need to use [ and ] instead.
33209   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33210   if test "x$has_forbidden_chars" != x; then
33211     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33212     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33213     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33214     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33215       # Going to short mode and back again did indeed matter. Since short mode is
33216       # case insensitive, let's make it lowercase to improve readability.
33217       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33218       # Now convert it back to Unix-stile (cygpath)
33219       input_path=`$CYGPATH -u "$shortmode_path"`
33220       new_path="$input_path"
33221     fi
33222   fi
33223 
33224   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33225   if test "x$test_cygdrive_prefix" = x; then
33226     # As a simple fix, exclude /usr/bin since it's not a real path.
33227     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33228       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33229       # a path prefixed by /cygdrive for fixpath to work.
33230       new_path="$CYGWIN_ROOT_PATH$input_path"
33231     fi
33232   fi
33233 
33234   # remove trailing .exe if any
33235   new_path="${new_path/%.exe/}"
33236 
33237   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33238 
33239   # First separate the path from the arguments. This will split at the first
33240   # space.
33241   complete="$AR"
33242   path="${complete%% *}"
33243   tmp="$complete EOL"
33244   arguments="${tmp#* }"
33245 
33246   # Input might be given as Windows format, start by converting to
33247   # unix format.
33248   new_path="$path"
33249 
33250   windows_path="$new_path"
33251   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33252     unix_path=`$CYGPATH -u "$windows_path"`
33253     new_path="$unix_path"
33254   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33255     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33256     new_path="$unix_path"
33257   fi
33258 
33259 
33260   # Now try to locate executable using which
33261   new_path=`$WHICH "$new_path" 2> /dev/null`
33262 
33263   if test "x$new_path" = x; then
33264     # Oops. Which didn't find the executable.
33265     # The splitting of arguments from the executable at a space might have been incorrect,
33266     # since paths with space are more likely in Windows. Give it another try with the whole
33267     # argument.
33268     path="$complete"
33269     arguments="EOL"
33270     new_path="$path"
33271 
33272   windows_path="$new_path"
33273   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33274     unix_path=`$CYGPATH -u "$windows_path"`
33275     new_path="$unix_path"
33276   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33277     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33278     new_path="$unix_path"
33279   fi
33280 
33281 
33282     new_path=`$WHICH "$new_path" 2> /dev/null`
33283 
33284     if test "x$new_path" = x; then
33285       # It's still not found. Now this is an unrecoverable error.
33286       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
33287 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
33288       has_space=`$ECHO "$complete" | $GREP " "`
33289       if test "x$has_space" != x; then
33290         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33292       fi
33293       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33294     fi
33295   fi
33296 
33297   # Now new_path has a complete unix path to the binary
33298   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33299     # Keep paths in /bin as-is, but remove trailing .exe if any
33300     new_path="${new_path/%.exe/}"
33301     # Do not save /bin paths to all_fixpath_prefixes!
33302   else
33303     # Not in mixed or Windows style, start by that.
33304     new_path=`cmd //c echo $new_path`
33305 
33306   input_path="$new_path"
33307   # Check if we need to convert this using DOS-style short mode. If the path
33308   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33309   # take no chances and rewrite it.
33310   # Note: m4 eats our [], so we need to use [ and ] instead.
33311   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33312   if test "x$has_forbidden_chars" != x; then
33313     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33314     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33315   fi
33316 
33317     # Output is in $new_path
33318 
33319   windows_path="$new_path"
33320   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33321     unix_path=`$CYGPATH -u "$windows_path"`
33322     new_path="$unix_path"
33323   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33324     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33325     new_path="$unix_path"
33326   fi
33327 
33328     # remove trailing .exe if any
33329     new_path="${new_path/%.exe/}"
33330 
33331     # Save the first 10 bytes of this path to the storage, so fixpath can work.
33332     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33333   fi
33334 
33335   else
33336     # We're on a posix platform. Hooray! :)
33337     # First separate the path from the arguments. This will split at the first
33338     # space.
33339     complete="$AR"
33340     path="${complete%% *}"
33341     tmp="$complete EOL"
33342     arguments="${tmp#* }"
33343 
33344     # Cannot rely on the command "which" here since it doesn't always work.
33345     is_absolute_path=`$ECHO "$path" | $GREP ^/`
33346     if test -z "$is_absolute_path"; then
33347       # Path to executable is not absolute. Find it.
33348       IFS_save="$IFS"
33349       IFS=:
33350       for p in $PATH; do
33351         if test -f "$p/$path" && test -x "$p/$path"; then
33352           new_path="$p/$path"
33353           break
33354         fi
33355       done
33356       IFS="$IFS_save"
33357     else
33358       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AR (as $path) failed, using $path directly." >&5
33359 $as_echo "$as_me: Resolving AR (as $path) failed, using $path directly." >&6;}
33360       new_path="$path"
33361     fi
33362 
33363     if test "x$new_path" = x; then
33364       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
33365 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
33366       has_space=`$ECHO "$complete" | $GREP " "`
33367       if test "x$has_space" != x; then
33368         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33369 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33370       fi
33371       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33372     fi
33373   fi
33374 
33375   # Now join together the path and the arguments once again
33376   if test "x$arguments" != xEOL; then
33377     new_complete="$new_path ${arguments% *}"
33378   else
33379     new_complete="$new_path"
33380   fi
33381 
33382   if test "x$complete" != "x$new_complete"; then
33383     AR="$new_complete"
33384     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
33385 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
33386   fi
33387 
33388   fi
33389   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
33390     ARFLAGS="-r"
33391   elif test "x$OPENJDK_TARGET_OS" = xaix; then
33392     ARFLAGS="-X64"
33393   else
33394     ARFLAGS=""
33395   fi
33396 
33397 
33398   # For hotspot, we need these in Windows mixed path; other platforms keep them the same
33399   HOTSPOT_CXX="$CXX"
33400   HOTSPOT_LD="$LD"
33401 
33402 
33403 
33404   COMPILER_NAME=gcc
33405   COMPILER_TYPE=CC
33406   if test "x$OPENJDK_TARGET_OS" = xwindows; then :
33407 
33408     # For now, assume that we are always compiling using cl.exe.
33409     CC_OUT_OPTION=-Fo
33410     EXE_OUT_OPTION=-out:
33411     LD_OUT_OPTION=-out:
33412     AR_OUT_OPTION=-out:
33413     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
33414     # program for something completely different.
33415     # Extract the first word of "link", so it can be a program name with args.
33416 set dummy link; ac_word=$2
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33418 $as_echo_n "checking for $ac_word... " >&6; }
33419 if ${ac_cv_prog_WINLD+:} false; then :
33420   $as_echo_n "(cached) " >&6
33421 else
33422   if test -n "$WINLD"; then
33423   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
33424 else
33425   ac_prog_rejected=no
33426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33427 for as_dir in $PATH
33428 do
33429   IFS=$as_save_IFS
33430   test -z "$as_dir" && as_dir=.
33431     for ac_exec_ext in '' $ac_executable_extensions; do
33432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33433     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
33434        ac_prog_rejected=yes
33435        continue
33436      fi
33437     ac_cv_prog_WINLD="link"
33438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33439     break 2
33440   fi
33441 done
33442   done
33443 IFS=$as_save_IFS
33444 
33445 if test $ac_prog_rejected = yes; then
33446   # We found a bogon in the path, so make sure we never use it.
33447   set dummy $ac_cv_prog_WINLD
33448   shift
33449   if test $# != 0; then
33450     # We chose a different compiler from the bogus one.
33451     # However, it has the same basename, so the bogon will be chosen
33452     # first if we set WINLD to just the basename; use the full file name.
33453     shift
33454     ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
33455   fi
33456 fi
33457 fi
33458 fi
33459 WINLD=$ac_cv_prog_WINLD
33460 if test -n "$WINLD"; then
33461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
33462 $as_echo "$WINLD" >&6; }
33463 else
33464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33465 $as_echo "no" >&6; }
33466 fi
33467 
33468 
33469     # Since we must ignore the first found link, WINLD will contain
33470     # the full path to the link.exe program.
33471 
33472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33473 
33474   # First separate the path from the arguments. This will split at the first
33475   # space.
33476   complete="$WINLD"
33477   path="${complete%% *}"
33478   tmp="$complete EOL"
33479   arguments="${tmp#* }"
33480 
33481   # Input might be given as Windows format, start by converting to
33482   # unix format.
33483   new_path=`$CYGPATH -u "$path"`
33484 
33485   # Now try to locate executable using which
33486   new_path=`$WHICH "$new_path" 2> /dev/null`
33487   # bat and cmd files are not always considered executable in cygwin causing which
33488   # to not find them
33489   if test "x$new_path" = x \
33490       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33491       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33492     new_path=`$CYGPATH -u "$path"`
33493   fi
33494   if test "x$new_path" = x; then
33495     # Oops. Which didn't find the executable.
33496     # The splitting of arguments from the executable at a space might have been incorrect,
33497     # since paths with space are more likely in Windows. Give it another try with the whole
33498     # argument.
33499     path="$complete"
33500     arguments="EOL"
33501     new_path=`$CYGPATH -u "$path"`
33502     new_path=`$WHICH "$new_path" 2> /dev/null`
33503     # bat and cmd files are not always considered executable in cygwin causing which
33504     # to not find them
33505     if test "x$new_path" = x \
33506         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33507         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33508       new_path=`$CYGPATH -u "$path"`
33509     fi
33510     if test "x$new_path" = x; then
33511       # It's still not found. Now this is an unrecoverable error.
33512       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
33513 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
33514       has_space=`$ECHO "$complete" | $GREP " "`
33515       if test "x$has_space" != x; then
33516         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33517 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33518       fi
33519       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33520     fi
33521   fi
33522 
33523   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33524   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33525   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33526   # "foo.exe" is OK but "foo" is an error.
33527   #
33528   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33529   # It is also a way to make sure we got the proper file name for the real test later on.
33530   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33531   if test "x$test_shortpath" = x; then
33532     # Short path failed, file does not exist as specified.
33533     # Try adding .exe or .cmd
33534     if test -f "${new_path}.exe"; then
33535       input_to_shortpath="${new_path}.exe"
33536     elif test -f "${new_path}.cmd"; then
33537       input_to_shortpath="${new_path}.cmd"
33538     else
33539       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$new_path\", is invalid." >&5
33540 $as_echo "$as_me: The path of WINLD, which resolves as \"$new_path\", is invalid." >&6;}
33541       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33542 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33543       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33544     fi
33545   else
33546     input_to_shortpath="$new_path"
33547   fi
33548 
33549   # Call helper function which possibly converts this using DOS-style short mode.
33550   # If so, the updated path is stored in $new_path.
33551   new_path="$input_to_shortpath"
33552 
33553   input_path="$input_to_shortpath"
33554   # Check if we need to convert this using DOS-style short mode. If the path
33555   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33556   # take no chances and rewrite it.
33557   # Note: m4 eats our [], so we need to use [ and ] instead.
33558   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33559   if test "x$has_forbidden_chars" != x; then
33560     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33561     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33562     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33563     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33564       # Going to short mode and back again did indeed matter. Since short mode is
33565       # case insensitive, let's make it lowercase to improve readability.
33566       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33567       # Now convert it back to Unix-stile (cygpath)
33568       input_path=`$CYGPATH -u "$shortmode_path"`
33569       new_path="$input_path"
33570     fi
33571   fi
33572 
33573   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33574   if test "x$test_cygdrive_prefix" = x; then
33575     # As a simple fix, exclude /usr/bin since it's not a real path.
33576     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33577       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33578       # a path prefixed by /cygdrive for fixpath to work.
33579       new_path="$CYGWIN_ROOT_PATH$input_path"
33580     fi
33581   fi
33582 
33583   # remove trailing .exe if any
33584   new_path="${new_path/%.exe/}"
33585 
33586   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33587 
33588   # First separate the path from the arguments. This will split at the first
33589   # space.
33590   complete="$WINLD"
33591   path="${complete%% *}"
33592   tmp="$complete EOL"
33593   arguments="${tmp#* }"
33594 
33595   # Input might be given as Windows format, start by converting to
33596   # unix format.
33597   new_path="$path"
33598 
33599   windows_path="$new_path"
33600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33601     unix_path=`$CYGPATH -u "$windows_path"`
33602     new_path="$unix_path"
33603   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33604     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33605     new_path="$unix_path"
33606   fi
33607 
33608 
33609   # Now try to locate executable using which
33610   new_path=`$WHICH "$new_path" 2> /dev/null`
33611 
33612   if test "x$new_path" = x; then
33613     # Oops. Which didn't find the executable.
33614     # The splitting of arguments from the executable at a space might have been incorrect,
33615     # since paths with space are more likely in Windows. Give it another try with the whole
33616     # argument.
33617     path="$complete"
33618     arguments="EOL"
33619     new_path="$path"
33620 
33621   windows_path="$new_path"
33622   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33623     unix_path=`$CYGPATH -u "$windows_path"`
33624     new_path="$unix_path"
33625   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33626     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33627     new_path="$unix_path"
33628   fi
33629 
33630 
33631     new_path=`$WHICH "$new_path" 2> /dev/null`
33632 
33633     if test "x$new_path" = x; then
33634       # It's still not found. Now this is an unrecoverable error.
33635       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
33636 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
33637       has_space=`$ECHO "$complete" | $GREP " "`
33638       if test "x$has_space" != x; then
33639         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33641       fi
33642       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33643     fi
33644   fi
33645 
33646   # Now new_path has a complete unix path to the binary
33647   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33648     # Keep paths in /bin as-is, but remove trailing .exe if any
33649     new_path="${new_path/%.exe/}"
33650     # Do not save /bin paths to all_fixpath_prefixes!
33651   else
33652     # Not in mixed or Windows style, start by that.
33653     new_path=`cmd //c echo $new_path`
33654 
33655   input_path="$new_path"
33656   # Check if we need to convert this using DOS-style short mode. If the path
33657   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33658   # take no chances and rewrite it.
33659   # Note: m4 eats our [], so we need to use [ and ] instead.
33660   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33661   if test "x$has_forbidden_chars" != x; then
33662     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33663     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33664   fi
33665 
33666     # Output is in $new_path
33667 
33668   windows_path="$new_path"
33669   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33670     unix_path=`$CYGPATH -u "$windows_path"`
33671     new_path="$unix_path"
33672   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33673     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33674     new_path="$unix_path"
33675   fi
33676 
33677     # remove trailing .exe if any
33678     new_path="${new_path/%.exe/}"
33679 
33680     # Save the first 10 bytes of this path to the storage, so fixpath can work.
33681     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33682   fi
33683 
33684   else
33685     # We're on a posix platform. Hooray! :)
33686     # First separate the path from the arguments. This will split at the first
33687     # space.
33688     complete="$WINLD"
33689     path="${complete%% *}"
33690     tmp="$complete EOL"
33691     arguments="${tmp#* }"
33692 
33693     # Cannot rely on the command "which" here since it doesn't always work.
33694     is_absolute_path=`$ECHO "$path" | $GREP ^/`
33695     if test -z "$is_absolute_path"; then
33696       # Path to executable is not absolute. Find it.
33697       IFS_save="$IFS"
33698       IFS=:
33699       for p in $PATH; do
33700         if test -f "$p/$path" && test -x "$p/$path"; then
33701           new_path="$p/$path"
33702           break
33703         fi
33704       done
33705       IFS="$IFS_save"
33706     else
33707       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINLD (as $path) failed, using $path directly." >&5
33708 $as_echo "$as_me: Resolving WINLD (as $path) failed, using $path directly." >&6;}
33709       new_path="$path"
33710     fi
33711 
33712     if test "x$new_path" = x; then
33713       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
33714 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
33715       has_space=`$ECHO "$complete" | $GREP " "`
33716       if test "x$has_space" != x; then
33717         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33718 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33719       fi
33720       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33721     fi
33722   fi
33723 
33724   # Now join together the path and the arguments once again
33725   if test "x$arguments" != xEOL; then
33726     new_complete="$new_path ${arguments% *}"
33727   else
33728     new_complete="$new_path"
33729   fi
33730 
33731   if test "x$complete" != "x$new_complete"; then
33732     WINLD="$new_complete"
33733     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINLD to \"$new_complete\"" >&5
33734 $as_echo "$as_me: Rewriting WINLD to \"$new_complete\"" >&6;}
33735   fi
33736 
33737     printf "Windows linker was found at $WINLD\n"
33738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
33739 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
33740     "$WINLD" --version > /dev/null
33741     if test $? -eq 0 ; then
33742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33743 $as_echo "no" >&6; }
33744       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
33745     else
33746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33747 $as_echo "yes" >&6; }
33748     fi
33749     LD="$WINLD"
33750     LDEXE="$WINLD"
33751     LDCXX="$WINLD"
33752     LDEXECXX="$WINLD"
33753 
33754     # Extract the first word of "mt", so it can be a program name with args.
33755 set dummy mt; ac_word=$2
33756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33757 $as_echo_n "checking for $ac_word... " >&6; }
33758 if ${ac_cv_prog_MT+:} false; then :
33759   $as_echo_n "(cached) " >&6
33760 else
33761   if test -n "$MT"; then
33762   ac_cv_prog_MT="$MT" # Let the user override the test.
33763 else
33764   ac_prog_rejected=no
33765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33766 for as_dir in $PATH
33767 do
33768   IFS=$as_save_IFS
33769   test -z "$as_dir" && as_dir=.
33770     for ac_exec_ext in '' $ac_executable_extensions; do
33771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33772     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
33773        ac_prog_rejected=yes
33774        continue
33775      fi
33776     ac_cv_prog_MT="mt"
33777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33778     break 2
33779   fi
33780 done
33781   done
33782 IFS=$as_save_IFS
33783 
33784 if test $ac_prog_rejected = yes; then
33785   # We found a bogon in the path, so make sure we never use it.
33786   set dummy $ac_cv_prog_MT
33787   shift
33788   if test $# != 0; then
33789     # We chose a different compiler from the bogus one.
33790     # However, it has the same basename, so the bogon will be chosen
33791     # first if we set MT to just the basename; use the full file name.
33792     shift
33793     ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
33794   fi
33795 fi
33796 fi
33797 fi
33798 MT=$ac_cv_prog_MT
33799 if test -n "$MT"; then
33800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
33801 $as_echo "$MT" >&6; }
33802 else
33803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33804 $as_echo "no" >&6; }
33805 fi
33806 
33807 
33808 
33809   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33810 
33811   # First separate the path from the arguments. This will split at the first
33812   # space.
33813   complete="$MT"
33814   path="${complete%% *}"
33815   tmp="$complete EOL"
33816   arguments="${tmp#* }"
33817 
33818   # Input might be given as Windows format, start by converting to
33819   # unix format.
33820   new_path=`$CYGPATH -u "$path"`
33821 
33822   # Now try to locate executable using which
33823   new_path=`$WHICH "$new_path" 2> /dev/null`
33824   # bat and cmd files are not always considered executable in cygwin causing which
33825   # to not find them
33826   if test "x$new_path" = x \
33827       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33828       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33829     new_path=`$CYGPATH -u "$path"`
33830   fi
33831   if test "x$new_path" = x; then
33832     # Oops. Which didn't find the executable.
33833     # The splitting of arguments from the executable at a space might have been incorrect,
33834     # since paths with space are more likely in Windows. Give it another try with the whole
33835     # argument.
33836     path="$complete"
33837     arguments="EOL"
33838     new_path=`$CYGPATH -u "$path"`
33839     new_path=`$WHICH "$new_path" 2> /dev/null`
33840     # bat and cmd files are not always considered executable in cygwin causing which
33841     # to not find them
33842     if test "x$new_path" = x \
33843         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33844         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33845       new_path=`$CYGPATH -u "$path"`
33846     fi
33847     if test "x$new_path" = x; then
33848       # It's still not found. Now this is an unrecoverable error.
33849       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
33850 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
33851       has_space=`$ECHO "$complete" | $GREP " "`
33852       if test "x$has_space" != x; then
33853         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33855       fi
33856       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33857     fi
33858   fi
33859 
33860   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33861   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33862   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33863   # "foo.exe" is OK but "foo" is an error.
33864   #
33865   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33866   # It is also a way to make sure we got the proper file name for the real test later on.
33867   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33868   if test "x$test_shortpath" = x; then
33869     # Short path failed, file does not exist as specified.
33870     # Try adding .exe or .cmd
33871     if test -f "${new_path}.exe"; then
33872       input_to_shortpath="${new_path}.exe"
33873     elif test -f "${new_path}.cmd"; then
33874       input_to_shortpath="${new_path}.cmd"
33875     else
33876       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5
33877 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;}
33878       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33879 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33880       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33881     fi
33882   else
33883     input_to_shortpath="$new_path"
33884   fi
33885 
33886   # Call helper function which possibly converts this using DOS-style short mode.
33887   # If so, the updated path is stored in $new_path.
33888   new_path="$input_to_shortpath"
33889 
33890   input_path="$input_to_shortpath"
33891   # Check if we need to convert this using DOS-style short mode. If the path
33892   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33893   # take no chances and rewrite it.
33894   # Note: m4 eats our [], so we need to use [ and ] instead.
33895   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33896   if test "x$has_forbidden_chars" != x; then
33897     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33898     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33899     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33900     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33901       # Going to short mode and back again did indeed matter. Since short mode is
33902       # case insensitive, let's make it lowercase to improve readability.
33903       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33904       # Now convert it back to Unix-stile (cygpath)
33905       input_path=`$CYGPATH -u "$shortmode_path"`
33906       new_path="$input_path"
33907     fi
33908   fi
33909 
33910   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33911   if test "x$test_cygdrive_prefix" = x; then
33912     # As a simple fix, exclude /usr/bin since it's not a real path.
33913     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33914       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33915       # a path prefixed by /cygdrive for fixpath to work.
33916       new_path="$CYGWIN_ROOT_PATH$input_path"
33917     fi
33918   fi
33919 
33920   # remove trailing .exe if any
33921   new_path="${new_path/%.exe/}"
33922 
33923   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33924 
33925   # First separate the path from the arguments. This will split at the first
33926   # space.
33927   complete="$MT"
33928   path="${complete%% *}"
33929   tmp="$complete EOL"
33930   arguments="${tmp#* }"
33931 
33932   # Input might be given as Windows format, start by converting to
33933   # unix format.
33934   new_path="$path"
33935 
33936   windows_path="$new_path"
33937   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33938     unix_path=`$CYGPATH -u "$windows_path"`
33939     new_path="$unix_path"
33940   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33941     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33942     new_path="$unix_path"
33943   fi
33944 
33945 
33946   # Now try to locate executable using which
33947   new_path=`$WHICH "$new_path" 2> /dev/null`
33948 
33949   if test "x$new_path" = x; then
33950     # Oops. Which didn't find the executable.
33951     # The splitting of arguments from the executable at a space might have been incorrect,
33952     # since paths with space are more likely in Windows. Give it another try with the whole
33953     # argument.
33954     path="$complete"
33955     arguments="EOL"
33956     new_path="$path"
33957 
33958   windows_path="$new_path"
33959   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33960     unix_path=`$CYGPATH -u "$windows_path"`
33961     new_path="$unix_path"
33962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33963     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33964     new_path="$unix_path"
33965   fi
33966 
33967 
33968     new_path=`$WHICH "$new_path" 2> /dev/null`
33969 
33970     if test "x$new_path" = x; then
33971       # It's still not found. Now this is an unrecoverable error.
33972       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
33973 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
33974       has_space=`$ECHO "$complete" | $GREP " "`
33975       if test "x$has_space" != x; then
33976         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33977 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33978       fi
33979       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33980     fi
33981   fi
33982 
33983   # Now new_path has a complete unix path to the binary
33984   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33985     # Keep paths in /bin as-is, but remove trailing .exe if any
33986     new_path="${new_path/%.exe/}"
33987     # Do not save /bin paths to all_fixpath_prefixes!
33988   else
33989     # Not in mixed or Windows style, start by that.
33990     new_path=`cmd //c echo $new_path`
33991 
33992   input_path="$new_path"
33993   # Check if we need to convert this using DOS-style short mode. If the path
33994   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33995   # take no chances and rewrite it.
33996   # Note: m4 eats our [], so we need to use [ and ] instead.
33997   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33998   if test "x$has_forbidden_chars" != x; then
33999     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34000     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34001   fi
34002 
34003     # Output is in $new_path
34004 
34005   windows_path="$new_path"
34006   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34007     unix_path=`$CYGPATH -u "$windows_path"`
34008     new_path="$unix_path"
34009   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34010     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34011     new_path="$unix_path"
34012   fi
34013 
34014     # remove trailing .exe if any
34015     new_path="${new_path/%.exe/}"
34016 
34017     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34018     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34019   fi
34020 
34021   else
34022     # We're on a posix platform. Hooray! :)
34023     # First separate the path from the arguments. This will split at the first
34024     # space.
34025     complete="$MT"
34026     path="${complete%% *}"
34027     tmp="$complete EOL"
34028     arguments="${tmp#* }"
34029 
34030     # Cannot rely on the command "which" here since it doesn't always work.
34031     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34032     if test -z "$is_absolute_path"; then
34033       # Path to executable is not absolute. Find it.
34034       IFS_save="$IFS"
34035       IFS=:
34036       for p in $PATH; do
34037         if test -f "$p/$path" && test -x "$p/$path"; then
34038           new_path="$p/$path"
34039           break
34040         fi
34041       done
34042       IFS="$IFS_save"
34043     else
34044       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MT (as $path) failed, using $path directly." >&5
34045 $as_echo "$as_me: Resolving MT (as $path) failed, using $path directly." >&6;}
34046       new_path="$path"
34047     fi
34048 
34049     if test "x$new_path" = x; then
34050       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
34051 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
34052       has_space=`$ECHO "$complete" | $GREP " "`
34053       if test "x$has_space" != x; then
34054         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34055 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34056       fi
34057       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
34058     fi
34059   fi
34060 
34061   # Now join together the path and the arguments once again
34062   if test "x$arguments" != xEOL; then
34063     new_complete="$new_path ${arguments% *}"
34064   else
34065     new_complete="$new_path"
34066   fi
34067 
34068   if test "x$complete" != "x$new_complete"; then
34069     MT="$new_complete"
34070     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
34071 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
34072   fi
34073 
34074     # The resource compiler
34075     # Extract the first word of "rc", so it can be a program name with args.
34076 set dummy rc; ac_word=$2
34077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34078 $as_echo_n "checking for $ac_word... " >&6; }
34079 if ${ac_cv_prog_RC+:} false; then :
34080   $as_echo_n "(cached) " >&6
34081 else
34082   if test -n "$RC"; then
34083   ac_cv_prog_RC="$RC" # Let the user override the test.
34084 else
34085   ac_prog_rejected=no
34086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34087 for as_dir in $PATH
34088 do
34089   IFS=$as_save_IFS
34090   test -z "$as_dir" && as_dir=.
34091     for ac_exec_ext in '' $ac_executable_extensions; do
34092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34093     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
34094        ac_prog_rejected=yes
34095        continue
34096      fi
34097     ac_cv_prog_RC="rc"
34098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34099     break 2
34100   fi
34101 done
34102   done
34103 IFS=$as_save_IFS
34104 
34105 if test $ac_prog_rejected = yes; then
34106   # We found a bogon in the path, so make sure we never use it.
34107   set dummy $ac_cv_prog_RC
34108   shift
34109   if test $# != 0; then
34110     # We chose a different compiler from the bogus one.
34111     # However, it has the same basename, so the bogon will be chosen
34112     # first if we set RC to just the basename; use the full file name.
34113     shift
34114     ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
34115   fi
34116 fi
34117 fi
34118 fi
34119 RC=$ac_cv_prog_RC
34120 if test -n "$RC"; then
34121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
34122 $as_echo "$RC" >&6; }
34123 else
34124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34125 $as_echo "no" >&6; }
34126 fi
34127 
34128 
34129 
34130   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34131 
34132   # First separate the path from the arguments. This will split at the first
34133   # space.
34134   complete="$RC"
34135   path="${complete%% *}"
34136   tmp="$complete EOL"
34137   arguments="${tmp#* }"
34138 
34139   # Input might be given as Windows format, start by converting to
34140   # unix format.
34141   new_path=`$CYGPATH -u "$path"`
34142 
34143   # Now try to locate executable using which
34144   new_path=`$WHICH "$new_path" 2> /dev/null`
34145   # bat and cmd files are not always considered executable in cygwin causing which
34146   # to not find them
34147   if test "x$new_path" = x \
34148       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34149       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34150     new_path=`$CYGPATH -u "$path"`
34151   fi
34152   if test "x$new_path" = x; then
34153     # Oops. Which didn't find the executable.
34154     # The splitting of arguments from the executable at a space might have been incorrect,
34155     # since paths with space are more likely in Windows. Give it another try with the whole
34156     # argument.
34157     path="$complete"
34158     arguments="EOL"
34159     new_path=`$CYGPATH -u "$path"`
34160     new_path=`$WHICH "$new_path" 2> /dev/null`
34161     # bat and cmd files are not always considered executable in cygwin causing which
34162     # to not find them
34163     if test "x$new_path" = x \
34164         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34165         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34166       new_path=`$CYGPATH -u "$path"`
34167     fi
34168     if test "x$new_path" = x; then
34169       # It's still not found. Now this is an unrecoverable error.
34170       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34171 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34172       has_space=`$ECHO "$complete" | $GREP " "`
34173       if test "x$has_space" != x; then
34174         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34176       fi
34177       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34178     fi
34179   fi
34180 
34181   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34182   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34183   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34184   # "foo.exe" is OK but "foo" is an error.
34185   #
34186   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34187   # It is also a way to make sure we got the proper file name for the real test later on.
34188   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34189   if test "x$test_shortpath" = x; then
34190     # Short path failed, file does not exist as specified.
34191     # Try adding .exe or .cmd
34192     if test -f "${new_path}.exe"; then
34193       input_to_shortpath="${new_path}.exe"
34194     elif test -f "${new_path}.cmd"; then
34195       input_to_shortpath="${new_path}.cmd"
34196     else
34197       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5
34198 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;}
34199       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34200 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34201       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34202     fi
34203   else
34204     input_to_shortpath="$new_path"
34205   fi
34206 
34207   # Call helper function which possibly converts this using DOS-style short mode.
34208   # If so, the updated path is stored in $new_path.
34209   new_path="$input_to_shortpath"
34210 
34211   input_path="$input_to_shortpath"
34212   # Check if we need to convert this using DOS-style short mode. If the path
34213   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34214   # take no chances and rewrite it.
34215   # Note: m4 eats our [], so we need to use [ and ] instead.
34216   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34217   if test "x$has_forbidden_chars" != x; then
34218     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34219     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34220     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34221     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34222       # Going to short mode and back again did indeed matter. Since short mode is
34223       # case insensitive, let's make it lowercase to improve readability.
34224       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34225       # Now convert it back to Unix-stile (cygpath)
34226       input_path=`$CYGPATH -u "$shortmode_path"`
34227       new_path="$input_path"
34228     fi
34229   fi
34230 
34231   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34232   if test "x$test_cygdrive_prefix" = x; then
34233     # As a simple fix, exclude /usr/bin since it's not a real path.
34234     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34235       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34236       # a path prefixed by /cygdrive for fixpath to work.
34237       new_path="$CYGWIN_ROOT_PATH$input_path"
34238     fi
34239   fi
34240 
34241   # remove trailing .exe if any
34242   new_path="${new_path/%.exe/}"
34243 
34244   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34245 
34246   # First separate the path from the arguments. This will split at the first
34247   # space.
34248   complete="$RC"
34249   path="${complete%% *}"
34250   tmp="$complete EOL"
34251   arguments="${tmp#* }"
34252 
34253   # Input might be given as Windows format, start by converting to
34254   # unix format.
34255   new_path="$path"
34256 
34257   windows_path="$new_path"
34258   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34259     unix_path=`$CYGPATH -u "$windows_path"`
34260     new_path="$unix_path"
34261   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34262     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34263     new_path="$unix_path"
34264   fi
34265 
34266 
34267   # Now try to locate executable using which
34268   new_path=`$WHICH "$new_path" 2> /dev/null`
34269 
34270   if test "x$new_path" = x; then
34271     # Oops. Which didn't find the executable.
34272     # The splitting of arguments from the executable at a space might have been incorrect,
34273     # since paths with space are more likely in Windows. Give it another try with the whole
34274     # argument.
34275     path="$complete"
34276     arguments="EOL"
34277     new_path="$path"
34278 
34279   windows_path="$new_path"
34280   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34281     unix_path=`$CYGPATH -u "$windows_path"`
34282     new_path="$unix_path"
34283   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34284     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34285     new_path="$unix_path"
34286   fi
34287 
34288 
34289     new_path=`$WHICH "$new_path" 2> /dev/null`
34290 
34291     if test "x$new_path" = x; then
34292       # It's still not found. Now this is an unrecoverable error.
34293       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34294 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34295       has_space=`$ECHO "$complete" | $GREP " "`
34296       if test "x$has_space" != x; then
34297         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34298 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34299       fi
34300       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34301     fi
34302   fi
34303 
34304   # Now new_path has a complete unix path to the binary
34305   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34306     # Keep paths in /bin as-is, but remove trailing .exe if any
34307     new_path="${new_path/%.exe/}"
34308     # Do not save /bin paths to all_fixpath_prefixes!
34309   else
34310     # Not in mixed or Windows style, start by that.
34311     new_path=`cmd //c echo $new_path`
34312 
34313   input_path="$new_path"
34314   # Check if we need to convert this using DOS-style short mode. If the path
34315   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34316   # take no chances and rewrite it.
34317   # Note: m4 eats our [], so we need to use [ and ] instead.
34318   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34319   if test "x$has_forbidden_chars" != x; then
34320     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34321     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34322   fi
34323 
34324     # Output is in $new_path
34325 
34326   windows_path="$new_path"
34327   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34328     unix_path=`$CYGPATH -u "$windows_path"`
34329     new_path="$unix_path"
34330   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34331     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34332     new_path="$unix_path"
34333   fi
34334 
34335     # remove trailing .exe if any
34336     new_path="${new_path/%.exe/}"
34337 
34338     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34339     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34340   fi
34341 
34342   else
34343     # We're on a posix platform. Hooray! :)
34344     # First separate the path from the arguments. This will split at the first
34345     # space.
34346     complete="$RC"
34347     path="${complete%% *}"
34348     tmp="$complete EOL"
34349     arguments="${tmp#* }"
34350 
34351     # Cannot rely on the command "which" here since it doesn't always work.
34352     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34353     if test -z "$is_absolute_path"; then
34354       # Path to executable is not absolute. Find it.
34355       IFS_save="$IFS"
34356       IFS=:
34357       for p in $PATH; do
34358         if test -f "$p/$path" && test -x "$p/$path"; then
34359           new_path="$p/$path"
34360           break
34361         fi
34362       done
34363       IFS="$IFS_save"
34364     else
34365       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving RC (as $path) failed, using $path directly." >&5
34366 $as_echo "$as_me: Resolving RC (as $path) failed, using $path directly." >&6;}
34367       new_path="$path"
34368     fi
34369 
34370     if test "x$new_path" = x; then
34371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34372 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34373       has_space=`$ECHO "$complete" | $GREP " "`
34374       if test "x$has_space" != x; then
34375         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34376 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34377       fi
34378       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34379     fi
34380   fi
34381 
34382   # Now join together the path and the arguments once again
34383   if test "x$arguments" != xEOL; then
34384     new_complete="$new_path ${arguments% *}"
34385   else
34386     new_complete="$new_path"
34387   fi
34388 
34389   if test "x$complete" != "x$new_complete"; then
34390     RC="$new_complete"
34391     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5
34392 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;}
34393   fi
34394 
34395 
34396     # For hotspot, we need these in Windows mixed path,
34397     # so rewrite them all. Need added .exe suffix.
34398     HOTSPOT_CXX="$CXX.exe"
34399     HOTSPOT_LD="$LD.exe"
34400     HOTSPOT_MT="$MT.exe"
34401     HOTSPOT_RC="$RC.exe"
34402 
34403   unix_path="$HOTSPOT_CXX"
34404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34405     windows_path=`$CYGPATH -m "$unix_path"`
34406     HOTSPOT_CXX="$windows_path"
34407   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34408     windows_path=`cmd //c echo $unix_path`
34409     HOTSPOT_CXX="$windows_path"
34410   fi
34411 
34412 
34413   unix_path="$HOTSPOT_LD"
34414   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34415     windows_path=`$CYGPATH -m "$unix_path"`
34416     HOTSPOT_LD="$windows_path"
34417   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34418     windows_path=`cmd //c echo $unix_path`
34419     HOTSPOT_LD="$windows_path"
34420   fi
34421 
34422 
34423   unix_path="$HOTSPOT_MT"
34424   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34425     windows_path=`$CYGPATH -m "$unix_path"`
34426     HOTSPOT_MT="$windows_path"
34427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34428     windows_path=`cmd //c echo $unix_path`
34429     HOTSPOT_MT="$windows_path"
34430   fi
34431 
34432 
34433   unix_path="$HOTSPOT_RC"
34434   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34435     windows_path=`$CYGPATH -m "$unix_path"`
34436     HOTSPOT_RC="$windows_path"
34437   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34438     windows_path=`cmd //c echo $unix_path`
34439     HOTSPOT_RC="$windows_path"
34440   fi
34441 
34442 
34443 
34444 
34445     RC_FLAGS="-nologo -l 0x409 -r"
34446     if test "x$VARIANT" = xOPT; then :
34447 
34448     RC_FLAGS="$RC_FLAGS -d NDEBUG"
34449 
34450 fi
34451 
34452   # The version variables used to create RC_FLAGS may be overridden
34453   # in a custom configure script, or possibly the command line.
34454   # Let those variables be expanded at make time in spec.gmk.
34455   # The \$ are escaped to the shell, and the $(...) variables
34456   # are evaluated by make.
34457   RC_FLAGS="$RC_FLAGS \
34458       -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
34459       -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
34460       -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
34461       -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
34462       -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
34463       -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
34464       -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
34465 
34466   # lib.exe is used to create static libraries.
34467   # Extract the first word of "lib", so it can be a program name with args.
34468 set dummy lib; ac_word=$2
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34470 $as_echo_n "checking for $ac_word... " >&6; }
34471 if ${ac_cv_prog_WINAR+:} false; then :
34472   $as_echo_n "(cached) " >&6
34473 else
34474   if test -n "$WINAR"; then
34475   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
34476 else
34477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34478 for as_dir in $PATH
34479 do
34480   IFS=$as_save_IFS
34481   test -z "$as_dir" && as_dir=.
34482     for ac_exec_ext in '' $ac_executable_extensions; do
34483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34484     ac_cv_prog_WINAR="lib"
34485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34486     break 2
34487   fi
34488 done
34489   done
34490 IFS=$as_save_IFS
34491 
34492 fi
34493 fi
34494 WINAR=$ac_cv_prog_WINAR
34495 if test -n "$WINAR"; then
34496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
34497 $as_echo "$WINAR" >&6; }
34498 else
34499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34500 $as_echo "no" >&6; }
34501 fi
34502 
34503 
34504 
34505   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34506 
34507   # First separate the path from the arguments. This will split at the first
34508   # space.
34509   complete="$WINAR"
34510   path="${complete%% *}"
34511   tmp="$complete EOL"
34512   arguments="${tmp#* }"
34513 
34514   # Input might be given as Windows format, start by converting to
34515   # unix format.
34516   new_path=`$CYGPATH -u "$path"`
34517 
34518   # Now try to locate executable using which
34519   new_path=`$WHICH "$new_path" 2> /dev/null`
34520   # bat and cmd files are not always considered executable in cygwin causing which
34521   # to not find them
34522   if test "x$new_path" = x \
34523       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34524       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34525     new_path=`$CYGPATH -u "$path"`
34526   fi
34527   if test "x$new_path" = x; then
34528     # Oops. Which didn't find the executable.
34529     # The splitting of arguments from the executable at a space might have been incorrect,
34530     # since paths with space are more likely in Windows. Give it another try with the whole
34531     # argument.
34532     path="$complete"
34533     arguments="EOL"
34534     new_path=`$CYGPATH -u "$path"`
34535     new_path=`$WHICH "$new_path" 2> /dev/null`
34536     # bat and cmd files are not always considered executable in cygwin causing which
34537     # to not find them
34538     if test "x$new_path" = x \
34539         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34540         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34541       new_path=`$CYGPATH -u "$path"`
34542     fi
34543     if test "x$new_path" = x; then
34544       # It's still not found. Now this is an unrecoverable error.
34545       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
34546 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
34547       has_space=`$ECHO "$complete" | $GREP " "`
34548       if test "x$has_space" != x; then
34549         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34550 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34551       fi
34552       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34553     fi
34554   fi
34555 
34556   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34557   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34558   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34559   # "foo.exe" is OK but "foo" is an error.
34560   #
34561   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34562   # It is also a way to make sure we got the proper file name for the real test later on.
34563   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34564   if test "x$test_shortpath" = x; then
34565     # Short path failed, file does not exist as specified.
34566     # Try adding .exe or .cmd
34567     if test -f "${new_path}.exe"; then
34568       input_to_shortpath="${new_path}.exe"
34569     elif test -f "${new_path}.cmd"; then
34570       input_to_shortpath="${new_path}.cmd"
34571     else
34572       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$new_path\", is invalid." >&5
34573 $as_echo "$as_me: The path of WINAR, which resolves as \"$new_path\", is invalid." >&6;}
34574       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34575 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34576       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34577     fi
34578   else
34579     input_to_shortpath="$new_path"
34580   fi
34581 
34582   # Call helper function which possibly converts this using DOS-style short mode.
34583   # If so, the updated path is stored in $new_path.
34584   new_path="$input_to_shortpath"
34585 
34586   input_path="$input_to_shortpath"
34587   # Check if we need to convert this using DOS-style short mode. If the path
34588   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34589   # take no chances and rewrite it.
34590   # Note: m4 eats our [], so we need to use [ and ] instead.
34591   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34592   if test "x$has_forbidden_chars" != x; then
34593     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34594     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34595     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34596     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34597       # Going to short mode and back again did indeed matter. Since short mode is
34598       # case insensitive, let's make it lowercase to improve readability.
34599       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34600       # Now convert it back to Unix-stile (cygpath)
34601       input_path=`$CYGPATH -u "$shortmode_path"`
34602       new_path="$input_path"
34603     fi
34604   fi
34605 
34606   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34607   if test "x$test_cygdrive_prefix" = x; then
34608     # As a simple fix, exclude /usr/bin since it's not a real path.
34609     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34610       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34611       # a path prefixed by /cygdrive for fixpath to work.
34612       new_path="$CYGWIN_ROOT_PATH$input_path"
34613     fi
34614   fi
34615 
34616   # remove trailing .exe if any
34617   new_path="${new_path/%.exe/}"
34618 
34619   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34620 
34621   # First separate the path from the arguments. This will split at the first
34622   # space.
34623   complete="$WINAR"
34624   path="${complete%% *}"
34625   tmp="$complete EOL"
34626   arguments="${tmp#* }"
34627 
34628   # Input might be given as Windows format, start by converting to
34629   # unix format.
34630   new_path="$path"
34631 
34632   windows_path="$new_path"
34633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34634     unix_path=`$CYGPATH -u "$windows_path"`
34635     new_path="$unix_path"
34636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34637     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34638     new_path="$unix_path"
34639   fi
34640 
34641 
34642   # Now try to locate executable using which
34643   new_path=`$WHICH "$new_path" 2> /dev/null`
34644 
34645   if test "x$new_path" = x; then
34646     # Oops. Which didn't find the executable.
34647     # The splitting of arguments from the executable at a space might have been incorrect,
34648     # since paths with space are more likely in Windows. Give it another try with the whole
34649     # argument.
34650     path="$complete"
34651     arguments="EOL"
34652     new_path="$path"
34653 
34654   windows_path="$new_path"
34655   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34656     unix_path=`$CYGPATH -u "$windows_path"`
34657     new_path="$unix_path"
34658   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34659     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34660     new_path="$unix_path"
34661   fi
34662 
34663 
34664     new_path=`$WHICH "$new_path" 2> /dev/null`
34665 
34666     if test "x$new_path" = x; then
34667       # It's still not found. Now this is an unrecoverable error.
34668       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
34669 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
34670       has_space=`$ECHO "$complete" | $GREP " "`
34671       if test "x$has_space" != x; then
34672         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34673 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34674       fi
34675       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34676     fi
34677   fi
34678 
34679   # Now new_path has a complete unix path to the binary
34680   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34681     # Keep paths in /bin as-is, but remove trailing .exe if any
34682     new_path="${new_path/%.exe/}"
34683     # Do not save /bin paths to all_fixpath_prefixes!
34684   else
34685     # Not in mixed or Windows style, start by that.
34686     new_path=`cmd //c echo $new_path`
34687 
34688   input_path="$new_path"
34689   # Check if we need to convert this using DOS-style short mode. If the path
34690   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34691   # take no chances and rewrite it.
34692   # Note: m4 eats our [], so we need to use [ and ] instead.
34693   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34694   if test "x$has_forbidden_chars" != x; then
34695     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34696     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34697   fi
34698 
34699     # Output is in $new_path
34700 
34701   windows_path="$new_path"
34702   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34703     unix_path=`$CYGPATH -u "$windows_path"`
34704     new_path="$unix_path"
34705   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34706     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34707     new_path="$unix_path"
34708   fi
34709 
34710     # remove trailing .exe if any
34711     new_path="${new_path/%.exe/}"
34712 
34713     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34714     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34715   fi
34716 
34717   else
34718     # We're on a posix platform. Hooray! :)
34719     # First separate the path from the arguments. This will split at the first
34720     # space.
34721     complete="$WINAR"
34722     path="${complete%% *}"
34723     tmp="$complete EOL"
34724     arguments="${tmp#* }"
34725 
34726     # Cannot rely on the command "which" here since it doesn't always work.
34727     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34728     if test -z "$is_absolute_path"; then
34729       # Path to executable is not absolute. Find it.
34730       IFS_save="$IFS"
34731       IFS=:
34732       for p in $PATH; do
34733         if test -f "$p/$path" && test -x "$p/$path"; then
34734           new_path="$p/$path"
34735           break
34736         fi
34737       done
34738       IFS="$IFS_save"
34739     else
34740       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINAR (as $path) failed, using $path directly." >&5
34741 $as_echo "$as_me: Resolving WINAR (as $path) failed, using $path directly." >&6;}
34742       new_path="$path"
34743     fi
34744 
34745     if test "x$new_path" = x; then
34746       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
34747 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
34748       has_space=`$ECHO "$complete" | $GREP " "`
34749       if test "x$has_space" != x; then
34750         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34751 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34752       fi
34753       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34754     fi
34755   fi
34756 
34757   # Now join together the path and the arguments once again
34758   if test "x$arguments" != xEOL; then
34759     new_complete="$new_path ${arguments% *}"
34760   else
34761     new_complete="$new_path"
34762   fi
34763 
34764   if test "x$complete" != "x$new_complete"; then
34765     WINAR="$new_complete"
34766     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
34767 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
34768   fi
34769 
34770   AR="$WINAR"
34771   ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
34772 
34773   # Extract the first word of "dumpbin", so it can be a program name with args.
34774 set dummy dumpbin; ac_word=$2
34775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34776 $as_echo_n "checking for $ac_word... " >&6; }
34777 if ${ac_cv_prog_DUMPBIN+:} false; then :
34778   $as_echo_n "(cached) " >&6
34779 else
34780   if test -n "$DUMPBIN"; then
34781   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
34782 else
34783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34784 for as_dir in $PATH
34785 do
34786   IFS=$as_save_IFS
34787   test -z "$as_dir" && as_dir=.
34788     for ac_exec_ext in '' $ac_executable_extensions; do
34789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34790     ac_cv_prog_DUMPBIN="dumpbin"
34791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34792     break 2
34793   fi
34794 done
34795   done
34796 IFS=$as_save_IFS
34797 
34798 fi
34799 fi
34800 DUMPBIN=$ac_cv_prog_DUMPBIN
34801 if test -n "$DUMPBIN"; then
34802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
34803 $as_echo "$DUMPBIN" >&6; }
34804 else
34805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34806 $as_echo "no" >&6; }
34807 fi
34808 
34809 
34810 
34811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34812 
34813   # First separate the path from the arguments. This will split at the first
34814   # space.
34815   complete="$DUMPBIN"
34816   path="${complete%% *}"
34817   tmp="$complete EOL"
34818   arguments="${tmp#* }"
34819 
34820   # Input might be given as Windows format, start by converting to
34821   # unix format.
34822   new_path=`$CYGPATH -u "$path"`
34823 
34824   # Now try to locate executable using which
34825   new_path=`$WHICH "$new_path" 2> /dev/null`
34826   # bat and cmd files are not always considered executable in cygwin causing which
34827   # to not find them
34828   if test "x$new_path" = x \
34829       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34830       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34831     new_path=`$CYGPATH -u "$path"`
34832   fi
34833   if test "x$new_path" = x; then
34834     # Oops. Which didn't find the executable.
34835     # The splitting of arguments from the executable at a space might have been incorrect,
34836     # since paths with space are more likely in Windows. Give it another try with the whole
34837     # argument.
34838     path="$complete"
34839     arguments="EOL"
34840     new_path=`$CYGPATH -u "$path"`
34841     new_path=`$WHICH "$new_path" 2> /dev/null`
34842     # bat and cmd files are not always considered executable in cygwin causing which
34843     # to not find them
34844     if test "x$new_path" = x \
34845         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34846         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34847       new_path=`$CYGPATH -u "$path"`
34848     fi
34849     if test "x$new_path" = x; then
34850       # It's still not found. Now this is an unrecoverable error.
34851       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34852 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34853       has_space=`$ECHO "$complete" | $GREP " "`
34854       if test "x$has_space" != x; then
34855         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34856 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34857       fi
34858       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34859     fi
34860   fi
34861 
34862   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34863   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34864   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34865   # "foo.exe" is OK but "foo" is an error.
34866   #
34867   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34868   # It is also a way to make sure we got the proper file name for the real test later on.
34869   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34870   if test "x$test_shortpath" = x; then
34871     # Short path failed, file does not exist as specified.
34872     # Try adding .exe or .cmd
34873     if test -f "${new_path}.exe"; then
34874       input_to_shortpath="${new_path}.exe"
34875     elif test -f "${new_path}.cmd"; then
34876       input_to_shortpath="${new_path}.cmd"
34877     else
34878       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5
34879 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;}
34880       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34881 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34882       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34883     fi
34884   else
34885     input_to_shortpath="$new_path"
34886   fi
34887 
34888   # Call helper function which possibly converts this using DOS-style short mode.
34889   # If so, the updated path is stored in $new_path.
34890   new_path="$input_to_shortpath"
34891 
34892   input_path="$input_to_shortpath"
34893   # Check if we need to convert this using DOS-style short mode. If the path
34894   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34895   # take no chances and rewrite it.
34896   # Note: m4 eats our [], so we need to use [ and ] instead.
34897   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34898   if test "x$has_forbidden_chars" != x; then
34899     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34900     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34901     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34902     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34903       # Going to short mode and back again did indeed matter. Since short mode is
34904       # case insensitive, let's make it lowercase to improve readability.
34905       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34906       # Now convert it back to Unix-stile (cygpath)
34907       input_path=`$CYGPATH -u "$shortmode_path"`
34908       new_path="$input_path"
34909     fi
34910   fi
34911 
34912   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34913   if test "x$test_cygdrive_prefix" = x; then
34914     # As a simple fix, exclude /usr/bin since it's not a real path.
34915     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34916       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34917       # a path prefixed by /cygdrive for fixpath to work.
34918       new_path="$CYGWIN_ROOT_PATH$input_path"
34919     fi
34920   fi
34921 
34922   # remove trailing .exe if any
34923   new_path="${new_path/%.exe/}"
34924 
34925   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34926 
34927   # First separate the path from the arguments. This will split at the first
34928   # space.
34929   complete="$DUMPBIN"
34930   path="${complete%% *}"
34931   tmp="$complete EOL"
34932   arguments="${tmp#* }"
34933 
34934   # Input might be given as Windows format, start by converting to
34935   # unix format.
34936   new_path="$path"
34937 
34938   windows_path="$new_path"
34939   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34940     unix_path=`$CYGPATH -u "$windows_path"`
34941     new_path="$unix_path"
34942   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34943     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34944     new_path="$unix_path"
34945   fi
34946 
34947 
34948   # Now try to locate executable using which
34949   new_path=`$WHICH "$new_path" 2> /dev/null`
34950 
34951   if test "x$new_path" = x; then
34952     # Oops. Which didn't find the executable.
34953     # The splitting of arguments from the executable at a space might have been incorrect,
34954     # since paths with space are more likely in Windows. Give it another try with the whole
34955     # argument.
34956     path="$complete"
34957     arguments="EOL"
34958     new_path="$path"
34959 
34960   windows_path="$new_path"
34961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34962     unix_path=`$CYGPATH -u "$windows_path"`
34963     new_path="$unix_path"
34964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34966     new_path="$unix_path"
34967   fi
34968 
34969 
34970     new_path=`$WHICH "$new_path" 2> /dev/null`
34971 
34972     if test "x$new_path" = x; then
34973       # It's still not found. Now this is an unrecoverable error.
34974       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34975 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34976       has_space=`$ECHO "$complete" | $GREP " "`
34977       if test "x$has_space" != x; then
34978         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34979 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34980       fi
34981       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34982     fi
34983   fi
34984 
34985   # Now new_path has a complete unix path to the binary
34986   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34987     # Keep paths in /bin as-is, but remove trailing .exe if any
34988     new_path="${new_path/%.exe/}"
34989     # Do not save /bin paths to all_fixpath_prefixes!
34990   else
34991     # Not in mixed or Windows style, start by that.
34992     new_path=`cmd //c echo $new_path`
34993 
34994   input_path="$new_path"
34995   # Check if we need to convert this using DOS-style short mode. If the path
34996   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34997   # take no chances and rewrite it.
34998   # Note: m4 eats our [], so we need to use [ and ] instead.
34999   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35000   if test "x$has_forbidden_chars" != x; then
35001     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35002     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35003   fi
35004 
35005     # Output is in $new_path
35006 
35007   windows_path="$new_path"
35008   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35009     unix_path=`$CYGPATH -u "$windows_path"`
35010     new_path="$unix_path"
35011   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35012     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35013     new_path="$unix_path"
35014   fi
35015 
35016     # remove trailing .exe if any
35017     new_path="${new_path/%.exe/}"
35018 
35019     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35020     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35021   fi
35022 
35023   else
35024     # We're on a posix platform. Hooray! :)
35025     # First separate the path from the arguments. This will split at the first
35026     # space.
35027     complete="$DUMPBIN"
35028     path="${complete%% *}"
35029     tmp="$complete EOL"
35030     arguments="${tmp#* }"
35031 
35032     # Cannot rely on the command "which" here since it doesn't always work.
35033     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35034     if test -z "$is_absolute_path"; then
35035       # Path to executable is not absolute. Find it.
35036       IFS_save="$IFS"
35037       IFS=:
35038       for p in $PATH; do
35039         if test -f "$p/$path" && test -x "$p/$path"; then
35040           new_path="$p/$path"
35041           break
35042         fi
35043       done
35044       IFS="$IFS_save"
35045     else
35046       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving DUMPBIN (as $path) failed, using $path directly." >&5
35047 $as_echo "$as_me: Resolving DUMPBIN (as $path) failed, using $path directly." >&6;}
35048       new_path="$path"
35049     fi
35050 
35051     if test "x$new_path" = x; then
35052       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
35053 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
35054       has_space=`$ECHO "$complete" | $GREP " "`
35055       if test "x$has_space" != x; then
35056         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35057 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35058       fi
35059       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
35060     fi
35061   fi
35062 
35063   # Now join together the path and the arguments once again
35064   if test "x$arguments" != xEOL; then
35065     new_complete="$new_path ${arguments% *}"
35066   else
35067     new_complete="$new_path"
35068   fi
35069 
35070   if test "x$complete" != "x$new_complete"; then
35071     DUMPBIN="$new_complete"
35072     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5
35073 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;}
35074   fi
35075 
35076 
35077       COMPILER_TYPE=CL
35078       CCXXFLAGS="$CCXXFLAGS -nologo"
35079 
35080 fi
35081 
35082 
35083 
35084   ac_ext=c
35085 ac_cpp='$CPP $CPPFLAGS'
35086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
35090 $as_echo_n "checking how to run the C preprocessor... " >&6; }
35091 # On Suns, sometimes $CPP names a directory.
35092 if test -n "$CPP" && test -d "$CPP"; then
35093   CPP=
35094 fi
35095 if test -z "$CPP"; then
35096   if ${ac_cv_prog_CPP+:} false; then :
35097   $as_echo_n "(cached) " >&6
35098 else
35099       # Double quotes because CPP needs to be expanded
35100     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
35101     do
35102       ac_preproc_ok=false
35103 for ac_c_preproc_warn_flag in '' yes
35104 do
35105   # Use a header file that comes with gcc, so configuring glibc
35106   # with a fresh cross-compiler works.
35107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35108   # <limits.h> exists even on freestanding compilers.
35109   # On the NeXT, cc -E runs the code through the compiler's parser,
35110   # not just through cpp. "Syntax error" is here to catch this case.
35111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35112 /* end confdefs.h.  */
35113 #ifdef __STDC__
35114 # include <limits.h>
35115 #else
35116 # include <assert.h>
35117 #endif
35118                      Syntax error
35119 _ACEOF
35120 if ac_fn_c_try_cpp "$LINENO"; then :
35121 
35122 else
35123   # Broken: fails on valid input.
35124 continue
35125 fi
35126 rm -f conftest.err conftest.i conftest.$ac_ext
35127 
35128   # OK, works on sane cases.  Now check whether nonexistent headers
35129   # can be detected and how.
35130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35131 /* end confdefs.h.  */
35132 #include <ac_nonexistent.h>
35133 _ACEOF
35134 if ac_fn_c_try_cpp "$LINENO"; then :
35135   # Broken: success on invalid input.
35136 continue
35137 else
35138   # Passes both tests.
35139 ac_preproc_ok=:
35140 break
35141 fi
35142 rm -f conftest.err conftest.i conftest.$ac_ext
35143 
35144 done
35145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35146 rm -f conftest.i conftest.err conftest.$ac_ext
35147 if $ac_preproc_ok; then :
35148   break
35149 fi
35150 
35151     done
35152     ac_cv_prog_CPP=$CPP
35153 
35154 fi
35155   CPP=$ac_cv_prog_CPP
35156 else
35157   ac_cv_prog_CPP=$CPP
35158 fi
35159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
35160 $as_echo "$CPP" >&6; }
35161 ac_preproc_ok=false
35162 for ac_c_preproc_warn_flag in '' yes
35163 do
35164   # Use a header file that comes with gcc, so configuring glibc
35165   # with a fresh cross-compiler works.
35166   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35167   # <limits.h> exists even on freestanding compilers.
35168   # On the NeXT, cc -E runs the code through the compiler's parser,
35169   # not just through cpp. "Syntax error" is here to catch this case.
35170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35171 /* end confdefs.h.  */
35172 #ifdef __STDC__
35173 # include <limits.h>
35174 #else
35175 # include <assert.h>
35176 #endif
35177                      Syntax error
35178 _ACEOF
35179 if ac_fn_c_try_cpp "$LINENO"; then :
35180 
35181 else
35182   # Broken: fails on valid input.
35183 continue
35184 fi
35185 rm -f conftest.err conftest.i conftest.$ac_ext
35186 
35187   # OK, works on sane cases.  Now check whether nonexistent headers
35188   # can be detected and how.
35189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35190 /* end confdefs.h.  */
35191 #include <ac_nonexistent.h>
35192 _ACEOF
35193 if ac_fn_c_try_cpp "$LINENO"; then :
35194   # Broken: success on invalid input.
35195 continue
35196 else
35197   # Passes both tests.
35198 ac_preproc_ok=:
35199 break
35200 fi
35201 rm -f conftest.err conftest.i conftest.$ac_ext
35202 
35203 done
35204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35205 rm -f conftest.i conftest.err conftest.$ac_ext
35206 if $ac_preproc_ok; then :
35207 
35208 else
35209   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35211 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
35212 See \`config.log' for more details" "$LINENO" 5; }
35213 fi
35214 
35215 ac_ext=cpp
35216 ac_cpp='$CXXCPP $CPPFLAGS'
35217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35220 
35221 
35222   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35223 
35224   # First separate the path from the arguments. This will split at the first
35225   # space.
35226   complete="$CPP"
35227   path="${complete%% *}"
35228   tmp="$complete EOL"
35229   arguments="${tmp#* }"
35230 
35231   # Input might be given as Windows format, start by converting to
35232   # unix format.
35233   new_path=`$CYGPATH -u "$path"`
35234 
35235   # Now try to locate executable using which
35236   new_path=`$WHICH "$new_path" 2> /dev/null`
35237   # bat and cmd files are not always considered executable in cygwin causing which
35238   # to not find them
35239   if test "x$new_path" = x \
35240       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35241       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35242     new_path=`$CYGPATH -u "$path"`
35243   fi
35244   if test "x$new_path" = x; then
35245     # Oops. Which didn't find the executable.
35246     # The splitting of arguments from the executable at a space might have been incorrect,
35247     # since paths with space are more likely in Windows. Give it another try with the whole
35248     # argument.
35249     path="$complete"
35250     arguments="EOL"
35251     new_path=`$CYGPATH -u "$path"`
35252     new_path=`$WHICH "$new_path" 2> /dev/null`
35253     # bat and cmd files are not always considered executable in cygwin causing which
35254     # to not find them
35255     if test "x$new_path" = x \
35256         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35257         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35258       new_path=`$CYGPATH -u "$path"`
35259     fi
35260     if test "x$new_path" = x; then
35261       # It's still not found. Now this is an unrecoverable error.
35262       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
35263 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
35264       has_space=`$ECHO "$complete" | $GREP " "`
35265       if test "x$has_space" != x; then
35266         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35268       fi
35269       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35270     fi
35271   fi
35272 
35273   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35274   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35275   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35276   # "foo.exe" is OK but "foo" is an error.
35277   #
35278   # This test is therefore slightly more accurate than "test -f" to check for file presence.
35279   # It is also a way to make sure we got the proper file name for the real test later on.
35280   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35281   if test "x$test_shortpath" = x; then
35282     # Short path failed, file does not exist as specified.
35283     # Try adding .exe or .cmd
35284     if test -f "${new_path}.exe"; then
35285       input_to_shortpath="${new_path}.exe"
35286     elif test -f "${new_path}.cmd"; then
35287       input_to_shortpath="${new_path}.cmd"
35288     else
35289       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5
35290 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;}
35291       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35292 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35293       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35294     fi
35295   else
35296     input_to_shortpath="$new_path"
35297   fi
35298 
35299   # Call helper function which possibly converts this using DOS-style short mode.
35300   # If so, the updated path is stored in $new_path.
35301   new_path="$input_to_shortpath"
35302 
35303   input_path="$input_to_shortpath"
35304   # Check if we need to convert this using DOS-style short mode. If the path
35305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35306   # take no chances and rewrite it.
35307   # Note: m4 eats our [], so we need to use [ and ] instead.
35308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35309   if test "x$has_forbidden_chars" != x; then
35310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35314       # Going to short mode and back again did indeed matter. Since short mode is
35315       # case insensitive, let's make it lowercase to improve readability.
35316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35317       # Now convert it back to Unix-stile (cygpath)
35318       input_path=`$CYGPATH -u "$shortmode_path"`
35319       new_path="$input_path"
35320     fi
35321   fi
35322 
35323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35324   if test "x$test_cygdrive_prefix" = x; then
35325     # As a simple fix, exclude /usr/bin since it's not a real path.
35326     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35328       # a path prefixed by /cygdrive for fixpath to work.
35329       new_path="$CYGWIN_ROOT_PATH$input_path"
35330     fi
35331   fi
35332 
35333   # remove trailing .exe if any
35334   new_path="${new_path/%.exe/}"
35335 
35336   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35337 
35338   # First separate the path from the arguments. This will split at the first
35339   # space.
35340   complete="$CPP"
35341   path="${complete%% *}"
35342   tmp="$complete EOL"
35343   arguments="${tmp#* }"
35344 
35345   # Input might be given as Windows format, start by converting to
35346   # unix format.
35347   new_path="$path"
35348 
35349   windows_path="$new_path"
35350   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35351     unix_path=`$CYGPATH -u "$windows_path"`
35352     new_path="$unix_path"
35353   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35354     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35355     new_path="$unix_path"
35356   fi
35357 
35358 
35359   # Now try to locate executable using which
35360   new_path=`$WHICH "$new_path" 2> /dev/null`
35361 
35362   if test "x$new_path" = x; then
35363     # Oops. Which didn't find the executable.
35364     # The splitting of arguments from the executable at a space might have been incorrect,
35365     # since paths with space are more likely in Windows. Give it another try with the whole
35366     # argument.
35367     path="$complete"
35368     arguments="EOL"
35369     new_path="$path"
35370 
35371   windows_path="$new_path"
35372   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35373     unix_path=`$CYGPATH -u "$windows_path"`
35374     new_path="$unix_path"
35375   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35376     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35377     new_path="$unix_path"
35378   fi
35379 
35380 
35381     new_path=`$WHICH "$new_path" 2> /dev/null`
35382 
35383     if test "x$new_path" = x; then
35384       # It's still not found. Now this is an unrecoverable error.
35385       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
35386 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
35387       has_space=`$ECHO "$complete" | $GREP " "`
35388       if test "x$has_space" != x; then
35389         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35390 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35391       fi
35392       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35393     fi
35394   fi
35395 
35396   # Now new_path has a complete unix path to the binary
35397   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35398     # Keep paths in /bin as-is, but remove trailing .exe if any
35399     new_path="${new_path/%.exe/}"
35400     # Do not save /bin paths to all_fixpath_prefixes!
35401   else
35402     # Not in mixed or Windows style, start by that.
35403     new_path=`cmd //c echo $new_path`
35404 
35405   input_path="$new_path"
35406   # Check if we need to convert this using DOS-style short mode. If the path
35407   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35408   # take no chances and rewrite it.
35409   # Note: m4 eats our [], so we need to use [ and ] instead.
35410   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35411   if test "x$has_forbidden_chars" != x; then
35412     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35413     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35414   fi
35415 
35416     # Output is in $new_path
35417 
35418   windows_path="$new_path"
35419   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35420     unix_path=`$CYGPATH -u "$windows_path"`
35421     new_path="$unix_path"
35422   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35423     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35424     new_path="$unix_path"
35425   fi
35426 
35427     # remove trailing .exe if any
35428     new_path="${new_path/%.exe/}"
35429 
35430     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35431     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35432   fi
35433 
35434   else
35435     # We're on a posix platform. Hooray! :)
35436     # First separate the path from the arguments. This will split at the first
35437     # space.
35438     complete="$CPP"
35439     path="${complete%% *}"
35440     tmp="$complete EOL"
35441     arguments="${tmp#* }"
35442 
35443     # Cannot rely on the command "which" here since it doesn't always work.
35444     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35445     if test -z "$is_absolute_path"; then
35446       # Path to executable is not absolute. Find it.
35447       IFS_save="$IFS"
35448       IFS=:
35449       for p in $PATH; do
35450         if test -f "$p/$path" && test -x "$p/$path"; then
35451           new_path="$p/$path"
35452           break
35453         fi
35454       done
35455       IFS="$IFS_save"
35456     else
35457       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CPP (as $path) failed, using $path directly." >&5
35458 $as_echo "$as_me: Resolving CPP (as $path) failed, using $path directly." >&6;}
35459       new_path="$path"
35460     fi
35461 
35462     if test "x$new_path" = x; then
35463       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
35464 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
35465       has_space=`$ECHO "$complete" | $GREP " "`
35466       if test "x$has_space" != x; then
35467         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35468 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35469       fi
35470       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35471     fi
35472   fi
35473 
35474   # Now join together the path and the arguments once again
35475   if test "x$arguments" != xEOL; then
35476     new_complete="$new_path ${arguments% *}"
35477   else
35478     new_complete="$new_path"
35479   fi
35480 
35481   if test "x$complete" != "x$new_complete"; then
35482     CPP="$new_complete"
35483     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
35484 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
35485   fi
35486 
35487 
35488   ac_ext=cpp
35489 ac_cpp='$CXXCPP $CPPFLAGS'
35490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
35494 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
35495 if test -z "$CXXCPP"; then
35496   if ${ac_cv_prog_CXXCPP+:} false; then :
35497   $as_echo_n "(cached) " >&6
35498 else
35499       # Double quotes because CXXCPP needs to be expanded
35500     for CXXCPP in "$CXX -E" "/lib/cpp"
35501     do
35502       ac_preproc_ok=false
35503 for ac_cxx_preproc_warn_flag in '' yes
35504 do
35505   # Use a header file that comes with gcc, so configuring glibc
35506   # with a fresh cross-compiler works.
35507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35508   # <limits.h> exists even on freestanding compilers.
35509   # On the NeXT, cc -E runs the code through the compiler's parser,
35510   # not just through cpp. "Syntax error" is here to catch this case.
35511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35512 /* end confdefs.h.  */
35513 #ifdef __STDC__
35514 # include <limits.h>
35515 #else
35516 # include <assert.h>
35517 #endif
35518                      Syntax error
35519 _ACEOF
35520 if ac_fn_cxx_try_cpp "$LINENO"; then :
35521 
35522 else
35523   # Broken: fails on valid input.
35524 continue
35525 fi
35526 rm -f conftest.err conftest.i conftest.$ac_ext
35527 
35528   # OK, works on sane cases.  Now check whether nonexistent headers
35529   # can be detected and how.
35530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35531 /* end confdefs.h.  */
35532 #include <ac_nonexistent.h>
35533 _ACEOF
35534 if ac_fn_cxx_try_cpp "$LINENO"; then :
35535   # Broken: success on invalid input.
35536 continue
35537 else
35538   # Passes both tests.
35539 ac_preproc_ok=:
35540 break
35541 fi
35542 rm -f conftest.err conftest.i conftest.$ac_ext
35543 
35544 done
35545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35546 rm -f conftest.i conftest.err conftest.$ac_ext
35547 if $ac_preproc_ok; then :
35548   break
35549 fi
35550 
35551     done
35552     ac_cv_prog_CXXCPP=$CXXCPP
35553 
35554 fi
35555   CXXCPP=$ac_cv_prog_CXXCPP
35556 else
35557   ac_cv_prog_CXXCPP=$CXXCPP
35558 fi
35559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
35560 $as_echo "$CXXCPP" >&6; }
35561 ac_preproc_ok=false
35562 for ac_cxx_preproc_warn_flag in '' yes
35563 do
35564   # Use a header file that comes with gcc, so configuring glibc
35565   # with a fresh cross-compiler works.
35566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567   # <limits.h> exists even on freestanding compilers.
35568   # On the NeXT, cc -E runs the code through the compiler's parser,
35569   # not just through cpp. "Syntax error" is here to catch this case.
35570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35571 /* end confdefs.h.  */
35572 #ifdef __STDC__
35573 # include <limits.h>
35574 #else
35575 # include <assert.h>
35576 #endif
35577                      Syntax error
35578 _ACEOF
35579 if ac_fn_cxx_try_cpp "$LINENO"; then :
35580 
35581 else
35582   # Broken: fails on valid input.
35583 continue
35584 fi
35585 rm -f conftest.err conftest.i conftest.$ac_ext
35586 
35587   # OK, works on sane cases.  Now check whether nonexistent headers
35588   # can be detected and how.
35589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35590 /* end confdefs.h.  */
35591 #include <ac_nonexistent.h>
35592 _ACEOF
35593 if ac_fn_cxx_try_cpp "$LINENO"; then :
35594   # Broken: success on invalid input.
35595 continue
35596 else
35597   # Passes both tests.
35598 ac_preproc_ok=:
35599 break
35600 fi
35601 rm -f conftest.err conftest.i conftest.$ac_ext
35602 
35603 done
35604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35605 rm -f conftest.i conftest.err conftest.$ac_ext
35606 if $ac_preproc_ok; then :
35607 
35608 else
35609   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35611 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
35612 See \`config.log' for more details" "$LINENO" 5; }
35613 fi
35614 
35615 ac_ext=cpp
35616 ac_cpp='$CXXCPP $CPPFLAGS'
35617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35620 
35621 
35622   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35623 
35624   # First separate the path from the arguments. This will split at the first
35625   # space.
35626   complete="$CXXCPP"
35627   path="${complete%% *}"
35628   tmp="$complete EOL"
35629   arguments="${tmp#* }"
35630 
35631   # Input might be given as Windows format, start by converting to
35632   # unix format.
35633   new_path=`$CYGPATH -u "$path"`
35634 
35635   # Now try to locate executable using which
35636   new_path=`$WHICH "$new_path" 2> /dev/null`
35637   # bat and cmd files are not always considered executable in cygwin causing which
35638   # to not find them
35639   if test "x$new_path" = x \
35640       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35641       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35642     new_path=`$CYGPATH -u "$path"`
35643   fi
35644   if test "x$new_path" = x; then
35645     # Oops. Which didn't find the executable.
35646     # The splitting of arguments from the executable at a space might have been incorrect,
35647     # since paths with space are more likely in Windows. Give it another try with the whole
35648     # argument.
35649     path="$complete"
35650     arguments="EOL"
35651     new_path=`$CYGPATH -u "$path"`
35652     new_path=`$WHICH "$new_path" 2> /dev/null`
35653     # bat and cmd files are not always considered executable in cygwin causing which
35654     # to not find them
35655     if test "x$new_path" = x \
35656         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35657         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35658       new_path=`$CYGPATH -u "$path"`
35659     fi
35660     if test "x$new_path" = x; then
35661       # It's still not found. Now this is an unrecoverable error.
35662       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
35663 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
35664       has_space=`$ECHO "$complete" | $GREP " "`
35665       if test "x$has_space" != x; then
35666         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35667 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35668       fi
35669       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35670     fi
35671   fi
35672 
35673   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35674   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35675   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35676   # "foo.exe" is OK but "foo" is an error.
35677   #
35678   # This test is therefore slightly more accurate than "test -f" to check for file presence.
35679   # It is also a way to make sure we got the proper file name for the real test later on.
35680   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35681   if test "x$test_shortpath" = x; then
35682     # Short path failed, file does not exist as specified.
35683     # Try adding .exe or .cmd
35684     if test -f "${new_path}.exe"; then
35685       input_to_shortpath="${new_path}.exe"
35686     elif test -f "${new_path}.cmd"; then
35687       input_to_shortpath="${new_path}.cmd"
35688     else
35689       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5
35690 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;}
35691       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35692 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35693       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35694     fi
35695   else
35696     input_to_shortpath="$new_path"
35697   fi
35698 
35699   # Call helper function which possibly converts this using DOS-style short mode.
35700   # If so, the updated path is stored in $new_path.
35701   new_path="$input_to_shortpath"
35702 
35703   input_path="$input_to_shortpath"
35704   # Check if we need to convert this using DOS-style short mode. If the path
35705   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35706   # take no chances and rewrite it.
35707   # Note: m4 eats our [], so we need to use [ and ] instead.
35708   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35709   if test "x$has_forbidden_chars" != x; then
35710     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35711     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35712     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35713     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35714       # Going to short mode and back again did indeed matter. Since short mode is
35715       # case insensitive, let's make it lowercase to improve readability.
35716       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35717       # Now convert it back to Unix-stile (cygpath)
35718       input_path=`$CYGPATH -u "$shortmode_path"`
35719       new_path="$input_path"
35720     fi
35721   fi
35722 
35723   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35724   if test "x$test_cygdrive_prefix" = x; then
35725     # As a simple fix, exclude /usr/bin since it's not a real path.
35726     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35727       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35728       # a path prefixed by /cygdrive for fixpath to work.
35729       new_path="$CYGWIN_ROOT_PATH$input_path"
35730     fi
35731   fi
35732 
35733   # remove trailing .exe if any
35734   new_path="${new_path/%.exe/}"
35735 
35736   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35737 
35738   # First separate the path from the arguments. This will split at the first
35739   # space.
35740   complete="$CXXCPP"
35741   path="${complete%% *}"
35742   tmp="$complete EOL"
35743   arguments="${tmp#* }"
35744 
35745   # Input might be given as Windows format, start by converting to
35746   # unix format.
35747   new_path="$path"
35748 
35749   windows_path="$new_path"
35750   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35751     unix_path=`$CYGPATH -u "$windows_path"`
35752     new_path="$unix_path"
35753   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35754     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35755     new_path="$unix_path"
35756   fi
35757 
35758 
35759   # Now try to locate executable using which
35760   new_path=`$WHICH "$new_path" 2> /dev/null`
35761 
35762   if test "x$new_path" = x; then
35763     # Oops. Which didn't find the executable.
35764     # The splitting of arguments from the executable at a space might have been incorrect,
35765     # since paths with space are more likely in Windows. Give it another try with the whole
35766     # argument.
35767     path="$complete"
35768     arguments="EOL"
35769     new_path="$path"
35770 
35771   windows_path="$new_path"
35772   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35773     unix_path=`$CYGPATH -u "$windows_path"`
35774     new_path="$unix_path"
35775   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35776     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35777     new_path="$unix_path"
35778   fi
35779 
35780 
35781     new_path=`$WHICH "$new_path" 2> /dev/null`
35782 
35783     if test "x$new_path" = x; then
35784       # It's still not found. Now this is an unrecoverable error.
35785       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
35786 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
35787       has_space=`$ECHO "$complete" | $GREP " "`
35788       if test "x$has_space" != x; then
35789         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35790 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35791       fi
35792       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35793     fi
35794   fi
35795 
35796   # Now new_path has a complete unix path to the binary
35797   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35798     # Keep paths in /bin as-is, but remove trailing .exe if any
35799     new_path="${new_path/%.exe/}"
35800     # Do not save /bin paths to all_fixpath_prefixes!
35801   else
35802     # Not in mixed or Windows style, start by that.
35803     new_path=`cmd //c echo $new_path`
35804 
35805   input_path="$new_path"
35806   # Check if we need to convert this using DOS-style short mode. If the path
35807   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35808   # take no chances and rewrite it.
35809   # Note: m4 eats our [], so we need to use [ and ] instead.
35810   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35811   if test "x$has_forbidden_chars" != x; then
35812     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35813     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35814   fi
35815 
35816     # Output is in $new_path
35817 
35818   windows_path="$new_path"
35819   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35820     unix_path=`$CYGPATH -u "$windows_path"`
35821     new_path="$unix_path"
35822   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35823     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35824     new_path="$unix_path"
35825   fi
35826 
35827     # remove trailing .exe if any
35828     new_path="${new_path/%.exe/}"
35829 
35830     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35831     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35832   fi
35833 
35834   else
35835     # We're on a posix platform. Hooray! :)
35836     # First separate the path from the arguments. This will split at the first
35837     # space.
35838     complete="$CXXCPP"
35839     path="${complete%% *}"
35840     tmp="$complete EOL"
35841     arguments="${tmp#* }"
35842 
35843     # Cannot rely on the command "which" here since it doesn't always work.
35844     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35845     if test -z "$is_absolute_path"; then
35846       # Path to executable is not absolute. Find it.
35847       IFS_save="$IFS"
35848       IFS=:
35849       for p in $PATH; do
35850         if test -f "$p/$path" && test -x "$p/$path"; then
35851           new_path="$p/$path"
35852           break
35853         fi
35854       done
35855       IFS="$IFS_save"
35856     else
35857       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXXCPP (as $path) failed, using $path directly." >&5
35858 $as_echo "$as_me: Resolving CXXCPP (as $path) failed, using $path directly." >&6;}
35859       new_path="$path"
35860     fi
35861 
35862     if test "x$new_path" = x; then
35863       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
35864 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
35865       has_space=`$ECHO "$complete" | $GREP " "`
35866       if test "x$has_space" != x; then
35867         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35868 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35869       fi
35870       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35871     fi
35872   fi
35873 
35874   # Now join together the path and the arguments once again
35875   if test "x$arguments" != xEOL; then
35876     new_complete="$new_path ${arguments% *}"
35877   else
35878     new_complete="$new_path"
35879   fi
35880 
35881   if test "x$complete" != "x$new_complete"; then
35882     CXXCPP="$new_complete"
35883     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5
35884 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;}
35885   fi
35886 
35887 
35888   if test "x$COMPILE_TYPE" != "xcross"; then
35889     # If we are not cross compiling, use the same compilers for
35890     # building the build platform executables. The cross-compilation
35891     # case needed to be done earlier, but this can only be done after
35892     # the native tools have been localized.
35893     BUILD_CC="$CC"
35894     BUILD_CXX="$CXX"
35895     BUILD_LD="$LD"
35896   fi
35897 
35898   # for solaris we really need solaris tools, and not gnu equivalent
35899   #   these seems to normally reside in /usr/ccs/bin so add that to path before
35900   #   starting to probe
35901   #
35902   #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
35903   #         so that it can be overriden --with-tools-dir
35904   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
35905     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
35906   fi
35907 
35908   # Find the right assembler.
35909   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
35910 
35911 
35912   # Publish this variable in the help.
35913 
35914 
35915   if test "x$AS" = x; then
35916     # The variable is not set by user, try to locate tool using the code snippet
35917     for ac_prog in as
35918 do
35919   # Extract the first word of "$ac_prog", so it can be a program name with args.
35920 set dummy $ac_prog; ac_word=$2
35921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35922 $as_echo_n "checking for $ac_word... " >&6; }
35923 if ${ac_cv_path_AS+:} false; then :
35924   $as_echo_n "(cached) " >&6
35925 else
35926   case $AS in
35927   [\\/]* | ?:[\\/]*)
35928   ac_cv_path_AS="$AS" # Let the user override the test with a path.
35929   ;;
35930   *)
35931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35932 for as_dir in $PATH
35933 do
35934   IFS=$as_save_IFS
35935   test -z "$as_dir" && as_dir=.
35936     for ac_exec_ext in '' $ac_executable_extensions; do
35937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35938     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
35939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35940     break 2
35941   fi
35942 done
35943   done
35944 IFS=$as_save_IFS
35945 
35946   ;;
35947 esac
35948 fi
35949 AS=$ac_cv_path_AS
35950 if test -n "$AS"; then
35951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
35952 $as_echo "$AS" >&6; }
35953 else
35954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35955 $as_echo "no" >&6; }
35956 fi
35957 
35958 
35959   test -n "$AS" && break
35960 done
35961 
35962   else
35963     # The variable is set, but is it from the command line or the environment?
35964 
35965     # Try to remove the string !AS! from our list.
35966     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/}
35967     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35968       # If it failed, the variable was not from the command line. Ignore it,
35969       # but warn the user (except for BASH, which is always set by the calling BASH).
35970       if test "xAS" != xBASH; then
35971         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5
35972 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;}
35973       fi
35974       # Try to locate tool using the code snippet
35975       for ac_prog in as
35976 do
35977   # Extract the first word of "$ac_prog", so it can be a program name with args.
35978 set dummy $ac_prog; ac_word=$2
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35980 $as_echo_n "checking for $ac_word... " >&6; }
35981 if ${ac_cv_path_AS+:} false; then :
35982   $as_echo_n "(cached) " >&6
35983 else
35984   case $AS in
35985   [\\/]* | ?:[\\/]*)
35986   ac_cv_path_AS="$AS" # Let the user override the test with a path.
35987   ;;
35988   *)
35989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35990 for as_dir in $PATH
35991 do
35992   IFS=$as_save_IFS
35993   test -z "$as_dir" && as_dir=.
35994     for ac_exec_ext in '' $ac_executable_extensions; do
35995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35996     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
35997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35998     break 2
35999   fi
36000 done
36001   done
36002 IFS=$as_save_IFS
36003 
36004   ;;
36005 esac
36006 fi
36007 AS=$ac_cv_path_AS
36008 if test -n "$AS"; then
36009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
36010 $as_echo "$AS" >&6; }
36011 else
36012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36013 $as_echo "no" >&6; }
36014 fi
36015 
36016 
36017   test -n "$AS" && break
36018 done
36019 
36020     else
36021       # If it succeeded, then it was overridden by the user. We will use it
36022       # for the tool.
36023 
36024       # First remove it from the list of overridden variables, so we can test
36025       # for unknown variables in the end.
36026       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36027 
36028       # Check if the provided tool contains a complete path.
36029       tool_specified="$AS"
36030       tool_basename="${tool_specified##*/}"
36031       if test "x$tool_basename" = "x$tool_specified"; then
36032         # A command without a complete path is provided, search $PATH.
36033         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5
36034 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;}
36035         # Extract the first word of "$tool_basename", so it can be a program name with args.
36036 set dummy $tool_basename; ac_word=$2
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36038 $as_echo_n "checking for $ac_word... " >&6; }
36039 if ${ac_cv_path_AS+:} false; then :
36040   $as_echo_n "(cached) " >&6
36041 else
36042   case $AS in
36043   [\\/]* | ?:[\\/]*)
36044   ac_cv_path_AS="$AS" # Let the user override the test with a path.
36045   ;;
36046   *)
36047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36048 for as_dir in $PATH
36049 do
36050   IFS=$as_save_IFS
36051   test -z "$as_dir" && as_dir=.
36052     for ac_exec_ext in '' $ac_executable_extensions; do
36053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36054     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
36055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36056     break 2
36057   fi
36058 done
36059   done
36060 IFS=$as_save_IFS
36061 
36062   ;;
36063 esac
36064 fi
36065 AS=$ac_cv_path_AS
36066 if test -n "$AS"; then
36067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
36068 $as_echo "$AS" >&6; }
36069 else
36070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36071 $as_echo "no" >&6; }
36072 fi
36073 
36074 
36075         if test "x$AS" = x; then
36076           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36077         fi
36078       else
36079         # Otherwise we believe it is a complete path. Use it as it is.
36080         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5
36081 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;}
36082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5
36083 $as_echo_n "checking for AS... " >&6; }
36084         if test ! -x "$tool_specified"; then
36085           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36086 $as_echo "not found" >&6; }
36087           as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5
36088         fi
36089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36090 $as_echo "$tool_specified" >&6; }
36091       fi
36092     fi
36093   fi
36094 
36095 
36096 
36097   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36098 
36099   # First separate the path from the arguments. This will split at the first
36100   # space.
36101   complete="$AS"
36102   path="${complete%% *}"
36103   tmp="$complete EOL"
36104   arguments="${tmp#* }"
36105 
36106   # Input might be given as Windows format, start by converting to
36107   # unix format.
36108   new_path=`$CYGPATH -u "$path"`
36109 
36110   # Now try to locate executable using which
36111   new_path=`$WHICH "$new_path" 2> /dev/null`
36112   # bat and cmd files are not always considered executable in cygwin causing which
36113   # to not find them
36114   if test "x$new_path" = x \
36115       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36116       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36117     new_path=`$CYGPATH -u "$path"`
36118   fi
36119   if test "x$new_path" = x; then
36120     # Oops. Which didn't find the executable.
36121     # The splitting of arguments from the executable at a space might have been incorrect,
36122     # since paths with space are more likely in Windows. Give it another try with the whole
36123     # argument.
36124     path="$complete"
36125     arguments="EOL"
36126     new_path=`$CYGPATH -u "$path"`
36127     new_path=`$WHICH "$new_path" 2> /dev/null`
36128     # bat and cmd files are not always considered executable in cygwin causing which
36129     # to not find them
36130     if test "x$new_path" = x \
36131         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36132         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36133       new_path=`$CYGPATH -u "$path"`
36134     fi
36135     if test "x$new_path" = x; then
36136       # It's still not found. Now this is an unrecoverable error.
36137       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
36138 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
36139       has_space=`$ECHO "$complete" | $GREP " "`
36140       if test "x$has_space" != x; then
36141         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36142 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36143       fi
36144       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36145     fi
36146   fi
36147 
36148   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36149   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36150   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36151   # "foo.exe" is OK but "foo" is an error.
36152   #
36153   # This test is therefore slightly more accurate than "test -f" to check for file presence.
36154   # It is also a way to make sure we got the proper file name for the real test later on.
36155   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36156   if test "x$test_shortpath" = x; then
36157     # Short path failed, file does not exist as specified.
36158     # Try adding .exe or .cmd
36159     if test -f "${new_path}.exe"; then
36160       input_to_shortpath="${new_path}.exe"
36161     elif test -f "${new_path}.cmd"; then
36162       input_to_shortpath="${new_path}.cmd"
36163     else
36164       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5
36165 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;}
36166       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36167 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36168       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36169     fi
36170   else
36171     input_to_shortpath="$new_path"
36172   fi
36173 
36174   # Call helper function which possibly converts this using DOS-style short mode.
36175   # If so, the updated path is stored in $new_path.
36176   new_path="$input_to_shortpath"
36177 
36178   input_path="$input_to_shortpath"
36179   # Check if we need to convert this using DOS-style short mode. If the path
36180   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36181   # take no chances and rewrite it.
36182   # Note: m4 eats our [], so we need to use [ and ] instead.
36183   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36184   if test "x$has_forbidden_chars" != x; then
36185     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36186     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36187     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36188     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36189       # Going to short mode and back again did indeed matter. Since short mode is
36190       # case insensitive, let's make it lowercase to improve readability.
36191       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36192       # Now convert it back to Unix-stile (cygpath)
36193       input_path=`$CYGPATH -u "$shortmode_path"`
36194       new_path="$input_path"
36195     fi
36196   fi
36197 
36198   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36199   if test "x$test_cygdrive_prefix" = x; then
36200     # As a simple fix, exclude /usr/bin since it's not a real path.
36201     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36202       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36203       # a path prefixed by /cygdrive for fixpath to work.
36204       new_path="$CYGWIN_ROOT_PATH$input_path"
36205     fi
36206   fi
36207 
36208   # remove trailing .exe if any
36209   new_path="${new_path/%.exe/}"
36210 
36211   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36212 
36213   # First separate the path from the arguments. This will split at the first
36214   # space.
36215   complete="$AS"
36216   path="${complete%% *}"
36217   tmp="$complete EOL"
36218   arguments="${tmp#* }"
36219 
36220   # Input might be given as Windows format, start by converting to
36221   # unix format.
36222   new_path="$path"
36223 
36224   windows_path="$new_path"
36225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36226     unix_path=`$CYGPATH -u "$windows_path"`
36227     new_path="$unix_path"
36228   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36229     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36230     new_path="$unix_path"
36231   fi
36232 
36233 
36234   # Now try to locate executable using which
36235   new_path=`$WHICH "$new_path" 2> /dev/null`
36236 
36237   if test "x$new_path" = x; then
36238     # Oops. Which didn't find the executable.
36239     # The splitting of arguments from the executable at a space might have been incorrect,
36240     # since paths with space are more likely in Windows. Give it another try with the whole
36241     # argument.
36242     path="$complete"
36243     arguments="EOL"
36244     new_path="$path"
36245 
36246   windows_path="$new_path"
36247   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36248     unix_path=`$CYGPATH -u "$windows_path"`
36249     new_path="$unix_path"
36250   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36251     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36252     new_path="$unix_path"
36253   fi
36254 
36255 
36256     new_path=`$WHICH "$new_path" 2> /dev/null`
36257 
36258     if test "x$new_path" = x; then
36259       # It's still not found. Now this is an unrecoverable error.
36260       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
36261 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
36262       has_space=`$ECHO "$complete" | $GREP " "`
36263       if test "x$has_space" != x; then
36264         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36265 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36266       fi
36267       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36268     fi
36269   fi
36270 
36271   # Now new_path has a complete unix path to the binary
36272   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36273     # Keep paths in /bin as-is, but remove trailing .exe if any
36274     new_path="${new_path/%.exe/}"
36275     # Do not save /bin paths to all_fixpath_prefixes!
36276   else
36277     # Not in mixed or Windows style, start by that.
36278     new_path=`cmd //c echo $new_path`
36279 
36280   input_path="$new_path"
36281   # Check if we need to convert this using DOS-style short mode. If the path
36282   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36283   # take no chances and rewrite it.
36284   # Note: m4 eats our [], so we need to use [ and ] instead.
36285   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36286   if test "x$has_forbidden_chars" != x; then
36287     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36288     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36289   fi
36290 
36291     # Output is in $new_path
36292 
36293   windows_path="$new_path"
36294   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36295     unix_path=`$CYGPATH -u "$windows_path"`
36296     new_path="$unix_path"
36297   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36298     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36299     new_path="$unix_path"
36300   fi
36301 
36302     # remove trailing .exe if any
36303     new_path="${new_path/%.exe/}"
36304 
36305     # Save the first 10 bytes of this path to the storage, so fixpath can work.
36306     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36307   fi
36308 
36309   else
36310     # We're on a posix platform. Hooray! :)
36311     # First separate the path from the arguments. This will split at the first
36312     # space.
36313     complete="$AS"
36314     path="${complete%% *}"
36315     tmp="$complete EOL"
36316     arguments="${tmp#* }"
36317 
36318     # Cannot rely on the command "which" here since it doesn't always work.
36319     is_absolute_path=`$ECHO "$path" | $GREP ^/`
36320     if test -z "$is_absolute_path"; then
36321       # Path to executable is not absolute. Find it.
36322       IFS_save="$IFS"
36323       IFS=:
36324       for p in $PATH; do
36325         if test -f "$p/$path" && test -x "$p/$path"; then
36326           new_path="$p/$path"
36327           break
36328         fi
36329       done
36330       IFS="$IFS_save"
36331     else
36332       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AS (as $path) failed, using $path directly." >&5
36333 $as_echo "$as_me: Resolving AS (as $path) failed, using $path directly." >&6;}
36334       new_path="$path"
36335     fi
36336 
36337     if test "x$new_path" = x; then
36338       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
36339 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
36340       has_space=`$ECHO "$complete" | $GREP " "`
36341       if test "x$has_space" != x; then
36342         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36343 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36344       fi
36345       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36346     fi
36347   fi
36348 
36349   # Now join together the path and the arguments once again
36350   if test "x$arguments" != xEOL; then
36351     new_complete="$new_path ${arguments% *}"
36352   else
36353     new_complete="$new_path"
36354   fi
36355 
36356   if test "x$complete" != "x$new_complete"; then
36357     AS="$new_complete"
36358     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
36359 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
36360   fi
36361 
36362   else
36363     AS="$CC -c"
36364   fi
36365 
36366 
36367   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
36368 
36369 
36370   # Publish this variable in the help.
36371 
36372 
36373   if test "x$NM" = x; then
36374     # The variable is not set by user, try to locate tool using the code snippet
36375     for ac_prog in nm
36376 do
36377   # Extract the first word of "$ac_prog", so it can be a program name with args.
36378 set dummy $ac_prog; ac_word=$2
36379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36380 $as_echo_n "checking for $ac_word... " >&6; }
36381 if ${ac_cv_path_NM+:} false; then :
36382   $as_echo_n "(cached) " >&6
36383 else
36384   case $NM in
36385   [\\/]* | ?:[\\/]*)
36386   ac_cv_path_NM="$NM" # Let the user override the test with a path.
36387   ;;
36388   *)
36389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36390 for as_dir in $PATH
36391 do
36392   IFS=$as_save_IFS
36393   test -z "$as_dir" && as_dir=.
36394     for ac_exec_ext in '' $ac_executable_extensions; do
36395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36396     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
36397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36398     break 2
36399   fi
36400 done
36401   done
36402 IFS=$as_save_IFS
36403 
36404   ;;
36405 esac
36406 fi
36407 NM=$ac_cv_path_NM
36408 if test -n "$NM"; then
36409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36410 $as_echo "$NM" >&6; }
36411 else
36412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36413 $as_echo "no" >&6; }
36414 fi
36415 
36416 
36417   test -n "$NM" && break
36418 done
36419 
36420   else
36421     # The variable is set, but is it from the command line or the environment?
36422 
36423     # Try to remove the string !NM! from our list.
36424     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
36425     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36426       # If it failed, the variable was not from the command line. Ignore it,
36427       # but warn the user (except for BASH, which is always set by the calling BASH).
36428       if test "xNM" != xBASH; then
36429         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
36430 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
36431       fi
36432       # Try to locate tool using the code snippet
36433       for ac_prog in nm
36434 do
36435   # Extract the first word of "$ac_prog", so it can be a program name with args.
36436 set dummy $ac_prog; ac_word=$2
36437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36438 $as_echo_n "checking for $ac_word... " >&6; }
36439 if ${ac_cv_path_NM+:} false; then :
36440   $as_echo_n "(cached) " >&6
36441 else
36442   case $NM in
36443   [\\/]* | ?:[\\/]*)
36444   ac_cv_path_NM="$NM" # Let the user override the test with a path.
36445   ;;
36446   *)
36447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36448 for as_dir in $PATH
36449 do
36450   IFS=$as_save_IFS
36451   test -z "$as_dir" && as_dir=.
36452     for ac_exec_ext in '' $ac_executable_extensions; do
36453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36454     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
36455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36456     break 2
36457   fi
36458 done
36459   done
36460 IFS=$as_save_IFS
36461 
36462   ;;
36463 esac
36464 fi
36465 NM=$ac_cv_path_NM
36466 if test -n "$NM"; then
36467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36468 $as_echo "$NM" >&6; }
36469 else
36470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36471 $as_echo "no" >&6; }
36472 fi
36473 
36474 
36475   test -n "$NM" && break
36476 done
36477 
36478     else
36479       # If it succeeded, then it was overridden by the user. We will use it
36480       # for the tool.
36481 
36482       # First remove it from the list of overridden variables, so we can test
36483       # for unknown variables in the end.
36484       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36485 
36486       # Check if the provided tool contains a complete path.
36487       tool_specified="$NM"
36488       tool_basename="${tool_specified##*/}"
36489       if test "x$tool_basename" = "x$tool_specified"; then
36490         # A command without a complete path is provided, search $PATH.
36491         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
36492 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
36493         # Extract the first word of "$tool_basename", so it can be a program name with args.
36494 set dummy $tool_basename; ac_word=$2
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36496 $as_echo_n "checking for $ac_word... " >&6; }
36497 if ${ac_cv_path_NM+:} false; then :
36498   $as_echo_n "(cached) " >&6
36499 else
36500   case $NM in
36501   [\\/]* | ?:[\\/]*)
36502   ac_cv_path_NM="$NM" # Let the user override the test with a path.
36503   ;;
36504   *)
36505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36506 for as_dir in $PATH
36507 do
36508   IFS=$as_save_IFS
36509   test -z "$as_dir" && as_dir=.
36510     for ac_exec_ext in '' $ac_executable_extensions; do
36511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36512     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
36513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36514     break 2
36515   fi
36516 done
36517   done
36518 IFS=$as_save_IFS
36519 
36520   ;;
36521 esac
36522 fi
36523 NM=$ac_cv_path_NM
36524 if test -n "$NM"; then
36525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36526 $as_echo "$NM" >&6; }
36527 else
36528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36529 $as_echo "no" >&6; }
36530 fi
36531 
36532 
36533         if test "x$NM" = x; then
36534           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36535         fi
36536       else
36537         # Otherwise we believe it is a complete path. Use it as it is.
36538         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
36539 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
36540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
36541 $as_echo_n "checking for NM... " >&6; }
36542         if test ! -x "$tool_specified"; then
36543           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36544 $as_echo "not found" >&6; }
36545           as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
36546         fi
36547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36548 $as_echo "$tool_specified" >&6; }
36549       fi
36550     fi
36551   fi
36552 
36553 
36554 
36555   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36556 
36557   # First separate the path from the arguments. This will split at the first
36558   # space.
36559   complete="$NM"
36560   path="${complete%% *}"
36561   tmp="$complete EOL"
36562   arguments="${tmp#* }"
36563 
36564   # Input might be given as Windows format, start by converting to
36565   # unix format.
36566   new_path=`$CYGPATH -u "$path"`
36567 
36568   # Now try to locate executable using which
36569   new_path=`$WHICH "$new_path" 2> /dev/null`
36570   # bat and cmd files are not always considered executable in cygwin causing which
36571   # to not find them
36572   if test "x$new_path" = x \
36573       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36574       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36575     new_path=`$CYGPATH -u "$path"`
36576   fi
36577   if test "x$new_path" = x; then
36578     # Oops. Which didn't find the executable.
36579     # The splitting of arguments from the executable at a space might have been incorrect,
36580     # since paths with space are more likely in Windows. Give it another try with the whole
36581     # argument.
36582     path="$complete"
36583     arguments="EOL"
36584     new_path=`$CYGPATH -u "$path"`
36585     new_path=`$WHICH "$new_path" 2> /dev/null`
36586     # bat and cmd files are not always considered executable in cygwin causing which
36587     # to not find them
36588     if test "x$new_path" = x \
36589         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36590         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36591       new_path=`$CYGPATH -u "$path"`
36592     fi
36593     if test "x$new_path" = x; then
36594       # It's still not found. Now this is an unrecoverable error.
36595       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
36596 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
36597       has_space=`$ECHO "$complete" | $GREP " "`
36598       if test "x$has_space" != x; then
36599         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36600 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36601       fi
36602       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36603     fi
36604   fi
36605 
36606   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36607   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36608   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36609   # "foo.exe" is OK but "foo" is an error.
36610   #
36611   # This test is therefore slightly more accurate than "test -f" to check for file presence.
36612   # It is also a way to make sure we got the proper file name for the real test later on.
36613   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36614   if test "x$test_shortpath" = x; then
36615     # Short path failed, file does not exist as specified.
36616     # Try adding .exe or .cmd
36617     if test -f "${new_path}.exe"; then
36618       input_to_shortpath="${new_path}.exe"
36619     elif test -f "${new_path}.cmd"; then
36620       input_to_shortpath="${new_path}.cmd"
36621     else
36622       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
36623 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
36624       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36625 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36626       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36627     fi
36628   else
36629     input_to_shortpath="$new_path"
36630   fi
36631 
36632   # Call helper function which possibly converts this using DOS-style short mode.
36633   # If so, the updated path is stored in $new_path.
36634   new_path="$input_to_shortpath"
36635 
36636   input_path="$input_to_shortpath"
36637   # Check if we need to convert this using DOS-style short mode. If the path
36638   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36639   # take no chances and rewrite it.
36640   # Note: m4 eats our [], so we need to use [ and ] instead.
36641   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36642   if test "x$has_forbidden_chars" != x; then
36643     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36644     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36645     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36646     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36647       # Going to short mode and back again did indeed matter. Since short mode is
36648       # case insensitive, let's make it lowercase to improve readability.
36649       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36650       # Now convert it back to Unix-stile (cygpath)
36651       input_path=`$CYGPATH -u "$shortmode_path"`
36652       new_path="$input_path"
36653     fi
36654   fi
36655 
36656   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36657   if test "x$test_cygdrive_prefix" = x; then
36658     # As a simple fix, exclude /usr/bin since it's not a real path.
36659     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36660       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36661       # a path prefixed by /cygdrive for fixpath to work.
36662       new_path="$CYGWIN_ROOT_PATH$input_path"
36663     fi
36664   fi
36665 
36666   # remove trailing .exe if any
36667   new_path="${new_path/%.exe/}"
36668 
36669   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36670 
36671   # First separate the path from the arguments. This will split at the first
36672   # space.
36673   complete="$NM"
36674   path="${complete%% *}"
36675   tmp="$complete EOL"
36676   arguments="${tmp#* }"
36677 
36678   # Input might be given as Windows format, start by converting to
36679   # unix format.
36680   new_path="$path"
36681 
36682   windows_path="$new_path"
36683   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36684     unix_path=`$CYGPATH -u "$windows_path"`
36685     new_path="$unix_path"
36686   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36687     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36688     new_path="$unix_path"
36689   fi
36690 
36691 
36692   # Now try to locate executable using which
36693   new_path=`$WHICH "$new_path" 2> /dev/null`
36694 
36695   if test "x$new_path" = x; then
36696     # Oops. Which didn't find the executable.
36697     # The splitting of arguments from the executable at a space might have been incorrect,
36698     # since paths with space are more likely in Windows. Give it another try with the whole
36699     # argument.
36700     path="$complete"
36701     arguments="EOL"
36702     new_path="$path"
36703 
36704   windows_path="$new_path"
36705   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36706     unix_path=`$CYGPATH -u "$windows_path"`
36707     new_path="$unix_path"
36708   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36709     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36710     new_path="$unix_path"
36711   fi
36712 
36713 
36714     new_path=`$WHICH "$new_path" 2> /dev/null`
36715 
36716     if test "x$new_path" = x; then
36717       # It's still not found. Now this is an unrecoverable error.
36718       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
36719 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
36720       has_space=`$ECHO "$complete" | $GREP " "`
36721       if test "x$has_space" != x; then
36722         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36723 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36724       fi
36725       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36726     fi
36727   fi
36728 
36729   # Now new_path has a complete unix path to the binary
36730   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36731     # Keep paths in /bin as-is, but remove trailing .exe if any
36732     new_path="${new_path/%.exe/}"
36733     # Do not save /bin paths to all_fixpath_prefixes!
36734   else
36735     # Not in mixed or Windows style, start by that.
36736     new_path=`cmd //c echo $new_path`
36737 
36738   input_path="$new_path"
36739   # Check if we need to convert this using DOS-style short mode. If the path
36740   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36741   # take no chances and rewrite it.
36742   # Note: m4 eats our [], so we need to use [ and ] instead.
36743   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36744   if test "x$has_forbidden_chars" != x; then
36745     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36746     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36747   fi
36748 
36749     # Output is in $new_path
36750 
36751   windows_path="$new_path"
36752   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36753     unix_path=`$CYGPATH -u "$windows_path"`
36754     new_path="$unix_path"
36755   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36756     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36757     new_path="$unix_path"
36758   fi
36759 
36760     # remove trailing .exe if any
36761     new_path="${new_path/%.exe/}"
36762 
36763     # Save the first 10 bytes of this path to the storage, so fixpath can work.
36764     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36765   fi
36766 
36767   else
36768     # We're on a posix platform. Hooray! :)
36769     # First separate the path from the arguments. This will split at the first
36770     # space.
36771     complete="$NM"
36772     path="${complete%% *}"
36773     tmp="$complete EOL"
36774     arguments="${tmp#* }"
36775 
36776     # Cannot rely on the command "which" here since it doesn't always work.
36777     is_absolute_path=`$ECHO "$path" | $GREP ^/`
36778     if test -z "$is_absolute_path"; then
36779       # Path to executable is not absolute. Find it.
36780       IFS_save="$IFS"
36781       IFS=:
36782       for p in $PATH; do
36783         if test -f "$p/$path" && test -x "$p/$path"; then
36784           new_path="$p/$path"
36785           break
36786         fi
36787       done
36788       IFS="$IFS_save"
36789     else
36790       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5
36791 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;}
36792       new_path="$path"
36793     fi
36794 
36795     if test "x$new_path" = x; then
36796       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
36797 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
36798       has_space=`$ECHO "$complete" | $GREP " "`
36799       if test "x$has_space" != x; then
36800         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36801 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36802       fi
36803       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36804     fi
36805   fi
36806 
36807   # Now join together the path and the arguments once again
36808   if test "x$arguments" != xEOL; then
36809     new_complete="$new_path ${arguments% *}"
36810   else
36811     new_complete="$new_path"
36812   fi
36813 
36814   if test "x$complete" != "x$new_complete"; then
36815     NM="$new_complete"
36816     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
36817 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
36818   fi
36819 
36820 
36821 
36822   # Publish this variable in the help.
36823 
36824 
36825   if test "x$GNM" = x; then
36826     # The variable is not set by user, try to locate tool using the code snippet
36827     for ac_prog in gnm
36828 do
36829   # Extract the first word of "$ac_prog", so it can be a program name with args.
36830 set dummy $ac_prog; ac_word=$2
36831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36832 $as_echo_n "checking for $ac_word... " >&6; }
36833 if ${ac_cv_path_GNM+:} false; then :
36834   $as_echo_n "(cached) " >&6
36835 else
36836   case $GNM in
36837   [\\/]* | ?:[\\/]*)
36838   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
36839   ;;
36840   *)
36841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36842 for as_dir in $PATH
36843 do
36844   IFS=$as_save_IFS
36845   test -z "$as_dir" && as_dir=.
36846     for ac_exec_ext in '' $ac_executable_extensions; do
36847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36848     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
36849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36850     break 2
36851   fi
36852 done
36853   done
36854 IFS=$as_save_IFS
36855 
36856   ;;
36857 esac
36858 fi
36859 GNM=$ac_cv_path_GNM
36860 if test -n "$GNM"; then
36861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
36862 $as_echo "$GNM" >&6; }
36863 else
36864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36865 $as_echo "no" >&6; }
36866 fi
36867 
36868 
36869   test -n "$GNM" && break
36870 done
36871 
36872   else
36873     # The variable is set, but is it from the command line or the environment?
36874 
36875     # Try to remove the string !GNM! from our list.
36876     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/}
36877     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36878       # If it failed, the variable was not from the command line. Ignore it,
36879       # but warn the user (except for BASH, which is always set by the calling BASH).
36880       if test "xGNM" != xBASH; then
36881         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5
36882 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;}
36883       fi
36884       # Try to locate tool using the code snippet
36885       for ac_prog in gnm
36886 do
36887   # Extract the first word of "$ac_prog", so it can be a program name with args.
36888 set dummy $ac_prog; ac_word=$2
36889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36890 $as_echo_n "checking for $ac_word... " >&6; }
36891 if ${ac_cv_path_GNM+:} false; then :
36892   $as_echo_n "(cached) " >&6
36893 else
36894   case $GNM in
36895   [\\/]* | ?:[\\/]*)
36896   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
36897   ;;
36898   *)
36899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36900 for as_dir in $PATH
36901 do
36902   IFS=$as_save_IFS
36903   test -z "$as_dir" && as_dir=.
36904     for ac_exec_ext in '' $ac_executable_extensions; do
36905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36906     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
36907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36908     break 2
36909   fi
36910 done
36911   done
36912 IFS=$as_save_IFS
36913 
36914   ;;
36915 esac
36916 fi
36917 GNM=$ac_cv_path_GNM
36918 if test -n "$GNM"; then
36919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
36920 $as_echo "$GNM" >&6; }
36921 else
36922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36923 $as_echo "no" >&6; }
36924 fi
36925 
36926 
36927   test -n "$GNM" && break
36928 done
36929 
36930     else
36931       # If it succeeded, then it was overridden by the user. We will use it
36932       # for the tool.
36933 
36934       # First remove it from the list of overridden variables, so we can test
36935       # for unknown variables in the end.
36936       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36937 
36938       # Check if the provided tool contains a complete path.
36939       tool_specified="$GNM"
36940       tool_basename="${tool_specified##*/}"
36941       if test "x$tool_basename" = "x$tool_specified"; then
36942         # A command without a complete path is provided, search $PATH.
36943         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5
36944 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;}
36945         # Extract the first word of "$tool_basename", so it can be a program name with args.
36946 set dummy $tool_basename; ac_word=$2
36947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36948 $as_echo_n "checking for $ac_word... " >&6; }
36949 if ${ac_cv_path_GNM+:} false; then :
36950   $as_echo_n "(cached) " >&6
36951 else
36952   case $GNM in
36953   [\\/]* | ?:[\\/]*)
36954   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
36955   ;;
36956   *)
36957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36958 for as_dir in $PATH
36959 do
36960   IFS=$as_save_IFS
36961   test -z "$as_dir" && as_dir=.
36962     for ac_exec_ext in '' $ac_executable_extensions; do
36963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36964     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
36965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36966     break 2
36967   fi
36968 done
36969   done
36970 IFS=$as_save_IFS
36971 
36972   ;;
36973 esac
36974 fi
36975 GNM=$ac_cv_path_GNM
36976 if test -n "$GNM"; then
36977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
36978 $as_echo "$GNM" >&6; }
36979 else
36980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36981 $as_echo "no" >&6; }
36982 fi
36983 
36984 
36985         if test "x$GNM" = x; then
36986           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36987         fi
36988       else
36989         # Otherwise we believe it is a complete path. Use it as it is.
36990         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5
36991 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;}
36992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5
36993 $as_echo_n "checking for GNM... " >&6; }
36994         if test ! -x "$tool_specified"; then
36995           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36996 $as_echo "not found" >&6; }
36997           as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5
36998         fi
36999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37000 $as_echo "$tool_specified" >&6; }
37001       fi
37002     fi
37003   fi
37004 
37005 
37006 
37007   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37008 
37009   # First separate the path from the arguments. This will split at the first
37010   # space.
37011   complete="$GNM"
37012   path="${complete%% *}"
37013   tmp="$complete EOL"
37014   arguments="${tmp#* }"
37015 
37016   # Input might be given as Windows format, start by converting to
37017   # unix format.
37018   new_path=`$CYGPATH -u "$path"`
37019 
37020   # Now try to locate executable using which
37021   new_path=`$WHICH "$new_path" 2> /dev/null`
37022   # bat and cmd files are not always considered executable in cygwin causing which
37023   # to not find them
37024   if test "x$new_path" = x \
37025       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37026       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37027     new_path=`$CYGPATH -u "$path"`
37028   fi
37029   if test "x$new_path" = x; then
37030     # Oops. Which didn't find the executable.
37031     # The splitting of arguments from the executable at a space might have been incorrect,
37032     # since paths with space are more likely in Windows. Give it another try with the whole
37033     # argument.
37034     path="$complete"
37035     arguments="EOL"
37036     new_path=`$CYGPATH -u "$path"`
37037     new_path=`$WHICH "$new_path" 2> /dev/null`
37038     # bat and cmd files are not always considered executable in cygwin causing which
37039     # to not find them
37040     if test "x$new_path" = x \
37041         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37042         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37043       new_path=`$CYGPATH -u "$path"`
37044     fi
37045     if test "x$new_path" = x; then
37046       # It's still not found. Now this is an unrecoverable error.
37047       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
37048 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
37049       has_space=`$ECHO "$complete" | $GREP " "`
37050       if test "x$has_space" != x; then
37051         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37052 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37053       fi
37054       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37055     fi
37056   fi
37057 
37058   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37059   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37060   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37061   # "foo.exe" is OK but "foo" is an error.
37062   #
37063   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37064   # It is also a way to make sure we got the proper file name for the real test later on.
37065   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37066   if test "x$test_shortpath" = x; then
37067     # Short path failed, file does not exist as specified.
37068     # Try adding .exe or .cmd
37069     if test -f "${new_path}.exe"; then
37070       input_to_shortpath="${new_path}.exe"
37071     elif test -f "${new_path}.cmd"; then
37072       input_to_shortpath="${new_path}.cmd"
37073     else
37074       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5
37075 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;}
37076       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37077 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37078       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37079     fi
37080   else
37081     input_to_shortpath="$new_path"
37082   fi
37083 
37084   # Call helper function which possibly converts this using DOS-style short mode.
37085   # If so, the updated path is stored in $new_path.
37086   new_path="$input_to_shortpath"
37087 
37088   input_path="$input_to_shortpath"
37089   # Check if we need to convert this using DOS-style short mode. If the path
37090   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37091   # take no chances and rewrite it.
37092   # Note: m4 eats our [], so we need to use [ and ] instead.
37093   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37094   if test "x$has_forbidden_chars" != x; then
37095     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37096     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37097     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37098     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37099       # Going to short mode and back again did indeed matter. Since short mode is
37100       # case insensitive, let's make it lowercase to improve readability.
37101       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37102       # Now convert it back to Unix-stile (cygpath)
37103       input_path=`$CYGPATH -u "$shortmode_path"`
37104       new_path="$input_path"
37105     fi
37106   fi
37107 
37108   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37109   if test "x$test_cygdrive_prefix" = x; then
37110     # As a simple fix, exclude /usr/bin since it's not a real path.
37111     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37112       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37113       # a path prefixed by /cygdrive for fixpath to work.
37114       new_path="$CYGWIN_ROOT_PATH$input_path"
37115     fi
37116   fi
37117 
37118   # remove trailing .exe if any
37119   new_path="${new_path/%.exe/}"
37120 
37121   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37122 
37123   # First separate the path from the arguments. This will split at the first
37124   # space.
37125   complete="$GNM"
37126   path="${complete%% *}"
37127   tmp="$complete EOL"
37128   arguments="${tmp#* }"
37129 
37130   # Input might be given as Windows format, start by converting to
37131   # unix format.
37132   new_path="$path"
37133 
37134   windows_path="$new_path"
37135   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37136     unix_path=`$CYGPATH -u "$windows_path"`
37137     new_path="$unix_path"
37138   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37139     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37140     new_path="$unix_path"
37141   fi
37142 
37143 
37144   # Now try to locate executable using which
37145   new_path=`$WHICH "$new_path" 2> /dev/null`
37146 
37147   if test "x$new_path" = x; then
37148     # Oops. Which didn't find the executable.
37149     # The splitting of arguments from the executable at a space might have been incorrect,
37150     # since paths with space are more likely in Windows. Give it another try with the whole
37151     # argument.
37152     path="$complete"
37153     arguments="EOL"
37154     new_path="$path"
37155 
37156   windows_path="$new_path"
37157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37158     unix_path=`$CYGPATH -u "$windows_path"`
37159     new_path="$unix_path"
37160   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37161     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37162     new_path="$unix_path"
37163   fi
37164 
37165 
37166     new_path=`$WHICH "$new_path" 2> /dev/null`
37167 
37168     if test "x$new_path" = x; then
37169       # It's still not found. Now this is an unrecoverable error.
37170       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
37171 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
37172       has_space=`$ECHO "$complete" | $GREP " "`
37173       if test "x$has_space" != x; then
37174         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37176       fi
37177       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37178     fi
37179   fi
37180 
37181   # Now new_path has a complete unix path to the binary
37182   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37183     # Keep paths in /bin as-is, but remove trailing .exe if any
37184     new_path="${new_path/%.exe/}"
37185     # Do not save /bin paths to all_fixpath_prefixes!
37186   else
37187     # Not in mixed or Windows style, start by that.
37188     new_path=`cmd //c echo $new_path`
37189 
37190   input_path="$new_path"
37191   # Check if we need to convert this using DOS-style short mode. If the path
37192   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37193   # take no chances and rewrite it.
37194   # Note: m4 eats our [], so we need to use [ and ] instead.
37195   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37196   if test "x$has_forbidden_chars" != x; then
37197     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37198     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37199   fi
37200 
37201     # Output is in $new_path
37202 
37203   windows_path="$new_path"
37204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37205     unix_path=`$CYGPATH -u "$windows_path"`
37206     new_path="$unix_path"
37207   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37208     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37209     new_path="$unix_path"
37210   fi
37211 
37212     # remove trailing .exe if any
37213     new_path="${new_path/%.exe/}"
37214 
37215     # Save the first 10 bytes of this path to the storage, so fixpath can work.
37216     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37217   fi
37218 
37219   else
37220     # We're on a posix platform. Hooray! :)
37221     # First separate the path from the arguments. This will split at the first
37222     # space.
37223     complete="$GNM"
37224     path="${complete%% *}"
37225     tmp="$complete EOL"
37226     arguments="${tmp#* }"
37227 
37228     # Cannot rely on the command "which" here since it doesn't always work.
37229     is_absolute_path=`$ECHO "$path" | $GREP ^/`
37230     if test -z "$is_absolute_path"; then
37231       # Path to executable is not absolute. Find it.
37232       IFS_save="$IFS"
37233       IFS=:
37234       for p in $PATH; do
37235         if test -f "$p/$path" && test -x "$p/$path"; then
37236           new_path="$p/$path"
37237           break
37238         fi
37239       done
37240       IFS="$IFS_save"
37241     else
37242       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving GNM (as $path) failed, using $path directly." >&5
37243 $as_echo "$as_me: Resolving GNM (as $path) failed, using $path directly." >&6;}
37244       new_path="$path"
37245     fi
37246 
37247     if test "x$new_path" = x; then
37248       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
37249 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
37250       has_space=`$ECHO "$complete" | $GREP " "`
37251       if test "x$has_space" != x; then
37252         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37253 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37254       fi
37255       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37256     fi
37257   fi
37258 
37259   # Now join together the path and the arguments once again
37260   if test "x$arguments" != xEOL; then
37261     new_complete="$new_path ${arguments% *}"
37262   else
37263     new_complete="$new_path"
37264   fi
37265 
37266   if test "x$complete" != "x$new_complete"; then
37267     GNM="$new_complete"
37268     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
37269 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
37270   fi
37271 
37272 
37273 
37274   # Publish this variable in the help.
37275 
37276 
37277   if test "x$STRIP" = x; then
37278     # The variable is not set by user, try to locate tool using the code snippet
37279     for ac_prog in strip
37280 do
37281   # Extract the first word of "$ac_prog", so it can be a program name with args.
37282 set dummy $ac_prog; ac_word=$2
37283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37284 $as_echo_n "checking for $ac_word... " >&6; }
37285 if ${ac_cv_path_STRIP+:} false; then :
37286   $as_echo_n "(cached) " >&6
37287 else
37288   case $STRIP in
37289   [\\/]* | ?:[\\/]*)
37290   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37291   ;;
37292   *)
37293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37294 for as_dir in $PATH
37295 do
37296   IFS=$as_save_IFS
37297   test -z "$as_dir" && as_dir=.
37298     for ac_exec_ext in '' $ac_executable_extensions; do
37299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37300     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37302     break 2
37303   fi
37304 done
37305   done
37306 IFS=$as_save_IFS
37307 
37308   ;;
37309 esac
37310 fi
37311 STRIP=$ac_cv_path_STRIP
37312 if test -n "$STRIP"; then
37313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37314 $as_echo "$STRIP" >&6; }
37315 else
37316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37317 $as_echo "no" >&6; }
37318 fi
37319 
37320 
37321   test -n "$STRIP" && break
37322 done
37323 
37324   else
37325     # The variable is set, but is it from the command line or the environment?
37326 
37327     # Try to remove the string !STRIP! from our list.
37328     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
37329     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37330       # If it failed, the variable was not from the command line. Ignore it,
37331       # but warn the user (except for BASH, which is always set by the calling BASH).
37332       if test "xSTRIP" != xBASH; then
37333         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
37334 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
37335       fi
37336       # Try to locate tool using the code snippet
37337       for ac_prog in strip
37338 do
37339   # Extract the first word of "$ac_prog", so it can be a program name with args.
37340 set dummy $ac_prog; ac_word=$2
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37342 $as_echo_n "checking for $ac_word... " >&6; }
37343 if ${ac_cv_path_STRIP+:} false; then :
37344   $as_echo_n "(cached) " >&6
37345 else
37346   case $STRIP in
37347   [\\/]* | ?:[\\/]*)
37348   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37349   ;;
37350   *)
37351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37352 for as_dir in $PATH
37353 do
37354   IFS=$as_save_IFS
37355   test -z "$as_dir" && as_dir=.
37356     for ac_exec_ext in '' $ac_executable_extensions; do
37357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37358     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37360     break 2
37361   fi
37362 done
37363   done
37364 IFS=$as_save_IFS
37365 
37366   ;;
37367 esac
37368 fi
37369 STRIP=$ac_cv_path_STRIP
37370 if test -n "$STRIP"; then
37371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37372 $as_echo "$STRIP" >&6; }
37373 else
37374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37375 $as_echo "no" >&6; }
37376 fi
37377 
37378 
37379   test -n "$STRIP" && break
37380 done
37381 
37382     else
37383       # If it succeeded, then it was overridden by the user. We will use it
37384       # for the tool.
37385 
37386       # First remove it from the list of overridden variables, so we can test
37387       # for unknown variables in the end.
37388       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37389 
37390       # Check if the provided tool contains a complete path.
37391       tool_specified="$STRIP"
37392       tool_basename="${tool_specified##*/}"
37393       if test "x$tool_basename" = "x$tool_specified"; then
37394         # A command without a complete path is provided, search $PATH.
37395         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
37396 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
37397         # Extract the first word of "$tool_basename", so it can be a program name with args.
37398 set dummy $tool_basename; ac_word=$2
37399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37400 $as_echo_n "checking for $ac_word... " >&6; }
37401 if ${ac_cv_path_STRIP+:} false; then :
37402   $as_echo_n "(cached) " >&6
37403 else
37404   case $STRIP in
37405   [\\/]* | ?:[\\/]*)
37406   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37407   ;;
37408   *)
37409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37410 for as_dir in $PATH
37411 do
37412   IFS=$as_save_IFS
37413   test -z "$as_dir" && as_dir=.
37414     for ac_exec_ext in '' $ac_executable_extensions; do
37415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37416     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37418     break 2
37419   fi
37420 done
37421   done
37422 IFS=$as_save_IFS
37423 
37424   ;;
37425 esac
37426 fi
37427 STRIP=$ac_cv_path_STRIP
37428 if test -n "$STRIP"; then
37429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37430 $as_echo "$STRIP" >&6; }
37431 else
37432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37433 $as_echo "no" >&6; }
37434 fi
37435 
37436 
37437         if test "x$STRIP" = x; then
37438           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37439         fi
37440       else
37441         # Otherwise we believe it is a complete path. Use it as it is.
37442         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
37443 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
37444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
37445 $as_echo_n "checking for STRIP... " >&6; }
37446         if test ! -x "$tool_specified"; then
37447           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37448 $as_echo "not found" >&6; }
37449           as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
37450         fi
37451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37452 $as_echo "$tool_specified" >&6; }
37453       fi
37454     fi
37455   fi
37456 
37457 
37458 
37459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37460 
37461   # First separate the path from the arguments. This will split at the first
37462   # space.
37463   complete="$STRIP"
37464   path="${complete%% *}"
37465   tmp="$complete EOL"
37466   arguments="${tmp#* }"
37467 
37468   # Input might be given as Windows format, start by converting to
37469   # unix format.
37470   new_path=`$CYGPATH -u "$path"`
37471 
37472   # Now try to locate executable using which
37473   new_path=`$WHICH "$new_path" 2> /dev/null`
37474   # bat and cmd files are not always considered executable in cygwin causing which
37475   # to not find them
37476   if test "x$new_path" = x \
37477       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37478       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37479     new_path=`$CYGPATH -u "$path"`
37480   fi
37481   if test "x$new_path" = x; then
37482     # Oops. Which didn't find the executable.
37483     # The splitting of arguments from the executable at a space might have been incorrect,
37484     # since paths with space are more likely in Windows. Give it another try with the whole
37485     # argument.
37486     path="$complete"
37487     arguments="EOL"
37488     new_path=`$CYGPATH -u "$path"`
37489     new_path=`$WHICH "$new_path" 2> /dev/null`
37490     # bat and cmd files are not always considered executable in cygwin causing which
37491     # to not find them
37492     if test "x$new_path" = x \
37493         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37494         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37495       new_path=`$CYGPATH -u "$path"`
37496     fi
37497     if test "x$new_path" = x; then
37498       # It's still not found. Now this is an unrecoverable error.
37499       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37500 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37501       has_space=`$ECHO "$complete" | $GREP " "`
37502       if test "x$has_space" != x; then
37503         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37504 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37505       fi
37506       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37507     fi
37508   fi
37509 
37510   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37511   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37512   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37513   # "foo.exe" is OK but "foo" is an error.
37514   #
37515   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37516   # It is also a way to make sure we got the proper file name for the real test later on.
37517   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37518   if test "x$test_shortpath" = x; then
37519     # Short path failed, file does not exist as specified.
37520     # Try adding .exe or .cmd
37521     if test -f "${new_path}.exe"; then
37522       input_to_shortpath="${new_path}.exe"
37523     elif test -f "${new_path}.cmd"; then
37524       input_to_shortpath="${new_path}.cmd"
37525     else
37526       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
37527 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
37528       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37529 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37530       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37531     fi
37532   else
37533     input_to_shortpath="$new_path"
37534   fi
37535 
37536   # Call helper function which possibly converts this using DOS-style short mode.
37537   # If so, the updated path is stored in $new_path.
37538   new_path="$input_to_shortpath"
37539 
37540   input_path="$input_to_shortpath"
37541   # Check if we need to convert this using DOS-style short mode. If the path
37542   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37543   # take no chances and rewrite it.
37544   # Note: m4 eats our [], so we need to use [ and ] instead.
37545   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37546   if test "x$has_forbidden_chars" != x; then
37547     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37548     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37549     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37550     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37551       # Going to short mode and back again did indeed matter. Since short mode is
37552       # case insensitive, let's make it lowercase to improve readability.
37553       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37554       # Now convert it back to Unix-stile (cygpath)
37555       input_path=`$CYGPATH -u "$shortmode_path"`
37556       new_path="$input_path"
37557     fi
37558   fi
37559 
37560   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37561   if test "x$test_cygdrive_prefix" = x; then
37562     # As a simple fix, exclude /usr/bin since it's not a real path.
37563     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37564       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37565       # a path prefixed by /cygdrive for fixpath to work.
37566       new_path="$CYGWIN_ROOT_PATH$input_path"
37567     fi
37568   fi
37569 
37570   # remove trailing .exe if any
37571   new_path="${new_path/%.exe/}"
37572 
37573   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37574 
37575   # First separate the path from the arguments. This will split at the first
37576   # space.
37577   complete="$STRIP"
37578   path="${complete%% *}"
37579   tmp="$complete EOL"
37580   arguments="${tmp#* }"
37581 
37582   # Input might be given as Windows format, start by converting to
37583   # unix format.
37584   new_path="$path"
37585 
37586   windows_path="$new_path"
37587   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37588     unix_path=`$CYGPATH -u "$windows_path"`
37589     new_path="$unix_path"
37590   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37591     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37592     new_path="$unix_path"
37593   fi
37594 
37595 
37596   # Now try to locate executable using which
37597   new_path=`$WHICH "$new_path" 2> /dev/null`
37598 
37599   if test "x$new_path" = x; then
37600     # Oops. Which didn't find the executable.
37601     # The splitting of arguments from the executable at a space might have been incorrect,
37602     # since paths with space are more likely in Windows. Give it another try with the whole
37603     # argument.
37604     path="$complete"
37605     arguments="EOL"
37606     new_path="$path"
37607 
37608   windows_path="$new_path"
37609   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37610     unix_path=`$CYGPATH -u "$windows_path"`
37611     new_path="$unix_path"
37612   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37613     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37614     new_path="$unix_path"
37615   fi
37616 
37617 
37618     new_path=`$WHICH "$new_path" 2> /dev/null`
37619 
37620     if test "x$new_path" = x; then
37621       # It's still not found. Now this is an unrecoverable error.
37622       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37623 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37624       has_space=`$ECHO "$complete" | $GREP " "`
37625       if test "x$has_space" != x; then
37626         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37628       fi
37629       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37630     fi
37631   fi
37632 
37633   # Now new_path has a complete unix path to the binary
37634   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37635     # Keep paths in /bin as-is, but remove trailing .exe if any
37636     new_path="${new_path/%.exe/}"
37637     # Do not save /bin paths to all_fixpath_prefixes!
37638   else
37639     # Not in mixed or Windows style, start by that.
37640     new_path=`cmd //c echo $new_path`
37641 
37642   input_path="$new_path"
37643   # Check if we need to convert this using DOS-style short mode. If the path
37644   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37645   # take no chances and rewrite it.
37646   # Note: m4 eats our [], so we need to use [ and ] instead.
37647   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37648   if test "x$has_forbidden_chars" != x; then
37649     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37650     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37651   fi
37652 
37653     # Output is in $new_path
37654 
37655   windows_path="$new_path"
37656   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37657     unix_path=`$CYGPATH -u "$windows_path"`
37658     new_path="$unix_path"
37659   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37660     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37661     new_path="$unix_path"
37662   fi
37663 
37664     # remove trailing .exe if any
37665     new_path="${new_path/%.exe/}"
37666 
37667     # Save the first 10 bytes of this path to the storage, so fixpath can work.
37668     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37669   fi
37670 
37671   else
37672     # We're on a posix platform. Hooray! :)
37673     # First separate the path from the arguments. This will split at the first
37674     # space.
37675     complete="$STRIP"
37676     path="${complete%% *}"
37677     tmp="$complete EOL"
37678     arguments="${tmp#* }"
37679 
37680     # Cannot rely on the command "which" here since it doesn't always work.
37681     is_absolute_path=`$ECHO "$path" | $GREP ^/`
37682     if test -z "$is_absolute_path"; then
37683       # Path to executable is not absolute. Find it.
37684       IFS_save="$IFS"
37685       IFS=:
37686       for p in $PATH; do
37687         if test -f "$p/$path" && test -x "$p/$path"; then
37688           new_path="$p/$path"
37689           break
37690         fi
37691       done
37692       IFS="$IFS_save"
37693     else
37694       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5
37695 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;}
37696       new_path="$path"
37697     fi
37698 
37699     if test "x$new_path" = x; then
37700       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37701 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37702       has_space=`$ECHO "$complete" | $GREP " "`
37703       if test "x$has_space" != x; then
37704         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37705 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37706       fi
37707       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37708     fi
37709   fi
37710 
37711   # Now join together the path and the arguments once again
37712   if test "x$arguments" != xEOL; then
37713     new_complete="$new_path ${arguments% *}"
37714   else
37715     new_complete="$new_path"
37716   fi
37717 
37718   if test "x$complete" != "x$new_complete"; then
37719     STRIP="$new_complete"
37720     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
37721 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
37722   fi
37723 
37724 
37725 
37726   # Publish this variable in the help.
37727 
37728 
37729   if test "x$MCS" = x; then
37730     # The variable is not set by user, try to locate tool using the code snippet
37731     for ac_prog in mcs
37732 do
37733   # Extract the first word of "$ac_prog", so it can be a program name with args.
37734 set dummy $ac_prog; ac_word=$2
37735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37736 $as_echo_n "checking for $ac_word... " >&6; }
37737 if ${ac_cv_path_MCS+:} false; then :
37738   $as_echo_n "(cached) " >&6
37739 else
37740   case $MCS in
37741   [\\/]* | ?:[\\/]*)
37742   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
37743   ;;
37744   *)
37745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37746 for as_dir in $PATH
37747 do
37748   IFS=$as_save_IFS
37749   test -z "$as_dir" && as_dir=.
37750     for ac_exec_ext in '' $ac_executable_extensions; do
37751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37752     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
37753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37754     break 2
37755   fi
37756 done
37757   done
37758 IFS=$as_save_IFS
37759 
37760   ;;
37761 esac
37762 fi
37763 MCS=$ac_cv_path_MCS
37764 if test -n "$MCS"; then
37765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
37766 $as_echo "$MCS" >&6; }
37767 else
37768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37769 $as_echo "no" >&6; }
37770 fi
37771 
37772 
37773   test -n "$MCS" && break
37774 done
37775 
37776   else
37777     # The variable is set, but is it from the command line or the environment?
37778 
37779     # Try to remove the string !MCS! from our list.
37780     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/}
37781     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37782       # If it failed, the variable was not from the command line. Ignore it,
37783       # but warn the user (except for BASH, which is always set by the calling BASH).
37784       if test "xMCS" != xBASH; then
37785         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5
37786 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;}
37787       fi
37788       # Try to locate tool using the code snippet
37789       for ac_prog in mcs
37790 do
37791   # Extract the first word of "$ac_prog", so it can be a program name with args.
37792 set dummy $ac_prog; ac_word=$2
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37794 $as_echo_n "checking for $ac_word... " >&6; }
37795 if ${ac_cv_path_MCS+:} false; then :
37796   $as_echo_n "(cached) " >&6
37797 else
37798   case $MCS in
37799   [\\/]* | ?:[\\/]*)
37800   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
37801   ;;
37802   *)
37803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37804 for as_dir in $PATH
37805 do
37806   IFS=$as_save_IFS
37807   test -z "$as_dir" && as_dir=.
37808     for ac_exec_ext in '' $ac_executable_extensions; do
37809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37810     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
37811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37812     break 2
37813   fi
37814 done
37815   done
37816 IFS=$as_save_IFS
37817 
37818   ;;
37819 esac
37820 fi
37821 MCS=$ac_cv_path_MCS
37822 if test -n "$MCS"; then
37823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
37824 $as_echo "$MCS" >&6; }
37825 else
37826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37827 $as_echo "no" >&6; }
37828 fi
37829 
37830 
37831   test -n "$MCS" && break
37832 done
37833 
37834     else
37835       # If it succeeded, then it was overridden by the user. We will use it
37836       # for the tool.
37837 
37838       # First remove it from the list of overridden variables, so we can test
37839       # for unknown variables in the end.
37840       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37841 
37842       # Check if the provided tool contains a complete path.
37843       tool_specified="$MCS"
37844       tool_basename="${tool_specified##*/}"
37845       if test "x$tool_basename" = "x$tool_specified"; then
37846         # A command without a complete path is provided, search $PATH.
37847         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5
37848 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;}
37849         # Extract the first word of "$tool_basename", so it can be a program name with args.
37850 set dummy $tool_basename; ac_word=$2
37851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37852 $as_echo_n "checking for $ac_word... " >&6; }
37853 if ${ac_cv_path_MCS+:} false; then :
37854   $as_echo_n "(cached) " >&6
37855 else
37856   case $MCS in
37857   [\\/]* | ?:[\\/]*)
37858   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
37859   ;;
37860   *)
37861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37862 for as_dir in $PATH
37863 do
37864   IFS=$as_save_IFS
37865   test -z "$as_dir" && as_dir=.
37866     for ac_exec_ext in '' $ac_executable_extensions; do
37867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37868     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
37869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37870     break 2
37871   fi
37872 done
37873   done
37874 IFS=$as_save_IFS
37875 
37876   ;;
37877 esac
37878 fi
37879 MCS=$ac_cv_path_MCS
37880 if test -n "$MCS"; then
37881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
37882 $as_echo "$MCS" >&6; }
37883 else
37884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37885 $as_echo "no" >&6; }
37886 fi
37887 
37888 
37889         if test "x$MCS" = x; then
37890           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37891         fi
37892       else
37893         # Otherwise we believe it is a complete path. Use it as it is.
37894         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5
37895 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;}
37896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5
37897 $as_echo_n "checking for MCS... " >&6; }
37898         if test ! -x "$tool_specified"; then
37899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37900 $as_echo "not found" >&6; }
37901           as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5
37902         fi
37903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37904 $as_echo "$tool_specified" >&6; }
37905       fi
37906     fi
37907   fi
37908 
37909 
37910 
37911   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37912 
37913   # First separate the path from the arguments. This will split at the first
37914   # space.
37915   complete="$MCS"
37916   path="${complete%% *}"
37917   tmp="$complete EOL"
37918   arguments="${tmp#* }"
37919 
37920   # Input might be given as Windows format, start by converting to
37921   # unix format.
37922   new_path=`$CYGPATH -u "$path"`
37923 
37924   # Now try to locate executable using which
37925   new_path=`$WHICH "$new_path" 2> /dev/null`
37926   # bat and cmd files are not always considered executable in cygwin causing which
37927   # to not find them
37928   if test "x$new_path" = x \
37929       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37930       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37931     new_path=`$CYGPATH -u "$path"`
37932   fi
37933   if test "x$new_path" = x; then
37934     # Oops. Which didn't find the executable.
37935     # The splitting of arguments from the executable at a space might have been incorrect,
37936     # since paths with space are more likely in Windows. Give it another try with the whole
37937     # argument.
37938     path="$complete"
37939     arguments="EOL"
37940     new_path=`$CYGPATH -u "$path"`
37941     new_path=`$WHICH "$new_path" 2> /dev/null`
37942     # bat and cmd files are not always considered executable in cygwin causing which
37943     # to not find them
37944     if test "x$new_path" = x \
37945         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37946         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37947       new_path=`$CYGPATH -u "$path"`
37948     fi
37949     if test "x$new_path" = x; then
37950       # It's still not found. Now this is an unrecoverable error.
37951       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
37952 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
37953       has_space=`$ECHO "$complete" | $GREP " "`
37954       if test "x$has_space" != x; then
37955         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37956 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37957       fi
37958       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
37959     fi
37960   fi
37961 
37962   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37963   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37964   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37965   # "foo.exe" is OK but "foo" is an error.
37966   #
37967   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37968   # It is also a way to make sure we got the proper file name for the real test later on.
37969   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37970   if test "x$test_shortpath" = x; then
37971     # Short path failed, file does not exist as specified.
37972     # Try adding .exe or .cmd
37973     if test -f "${new_path}.exe"; then
37974       input_to_shortpath="${new_path}.exe"
37975     elif test -f "${new_path}.cmd"; then
37976       input_to_shortpath="${new_path}.cmd"
37977     else
37978       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5
37979 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;}
37980       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37981 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37982       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
37983     fi
37984   else
37985     input_to_shortpath="$new_path"
37986   fi
37987 
37988   # Call helper function which possibly converts this using DOS-style short mode.
37989   # If so, the updated path is stored in $new_path.
37990   new_path="$input_to_shortpath"
37991 
37992   input_path="$input_to_shortpath"
37993   # Check if we need to convert this using DOS-style short mode. If the path
37994   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37995   # take no chances and rewrite it.
37996   # Note: m4 eats our [], so we need to use [ and ] instead.
37997   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37998   if test "x$has_forbidden_chars" != x; then
37999     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38000     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38001     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38002     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38003       # Going to short mode and back again did indeed matter. Since short mode is
38004       # case insensitive, let's make it lowercase to improve readability.
38005       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38006       # Now convert it back to Unix-stile (cygpath)
38007       input_path=`$CYGPATH -u "$shortmode_path"`
38008       new_path="$input_path"
38009     fi
38010   fi
38011 
38012   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38013   if test "x$test_cygdrive_prefix" = x; then
38014     # As a simple fix, exclude /usr/bin since it's not a real path.
38015     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38016       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38017       # a path prefixed by /cygdrive for fixpath to work.
38018       new_path="$CYGWIN_ROOT_PATH$input_path"
38019     fi
38020   fi
38021 
38022   # remove trailing .exe if any
38023   new_path="${new_path/%.exe/}"
38024 
38025   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38026 
38027   # First separate the path from the arguments. This will split at the first
38028   # space.
38029   complete="$MCS"
38030   path="${complete%% *}"
38031   tmp="$complete EOL"
38032   arguments="${tmp#* }"
38033 
38034   # Input might be given as Windows format, start by converting to
38035   # unix format.
38036   new_path="$path"
38037 
38038   windows_path="$new_path"
38039   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38040     unix_path=`$CYGPATH -u "$windows_path"`
38041     new_path="$unix_path"
38042   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38043     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38044     new_path="$unix_path"
38045   fi
38046 
38047 
38048   # Now try to locate executable using which
38049   new_path=`$WHICH "$new_path" 2> /dev/null`
38050 
38051   if test "x$new_path" = x; then
38052     # Oops. Which didn't find the executable.
38053     # The splitting of arguments from the executable at a space might have been incorrect,
38054     # since paths with space are more likely in Windows. Give it another try with the whole
38055     # argument.
38056     path="$complete"
38057     arguments="EOL"
38058     new_path="$path"
38059 
38060   windows_path="$new_path"
38061   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38062     unix_path=`$CYGPATH -u "$windows_path"`
38063     new_path="$unix_path"
38064   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38065     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38066     new_path="$unix_path"
38067   fi
38068 
38069 
38070     new_path=`$WHICH "$new_path" 2> /dev/null`
38071 
38072     if test "x$new_path" = x; then
38073       # It's still not found. Now this is an unrecoverable error.
38074       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
38075 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
38076       has_space=`$ECHO "$complete" | $GREP " "`
38077       if test "x$has_space" != x; then
38078         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38079 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38080       fi
38081       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
38082     fi
38083   fi
38084 
38085   # Now new_path has a complete unix path to the binary
38086   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38087     # Keep paths in /bin as-is, but remove trailing .exe if any
38088     new_path="${new_path/%.exe/}"
38089     # Do not save /bin paths to all_fixpath_prefixes!
38090   else
38091     # Not in mixed or Windows style, start by that.
38092     new_path=`cmd //c echo $new_path`
38093 
38094   input_path="$new_path"
38095   # Check if we need to convert this using DOS-style short mode. If the path
38096   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38097   # take no chances and rewrite it.
38098   # Note: m4 eats our [], so we need to use [ and ] instead.
38099   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38100   if test "x$has_forbidden_chars" != x; then
38101     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38102     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38103   fi
38104 
38105     # Output is in $new_path
38106 
38107   windows_path="$new_path"
38108   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38109     unix_path=`$CYGPATH -u "$windows_path"`
38110     new_path="$unix_path"
38111   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38112     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38113     new_path="$unix_path"
38114   fi
38115 
38116     # remove trailing .exe if any
38117     new_path="${new_path/%.exe/}"
38118 
38119     # Save the first 10 bytes of this path to the storage, so fixpath can work.
38120     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38121   fi
38122 
38123   else
38124     # We're on a posix platform. Hooray! :)
38125     # First separate the path from the arguments. This will split at the first
38126     # space.
38127     complete="$MCS"
38128     path="${complete%% *}"
38129     tmp="$complete EOL"
38130     arguments="${tmp#* }"
38131 
38132     # Cannot rely on the command "which" here since it doesn't always work.
38133     is_absolute_path=`$ECHO "$path" | $GREP ^/`
38134     if test -z "$is_absolute_path"; then
38135       # Path to executable is not absolute. Find it.
38136       IFS_save="$IFS"
38137       IFS=:
38138       for p in $PATH; do
38139         if test -f "$p/$path" && test -x "$p/$path"; then
38140           new_path="$p/$path"
38141           break
38142         fi
38143       done
38144       IFS="$IFS_save"
38145     else
38146       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MCS (as $path) failed, using $path directly." >&5
38147 $as_echo "$as_me: Resolving MCS (as $path) failed, using $path directly." >&6;}
38148       new_path="$path"
38149     fi
38150 
38151     if test "x$new_path" = x; then
38152       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
38153 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
38154       has_space=`$ECHO "$complete" | $GREP " "`
38155       if test "x$has_space" != x; then
38156         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38157 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38158       fi
38159       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
38160     fi
38161   fi
38162 
38163   # Now join together the path and the arguments once again
38164   if test "x$arguments" != xEOL; then
38165     new_complete="$new_path ${arguments% *}"
38166   else
38167     new_complete="$new_path"
38168   fi
38169 
38170   if test "x$complete" != "x$new_complete"; then
38171     MCS="$new_complete"
38172     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
38173 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
38174   fi
38175 
38176   elif test "x$OPENJDK_TARGET_OS" != xwindows; then
38177 
38178 
38179   # Publish this variable in the help.
38180 
38181 
38182   if test "x$NM" = x; then
38183     # The variable is not set by user, try to locate tool using the code snippet
38184     if test -n "$ac_tool_prefix"; then
38185   for ac_prog in nm
38186   do
38187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38190 $as_echo_n "checking for $ac_word... " >&6; }
38191 if ${ac_cv_prog_NM+:} false; then :
38192   $as_echo_n "(cached) " >&6
38193 else
38194   if test -n "$NM"; then
38195   ac_cv_prog_NM="$NM" # Let the user override the test.
38196 else
38197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38198 for as_dir in $PATH
38199 do
38200   IFS=$as_save_IFS
38201   test -z "$as_dir" && as_dir=.
38202     for ac_exec_ext in '' $ac_executable_extensions; do
38203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38204     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
38205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38206     break 2
38207   fi
38208 done
38209   done
38210 IFS=$as_save_IFS
38211 
38212 fi
38213 fi
38214 NM=$ac_cv_prog_NM
38215 if test -n "$NM"; then
38216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
38217 $as_echo "$NM" >&6; }
38218 else
38219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38220 $as_echo "no" >&6; }
38221 fi
38222 
38223 
38224     test -n "$NM" && break
38225   done
38226 fi
38227 if test -z "$NM"; then
38228   ac_ct_NM=$NM
38229   for ac_prog in nm
38230 do
38231   # Extract the first word of "$ac_prog", so it can be a program name with args.
38232 set dummy $ac_prog; ac_word=$2
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38234 $as_echo_n "checking for $ac_word... " >&6; }
38235 if ${ac_cv_prog_ac_ct_NM+:} false; then :
38236   $as_echo_n "(cached) " >&6
38237 else
38238   if test -n "$ac_ct_NM"; then
38239   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38240 else
38241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38242 for as_dir in $PATH
38243 do
38244   IFS=$as_save_IFS
38245   test -z "$as_dir" && as_dir=.
38246     for ac_exec_ext in '' $ac_executable_extensions; do
38247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38248     ac_cv_prog_ac_ct_NM="$ac_prog"
38249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38250     break 2
38251   fi
38252 done
38253   done
38254 IFS=$as_save_IFS
38255 
38256 fi
38257 fi
38258 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38259 if test -n "$ac_ct_NM"; then
38260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
38261 $as_echo "$ac_ct_NM" >&6; }
38262 else
38263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38264 $as_echo "no" >&6; }
38265 fi
38266 
38267 
38268   test -n "$ac_ct_NM" && break
38269 done
38270 
38271   if test "x$ac_ct_NM" = x; then
38272     NM=""
38273   else
38274     case $cross_compiling:$ac_tool_warned in
38275 yes:)
38276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38278 ac_tool_warned=yes ;;
38279 esac
38280     NM=$ac_ct_NM
38281   fi
38282 fi
38283 
38284   else
38285     # The variable is set, but is it from the command line or the environment?
38286 
38287     # Try to remove the string !NM! from our list.
38288     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
38289     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38290       # If it failed, the variable was not from the command line. Ignore it,
38291       # but warn the user (except for BASH, which is always set by the calling BASH).
38292       if test "xNM" != xBASH; then
38293         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
38294 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
38295       fi
38296       # Try to locate tool using the code snippet
38297       if test -n "$ac_tool_prefix"; then
38298   for ac_prog in nm
38299   do
38300     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38303 $as_echo_n "checking for $ac_word... " >&6; }
38304 if ${ac_cv_prog_NM+:} false; then :
38305   $as_echo_n "(cached) " >&6
38306 else
38307   if test -n "$NM"; then
38308   ac_cv_prog_NM="$NM" # Let the user override the test.
38309 else
38310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38311 for as_dir in $PATH
38312 do
38313   IFS=$as_save_IFS
38314   test -z "$as_dir" && as_dir=.
38315     for ac_exec_ext in '' $ac_executable_extensions; do
38316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38317     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
38318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38319     break 2
38320   fi
38321 done
38322   done
38323 IFS=$as_save_IFS
38324 
38325 fi
38326 fi
38327 NM=$ac_cv_prog_NM
38328 if test -n "$NM"; then
38329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
38330 $as_echo "$NM" >&6; }
38331 else
38332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38333 $as_echo "no" >&6; }
38334 fi
38335 
38336 
38337     test -n "$NM" && break
38338   done
38339 fi
38340 if test -z "$NM"; then
38341   ac_ct_NM=$NM
38342   for ac_prog in nm
38343 do
38344   # Extract the first word of "$ac_prog", so it can be a program name with args.
38345 set dummy $ac_prog; ac_word=$2
38346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38347 $as_echo_n "checking for $ac_word... " >&6; }
38348 if ${ac_cv_prog_ac_ct_NM+:} false; then :
38349   $as_echo_n "(cached) " >&6
38350 else
38351   if test -n "$ac_ct_NM"; then
38352   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38353 else
38354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38355 for as_dir in $PATH
38356 do
38357   IFS=$as_save_IFS
38358   test -z "$as_dir" && as_dir=.
38359     for ac_exec_ext in '' $ac_executable_extensions; do
38360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38361     ac_cv_prog_ac_ct_NM="$ac_prog"
38362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38363     break 2
38364   fi
38365 done
38366   done
38367 IFS=$as_save_IFS
38368 
38369 fi
38370 fi
38371 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38372 if test -n "$ac_ct_NM"; then
38373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
38374 $as_echo "$ac_ct_NM" >&6; }
38375 else
38376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38377 $as_echo "no" >&6; }
38378 fi
38379 
38380 
38381   test -n "$ac_ct_NM" && break
38382 done
38383 
38384   if test "x$ac_ct_NM" = x; then
38385     NM=""
38386   else
38387     case $cross_compiling:$ac_tool_warned in
38388 yes:)
38389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38391 ac_tool_warned=yes ;;
38392 esac
38393     NM=$ac_ct_NM
38394   fi
38395 fi
38396 
38397     else
38398       # If it succeeded, then it was overridden by the user. We will use it
38399       # for the tool.
38400 
38401       # First remove it from the list of overridden variables, so we can test
38402       # for unknown variables in the end.
38403       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38404 
38405       # Check if the provided tool contains a complete path.
38406       tool_specified="$NM"
38407       tool_basename="${tool_specified##*/}"
38408       if test "x$tool_basename" = "x$tool_specified"; then
38409         # A command without a complete path is provided, search $PATH.
38410         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
38411 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
38412         # Extract the first word of "$tool_basename", so it can be a program name with args.
38413 set dummy $tool_basename; ac_word=$2
38414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38415 $as_echo_n "checking for $ac_word... " >&6; }
38416 if ${ac_cv_path_NM+:} false; then :
38417   $as_echo_n "(cached) " >&6
38418 else
38419   case $NM in
38420   [\\/]* | ?:[\\/]*)
38421   ac_cv_path_NM="$NM" # Let the user override the test with a path.
38422   ;;
38423   *)
38424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38425 for as_dir in $PATH
38426 do
38427   IFS=$as_save_IFS
38428   test -z "$as_dir" && as_dir=.
38429     for ac_exec_ext in '' $ac_executable_extensions; do
38430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38431     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
38432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38433     break 2
38434   fi
38435 done
38436   done
38437 IFS=$as_save_IFS
38438 
38439   ;;
38440 esac
38441 fi
38442 NM=$ac_cv_path_NM
38443 if test -n "$NM"; then
38444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
38445 $as_echo "$NM" >&6; }
38446 else
38447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38448 $as_echo "no" >&6; }
38449 fi
38450 
38451 
38452         if test "x$NM" = x; then
38453           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
38454         fi
38455       else
38456         # Otherwise we believe it is a complete path. Use it as it is.
38457         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
38458 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
38459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
38460 $as_echo_n "checking for NM... " >&6; }
38461         if test ! -x "$tool_specified"; then
38462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
38463 $as_echo "not found" >&6; }
38464           as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
38465         fi
38466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
38467 $as_echo "$tool_specified" >&6; }
38468       fi
38469     fi
38470   fi
38471 
38472 
38473 
38474   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38475 
38476   # First separate the path from the arguments. This will split at the first
38477   # space.
38478   complete="$NM"
38479   path="${complete%% *}"
38480   tmp="$complete EOL"
38481   arguments="${tmp#* }"
38482 
38483   # Input might be given as Windows format, start by converting to
38484   # unix format.
38485   new_path=`$CYGPATH -u "$path"`
38486 
38487   # Now try to locate executable using which
38488   new_path=`$WHICH "$new_path" 2> /dev/null`
38489   # bat and cmd files are not always considered executable in cygwin causing which
38490   # to not find them
38491   if test "x$new_path" = x \
38492       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38493       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38494     new_path=`$CYGPATH -u "$path"`
38495   fi
38496   if test "x$new_path" = x; then
38497     # Oops. Which didn't find the executable.
38498     # The splitting of arguments from the executable at a space might have been incorrect,
38499     # since paths with space are more likely in Windows. Give it another try with the whole
38500     # argument.
38501     path="$complete"
38502     arguments="EOL"
38503     new_path=`$CYGPATH -u "$path"`
38504     new_path=`$WHICH "$new_path" 2> /dev/null`
38505     # bat and cmd files are not always considered executable in cygwin causing which
38506     # to not find them
38507     if test "x$new_path" = x \
38508         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38509         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38510       new_path=`$CYGPATH -u "$path"`
38511     fi
38512     if test "x$new_path" = x; then
38513       # It's still not found. Now this is an unrecoverable error.
38514       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
38515 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
38516       has_space=`$ECHO "$complete" | $GREP " "`
38517       if test "x$has_space" != x; then
38518         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38519 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38520       fi
38521       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38522     fi
38523   fi
38524 
38525   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
38526   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
38527   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
38528   # "foo.exe" is OK but "foo" is an error.
38529   #
38530   # This test is therefore slightly more accurate than "test -f" to check for file presence.
38531   # It is also a way to make sure we got the proper file name for the real test later on.
38532   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
38533   if test "x$test_shortpath" = x; then
38534     # Short path failed, file does not exist as specified.
38535     # Try adding .exe or .cmd
38536     if test -f "${new_path}.exe"; then
38537       input_to_shortpath="${new_path}.exe"
38538     elif test -f "${new_path}.cmd"; then
38539       input_to_shortpath="${new_path}.cmd"
38540     else
38541       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
38542 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
38543       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
38544 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
38545       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38546     fi
38547   else
38548     input_to_shortpath="$new_path"
38549   fi
38550 
38551   # Call helper function which possibly converts this using DOS-style short mode.
38552   # If so, the updated path is stored in $new_path.
38553   new_path="$input_to_shortpath"
38554 
38555   input_path="$input_to_shortpath"
38556   # Check if we need to convert this using DOS-style short mode. If the path
38557   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38558   # take no chances and rewrite it.
38559   # Note: m4 eats our [], so we need to use [ and ] instead.
38560   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38561   if test "x$has_forbidden_chars" != x; then
38562     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38563     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38564     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38565     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38566       # Going to short mode and back again did indeed matter. Since short mode is
38567       # case insensitive, let's make it lowercase to improve readability.
38568       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38569       # Now convert it back to Unix-stile (cygpath)
38570       input_path=`$CYGPATH -u "$shortmode_path"`
38571       new_path="$input_path"
38572     fi
38573   fi
38574 
38575   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38576   if test "x$test_cygdrive_prefix" = x; then
38577     # As a simple fix, exclude /usr/bin since it's not a real path.
38578     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38579       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38580       # a path prefixed by /cygdrive for fixpath to work.
38581       new_path="$CYGWIN_ROOT_PATH$input_path"
38582     fi
38583   fi
38584 
38585   # remove trailing .exe if any
38586   new_path="${new_path/%.exe/}"
38587 
38588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38589 
38590   # First separate the path from the arguments. This will split at the first
38591   # space.
38592   complete="$NM"
38593   path="${complete%% *}"
38594   tmp="$complete EOL"
38595   arguments="${tmp#* }"
38596 
38597   # Input might be given as Windows format, start by converting to
38598   # unix format.
38599   new_path="$path"
38600 
38601   windows_path="$new_path"
38602   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38603     unix_path=`$CYGPATH -u "$windows_path"`
38604     new_path="$unix_path"
38605   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38606     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38607     new_path="$unix_path"
38608   fi
38609 
38610 
38611   # Now try to locate executable using which
38612   new_path=`$WHICH "$new_path" 2> /dev/null`
38613 
38614   if test "x$new_path" = x; then
38615     # Oops. Which didn't find the executable.
38616     # The splitting of arguments from the executable at a space might have been incorrect,
38617     # since paths with space are more likely in Windows. Give it another try with the whole
38618     # argument.
38619     path="$complete"
38620     arguments="EOL"
38621     new_path="$path"
38622 
38623   windows_path="$new_path"
38624   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38625     unix_path=`$CYGPATH -u "$windows_path"`
38626     new_path="$unix_path"
38627   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38628     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38629     new_path="$unix_path"
38630   fi
38631 
38632 
38633     new_path=`$WHICH "$new_path" 2> /dev/null`
38634 
38635     if test "x$new_path" = x; then
38636       # It's still not found. Now this is an unrecoverable error.
38637       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
38638 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
38639       has_space=`$ECHO "$complete" | $GREP " "`
38640       if test "x$has_space" != x; then
38641         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38642 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38643       fi
38644       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38645     fi
38646   fi
38647 
38648   # Now new_path has a complete unix path to the binary
38649   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38650     # Keep paths in /bin as-is, but remove trailing .exe if any
38651     new_path="${new_path/%.exe/}"
38652     # Do not save /bin paths to all_fixpath_prefixes!
38653   else
38654     # Not in mixed or Windows style, start by that.
38655     new_path=`cmd //c echo $new_path`
38656 
38657   input_path="$new_path"
38658   # Check if we need to convert this using DOS-style short mode. If the path
38659   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38660   # take no chances and rewrite it.
38661   # Note: m4 eats our [], so we need to use [ and ] instead.
38662   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38663   if test "x$has_forbidden_chars" != x; then
38664     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38665     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38666   fi
38667 
38668     # Output is in $new_path
38669 
38670   windows_path="$new_path"
38671   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38672     unix_path=`$CYGPATH -u "$windows_path"`
38673     new_path="$unix_path"
38674   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38675     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38676     new_path="$unix_path"
38677   fi
38678 
38679     # remove trailing .exe if any
38680     new_path="${new_path/%.exe/}"
38681 
38682     # Save the first 10 bytes of this path to the storage, so fixpath can work.
38683     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38684   fi
38685 
38686   else
38687     # We're on a posix platform. Hooray! :)
38688     # First separate the path from the arguments. This will split at the first
38689     # space.
38690     complete="$NM"
38691     path="${complete%% *}"
38692     tmp="$complete EOL"
38693     arguments="${tmp#* }"
38694 
38695     # Cannot rely on the command "which" here since it doesn't always work.
38696     is_absolute_path=`$ECHO "$path" | $GREP ^/`
38697     if test -z "$is_absolute_path"; then
38698       # Path to executable is not absolute. Find it.
38699       IFS_save="$IFS"
38700       IFS=:
38701       for p in $PATH; do
38702         if test -f "$p/$path" && test -x "$p/$path"; then
38703           new_path="$p/$path"
38704           break
38705         fi
38706       done
38707       IFS="$IFS_save"
38708     else
38709       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5
38710 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;}
38711       new_path="$path"
38712     fi
38713 
38714     if test "x$new_path" = x; then
38715       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
38716 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
38717       has_space=`$ECHO "$complete" | $GREP " "`
38718       if test "x$has_space" != x; then
38719         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38720 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38721       fi
38722       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38723     fi
38724   fi
38725 
38726   # Now join together the path and the arguments once again
38727   if test "x$arguments" != xEOL; then
38728     new_complete="$new_path ${arguments% *}"
38729   else
38730     new_complete="$new_path"
38731   fi
38732 
38733   if test "x$complete" != "x$new_complete"; then
38734     NM="$new_complete"
38735     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
38736 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
38737   fi
38738 
38739     GNM="$NM"
38740 
38741 
38742 
38743   # Publish this variable in the help.
38744 
38745 
38746   if test "x$STRIP" = x; then
38747     # The variable is not set by user, try to locate tool using the code snippet
38748     if test -n "$ac_tool_prefix"; then
38749   for ac_prog in strip
38750   do
38751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38754 $as_echo_n "checking for $ac_word... " >&6; }
38755 if ${ac_cv_prog_STRIP+:} false; then :
38756   $as_echo_n "(cached) " >&6
38757 else
38758   if test -n "$STRIP"; then
38759   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38760 else
38761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38762 for as_dir in $PATH
38763 do
38764   IFS=$as_save_IFS
38765   test -z "$as_dir" && as_dir=.
38766     for ac_exec_ext in '' $ac_executable_extensions; do
38767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38768     ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
38769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38770     break 2
38771   fi
38772 done
38773   done
38774 IFS=$as_save_IFS
38775 
38776 fi
38777 fi
38778 STRIP=$ac_cv_prog_STRIP
38779 if test -n "$STRIP"; then
38780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
38781 $as_echo "$STRIP" >&6; }
38782 else
38783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38784 $as_echo "no" >&6; }
38785 fi
38786 
38787 
38788     test -n "$STRIP" && break
38789   done
38790 fi
38791 if test -z "$STRIP"; then
38792   ac_ct_STRIP=$STRIP
38793   for ac_prog in strip
38794 do
38795   # Extract the first word of "$ac_prog", so it can be a program name with args.
38796 set dummy $ac_prog; ac_word=$2
38797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38798 $as_echo_n "checking for $ac_word... " >&6; }
38799 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
38800   $as_echo_n "(cached) " >&6
38801 else
38802   if test -n "$ac_ct_STRIP"; then
38803   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38804 else
38805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38806 for as_dir in $PATH
38807 do
38808   IFS=$as_save_IFS
38809   test -z "$as_dir" && as_dir=.
38810     for ac_exec_ext in '' $ac_executable_extensions; do
38811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38812     ac_cv_prog_ac_ct_STRIP="$ac_prog"
38813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38814     break 2
38815   fi
38816 done
38817   done
38818 IFS=$as_save_IFS
38819 
38820 fi
38821 fi
38822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38823 if test -n "$ac_ct_STRIP"; then
38824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
38825 $as_echo "$ac_ct_STRIP" >&6; }
38826 else
38827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38828 $as_echo "no" >&6; }
38829 fi
38830 
38831 
38832   test -n "$ac_ct_STRIP" && break
38833 done
38834 
38835   if test "x$ac_ct_STRIP" = x; then
38836     STRIP=""
38837   else
38838     case $cross_compiling:$ac_tool_warned in
38839 yes:)
38840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38842 ac_tool_warned=yes ;;
38843 esac
38844     STRIP=$ac_ct_STRIP
38845   fi
38846 fi
38847 
38848   else
38849     # The variable is set, but is it from the command line or the environment?
38850 
38851     # Try to remove the string !STRIP! from our list.
38852     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
38853     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38854       # If it failed, the variable was not from the command line. Ignore it,
38855       # but warn the user (except for BASH, which is always set by the calling BASH).
38856       if test "xSTRIP" != xBASH; then
38857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
38858 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
38859       fi
38860       # Try to locate tool using the code snippet
38861       if test -n "$ac_tool_prefix"; then
38862   for ac_prog in strip
38863   do
38864     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38867 $as_echo_n "checking for $ac_word... " >&6; }
38868 if ${ac_cv_prog_STRIP+:} false; then :
38869   $as_echo_n "(cached) " >&6
38870 else
38871   if test -n "$STRIP"; then
38872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38873 else
38874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38875 for as_dir in $PATH
38876 do
38877   IFS=$as_save_IFS
38878   test -z "$as_dir" && as_dir=.
38879     for ac_exec_ext in '' $ac_executable_extensions; do
38880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38881     ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
38882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38883     break 2
38884   fi
38885 done
38886   done
38887 IFS=$as_save_IFS
38888 
38889 fi
38890 fi
38891 STRIP=$ac_cv_prog_STRIP
38892 if test -n "$STRIP"; then
38893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
38894 $as_echo "$STRIP" >&6; }
38895 else
38896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38897 $as_echo "no" >&6; }
38898 fi
38899 
38900 
38901     test -n "$STRIP" && break
38902   done
38903 fi
38904 if test -z "$STRIP"; then
38905   ac_ct_STRIP=$STRIP
38906   for ac_prog in strip
38907 do
38908   # Extract the first word of "$ac_prog", so it can be a program name with args.
38909 set dummy $ac_prog; ac_word=$2
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38911 $as_echo_n "checking for $ac_word... " >&6; }
38912 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
38913   $as_echo_n "(cached) " >&6
38914 else
38915   if test -n "$ac_ct_STRIP"; then
38916   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38917 else
38918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38919 for as_dir in $PATH
38920 do
38921   IFS=$as_save_IFS
38922   test -z "$as_dir" && as_dir=.
38923     for ac_exec_ext in '' $ac_executable_extensions; do
38924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38925     ac_cv_prog_ac_ct_STRIP="$ac_prog"
38926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38927     break 2
38928   fi
38929 done
38930   done
38931 IFS=$as_save_IFS
38932 
38933 fi
38934 fi
38935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38936 if test -n "$ac_ct_STRIP"; then
38937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
38938 $as_echo "$ac_ct_STRIP" >&6; }
38939 else
38940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38941 $as_echo "no" >&6; }
38942 fi
38943 
38944 
38945   test -n "$ac_ct_STRIP" && break
38946 done
38947 
38948   if test "x$ac_ct_STRIP" = x; then
38949     STRIP=""
38950   else
38951     case $cross_compiling:$ac_tool_warned in
38952 yes:)
38953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38955 ac_tool_warned=yes ;;
38956 esac
38957     STRIP=$ac_ct_STRIP
38958   fi
38959 fi
38960 
38961     else
38962       # If it succeeded, then it was overridden by the user. We will use it
38963       # for the tool.
38964 
38965       # First remove it from the list of overridden variables, so we can test
38966       # for unknown variables in the end.
38967       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38968 
38969       # Check if the provided tool contains a complete path.
38970       tool_specified="$STRIP"
38971       tool_basename="${tool_specified##*/}"
38972       if test "x$tool_basename" = "x$tool_specified"; then
38973         # A command without a complete path is provided, search $PATH.
38974         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
38975 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
38976         # Extract the first word of "$tool_basename", so it can be a program name with args.
38977 set dummy $tool_basename; ac_word=$2
38978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38979 $as_echo_n "checking for $ac_word... " >&6; }
38980 if ${ac_cv_path_STRIP+:} false; then :
38981   $as_echo_n "(cached) " >&6
38982 else
38983   case $STRIP in
38984   [\\/]* | ?:[\\/]*)
38985   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
38986   ;;
38987   *)
38988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38989 for as_dir in $PATH
38990 do
38991   IFS=$as_save_IFS
38992   test -z "$as_dir" && as_dir=.
38993     for ac_exec_ext in '' $ac_executable_extensions; do
38994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38995     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
38996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38997     break 2
38998   fi
38999 done
39000   done
39001 IFS=$as_save_IFS
39002 
39003   ;;
39004 esac
39005 fi
39006 STRIP=$ac_cv_path_STRIP
39007 if test -n "$STRIP"; then
39008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
39009 $as_echo "$STRIP" >&6; }
39010 else
39011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39012 $as_echo "no" >&6; }
39013 fi
39014 
39015 
39016         if test "x$STRIP" = x; then
39017           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
39018         fi
39019       else
39020         # Otherwise we believe it is a complete path. Use it as it is.
39021         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
39022 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
39023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
39024 $as_echo_n "checking for STRIP... " >&6; }
39025         if test ! -x "$tool_specified"; then
39026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
39027 $as_echo "not found" >&6; }
39028           as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
39029         fi
39030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
39031 $as_echo "$tool_specified" >&6; }
39032       fi
39033     fi
39034   fi
39035 
39036 
39037 
39038   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39039 
39040   # First separate the path from the arguments. This will split at the first
39041   # space.
39042   complete="$STRIP"
39043   path="${complete%% *}"
39044   tmp="$complete EOL"
39045   arguments="${tmp#* }"
39046 
39047   # Input might be given as Windows format, start by converting to
39048   # unix format.
39049   new_path=`$CYGPATH -u "$path"`
39050 
39051   # Now try to locate executable using which
39052   new_path=`$WHICH "$new_path" 2> /dev/null`
39053   # bat and cmd files are not always considered executable in cygwin causing which
39054   # to not find them
39055   if test "x$new_path" = x \
39056       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39057       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39058     new_path=`$CYGPATH -u "$path"`
39059   fi
39060   if test "x$new_path" = x; then
39061     # Oops. Which didn't find the executable.
39062     # The splitting of arguments from the executable at a space might have been incorrect,
39063     # since paths with space are more likely in Windows. Give it another try with the whole
39064     # argument.
39065     path="$complete"
39066     arguments="EOL"
39067     new_path=`$CYGPATH -u "$path"`
39068     new_path=`$WHICH "$new_path" 2> /dev/null`
39069     # bat and cmd files are not always considered executable in cygwin causing which
39070     # to not find them
39071     if test "x$new_path" = x \
39072         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39073         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39074       new_path=`$CYGPATH -u "$path"`
39075     fi
39076     if test "x$new_path" = x; then
39077       # It's still not found. Now this is an unrecoverable error.
39078       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
39079 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
39080       has_space=`$ECHO "$complete" | $GREP " "`
39081       if test "x$has_space" != x; then
39082         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39083 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39084       fi
39085       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39086     fi
39087   fi
39088 
39089   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39090   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39091   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39092   # "foo.exe" is OK but "foo" is an error.
39093   #
39094   # This test is therefore slightly more accurate than "test -f" to check for file presence.
39095   # It is also a way to make sure we got the proper file name for the real test later on.
39096   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39097   if test "x$test_shortpath" = x; then
39098     # Short path failed, file does not exist as specified.
39099     # Try adding .exe or .cmd
39100     if test -f "${new_path}.exe"; then
39101       input_to_shortpath="${new_path}.exe"
39102     elif test -f "${new_path}.cmd"; then
39103       input_to_shortpath="${new_path}.cmd"
39104     else
39105       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
39106 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
39107       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39108 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39109       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39110     fi
39111   else
39112     input_to_shortpath="$new_path"
39113   fi
39114 
39115   # Call helper function which possibly converts this using DOS-style short mode.
39116   # If so, the updated path is stored in $new_path.
39117   new_path="$input_to_shortpath"
39118 
39119   input_path="$input_to_shortpath"
39120   # Check if we need to convert this using DOS-style short mode. If the path
39121   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39122   # take no chances and rewrite it.
39123   # Note: m4 eats our [], so we need to use [ and ] instead.
39124   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39125   if test "x$has_forbidden_chars" != x; then
39126     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39127     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39128     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39129     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39130       # Going to short mode and back again did indeed matter. Since short mode is
39131       # case insensitive, let's make it lowercase to improve readability.
39132       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39133       # Now convert it back to Unix-stile (cygpath)
39134       input_path=`$CYGPATH -u "$shortmode_path"`
39135       new_path="$input_path"
39136     fi
39137   fi
39138 
39139   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
39140   if test "x$test_cygdrive_prefix" = x; then
39141     # As a simple fix, exclude /usr/bin since it's not a real path.
39142     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
39143       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
39144       # a path prefixed by /cygdrive for fixpath to work.
39145       new_path="$CYGWIN_ROOT_PATH$input_path"
39146     fi
39147   fi
39148 
39149   # remove trailing .exe if any
39150   new_path="${new_path/%.exe/}"
39151 
39152   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39153 
39154   # First separate the path from the arguments. This will split at the first
39155   # space.
39156   complete="$STRIP"
39157   path="${complete%% *}"
39158   tmp="$complete EOL"
39159   arguments="${tmp#* }"
39160 
39161   # Input might be given as Windows format, start by converting to
39162   # unix format.
39163   new_path="$path"
39164 
39165   windows_path="$new_path"
39166   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39167     unix_path=`$CYGPATH -u "$windows_path"`
39168     new_path="$unix_path"
39169   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39170     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39171     new_path="$unix_path"
39172   fi
39173 
39174 
39175   # Now try to locate executable using which
39176   new_path=`$WHICH "$new_path" 2> /dev/null`
39177 
39178   if test "x$new_path" = x; then
39179     # Oops. Which didn't find the executable.
39180     # The splitting of arguments from the executable at a space might have been incorrect,
39181     # since paths with space are more likely in Windows. Give it another try with the whole
39182     # argument.
39183     path="$complete"
39184     arguments="EOL"
39185     new_path="$path"
39186 
39187   windows_path="$new_path"
39188   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39189     unix_path=`$CYGPATH -u "$windows_path"`
39190     new_path="$unix_path"
39191   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39192     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39193     new_path="$unix_path"
39194   fi
39195 
39196 
39197     new_path=`$WHICH "$new_path" 2> /dev/null`
39198 
39199     if test "x$new_path" = x; then
39200       # It's still not found. Now this is an unrecoverable error.
39201       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
39202 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
39203       has_space=`$ECHO "$complete" | $GREP " "`
39204       if test "x$has_space" != x; then
39205         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39206 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39207       fi
39208       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39209     fi
39210   fi
39211 
39212   # Now new_path has a complete unix path to the binary
39213   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
39214     # Keep paths in /bin as-is, but remove trailing .exe if any
39215     new_path="${new_path/%.exe/}"
39216     # Do not save /bin paths to all_fixpath_prefixes!
39217   else
39218     # Not in mixed or Windows style, start by that.
39219     new_path=`cmd //c echo $new_path`
39220 
39221   input_path="$new_path"
39222   # Check if we need to convert this using DOS-style short mode. If the path
39223   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39224   # take no chances and rewrite it.
39225   # Note: m4 eats our [], so we need to use [ and ] instead.
39226   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
39227   if test "x$has_forbidden_chars" != x; then
39228     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39229     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39230   fi
39231 
39232     # Output is in $new_path
39233 
39234   windows_path="$new_path"
39235   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39236     unix_path=`$CYGPATH -u "$windows_path"`
39237     new_path="$unix_path"
39238   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39239     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39240     new_path="$unix_path"
39241   fi
39242 
39243     # remove trailing .exe if any
39244     new_path="${new_path/%.exe/}"
39245 
39246     # Save the first 10 bytes of this path to the storage, so fixpath can work.
39247     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39248   fi
39249 
39250   else
39251     # We're on a posix platform. Hooray! :)
39252     # First separate the path from the arguments. This will split at the first
39253     # space.
39254     complete="$STRIP"
39255     path="${complete%% *}"
39256     tmp="$complete EOL"
39257     arguments="${tmp#* }"
39258 
39259     # Cannot rely on the command "which" here since it doesn't always work.
39260     is_absolute_path=`$ECHO "$path" | $GREP ^/`
39261     if test -z "$is_absolute_path"; then
39262       # Path to executable is not absolute. Find it.
39263       IFS_save="$IFS"
39264       IFS=:
39265       for p in $PATH; do
39266         if test -f "$p/$path" && test -x "$p/$path"; then
39267           new_path="$p/$path"
39268           break
39269         fi
39270       done
39271       IFS="$IFS_save"
39272     else
39273       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5
39274 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;}
39275       new_path="$path"
39276     fi
39277 
39278     if test "x$new_path" = x; then
39279       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
39280 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
39281       has_space=`$ECHO "$complete" | $GREP " "`
39282       if test "x$has_space" != x; then
39283         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39284 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39285       fi
39286       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39287     fi
39288   fi
39289 
39290   # Now join together the path and the arguments once again
39291   if test "x$arguments" != xEOL; then
39292     new_complete="$new_path ${arguments% *}"
39293   else
39294     new_complete="$new_path"
39295   fi
39296 
39297   if test "x$complete" != "x$new_complete"; then
39298     STRIP="$new_complete"
39299     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
39300 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
39301   fi
39302 
39303   fi
39304 
39305   # objcopy is used for moving debug symbols to separate files when
39306   # full debug symbols are enabled.
39307   if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
39308 
39309 
39310   # Publish this variable in the help.
39311 
39312 
39313   if test "x$OBJCOPY" = x; then
39314     # The variable is not set by user, try to locate tool using the code snippet
39315     if test -n "$ac_tool_prefix"; then
39316   for ac_prog in gobjcopy objcopy
39317   do
39318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39321 $as_echo_n "checking for $ac_word... " >&6; }
39322 if ${ac_cv_prog_OBJCOPY+:} false; then :
39323   $as_echo_n "(cached) " >&6
39324 else
39325   if test -n "$OBJCOPY"; then
39326   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
39327 else
39328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39329 for as_dir in $PATH
39330 do
39331   IFS=$as_save_IFS
39332   test -z "$as_dir" && as_dir=.
39333     for ac_exec_ext in '' $ac_executable_extensions; do
39334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39335     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
39336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39337     break 2
39338   fi
39339 done
39340   done
39341 IFS=$as_save_IFS
39342 
39343 fi
39344 fi
39345 OBJCOPY=$ac_cv_prog_OBJCOPY
39346 if test -n "$OBJCOPY"; then
39347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
39348 $as_echo "$OBJCOPY" >&6; }
39349 else
39350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39351 $as_echo "no" >&6; }
39352 fi
39353 
39354 
39355     test -n "$OBJCOPY" && break
39356   done
39357 fi
39358 if test -z "$OBJCOPY"; then
39359   ac_ct_OBJCOPY=$OBJCOPY
39360   for ac_prog in gobjcopy objcopy
39361 do
39362   # Extract the first word of "$ac_prog", so it can be a program name with args.
39363 set dummy $ac_prog; ac_word=$2
39364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39365 $as_echo_n "checking for $ac_word... " >&6; }
39366 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
39367   $as_echo_n "(cached) " >&6
39368 else
39369   if test -n "$ac_ct_OBJCOPY"; then
39370   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
39371 else
39372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39373 for as_dir in $PATH
39374 do
39375   IFS=$as_save_IFS
39376   test -z "$as_dir" && as_dir=.
39377     for ac_exec_ext in '' $ac_executable_extensions; do
39378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39379     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
39380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39381     break 2
39382   fi
39383 done
39384   done
39385 IFS=$as_save_IFS
39386 
39387 fi
39388 fi
39389 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
39390 if test -n "$ac_ct_OBJCOPY"; then
39391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
39392 $as_echo "$ac_ct_OBJCOPY" >&6; }
39393 else
39394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39395 $as_echo "no" >&6; }
39396 fi
39397 
39398 
39399   test -n "$ac_ct_OBJCOPY" && break
39400 done
39401 
39402   if test "x$ac_ct_OBJCOPY" = x; then
39403     OBJCOPY=""
39404   else
39405     case $cross_compiling:$ac_tool_warned in
39406 yes:)
39407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39409 ac_tool_warned=yes ;;
39410 esac
39411     OBJCOPY=$ac_ct_OBJCOPY
39412   fi
39413 fi
39414 
39415   else
39416     # The variable is set, but is it from the command line or the environment?
39417 
39418     # Try to remove the string !OBJCOPY! from our list.
39419     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/}
39420     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
39421       # If it failed, the variable was not from the command line. Ignore it,
39422       # but warn the user (except for BASH, which is always set by the calling BASH).
39423       if test "xOBJCOPY" != xBASH; then
39424         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5
39425 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;}
39426       fi
39427       # Try to locate tool using the code snippet
39428       if test -n "$ac_tool_prefix"; then
39429   for ac_prog in gobjcopy objcopy
39430   do
39431     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39434 $as_echo_n "checking for $ac_word... " >&6; }
39435 if ${ac_cv_prog_OBJCOPY+:} false; then :
39436   $as_echo_n "(cached) " >&6
39437 else
39438   if test -n "$OBJCOPY"; then
39439   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
39440 else
39441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39442 for as_dir in $PATH
39443 do
39444   IFS=$as_save_IFS
39445   test -z "$as_dir" && as_dir=.
39446     for ac_exec_ext in '' $ac_executable_extensions; do
39447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39448     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
39449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39450     break 2
39451   fi
39452 done
39453   done
39454 IFS=$as_save_IFS
39455 
39456 fi
39457 fi
39458 OBJCOPY=$ac_cv_prog_OBJCOPY
39459 if test -n "$OBJCOPY"; then
39460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
39461 $as_echo "$OBJCOPY" >&6; }
39462 else
39463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39464 $as_echo "no" >&6; }
39465 fi
39466 
39467 
39468     test -n "$OBJCOPY" && break
39469   done
39470 fi
39471 if test -z "$OBJCOPY"; then
39472   ac_ct_OBJCOPY=$OBJCOPY
39473   for ac_prog in gobjcopy objcopy
39474 do
39475   # Extract the first word of "$ac_prog", so it can be a program name with args.
39476 set dummy $ac_prog; ac_word=$2
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39478 $as_echo_n "checking for $ac_word... " >&6; }
39479 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
39480   $as_echo_n "(cached) " >&6
39481 else
39482   if test -n "$ac_ct_OBJCOPY"; then
39483   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
39484 else
39485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39486 for as_dir in $PATH
39487 do
39488   IFS=$as_save_IFS
39489   test -z "$as_dir" && as_dir=.
39490     for ac_exec_ext in '' $ac_executable_extensions; do
39491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39492     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
39493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39494     break 2
39495   fi
39496 done
39497   done
39498 IFS=$as_save_IFS
39499 
39500 fi
39501 fi
39502 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
39503 if test -n "$ac_ct_OBJCOPY"; then
39504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
39505 $as_echo "$ac_ct_OBJCOPY" >&6; }
39506 else
39507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39508 $as_echo "no" >&6; }
39509 fi
39510 
39511 
39512   test -n "$ac_ct_OBJCOPY" && break
39513 done
39514 
39515   if test "x$ac_ct_OBJCOPY" = x; then
39516     OBJCOPY=""
39517   else
39518     case $cross_compiling:$ac_tool_warned in
39519 yes:)
39520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39522 ac_tool_warned=yes ;;
39523 esac
39524     OBJCOPY=$ac_ct_OBJCOPY
39525   fi
39526 fi
39527 
39528     else
39529       # If it succeeded, then it was overridden by the user. We will use it
39530       # for the tool.
39531 
39532       # First remove it from the list of overridden variables, so we can test
39533       # for unknown variables in the end.
39534       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
39535 
39536       # Check if the provided tool contains a complete path.
39537       tool_specified="$OBJCOPY"
39538       tool_basename="${tool_specified##*/}"
39539       if test "x$tool_basename" = "x$tool_specified"; then
39540         # A command without a complete path is provided, search $PATH.
39541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5
39542 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;}
39543         # Extract the first word of "$tool_basename", so it can be a program name with args.
39544 set dummy $tool_basename; ac_word=$2
39545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39546 $as_echo_n "checking for $ac_word... " >&6; }
39547 if ${ac_cv_path_OBJCOPY+:} false; then :
39548   $as_echo_n "(cached) " >&6
39549 else
39550   case $OBJCOPY in
39551   [\\/]* | ?:[\\/]*)
39552   ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
39553   ;;
39554   *)
39555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39556 for as_dir in $PATH
39557 do
39558   IFS=$as_save_IFS
39559   test -z "$as_dir" && as_dir=.
39560     for ac_exec_ext in '' $ac_executable_extensions; do
39561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39562     ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
39563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39564     break 2
39565   fi
39566 done
39567   done
39568 IFS=$as_save_IFS
39569 
39570   ;;
39571 esac
39572 fi
39573 OBJCOPY=$ac_cv_path_OBJCOPY
39574 if test -n "$OBJCOPY"; then
39575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
39576 $as_echo "$OBJCOPY" >&6; }
39577 else
39578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39579 $as_echo "no" >&6; }
39580 fi
39581 
39582 
39583         if test "x$OBJCOPY" = x; then
39584           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
39585         fi
39586       else
39587         # Otherwise we believe it is a complete path. Use it as it is.
39588         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5
39589 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;}
39590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5
39591 $as_echo_n "checking for OBJCOPY... " >&6; }
39592         if test ! -x "$tool_specified"; then
39593           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
39594 $as_echo "not found" >&6; }
39595           as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5
39596         fi
39597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
39598 $as_echo "$tool_specified" >&6; }
39599       fi
39600     fi
39601   fi
39602 
39603 
39604     # Only call fixup if objcopy was found.
39605     if test -n "$OBJCOPY"; then
39606 
39607   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39608 
39609   # First separate the path from the arguments. This will split at the first
39610   # space.
39611   complete="$OBJCOPY"
39612   path="${complete%% *}"
39613   tmp="$complete EOL"
39614   arguments="${tmp#* }"
39615 
39616   # Input might be given as Windows format, start by converting to
39617   # unix format.
39618   new_path=`$CYGPATH -u "$path"`
39619 
39620   # Now try to locate executable using which
39621   new_path=`$WHICH "$new_path" 2> /dev/null`
39622   # bat and cmd files are not always considered executable in cygwin causing which
39623   # to not find them
39624   if test "x$new_path" = x \
39625       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39626       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39627     new_path=`$CYGPATH -u "$path"`
39628   fi
39629   if test "x$new_path" = x; then
39630     # Oops. Which didn't find the executable.
39631     # The splitting of arguments from the executable at a space might have been incorrect,
39632     # since paths with space are more likely in Windows. Give it another try with the whole
39633     # argument.
39634     path="$complete"
39635     arguments="EOL"
39636     new_path=`$CYGPATH -u "$path"`
39637     new_path=`$WHICH "$new_path" 2> /dev/null`
39638     # bat and cmd files are not always considered executable in cygwin causing which
39639     # to not find them
39640     if test "x$new_path" = x \
39641         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39642         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39643       new_path=`$CYGPATH -u "$path"`
39644     fi
39645     if test "x$new_path" = x; then
39646       # It's still not found. Now this is an unrecoverable error.
39647       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
39648 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
39649       has_space=`$ECHO "$complete" | $GREP " "`
39650       if test "x$has_space" != x; then
39651         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39653       fi
39654       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39655     fi
39656   fi
39657 
39658   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39659   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39660   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39661   # "foo.exe" is OK but "foo" is an error.
39662   #
39663   # This test is therefore slightly more accurate than "test -f" to check for file presence.
39664   # It is also a way to make sure we got the proper file name for the real test later on.
39665   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39666   if test "x$test_shortpath" = x; then
39667     # Short path failed, file does not exist as specified.
39668     # Try adding .exe or .cmd
39669     if test -f "${new_path}.exe"; then
39670       input_to_shortpath="${new_path}.exe"
39671     elif test -f "${new_path}.cmd"; then
39672       input_to_shortpath="${new_path}.cmd"
39673     else
39674       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5
39675 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;}
39676       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39677 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39678       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39679     fi
39680   else
39681     input_to_shortpath="$new_path"
39682   fi
39683 
39684   # Call helper function which possibly converts this using DOS-style short mode.
39685   # If so, the updated path is stored in $new_path.
39686   new_path="$input_to_shortpath"
39687 
39688   input_path="$input_to_shortpath"
39689   # Check if we need to convert this using DOS-style short mode. If the path
39690   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39691   # take no chances and rewrite it.
39692   # Note: m4 eats our [], so we need to use [ and ] instead.
39693   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39694   if test "x$has_forbidden_chars" != x; then
39695     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39696     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39697     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39698     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39699       # Going to short mode and back again did indeed matter. Since short mode is
39700       # case insensitive, let's make it lowercase to improve readability.
39701       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39702       # Now convert it back to Unix-stile (cygpath)
39703       input_path=`$CYGPATH -u "$shortmode_path"`
39704       new_path="$input_path"
39705     fi
39706   fi
39707 
39708   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
39709   if test "x$test_cygdrive_prefix" = x; then
39710     # As a simple fix, exclude /usr/bin since it's not a real path.
39711     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
39712       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
39713       # a path prefixed by /cygdrive for fixpath to work.
39714       new_path="$CYGWIN_ROOT_PATH$input_path"
39715     fi
39716   fi
39717 
39718   # remove trailing .exe if any
39719   new_path="${new_path/%.exe/}"
39720 
39721   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39722 
39723   # First separate the path from the arguments. This will split at the first
39724   # space.
39725   complete="$OBJCOPY"
39726   path="${complete%% *}"
39727   tmp="$complete EOL"
39728   arguments="${tmp#* }"
39729 
39730   # Input might be given as Windows format, start by converting to
39731   # unix format.
39732   new_path="$path"
39733 
39734   windows_path="$new_path"
39735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39736     unix_path=`$CYGPATH -u "$windows_path"`
39737     new_path="$unix_path"
39738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39740     new_path="$unix_path"
39741   fi
39742 
39743 
39744   # Now try to locate executable using which
39745   new_path=`$WHICH "$new_path" 2> /dev/null`
39746 
39747   if test "x$new_path" = x; then
39748     # Oops. Which didn't find the executable.
39749     # The splitting of arguments from the executable at a space might have been incorrect,
39750     # since paths with space are more likely in Windows. Give it another try with the whole
39751     # argument.
39752     path="$complete"
39753     arguments="EOL"
39754     new_path="$path"
39755 
39756   windows_path="$new_path"
39757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39758     unix_path=`$CYGPATH -u "$windows_path"`
39759     new_path="$unix_path"
39760   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39761     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39762     new_path="$unix_path"
39763   fi
39764 
39765 
39766     new_path=`$WHICH "$new_path" 2> /dev/null`
39767 
39768     if test "x$new_path" = x; then
39769       # It's still not found. Now this is an unrecoverable error.
39770       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
39771 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
39772       has_space=`$ECHO "$complete" | $GREP " "`
39773       if test "x$has_space" != x; then
39774         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39775 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39776       fi
39777       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39778     fi
39779   fi
39780 
39781   # Now new_path has a complete unix path to the binary
39782   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
39783     # Keep paths in /bin as-is, but remove trailing .exe if any
39784     new_path="${new_path/%.exe/}"
39785     # Do not save /bin paths to all_fixpath_prefixes!
39786   else
39787     # Not in mixed or Windows style, start by that.
39788     new_path=`cmd //c echo $new_path`
39789 
39790   input_path="$new_path"
39791   # Check if we need to convert this using DOS-style short mode. If the path
39792   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39793   # take no chances and rewrite it.
39794   # Note: m4 eats our [], so we need to use [ and ] instead.
39795   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
39796   if test "x$has_forbidden_chars" != x; then
39797     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39798     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39799   fi
39800 
39801     # Output is in $new_path
39802 
39803   windows_path="$new_path"
39804   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39805     unix_path=`$CYGPATH -u "$windows_path"`
39806     new_path="$unix_path"
39807   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39808     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39809     new_path="$unix_path"
39810   fi
39811 
39812     # remove trailing .exe if any
39813     new_path="${new_path/%.exe/}"
39814 
39815     # Save the first 10 bytes of this path to the storage, so fixpath can work.
39816     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39817   fi
39818 
39819   else
39820     # We're on a posix platform. Hooray! :)
39821     # First separate the path from the arguments. This will split at the first
39822     # space.
39823     complete="$OBJCOPY"
39824     path="${complete%% *}"
39825     tmp="$complete EOL"
39826     arguments="${tmp#* }"
39827 
39828     # Cannot rely on the command "which" here since it doesn't always work.
39829     is_absolute_path=`$ECHO "$path" | $GREP ^/`
39830     if test -z "$is_absolute_path"; then
39831       # Path to executable is not absolute. Find it.
39832       IFS_save="$IFS"
39833       IFS=:
39834       for p in $PATH; do
39835         if test -f "$p/$path" && test -x "$p/$path"; then
39836           new_path="$p/$path"
39837           break
39838         fi
39839       done
39840       IFS="$IFS_save"
39841     else
39842       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJCOPY (as $path) failed, using $path directly." >&5
39843 $as_echo "$as_me: Resolving OBJCOPY (as $path) failed, using $path directly." >&6;}
39844       new_path="$path"
39845     fi
39846 
39847     if test "x$new_path" = x; then
39848       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
39849 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
39850       has_space=`$ECHO "$complete" | $GREP " "`
39851       if test "x$has_space" != x; then
39852         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39853 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39854       fi
39855       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39856     fi
39857   fi
39858 
39859   # Now join together the path and the arguments once again
39860   if test "x$arguments" != xEOL; then
39861     new_complete="$new_path ${arguments% *}"
39862   else
39863     new_complete="$new_path"
39864   fi
39865 
39866   if test "x$complete" != "x$new_complete"; then
39867     OBJCOPY="$new_complete"
39868     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
39869 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
39870   fi
39871 
39872     fi
39873   fi
39874 
39875 
39876 
39877   # Publish this variable in the help.
39878 
39879 
39880   if test "x$OBJDUMP" = x; then
39881     # The variable is not set by user, try to locate tool using the code snippet
39882     if test -n "$ac_tool_prefix"; then
39883   for ac_prog in gobjdump objdump
39884   do
39885     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39888 $as_echo_n "checking for $ac_word... " >&6; }
39889 if ${ac_cv_prog_OBJDUMP+:} false; then :
39890   $as_echo_n "(cached) " >&6
39891 else
39892   if test -n "$OBJDUMP"; then
39893   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
39894 else
39895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39896 for as_dir in $PATH
39897 do
39898   IFS=$as_save_IFS
39899   test -z "$as_dir" && as_dir=.
39900     for ac_exec_ext in '' $ac_executable_extensions; do
39901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39902     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
39903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39904     break 2
39905   fi
39906 done
39907   done
39908 IFS=$as_save_IFS
39909 
39910 fi
39911 fi
39912 OBJDUMP=$ac_cv_prog_OBJDUMP
39913 if test -n "$OBJDUMP"; then
39914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
39915 $as_echo "$OBJDUMP" >&6; }
39916 else
39917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39918 $as_echo "no" >&6; }
39919 fi
39920 
39921 
39922     test -n "$OBJDUMP" && break
39923   done
39924 fi
39925 if test -z "$OBJDUMP"; then
39926   ac_ct_OBJDUMP=$OBJDUMP
39927   for ac_prog in gobjdump objdump
39928 do
39929   # Extract the first word of "$ac_prog", so it can be a program name with args.
39930 set dummy $ac_prog; ac_word=$2
39931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39932 $as_echo_n "checking for $ac_word... " >&6; }
39933 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
39934   $as_echo_n "(cached) " >&6
39935 else
39936   if test -n "$ac_ct_OBJDUMP"; then
39937   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
39938 else
39939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39940 for as_dir in $PATH
39941 do
39942   IFS=$as_save_IFS
39943   test -z "$as_dir" && as_dir=.
39944     for ac_exec_ext in '' $ac_executable_extensions; do
39945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39946     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
39947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39948     break 2
39949   fi
39950 done
39951   done
39952 IFS=$as_save_IFS
39953 
39954 fi
39955 fi
39956 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
39957 if test -n "$ac_ct_OBJDUMP"; then
39958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
39959 $as_echo "$ac_ct_OBJDUMP" >&6; }
39960 else
39961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39962 $as_echo "no" >&6; }
39963 fi
39964 
39965 
39966   test -n "$ac_ct_OBJDUMP" && break
39967 done
39968 
39969   if test "x$ac_ct_OBJDUMP" = x; then
39970     OBJDUMP=""
39971   else
39972     case $cross_compiling:$ac_tool_warned in
39973 yes:)
39974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39976 ac_tool_warned=yes ;;
39977 esac
39978     OBJDUMP=$ac_ct_OBJDUMP
39979   fi
39980 fi
39981 
39982   else
39983     # The variable is set, but is it from the command line or the environment?
39984 
39985     # Try to remove the string !OBJDUMP! from our list.
39986     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/}
39987     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
39988       # If it failed, the variable was not from the command line. Ignore it,
39989       # but warn the user (except for BASH, which is always set by the calling BASH).
39990       if test "xOBJDUMP" != xBASH; then
39991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5
39992 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;}
39993       fi
39994       # Try to locate tool using the code snippet
39995       if test -n "$ac_tool_prefix"; then
39996   for ac_prog in gobjdump objdump
39997   do
39998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
40000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40001 $as_echo_n "checking for $ac_word... " >&6; }
40002 if ${ac_cv_prog_OBJDUMP+:} false; then :
40003   $as_echo_n "(cached) " >&6
40004 else
40005   if test -n "$OBJDUMP"; then
40006   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
40007 else
40008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40009 for as_dir in $PATH
40010 do
40011   IFS=$as_save_IFS
40012   test -z "$as_dir" && as_dir=.
40013     for ac_exec_ext in '' $ac_executable_extensions; do
40014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40015     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
40016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40017     break 2
40018   fi
40019 done
40020   done
40021 IFS=$as_save_IFS
40022 
40023 fi
40024 fi
40025 OBJDUMP=$ac_cv_prog_OBJDUMP
40026 if test -n "$OBJDUMP"; then
40027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
40028 $as_echo "$OBJDUMP" >&6; }
40029 else
40030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40031 $as_echo "no" >&6; }
40032 fi
40033 
40034 
40035     test -n "$OBJDUMP" && break
40036   done
40037 fi
40038 if test -z "$OBJDUMP"; then
40039   ac_ct_OBJDUMP=$OBJDUMP
40040   for ac_prog in gobjdump objdump
40041 do
40042   # Extract the first word of "$ac_prog", so it can be a program name with args.
40043 set dummy $ac_prog; ac_word=$2
40044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40045 $as_echo_n "checking for $ac_word... " >&6; }
40046 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
40047   $as_echo_n "(cached) " >&6
40048 else
40049   if test -n "$ac_ct_OBJDUMP"; then
40050   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
40051 else
40052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40053 for as_dir in $PATH
40054 do
40055   IFS=$as_save_IFS
40056   test -z "$as_dir" && as_dir=.
40057     for ac_exec_ext in '' $ac_executable_extensions; do
40058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40059     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
40060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40061     break 2
40062   fi
40063 done
40064   done
40065 IFS=$as_save_IFS
40066 
40067 fi
40068 fi
40069 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
40070 if test -n "$ac_ct_OBJDUMP"; then
40071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
40072 $as_echo "$ac_ct_OBJDUMP" >&6; }
40073 else
40074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40075 $as_echo "no" >&6; }
40076 fi
40077 
40078 
40079   test -n "$ac_ct_OBJDUMP" && break
40080 done
40081 
40082   if test "x$ac_ct_OBJDUMP" = x; then
40083     OBJDUMP=""
40084   else
40085     case $cross_compiling:$ac_tool_warned in
40086 yes:)
40087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40089 ac_tool_warned=yes ;;
40090 esac
40091     OBJDUMP=$ac_ct_OBJDUMP
40092   fi
40093 fi
40094 
40095     else
40096       # If it succeeded, then it was overridden by the user. We will use it
40097       # for the tool.
40098 
40099       # First remove it from the list of overridden variables, so we can test
40100       # for unknown variables in the end.
40101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
40102 
40103       # Check if the provided tool contains a complete path.
40104       tool_specified="$OBJDUMP"
40105       tool_basename="${tool_specified##*/}"
40106       if test "x$tool_basename" = "x$tool_specified"; then
40107         # A command without a complete path is provided, search $PATH.
40108         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5
40109 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;}
40110         # Extract the first word of "$tool_basename", so it can be a program name with args.
40111 set dummy $tool_basename; ac_word=$2
40112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40113 $as_echo_n "checking for $ac_word... " >&6; }
40114 if ${ac_cv_path_OBJDUMP+:} false; then :
40115   $as_echo_n "(cached) " >&6
40116 else
40117   case $OBJDUMP in
40118   [\\/]* | ?:[\\/]*)
40119   ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path.
40120   ;;
40121   *)
40122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40123 for as_dir in $PATH
40124 do
40125   IFS=$as_save_IFS
40126   test -z "$as_dir" && as_dir=.
40127     for ac_exec_ext in '' $ac_executable_extensions; do
40128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40129     ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext"
40130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40131     break 2
40132   fi
40133 done
40134   done
40135 IFS=$as_save_IFS
40136 
40137   ;;
40138 esac
40139 fi
40140 OBJDUMP=$ac_cv_path_OBJDUMP
40141 if test -n "$OBJDUMP"; then
40142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
40143 $as_echo "$OBJDUMP" >&6; }
40144 else
40145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40146 $as_echo "no" >&6; }
40147 fi
40148 
40149 
40150         if test "x$OBJDUMP" = x; then
40151           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
40152         fi
40153       else
40154         # Otherwise we believe it is a complete path. Use it as it is.
40155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5
40156 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;}
40157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5
40158 $as_echo_n "checking for OBJDUMP... " >&6; }
40159         if test ! -x "$tool_specified"; then
40160           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
40161 $as_echo "not found" >&6; }
40162           as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5
40163         fi
40164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
40165 $as_echo "$tool_specified" >&6; }
40166       fi
40167     fi
40168   fi
40169 
40170 
40171   if test "x$OBJDUMP" != x; then
40172     # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing.
40173 
40174   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40175 
40176   # First separate the path from the arguments. This will split at the first
40177   # space.
40178   complete="$OBJDUMP"
40179   path="${complete%% *}"
40180   tmp="$complete EOL"
40181   arguments="${tmp#* }"
40182 
40183   # Input might be given as Windows format, start by converting to
40184   # unix format.
40185   new_path=`$CYGPATH -u "$path"`
40186 
40187   # Now try to locate executable using which
40188   new_path=`$WHICH "$new_path" 2> /dev/null`
40189   # bat and cmd files are not always considered executable in cygwin causing which
40190   # to not find them
40191   if test "x$new_path" = x \
40192       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40193       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40194     new_path=`$CYGPATH -u "$path"`
40195   fi
40196   if test "x$new_path" = x; then
40197     # Oops. Which didn't find the executable.
40198     # The splitting of arguments from the executable at a space might have been incorrect,
40199     # since paths with space are more likely in Windows. Give it another try with the whole
40200     # argument.
40201     path="$complete"
40202     arguments="EOL"
40203     new_path=`$CYGPATH -u "$path"`
40204     new_path=`$WHICH "$new_path" 2> /dev/null`
40205     # bat and cmd files are not always considered executable in cygwin causing which
40206     # to not find them
40207     if test "x$new_path" = x \
40208         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40209         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40210       new_path=`$CYGPATH -u "$path"`
40211     fi
40212     if test "x$new_path" = x; then
40213       # It's still not found. Now this is an unrecoverable error.
40214       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
40215 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
40216       has_space=`$ECHO "$complete" | $GREP " "`
40217       if test "x$has_space" != x; then
40218         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40219 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40220       fi
40221       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40222     fi
40223   fi
40224 
40225   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
40226   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
40227   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
40228   # "foo.exe" is OK but "foo" is an error.
40229   #
40230   # This test is therefore slightly more accurate than "test -f" to check for file presence.
40231   # It is also a way to make sure we got the proper file name for the real test later on.
40232   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
40233   if test "x$test_shortpath" = x; then
40234     # Short path failed, file does not exist as specified.
40235     # Try adding .exe or .cmd
40236     if test -f "${new_path}.exe"; then
40237       input_to_shortpath="${new_path}.exe"
40238     elif test -f "${new_path}.cmd"; then
40239       input_to_shortpath="${new_path}.cmd"
40240     else
40241       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5
40242 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;}
40243       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
40244 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
40245       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40246     fi
40247   else
40248     input_to_shortpath="$new_path"
40249   fi
40250 
40251   # Call helper function which possibly converts this using DOS-style short mode.
40252   # If so, the updated path is stored in $new_path.
40253   new_path="$input_to_shortpath"
40254 
40255   input_path="$input_to_shortpath"
40256   # Check if we need to convert this using DOS-style short mode. If the path
40257   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40258   # take no chances and rewrite it.
40259   # Note: m4 eats our [], so we need to use [ and ] instead.
40260   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
40261   if test "x$has_forbidden_chars" != x; then
40262     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40263     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
40264     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
40265     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
40266       # Going to short mode and back again did indeed matter. Since short mode is
40267       # case insensitive, let's make it lowercase to improve readability.
40268       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40269       # Now convert it back to Unix-stile (cygpath)
40270       input_path=`$CYGPATH -u "$shortmode_path"`
40271       new_path="$input_path"
40272     fi
40273   fi
40274 
40275   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
40276   if test "x$test_cygdrive_prefix" = x; then
40277     # As a simple fix, exclude /usr/bin since it's not a real path.
40278     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
40279       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
40280       # a path prefixed by /cygdrive for fixpath to work.
40281       new_path="$CYGWIN_ROOT_PATH$input_path"
40282     fi
40283   fi
40284 
40285   # remove trailing .exe if any
40286   new_path="${new_path/%.exe/}"
40287 
40288   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40289 
40290   # First separate the path from the arguments. This will split at the first
40291   # space.
40292   complete="$OBJDUMP"
40293   path="${complete%% *}"
40294   tmp="$complete EOL"
40295   arguments="${tmp#* }"
40296 
40297   # Input might be given as Windows format, start by converting to
40298   # unix format.
40299   new_path="$path"
40300 
40301   windows_path="$new_path"
40302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40303     unix_path=`$CYGPATH -u "$windows_path"`
40304     new_path="$unix_path"
40305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40306     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40307     new_path="$unix_path"
40308   fi
40309 
40310 
40311   # Now try to locate executable using which
40312   new_path=`$WHICH "$new_path" 2> /dev/null`
40313 
40314   if test "x$new_path" = x; then
40315     # Oops. Which didn't find the executable.
40316     # The splitting of arguments from the executable at a space might have been incorrect,
40317     # since paths with space are more likely in Windows. Give it another try with the whole
40318     # argument.
40319     path="$complete"
40320     arguments="EOL"
40321     new_path="$path"
40322 
40323   windows_path="$new_path"
40324   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40325     unix_path=`$CYGPATH -u "$windows_path"`
40326     new_path="$unix_path"
40327   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40328     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40329     new_path="$unix_path"
40330   fi
40331 
40332 
40333     new_path=`$WHICH "$new_path" 2> /dev/null`
40334 
40335     if test "x$new_path" = x; then
40336       # It's still not found. Now this is an unrecoverable error.
40337       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
40338 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
40339       has_space=`$ECHO "$complete" | $GREP " "`
40340       if test "x$has_space" != x; then
40341         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40342 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40343       fi
40344       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40345     fi
40346   fi
40347 
40348   # Now new_path has a complete unix path to the binary
40349   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
40350     # Keep paths in /bin as-is, but remove trailing .exe if any
40351     new_path="${new_path/%.exe/}"
40352     # Do not save /bin paths to all_fixpath_prefixes!
40353   else
40354     # Not in mixed or Windows style, start by that.
40355     new_path=`cmd //c echo $new_path`
40356 
40357   input_path="$new_path"
40358   # Check if we need to convert this using DOS-style short mode. If the path
40359   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40360   # take no chances and rewrite it.
40361   # Note: m4 eats our [], so we need to use [ and ] instead.
40362   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
40363   if test "x$has_forbidden_chars" != x; then
40364     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40365     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40366   fi
40367 
40368     # Output is in $new_path
40369 
40370   windows_path="$new_path"
40371   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40372     unix_path=`$CYGPATH -u "$windows_path"`
40373     new_path="$unix_path"
40374   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40375     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40376     new_path="$unix_path"
40377   fi
40378 
40379     # remove trailing .exe if any
40380     new_path="${new_path/%.exe/}"
40381 
40382     # Save the first 10 bytes of this path to the storage, so fixpath can work.
40383     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
40384   fi
40385 
40386   else
40387     # We're on a posix platform. Hooray! :)
40388     # First separate the path from the arguments. This will split at the first
40389     # space.
40390     complete="$OBJDUMP"
40391     path="${complete%% *}"
40392     tmp="$complete EOL"
40393     arguments="${tmp#* }"
40394 
40395     # Cannot rely on the command "which" here since it doesn't always work.
40396     is_absolute_path=`$ECHO "$path" | $GREP ^/`
40397     if test -z "$is_absolute_path"; then
40398       # Path to executable is not absolute. Find it.
40399       IFS_save="$IFS"
40400       IFS=:
40401       for p in $PATH; do
40402         if test -f "$p/$path" && test -x "$p/$path"; then
40403           new_path="$p/$path"
40404           break
40405         fi
40406       done
40407       IFS="$IFS_save"
40408     else
40409       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJDUMP (as $path) failed, using $path directly." >&5
40410 $as_echo "$as_me: Resolving OBJDUMP (as $path) failed, using $path directly." >&6;}
40411       new_path="$path"
40412     fi
40413 
40414     if test "x$new_path" = x; then
40415       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
40416 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
40417       has_space=`$ECHO "$complete" | $GREP " "`
40418       if test "x$has_space" != x; then
40419         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
40420 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
40421       fi
40422       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40423     fi
40424   fi
40425 
40426   # Now join together the path and the arguments once again
40427   if test "x$arguments" != xEOL; then
40428     new_complete="$new_path ${arguments% *}"
40429   else
40430     new_complete="$new_path"
40431   fi
40432 
40433   if test "x$complete" != "x$new_complete"; then
40434     OBJDUMP="$new_complete"
40435     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
40436 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
40437   fi
40438 
40439   fi
40440 
40441   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
40442 
40443 
40444   # Publish this variable in the help.
40445 
40446 
40447   if test "x$LIPO" = x; then
40448     # The variable is not set by user, try to locate tool using the code snippet
40449     for ac_prog in lipo
40450 do
40451   # Extract the first word of "$ac_prog", so it can be a program name with args.
40452 set dummy $ac_prog; ac_word=$2
40453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40454 $as_echo_n "checking for $ac_word... " >&6; }
40455 if ${ac_cv_path_LIPO+:} false; then :
40456   $as_echo_n "(cached) " >&6
40457 else
40458   case $LIPO in
40459   [\\/]* | ?:[\\/]*)
40460   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
40461   ;;
40462   *)
40463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40464 for as_dir in $PATH
40465 do
40466   IFS=$as_save_IFS
40467   test -z "$as_dir" && as_dir=.
40468     for ac_exec_ext in '' $ac_executable_extensions; do
40469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40470     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
40471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40472     break 2
40473   fi
40474 done
40475   done
40476 IFS=$as_save_IFS
40477 
40478   ;;
40479 esac
40480 fi
40481 LIPO=$ac_cv_path_LIPO
40482 if test -n "$LIPO"; then
40483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
40484 $as_echo "$LIPO" >&6; }
40485 else
40486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40487 $as_echo "no" >&6; }
40488 fi
40489 
40490 
40491   test -n "$LIPO" && break
40492 done
40493 
40494   else
40495     # The variable is set, but is it from the command line or the environment?
40496 
40497     # Try to remove the string !LIPO! from our list.
40498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/}
40499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
40500       # If it failed, the variable was not from the command line. Ignore it,
40501       # but warn the user (except for BASH, which is always set by the calling BASH).
40502       if test "xLIPO" != xBASH; then
40503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5
40504 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;}
40505       fi
40506       # Try to locate tool using the code snippet
40507       for ac_prog in lipo
40508 do
40509   # Extract the first word of "$ac_prog", so it can be a program name with args.
40510 set dummy $ac_prog; ac_word=$2
40511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40512 $as_echo_n "checking for $ac_word... " >&6; }
40513 if ${ac_cv_path_LIPO+:} false; then :
40514   $as_echo_n "(cached) " >&6
40515 else
40516   case $LIPO in
40517   [\\/]* | ?:[\\/]*)
40518   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
40519   ;;
40520   *)
40521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40522 for as_dir in $PATH
40523 do
40524   IFS=$as_save_IFS
40525   test -z "$as_dir" && as_dir=.
40526     for ac_exec_ext in '' $ac_executable_extensions; do
40527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40528     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
40529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40530     break 2
40531   fi
40532 done
40533   done
40534 IFS=$as_save_IFS
40535 
40536   ;;
40537 esac
40538 fi
40539 LIPO=$ac_cv_path_LIPO
40540 if test -n "$LIPO"; then
40541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
40542 $as_echo "$LIPO" >&6; }
40543 else
40544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40545 $as_echo "no" >&6; }
40546 fi
40547 
40548 
40549   test -n "$LIPO" && break
40550 done
40551 
40552     else
40553       # If it succeeded, then it was overridden by the user. We will use it
40554       # for the tool.
40555 
40556       # First remove it from the list of overridden variables, so we can test
40557       # for unknown variables in the end.
40558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
40559 
40560       # Check if the provided tool contains a complete path.
40561       tool_specified="$LIPO"
40562       tool_basename="${tool_specified##*/}"
40563       if test "x$tool_basename" = "x$tool_specified"; then
40564         # A command without a complete path is provided, search $PATH.
40565         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5
40566 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;}
40567         # Extract the first word of "$tool_basename", so it can be a program name with args.
40568 set dummy $tool_basename; ac_word=$2
40569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40570 $as_echo_n "checking for $ac_word... " >&6; }
40571 if ${ac_cv_path_LIPO+:} false; then :
40572   $as_echo_n "(cached) " >&6
40573 else
40574   case $LIPO in
40575   [\\/]* | ?:[\\/]*)
40576   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
40577   ;;
40578   *)
40579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40580 for as_dir in $PATH
40581 do
40582   IFS=$as_save_IFS
40583   test -z "$as_dir" && as_dir=.
40584     for ac_exec_ext in '' $ac_executable_extensions; do
40585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40586     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
40587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40588     break 2
40589   fi
40590 done
40591   done
40592 IFS=$as_save_IFS
40593 
40594   ;;
40595 esac
40596 fi
40597 LIPO=$ac_cv_path_LIPO
40598 if test -n "$LIPO"; then
40599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
40600 $as_echo "$LIPO" >&6; }
40601 else
40602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40603 $as_echo "no" >&6; }
40604 fi
40605 
40606 
40607         if test "x$LIPO" = x; then
40608           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
40609         fi
40610       else
40611         # Otherwise we believe it is a complete path. Use it as it is.
40612         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5
40613 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;}
40614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5
40615 $as_echo_n "checking for LIPO... " >&6; }
40616         if test ! -x "$tool_specified"; then
40617           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
40618 $as_echo "not found" >&6; }
40619           as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5
40620         fi
40621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
40622 $as_echo "$tool_specified" >&6; }
40623       fi
40624     fi
40625   fi
40626 
40627 
40628 
40629   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40630 
40631   # First separate the path from the arguments. This will split at the first
40632   # space.
40633   complete="$LIPO"
40634   path="${complete%% *}"
40635   tmp="$complete EOL"
40636   arguments="${tmp#* }"
40637 
40638   # Input might be given as Windows format, start by converting to
40639   # unix format.
40640   new_path=`$CYGPATH -u "$path"`
40641 
40642   # Now try to locate executable using which
40643   new_path=`$WHICH "$new_path" 2> /dev/null`
40644   # bat and cmd files are not always considered executable in cygwin causing which
40645   # to not find them
40646   if test "x$new_path" = x \
40647       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40648       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40649     new_path=`$CYGPATH -u "$path"`
40650   fi
40651   if test "x$new_path" = x; then
40652     # Oops. Which didn't find the executable.
40653     # The splitting of arguments from the executable at a space might have been incorrect,
40654     # since paths with space are more likely in Windows. Give it another try with the whole
40655     # argument.
40656     path="$complete"
40657     arguments="EOL"
40658     new_path=`$CYGPATH -u "$path"`
40659     new_path=`$WHICH "$new_path" 2> /dev/null`
40660     # bat and cmd files are not always considered executable in cygwin causing which
40661     # to not find them
40662     if test "x$new_path" = x \
40663         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40664         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40665       new_path=`$CYGPATH -u "$path"`
40666     fi
40667     if test "x$new_path" = x; then
40668       # It's still not found. Now this is an unrecoverable error.
40669       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
40670 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
40671       has_space=`$ECHO "$complete" | $GREP " "`
40672       if test "x$has_space" != x; then
40673         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40674 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40675       fi
40676       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40677     fi
40678   fi
40679 
40680   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
40681   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
40682   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
40683   # "foo.exe" is OK but "foo" is an error.
40684   #
40685   # This test is therefore slightly more accurate than "test -f" to check for file presence.
40686   # It is also a way to make sure we got the proper file name for the real test later on.
40687   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
40688   if test "x$test_shortpath" = x; then
40689     # Short path failed, file does not exist as specified.
40690     # Try adding .exe or .cmd
40691     if test -f "${new_path}.exe"; then
40692       input_to_shortpath="${new_path}.exe"
40693     elif test -f "${new_path}.cmd"; then
40694       input_to_shortpath="${new_path}.cmd"
40695     else
40696       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5
40697 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;}
40698       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
40699 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
40700       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40701     fi
40702   else
40703     input_to_shortpath="$new_path"
40704   fi
40705 
40706   # Call helper function which possibly converts this using DOS-style short mode.
40707   # If so, the updated path is stored in $new_path.
40708   new_path="$input_to_shortpath"
40709 
40710   input_path="$input_to_shortpath"
40711   # Check if we need to convert this using DOS-style short mode. If the path
40712   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40713   # take no chances and rewrite it.
40714   # Note: m4 eats our [], so we need to use [ and ] instead.
40715   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
40716   if test "x$has_forbidden_chars" != x; then
40717     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40718     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
40719     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
40720     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
40721       # Going to short mode and back again did indeed matter. Since short mode is
40722       # case insensitive, let's make it lowercase to improve readability.
40723       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40724       # Now convert it back to Unix-stile (cygpath)
40725       input_path=`$CYGPATH -u "$shortmode_path"`
40726       new_path="$input_path"
40727     fi
40728   fi
40729 
40730   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
40731   if test "x$test_cygdrive_prefix" = x; then
40732     # As a simple fix, exclude /usr/bin since it's not a real path.
40733     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
40734       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
40735       # a path prefixed by /cygdrive for fixpath to work.
40736       new_path="$CYGWIN_ROOT_PATH$input_path"
40737     fi
40738   fi
40739 
40740   # remove trailing .exe if any
40741   new_path="${new_path/%.exe/}"
40742 
40743   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40744 
40745   # First separate the path from the arguments. This will split at the first
40746   # space.
40747   complete="$LIPO"
40748   path="${complete%% *}"
40749   tmp="$complete EOL"
40750   arguments="${tmp#* }"
40751 
40752   # Input might be given as Windows format, start by converting to
40753   # unix format.
40754   new_path="$path"
40755 
40756   windows_path="$new_path"
40757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40758     unix_path=`$CYGPATH -u "$windows_path"`
40759     new_path="$unix_path"
40760   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40761     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40762     new_path="$unix_path"
40763   fi
40764 
40765 
40766   # Now try to locate executable using which
40767   new_path=`$WHICH "$new_path" 2> /dev/null`
40768 
40769   if test "x$new_path" = x; then
40770     # Oops. Which didn't find the executable.
40771     # The splitting of arguments from the executable at a space might have been incorrect,
40772     # since paths with space are more likely in Windows. Give it another try with the whole
40773     # argument.
40774     path="$complete"
40775     arguments="EOL"
40776     new_path="$path"
40777 
40778   windows_path="$new_path"
40779   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40780     unix_path=`$CYGPATH -u "$windows_path"`
40781     new_path="$unix_path"
40782   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40783     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40784     new_path="$unix_path"
40785   fi
40786 
40787 
40788     new_path=`$WHICH "$new_path" 2> /dev/null`
40789 
40790     if test "x$new_path" = x; then
40791       # It's still not found. Now this is an unrecoverable error.
40792       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
40793 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
40794       has_space=`$ECHO "$complete" | $GREP " "`
40795       if test "x$has_space" != x; then
40796         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40797 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40798       fi
40799       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40800     fi
40801   fi
40802 
40803   # Now new_path has a complete unix path to the binary
40804   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
40805     # Keep paths in /bin as-is, but remove trailing .exe if any
40806     new_path="${new_path/%.exe/}"
40807     # Do not save /bin paths to all_fixpath_prefixes!
40808   else
40809     # Not in mixed or Windows style, start by that.
40810     new_path=`cmd //c echo $new_path`
40811 
40812   input_path="$new_path"
40813   # Check if we need to convert this using DOS-style short mode. If the path
40814   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40815   # take no chances and rewrite it.
40816   # Note: m4 eats our [], so we need to use [ and ] instead.
40817   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
40818   if test "x$has_forbidden_chars" != x; then
40819     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40820     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40821   fi
40822 
40823     # Output is in $new_path
40824 
40825   windows_path="$new_path"
40826   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40827     unix_path=`$CYGPATH -u "$windows_path"`
40828     new_path="$unix_path"
40829   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40830     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40831     new_path="$unix_path"
40832   fi
40833 
40834     # remove trailing .exe if any
40835     new_path="${new_path/%.exe/}"
40836 
40837     # Save the first 10 bytes of this path to the storage, so fixpath can work.
40838     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
40839   fi
40840 
40841   else
40842     # We're on a posix platform. Hooray! :)
40843     # First separate the path from the arguments. This will split at the first
40844     # space.
40845     complete="$LIPO"
40846     path="${complete%% *}"
40847     tmp="$complete EOL"
40848     arguments="${tmp#* }"
40849 
40850     # Cannot rely on the command "which" here since it doesn't always work.
40851     is_absolute_path=`$ECHO "$path" | $GREP ^/`
40852     if test -z "$is_absolute_path"; then
40853       # Path to executable is not absolute. Find it.
40854       IFS_save="$IFS"
40855       IFS=:
40856       for p in $PATH; do
40857         if test -f "$p/$path" && test -x "$p/$path"; then
40858           new_path="$p/$path"
40859           break
40860         fi
40861       done
40862       IFS="$IFS_save"
40863     else
40864       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving LIPO (as $path) failed, using $path directly." >&5
40865 $as_echo "$as_me: Resolving LIPO (as $path) failed, using $path directly." >&6;}
40866       new_path="$path"
40867     fi
40868 
40869     if test "x$new_path" = x; then
40870       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
40871 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
40872       has_space=`$ECHO "$complete" | $GREP " "`
40873       if test "x$has_space" != x; then
40874         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
40875 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
40876       fi
40877       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40878     fi
40879   fi
40880 
40881   # Now join together the path and the arguments once again
40882   if test "x$arguments" != xEOL; then
40883     new_complete="$new_path ${arguments% *}"
40884   else
40885     new_complete="$new_path"
40886   fi
40887 
40888   if test "x$complete" != "x$new_complete"; then
40889     LIPO="$new_complete"
40890     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
40891 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
40892   fi
40893 
40894   fi
40895 
40896 
40897 
40898   # Restore old path without tools dir
40899   PATH="$OLD_PATH"
40900 
40901 
40902 # FIXME: Currently we must test this after paths but before flags. Fix!
40903 
40904 # And we can test some aspects on the target using configure macros.
40905 
40906 
40907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40908 $as_echo_n "checking for ANSI C header files... " >&6; }
40909 if ${ac_cv_header_stdc+:} false; then :
40910   $as_echo_n "(cached) " >&6
40911 else
40912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40913 /* end confdefs.h.  */
40914 #include <stdlib.h>
40915 #include <stdarg.h>
40916 #include <string.h>
40917 #include <float.h>
40918 
40919 int
40920 main ()
40921 {
40922 
40923   ;
40924   return 0;
40925 }
40926 _ACEOF
40927 if ac_fn_cxx_try_compile "$LINENO"; then :
40928   ac_cv_header_stdc=yes
40929 else
40930   ac_cv_header_stdc=no
40931 fi
40932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40933 
40934 if test $ac_cv_header_stdc = yes; then
40935   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40937 /* end confdefs.h.  */
40938 #include <string.h>
40939 
40940 _ACEOF
40941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40942   $EGREP "memchr" >/dev/null 2>&1; then :
40943 
40944 else
40945   ac_cv_header_stdc=no
40946 fi
40947 rm -f conftest*
40948 
40949 fi
40950 
40951 if test $ac_cv_header_stdc = yes; then
40952   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
40953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40954 /* end confdefs.h.  */
40955 #include <stdlib.h>
40956 
40957 _ACEOF
40958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40959   $EGREP "free" >/dev/null 2>&1; then :
40960 
40961 else
40962   ac_cv_header_stdc=no
40963 fi
40964 rm -f conftest*
40965 
40966 fi
40967 
40968 if test $ac_cv_header_stdc = yes; then
40969   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
40970   if test "$cross_compiling" = yes; then :
40971   :
40972 else
40973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40974 /* end confdefs.h.  */
40975 #include <ctype.h>
40976 #include <stdlib.h>
40977 #if ((' ' & 0x0FF) == 0x020)
40978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
40979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
40980 #else
40981 # define ISLOWER(c) \
40982                    (('a' <= (c) && (c) <= 'i') \
40983                      || ('j' <= (c) && (c) <= 'r') \
40984                      || ('s' <= (c) && (c) <= 'z'))
40985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
40986 #endif
40987 
40988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
40989 int
40990 main ()
40991 {
40992   int i;
40993   for (i = 0; i < 256; i++)
40994     if (XOR (islower (i), ISLOWER (i))
40995         || toupper (i) != TOUPPER (i))
40996       return 2;
40997   return 0;
40998 }
40999 _ACEOF
41000 if ac_fn_cxx_try_run "$LINENO"; then :
41001 
41002 else
41003   ac_cv_header_stdc=no
41004 fi
41005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41006   conftest.$ac_objext conftest.beam conftest.$ac_ext
41007 fi
41008 
41009 fi
41010 fi
41011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
41012 $as_echo "$ac_cv_header_stdc" >&6; }
41013 if test $ac_cv_header_stdc = yes; then
41014 
41015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
41016 
41017 fi
41018 
41019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
41020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
41021                   inttypes.h stdint.h unistd.h
41022 do :
41023   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41024 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
41025 "
41026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41027   cat >>confdefs.h <<_ACEOF
41028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41029 _ACEOF
41030 
41031 fi
41032 
41033 done
41034 
41035 
41036 
41037   ###############################################################################
41038   #
41039   # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
41040   # (The JVM can use 32 or 64 bit Java pointers but that decision
41041   # is made at runtime.)
41042   #
41043 
41044   if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
41045     # Always specify -m flag on Solaris
41046     # And -q on AIX because otherwise the compiler produces 32-bit objects by default
41047 
41048   # When we add flags to the "official" CFLAGS etc, we need to
41049   # keep track of these additions in ADDED_CFLAGS etc. These
41050   # will later be checked to make sure only controlled additions
41051   # have been made to CFLAGS etc.
41052   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41053   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41054   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41055 
41056   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41057   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41058   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41059 
41060   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41061   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41062   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41063 
41064   elif test "x$COMPILE_TYPE" = xreduced; then
41065     if test "x$OPENJDK_TARGET_OS" != xwindows; then
41066       # Specify -m if running reduced on other Posix platforms
41067 
41068   # When we add flags to the "official" CFLAGS etc, we need to
41069   # keep track of these additions in ADDED_CFLAGS etc. These
41070   # will later be checked to make sure only controlled additions
41071   # have been made to CFLAGS etc.
41072   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41073   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41074   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41075 
41076   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41077   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41078   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41079 
41080   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41081   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41082   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41083 
41084     fi
41085   fi
41086 
41087   # Make compilation sanity check
41088   for ac_header in stdio.h
41089 do :
41090   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
41091 if test "x$ac_cv_header_stdio_h" = xyes; then :
41092   cat >>confdefs.h <<_ACEOF
41093 #define HAVE_STDIO_H 1
41094 _ACEOF
41095 
41096 else
41097 
41098     { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
41099 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
41100     if test "x$COMPILE_TYPE" = xreduced; then
41101       { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
41102 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
41103     elif test "x$COMPILE_TYPE" = xcross; then
41104       { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
41105 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
41106     fi
41107     as_fn_error $? "Cannot continue." "$LINENO" 5
41108 
41109 fi
41110 
41111 done
41112 
41113 
41114   # The cast to long int works around a bug in the HP C Compiler
41115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41117 # This bug is HP SR number 8606223364.
41118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
41119 $as_echo_n "checking size of int *... " >&6; }
41120 if ${ac_cv_sizeof_int_p+:} false; then :
41121   $as_echo_n "(cached) " >&6
41122 else
41123   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
41124 
41125 else
41126   if test "$ac_cv_type_int_p" = yes; then
41127      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41129 as_fn_error 77 "cannot compute sizeof (int *)
41130 See \`config.log' for more details" "$LINENO" 5; }
41131    else
41132      ac_cv_sizeof_int_p=0
41133    fi
41134 fi
41135 
41136 fi
41137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
41138 $as_echo "$ac_cv_sizeof_int_p" >&6; }
41139 
41140 
41141 
41142 cat >>confdefs.h <<_ACEOF
41143 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
41144 _ACEOF
41145 
41146 
41147 
41148   # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*'
41149   if test "x$ac_cv_sizeof_int_p" = x; then
41150     # The test failed, lets stick to the assumed value.
41151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5
41152 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;}
41153   else
41154     TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
41155 
41156     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
41157       # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects
41158       # Let's try to implicitely set the compilers target architecture and retry the test
41159       { $as_echo "$as_me:${as_lineno-$LINENO}: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&5
41160 $as_echo "$as_me: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&6;}
41161       { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5
41162 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;}
41163 
41164   # When we add flags to the "official" CFLAGS etc, we need to
41165   # keep track of these additions in ADDED_CFLAGS etc. These
41166   # will later be checked to make sure only controlled additions
41167   # have been made to CFLAGS etc.
41168   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41169   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41170   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41171 
41172   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41173   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41174   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41175 
41176   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41177   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41178   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41179 
41180 
41181       # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value!
41182       unset ac_cv_sizeof_int_p
41183       # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF
41184       cat >>confdefs.h <<_ACEOF
41185 #undef SIZEOF_INT_P
41186 _ACEOF
41187 
41188       # The cast to long int works around a bug in the HP C Compiler
41189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41191 # This bug is HP SR number 8606223364.
41192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
41193 $as_echo_n "checking size of int *... " >&6; }
41194 if ${ac_cv_sizeof_int_p+:} false; then :
41195   $as_echo_n "(cached) " >&6
41196 else
41197   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
41198 
41199 else
41200   if test "$ac_cv_type_int_p" = yes; then
41201      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41203 as_fn_error 77 "cannot compute sizeof (int *)
41204 See \`config.log' for more details" "$LINENO" 5; }
41205    else
41206      ac_cv_sizeof_int_p=0
41207    fi
41208 fi
41209 
41210 fi
41211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
41212 $as_echo "$ac_cv_sizeof_int_p" >&6; }
41213 
41214 
41215 
41216 cat >>confdefs.h <<_ACEOF
41217 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
41218 _ACEOF
41219 
41220 
41221 
41222       TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
41223 
41224       if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
41225         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
41226       fi
41227     fi
41228   fi
41229 
41230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
41231 $as_echo_n "checking for target address size... " >&6; }
41232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
41233 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
41234 
41235 
41236   ###############################################################################
41237   #
41238   # Is the target little of big endian?
41239   #
41240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
41241 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
41242 if ${ac_cv_c_bigendian+:} false; then :
41243   $as_echo_n "(cached) " >&6
41244 else
41245   ac_cv_c_bigendian=unknown
41246     # See if we're dealing with a universal compiler.
41247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41248 /* end confdefs.h.  */
41249 #ifndef __APPLE_CC__
41250                not a universal capable compiler
41251              #endif
41252              typedef int dummy;
41253 
41254 _ACEOF
41255 if ac_fn_cxx_try_compile "$LINENO"; then :
41256 
41257         # Check for potential -arch flags.  It is not universal unless
41258         # there are at least two -arch flags with different values.
41259         ac_arch=
41260         ac_prev=
41261         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
41262          if test -n "$ac_prev"; then
41263            case $ac_word in
41264              i?86 | x86_64 | ppc | ppc64)
41265                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
41266                  ac_arch=$ac_word
41267                else
41268                  ac_cv_c_bigendian=universal
41269                  break
41270                fi
41271                ;;
41272            esac
41273            ac_prev=
41274          elif test "x$ac_word" = "x-arch"; then
41275            ac_prev=arch
41276          fi
41277        done
41278 fi
41279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41280     if test $ac_cv_c_bigendian = unknown; then
41281       # See if sys/param.h defines the BYTE_ORDER macro.
41282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41283 /* end confdefs.h.  */
41284 #include <sys/types.h>
41285              #include <sys/param.h>
41286 
41287 int
41288 main ()
41289 {
41290 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
41291                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
41292                      && LITTLE_ENDIAN)
41293               bogus endian macros
41294              #endif
41295 
41296   ;
41297   return 0;
41298 }
41299 _ACEOF
41300 if ac_fn_cxx_try_compile "$LINENO"; then :
41301   # It does; now see whether it defined to BIG_ENDIAN or not.
41302          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41303 /* end confdefs.h.  */
41304 #include <sys/types.h>
41305                 #include <sys/param.h>
41306 
41307 int
41308 main ()
41309 {
41310 #if BYTE_ORDER != BIG_ENDIAN
41311                  not big endian
41312                 #endif
41313 
41314   ;
41315   return 0;
41316 }
41317 _ACEOF
41318 if ac_fn_cxx_try_compile "$LINENO"; then :
41319   ac_cv_c_bigendian=yes
41320 else
41321   ac_cv_c_bigendian=no
41322 fi
41323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41324 fi
41325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41326     fi
41327     if test $ac_cv_c_bigendian = unknown; then
41328       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
41329       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41330 /* end confdefs.h.  */
41331 #include <limits.h>
41332 
41333 int
41334 main ()
41335 {
41336 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
41337               bogus endian macros
41338              #endif
41339 
41340   ;
41341   return 0;
41342 }
41343 _ACEOF
41344 if ac_fn_cxx_try_compile "$LINENO"; then :
41345   # It does; now see whether it defined to _BIG_ENDIAN or not.
41346          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41347 /* end confdefs.h.  */
41348 #include <limits.h>
41349 
41350 int
41351 main ()
41352 {
41353 #ifndef _BIG_ENDIAN
41354                  not big endian
41355                 #endif
41356 
41357   ;
41358   return 0;
41359 }
41360 _ACEOF
41361 if ac_fn_cxx_try_compile "$LINENO"; then :
41362   ac_cv_c_bigendian=yes
41363 else
41364   ac_cv_c_bigendian=no
41365 fi
41366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41367 fi
41368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41369     fi
41370     if test $ac_cv_c_bigendian = unknown; then
41371       # Compile a test program.
41372       if test "$cross_compiling" = yes; then :
41373   # Try to guess by grepping values from an object file.
41374          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41375 /* end confdefs.h.  */
41376 short int ascii_mm[] =
41377                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41378                 short int ascii_ii[] =
41379                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41380                 int use_ascii (int i) {
41381                   return ascii_mm[i] + ascii_ii[i];
41382                 }
41383                 short int ebcdic_ii[] =
41384                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41385                 short int ebcdic_mm[] =
41386                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41387                 int use_ebcdic (int i) {
41388                   return ebcdic_mm[i] + ebcdic_ii[i];
41389                 }
41390                 extern int foo;
41391 
41392 int
41393 main ()
41394 {
41395 return use_ascii (foo) == use_ebcdic (foo);
41396   ;
41397   return 0;
41398 }
41399 _ACEOF
41400 if ac_fn_cxx_try_compile "$LINENO"; then :
41401   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
41402               ac_cv_c_bigendian=yes
41403             fi
41404             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
41405               if test "$ac_cv_c_bigendian" = unknown; then
41406                 ac_cv_c_bigendian=no
41407               else
41408                 # finding both strings is unlikely to happen, but who knows?
41409                 ac_cv_c_bigendian=unknown
41410               fi
41411             fi
41412 fi
41413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41414 else
41415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41416 /* end confdefs.h.  */
41417 $ac_includes_default
41418 int
41419 main ()
41420 {
41421 
41422              /* Are we little or big endian?  From Harbison&Steele.  */
41423              union
41424              {
41425                long int l;
41426                char c[sizeof (long int)];
41427              } u;
41428              u.l = 1;
41429              return u.c[sizeof (long int) - 1] == 1;
41430 
41431   ;
41432   return 0;
41433 }
41434 _ACEOF
41435 if ac_fn_cxx_try_run "$LINENO"; then :
41436   ac_cv_c_bigendian=no
41437 else
41438   ac_cv_c_bigendian=yes
41439 fi
41440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41441   conftest.$ac_objext conftest.beam conftest.$ac_ext
41442 fi
41443 
41444     fi
41445 fi
41446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
41447 $as_echo "$ac_cv_c_bigendian" >&6; }
41448  case $ac_cv_c_bigendian in #(
41449    yes)
41450      ENDIAN="big";; #(
41451    no)
41452      ENDIAN="little" ;; #(
41453    universal)
41454      ENDIAN="universal_endianness"
41455      ;; #(
41456    *)
41457      ENDIAN="unknown" ;;
41458  esac
41459 
41460 
41461   if test "x$ENDIAN" = xuniversal_endianness; then
41462     as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5
41463   fi
41464   if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then
41465     as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5
41466   fi
41467 
41468 
41469 # Configure flags for the tools
41470 
41471 
41472   ###############################################################################
41473   #
41474   # How to compile shared libraries.
41475   #
41476 
41477   if test "x$GCC" = xyes; then
41478     COMPILER_NAME=gcc
41479     PICFLAG="-fPIC"
41480     LIBRARY_PREFIX=lib
41481     SHARED_LIBRARY='lib$1.so'
41482     STATIC_LIBRARY='lib$1.a'
41483     SHARED_LIBRARY_FLAGS="-shared"
41484     SHARED_LIBRARY_SUFFIX='.so'
41485     STATIC_LIBRARY_SUFFIX='.a'
41486     OBJ_SUFFIX='.o'
41487     EXE_SUFFIX=''
41488     SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
41489     SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
41490     C_FLAG_REORDER=''
41491     CXX_FLAG_REORDER=''
41492     SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
41493     SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
41494     LD="$CC"
41495     LDEXE="$CC"
41496     LDCXX="$CXX"
41497     LDEXECXX="$CXX"
41498     POST_STRIP_CMD="$STRIP -g"
41499 
41500     # Linking is different on MacOSX
41501     if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41502       # Might change in the future to clang.
41503       COMPILER_NAME=gcc
41504       SHARED_LIBRARY='lib$1.dylib'
41505       SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
41506       SHARED_LIBRARY_SUFFIX='.dylib'
41507       EXE_SUFFIX=''
41508       SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
41509       SET_SHARED_LIBRARY_MAPFILE=''
41510       SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
41511       SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
41512       POST_STRIP_CMD="$STRIP -S"
41513     fi
41514   else
41515     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41516       # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
41517       COMPILER_NAME=ossc
41518       PICFLAG="-KPIC"
41519       LIBRARY_PREFIX=lib
41520       SHARED_LIBRARY='lib$1.so'
41521       STATIC_LIBRARY='lib$1.a'
41522       SHARED_LIBRARY_FLAGS="-G"
41523       SHARED_LIBRARY_SUFFIX='.so'
41524       STATIC_LIBRARY_SUFFIX='.a'
41525       OBJ_SUFFIX='.o'
41526       EXE_SUFFIX=''
41527       SET_SHARED_LIBRARY_NAME=''
41528       SET_SHARED_LIBRARY_MAPFILE='-M$1'
41529       C_FLAG_REORDER='-xF'
41530       CXX_FLAG_REORDER='-xF'
41531       SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
41532       SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
41533       CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
41534       CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
41535       CFLAGS_JDKLIB_EXTRA='-xstrconst'
41536       POST_STRIP_CMD="$STRIP -x"
41537       POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
41538     fi
41539     if test "x$OPENJDK_TARGET_OS" = xaix; then
41540         COMPILER_NAME=xlc
41541         PICFLAG="-qpic=large"
41542         LIBRARY_PREFIX=lib
41543         SHARED_LIBRARY='lib$1.so'
41544         STATIC_LIBRARY='lib$1.a'
41545         SHARED_LIBRARY_FLAGS="-qmkshrobj"
41546         SHARED_LIBRARY_SUFFIX='.so'
41547         STATIC_LIBRARY_SUFFIX='.a'
41548         OBJ_SUFFIX='.o'
41549         EXE_SUFFIX=''
41550         SET_SHARED_LIBRARY_NAME=''
41551         SET_SHARED_LIBRARY_MAPFILE=''
41552         C_FLAG_REORDER=''
41553         CXX_FLAG_REORDER=''
41554         SET_SHARED_LIBRARY_ORIGIN=''
41555         SET_EXECUTABLE_ORIGIN=""
41556         CFLAGS_JDK=""
41557         CXXFLAGS_JDK=""
41558         CFLAGS_JDKLIB_EXTRA=''
41559         POST_STRIP_CMD="$STRIP -X32_64"
41560         POST_MCS_CMD=""
41561     fi
41562     if test "x$OPENJDK_TARGET_OS" = xwindows; then
41563       # If it is not gcc, then assume it is the MS Visual Studio compiler
41564       COMPILER_NAME=cl
41565       PICFLAG=""
41566       LIBRARY_PREFIX=
41567       SHARED_LIBRARY='$1.dll'
41568       STATIC_LIBRARY='$1.lib'
41569       SHARED_LIBRARY_FLAGS="-LD"
41570       SHARED_LIBRARY_SUFFIX='.dll'
41571       STATIC_LIBRARY_SUFFIX='.lib'
41572       OBJ_SUFFIX='.obj'
41573       EXE_SUFFIX='.exe'
41574       SET_SHARED_LIBRARY_NAME=''
41575       SET_SHARED_LIBRARY_MAPFILE=''
41576       SET_SHARED_LIBRARY_ORIGIN=''
41577       SET_EXECUTABLE_ORIGIN=''
41578     fi
41579   fi
41580 
41581 
41582 
41583 
41584 
41585 
41586 
41587 
41588 
41589 
41590 
41591 
41592 
41593 
41594 
41595 
41596 
41597 
41598 
41599   # The (cross) compiler is now configured, we can now test capabilities
41600   # of the target platform.
41601 
41602 
41603 
41604   ###############################################################################
41605   #
41606   # Setup the opt flags for different compilers
41607   # and different operating systems.
41608   #
41609 
41610   #
41611   # NOTE: check for -mstackrealign needs to be below potential addition of -m32
41612   #
41613   if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then
41614     # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
41615     # While waiting for a better solution, the current workaround is to use -mstackrealign.
41616     CFLAGS="$CFLAGS -mstackrealign"
41617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
41618 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
41619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41620 /* end confdefs.h.  */
41621 int main() { return 0; }
41622 _ACEOF
41623 if ac_fn_cxx_try_link "$LINENO"; then :
41624 
41625           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41626 $as_echo "yes" >&6; }
41627 
41628 else
41629 
41630           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41631 $as_echo "no" >&6; }
41632           as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
41633 
41634 
41635 fi
41636 rm -f core conftest.err conftest.$ac_objext \
41637     conftest$ac_exeext conftest.$ac_ext
41638   fi
41639 
41640   C_FLAG_DEPS="-MMD -MF"
41641   CXX_FLAG_DEPS="-MMD -MF"
41642 
41643   case $COMPILER_TYPE in
41644     CC )
41645       case $COMPILER_NAME in
41646         gcc )
41647           case $OPENJDK_TARGET_OS in
41648             macosx )
41649               # On MacOSX we optimize for size, something
41650               # we should do for all platforms?
41651               C_O_FLAG_HI="-Os"
41652               C_O_FLAG_NORM="-Os"
41653               C_O_FLAG_NONE=""
41654               ;;
41655             *)
41656               C_O_FLAG_HI="-O3"
41657               C_O_FLAG_NORM="-O2"
41658               C_O_FLAG_NONE="-O0"
41659               ;;
41660           esac
41661           CXX_O_FLAG_HI="$C_O_FLAG_HI"
41662           CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
41663           CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
41664           CFLAGS_DEBUG_SYMBOLS="-g"
41665           CXXFLAGS_DEBUG_SYMBOLS="-g"
41666           if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
41667             CFLAGS_DEBUG_SYMBOLS="-g1"
41668             CXXFLAGS_DEBUG_SYMBOLS="-g1"
41669           fi
41670           ;;
41671         ossc )
41672           #
41673           # Forte has different names for this with their C++ compiler...
41674           #
41675           C_FLAG_DEPS="-xMMD -xMF"
41676           CXX_FLAG_DEPS="-xMMD -xMF"
41677 
41678           # Extra options used with HIGHEST
41679           #
41680           # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
41681           #          done with care, there are some assumptions below that need to
41682           #          be understood about the use of pointers, and IEEE behavior.
41683           #
41684           # Use non-standard floating point mode (not IEEE 754)
41685           CC_HIGHEST="$CC_HIGHEST -fns"
41686           # Do some simplification of floating point arithmetic (not IEEE 754)
41687           CC_HIGHEST="$CC_HIGHEST -fsimple"
41688           # Use single precision floating point with 'float'
41689           CC_HIGHEST="$CC_HIGHEST -fsingle"
41690           # Assume memory references via basic pointer types do not alias
41691           #   (Source with excessing pointer casting and data access with mixed
41692           #    pointer types are not recommended)
41693           CC_HIGHEST="$CC_HIGHEST -xalias_level=basic"
41694           # Use intrinsic or inline versions for math/std functions
41695           #   (If you expect perfect errno behavior, do not use this)
41696           CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all"
41697           # Loop data dependency optimizations (need -xO3 or higher)
41698           CC_HIGHEST="$CC_HIGHEST -xdepend"
41699           # Pointer parameters to functions do not overlap
41700           #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
41701           #    If you pass in multiple pointers to the same data, do not use this)
41702           CC_HIGHEST="$CC_HIGHEST -xrestrict"
41703           # Inline some library routines
41704           #   (If you expect perfect errno behavior, do not use this)
41705           CC_HIGHEST="$CC_HIGHEST -xlibmil"
41706           # Use optimized math routines
41707           #   (If you expect perfect errno behavior, do not use this)
41708           #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
41709           #CC_HIGHEST="$CC_HIGHEST -xlibmopt"
41710 
41711           if test "x$OPENJDK_TARGET_CPU" = xsparc; then
41712             CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
41713             CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
41714           fi
41715 
41716           case $OPENJDK_TARGET_CPU_ARCH in
41717             x86)
41718               C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr"
41719               C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr"
41720               C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr"
41721               C_O_FLAG_NONE="-xregs=no%frameptr"
41722               CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr"
41723               CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr"
41724               CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr"
41725               CXX_O_FLAG_NONE="-xregs=no%frameptr"
41726               if test "x$OPENJDK_TARGET_CPU" = xx86; then
41727                 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
41728                 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
41729               fi
41730               ;;
41731             sparc)
41732               CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
41733               CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
41734               C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
41735               C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
41736               C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
41737               C_O_FLAG_NONE=""
41738               CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
41739               CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
41740               CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
41741               CXX_O_FLAG_NONE=""
41742               ;;
41743           esac
41744 
41745           CFLAGS_DEBUG_SYMBOLS="-g -xs"
41746           CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
41747           ;;
41748         xlc )
41749           C_FLAG_DEPS="-qmakedep=gcc -MF"
41750           CXX_FLAG_DEPS="-qmakedep=gcc -MF"
41751           C_O_FLAG_HIGHEST="-O3"
41752           C_O_FLAG_HI="-O3 -qstrict"
41753           C_O_FLAG_NORM="-O2"
41754           C_O_FLAG_NONE=""
41755           CXX_O_FLAG_HIGHEST="-O3"
41756           CXX_O_FLAG_HI="-O3 -qstrict"
41757           CXX_O_FLAG_NORM="-O2"
41758           CXX_O_FLAG_NONE=""
41759           CFLAGS_DEBUG_SYMBOLS="-g"
41760           CXXFLAGS_DEBUG_SYMBOLS="-g"
41761           LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
41762           CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
41763           CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
41764           ;;
41765       esac
41766       ;;
41767     CL )
41768       C_O_FLAG_HIGHEST="-O2"
41769       C_O_FLAG_HI="-O1"
41770       C_O_FLAG_NORM="-O1"
41771       C_O_FLAG_NONE="-Od"
41772       CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
41773       CXX_O_FLAG_HI="$C_O_FLAG_HI"
41774       CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
41775       CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
41776       ;;
41777   esac
41778 
41779   if test -z "$C_O_FLAG_HIGHEST"; then
41780     C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
41781   fi
41782 
41783   if test -z "$CXX_O_FLAG_HIGHEST"; then
41784     CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
41785   fi
41786 
41787 
41788 
41789 
41790 
41791 
41792 
41793 
41794 
41795 
41796 
41797 
41798 
41799 
41800   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
41801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
41802 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
41803   fi
41804 
41805   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
41806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
41807 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
41808   fi
41809 
41810   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
41811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
41812 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
41813   fi
41814 
41815 
41816 # Check whether --with-extra-cflags was given.
41817 if test "${with_extra_cflags+set}" = set; then :
41818   withval=$with_extra_cflags;
41819 fi
41820 
41821 
41822 
41823 # Check whether --with-extra-cxxflags was given.
41824 if test "${with_extra_cxxflags+set}" = set; then :
41825   withval=$with_extra_cxxflags;
41826 fi
41827 
41828 
41829 
41830 # Check whether --with-extra-ldflags was given.
41831 if test "${with_extra_ldflags+set}" = set; then :
41832   withval=$with_extra_ldflags;
41833 fi
41834 
41835 
41836   CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags"
41837   CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags"
41838   LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags"
41839 
41840   # Hotspot needs these set in their legacy form
41841   LEGACY_EXTRA_CFLAGS=$with_extra_cflags
41842   LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags
41843   LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags
41844 
41845 
41846 
41847 
41848 
41849   ###############################################################################
41850   #
41851   # Now setup the CFLAGS and LDFLAGS for the JDK build.
41852   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
41853   #
41854   case $COMPILER_NAME in
41855     gcc )
41856       CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
41857       -pipe \
41858       -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
41859       case $OPENJDK_TARGET_CPU_ARCH in
41860         arm )
41861           # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
41862           CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41863           ;;
41864         ppc )
41865           # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing
41866           ;;
41867         * )
41868           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
41869           CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41870           ;;
41871       esac
41872       ;;
41873     ossc )
41874       CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
41875       case $OPENJDK_TARGET_CPU_ARCH in
41876         x86 )
41877           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
41878           CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
41879           ;;
41880       esac
41881 
41882       CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41883       CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41884 
41885       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
41886       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
41887       ;;
41888     xlc )
41889       CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41890       CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41891 
41892       LDFLAGS_JDK="$LDFLAGS_JDK"
41893       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK"
41894       ;;
41895     cl )
41896       CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
41897       -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
41898       -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
41899       -DWIN32 -DIAL"
41900       case $OPENJDK_TARGET_CPU in
41901         x86 )
41902           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
41903           ;;
41904         x86_64 )
41905           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
41906           ;;
41907       esac
41908       ;;
41909   esac
41910 
41911   ###############################################################################
41912 
41913   # Adjust flags according to debug level.
41914   case $DEBUG_LEVEL in
41915     fastdebug )
41916       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41917       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41918       C_O_FLAG_HI="$C_O_FLAG_NORM"
41919       C_O_FLAG_NORM="$C_O_FLAG_NORM"
41920       CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
41921       CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
41922       JAVAC_FLAGS="$JAVAC_FLAGS -g"
41923       ;;
41924     slowdebug )
41925       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41926       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41927       C_O_FLAG_HI="$C_O_FLAG_NONE"
41928       C_O_FLAG_NORM="$C_O_FLAG_NONE"
41929       CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
41930       CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
41931       JAVAC_FLAGS="$JAVAC_FLAGS -g"
41932       ;;
41933   esac
41934 
41935   CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
41936 
41937   # The package path is used only on macosx?
41938   PACKAGE_PATH=/opt/local
41939 
41940 
41941   if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then
41942     # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the
41943     #   Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN
41944     #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
41945     #   Note: -Dmacro         is the same as    #define macro 1
41946     #         -Dmacro=        is the same as    #define macro
41947     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41948       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
41949     else
41950       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
41951     fi
41952   else
41953     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
41954   fi
41955   if test "x$OPENJDK_TARGET_OS" = xlinux; then
41956     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
41957   fi
41958   if test "x$OPENJDK_TARGET_OS" = xwindows; then
41959     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
41960   fi
41961   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41962     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
41963   fi
41964   if test "x$OPENJDK_TARGET_OS" = xaix; then
41965     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DAIX -DPPC64"
41966   fi
41967   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41968     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
41969     # Setting these parameters makes it an error to link to macosx APIs that are
41970     # newer than the given OS version and makes the linked binaries compatible even
41971     # if built on a newer version of the OS.
41972     # The expected format is X.Y.Z
41973     MACOSX_VERSION_MIN=10.7.0
41974 
41975     # The macro takes the version with no dots, ex: 1070
41976     # Let the flags variables get resolved in make for easier override on make
41977     # command line.
41978     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
41979     LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
41980   fi
41981   if test "x$OPENJDK_TARGET_OS" = xbsd; then
41982     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
41983   fi
41984   if test "x$DEBUG_LEVEL" = xrelease; then
41985     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
41986   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41987     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED"
41988   fi
41989   else
41990     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
41991   fi
41992 
41993   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
41994   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'"
41995 
41996   CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
41997       -I${JDK_OUTPUTDIR}/include \
41998       -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \
41999       -I${JDK_TOPDIR}/src/share/javavm/export \
42000       -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \
42001       -I${JDK_TOPDIR}/src/share/native/common \
42002       -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common"
42003 
42004   # The shared libraries are compiled using the picflag.
42005   CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
42006   CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
42007 
42008   # Executable flags
42009   CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
42010   CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
42011 
42012   # Now this is odd. The JDK native libraries have to link against libjvm.so
42013   # On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
42014   # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
42015   # is identical for client and server? Yes. Which is picked at runtime (client or server)?
42016   # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
42017   # libraries will link to whatever is in memory. Yuck.
42018   #
42019   # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
42020   if test "x$COMPILER_NAME" = xcl; then
42021     LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no"
42022     if test "x$OPENJDK_TARGET_CPU" = xx86; then
42023       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
42024     fi
42025     # TODO: make -debug optional "--disable-full-debug-symbols"
42026     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
42027     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
42028     LDFLAGS_JDKLIB_SUFFIX=""
42029     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
42030       LDFLAGS_STACK_SIZE=1048576
42031     else
42032       LDFLAGS_STACK_SIZE=327680
42033     fi
42034     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
42035   else
42036     if test "x$COMPILER_NAME" = xgcc; then
42037       # If this is a --hash-style=gnu system, use --hash-style=both, why?
42038       HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
42039       if test -n "$HAS_GNU_HASH"; then
42040         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
42041       fi
42042       if test "x$OPENJDK_TARGET_OS" = xlinux; then
42043         # And since we now know that the linker is gnu, then add -z defs, to forbid
42044         # undefined symbols in object files.
42045         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs"
42046         if test "x$DEBUG_LEVEL" = "xrelease"; then
42047           # When building release libraries, tell the linker optimize them.
42048           # Should this be supplied to the OSS linker as well?
42049           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
42050         fi
42051       fi
42052     fi
42053     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
42054         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
42055 
42056     # On some platforms (mac) the linker warns about non existing -L dirs.
42057     # Add server first if available. Linking aginst client does not always produce the same results.
42058     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
42059     # Default to server for other variants.
42060     if test "x$JVM_VARIANT_SERVER" = xtrue; then
42061       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
42062     elif test "x$JVM_VARIANT_CLIENT" = xtrue; then
42063       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client"
42064     elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
42065       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal"
42066     else
42067       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
42068     fi
42069 
42070     LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm"
42071     if test "x$COMPILER_NAME" = xossc; then
42072       LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
42073     fi
42074 
42075     LDFLAGS_JDKEXE="${LDFLAGS_JDK}"
42076     if test "x$OPENJDK_TARGET_OS" = xlinux; then
42077       LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
42078     fi
42079   fi
42080 
42081 
42082 
42083 
42084 
42085 
42086 
42087 
42088 
42089 
42090 
42091 
42092 
42093 
42094 
42095   # Some Zero and Shark settings.
42096   # ZERO_ARCHFLAG tells the compiler which mode to build for
42097   case "${OPENJDK_TARGET_CPU}" in
42098     s390)
42099       ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31"
42100       ;;
42101     *)
42102       ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42103   esac
42104 
42105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
42106 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
42107   supports=yes
42108 
42109   saved_cflags="$CFLAGS"
42110   CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
42111   ac_ext=c
42112 ac_cpp='$CPP $CPPFLAGS'
42113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42116 
42117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42118 /* end confdefs.h.  */
42119 int i;
42120 _ACEOF
42121 if ac_fn_c_try_compile "$LINENO"; then :
42122 
42123 else
42124   supports=no
42125 fi
42126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42127   ac_ext=cpp
42128 ac_cpp='$CXXCPP $CPPFLAGS'
42129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42132 
42133   CFLAGS="$saved_cflags"
42134 
42135   saved_cxxflags="$CXXFLAGS"
42136   CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG"
42137   ac_ext=cpp
42138 ac_cpp='$CXXCPP $CPPFLAGS'
42139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42142 
42143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42144 /* end confdefs.h.  */
42145 int i;
42146 _ACEOF
42147 if ac_fn_cxx_try_compile "$LINENO"; then :
42148 
42149 else
42150   supports=no
42151 fi
42152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42153   ac_ext=cpp
42154 ac_cpp='$CXXCPP $CPPFLAGS'
42155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42158 
42159   CXXFLAGS="$saved_cxxflags"
42160 
42161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42162 $as_echo "$supports" >&6; }
42163   if test "x$supports" = "xyes" ; then
42164     :
42165   else
42166     ZERO_ARCHFLAG=""
42167   fi
42168 
42169 
42170 
42171   # Check that the compiler supports -mX (or -qX on AIX) flags
42172   # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
42173 
42174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
42175 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
42176   supports=yes
42177 
42178   saved_cflags="$CFLAGS"
42179   CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42180   ac_ext=c
42181 ac_cpp='$CPP $CPPFLAGS'
42182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42185 
42186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42187 /* end confdefs.h.  */
42188 int i;
42189 _ACEOF
42190 if ac_fn_c_try_compile "$LINENO"; then :
42191 
42192 else
42193   supports=no
42194 fi
42195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42196   ac_ext=cpp
42197 ac_cpp='$CXXCPP $CPPFLAGS'
42198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42201 
42202   CFLAGS="$saved_cflags"
42203 
42204   saved_cxxflags="$CXXFLAGS"
42205   CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42206   ac_ext=cpp
42207 ac_cpp='$CXXCPP $CPPFLAGS'
42208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42211 
42212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42213 /* end confdefs.h.  */
42214 int i;
42215 _ACEOF
42216 if ac_fn_cxx_try_compile "$LINENO"; then :
42217 
42218 else
42219   supports=no
42220 fi
42221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42222   ac_ext=cpp
42223 ac_cpp='$CXXCPP $CPPFLAGS'
42224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42227 
42228   CXXFLAGS="$saved_cxxflags"
42229 
42230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42231 $as_echo "$supports" >&6; }
42232   if test "x$supports" = "xyes" ; then
42233     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
42234   else
42235     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
42236   fi
42237 
42238 
42239 
42240 
42241   # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed in executable.'
42242   USING_BROKEN_SUSE_LD=no
42243   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$GCC" = xyes; then
42244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5
42245 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; }
42246     echo "SUNWprivate_1.1 { local: *; };" > version-script.map
42247     echo "int main() { }" > main.c
42248     if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then
42249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42250 $as_echo "no" >&6; }
42251       USING_BROKEN_SUSE_LD=no
42252     else
42253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42254 $as_echo "yes" >&6; }
42255       USING_BROKEN_SUSE_LD=yes
42256     fi
42257     rm -rf version-script.map main.c
42258   fi
42259 
42260 
42261 
42262 # Setup debug symbols (need objcopy from the toolchain for that)
42263 
42264   #
42265   # ENABLE_DEBUG_SYMBOLS
42266   # This must be done after the toolchain is setup, since we're looking at objcopy.
42267   #
42268   # Check whether --enable-debug-symbols was given.
42269 if test "${enable_debug_symbols+set}" = set; then :
42270   enableval=$enable_debug_symbols;
42271 fi
42272 
42273 
42274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
42275 $as_echo_n "checking if we should generate debug symbols... " >&6; }
42276 
42277   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
42278     # explicit enabling of enable-debug-symbols and can't find objcopy
42279     #   this is an error
42280     as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
42281   fi
42282 
42283   if test "x$enable_debug_symbols" = "xyes"; then
42284     ENABLE_DEBUG_SYMBOLS=true
42285   elif test "x$enable_debug_symbols" = "xno"; then
42286     ENABLE_DEBUG_SYMBOLS=false
42287   else
42288     # Default is on if objcopy is found
42289     if test "x$OBJCOPY" != x; then
42290       ENABLE_DEBUG_SYMBOLS=true
42291     # MacOS X and Windows don't use objcopy but default is on for those OSes
42292     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
42293       ENABLE_DEBUG_SYMBOLS=true
42294     else
42295       ENABLE_DEBUG_SYMBOLS=false
42296     fi
42297   fi
42298 
42299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
42300 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
42301 
42302   #
42303   # ZIP_DEBUGINFO_FILES
42304   #
42305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
42306 $as_echo_n "checking if we should zip debug-info files... " >&6; }
42307   # Check whether --enable-zip-debug-info was given.
42308 if test "${enable_zip_debug_info+set}" = set; then :
42309   enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}"
42310 else
42311   enable_zip_debug_info="yes"
42312 fi
42313 
42314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
42315 $as_echo "${enable_zip_debug_info}" >&6; }
42316 
42317   if test "x${enable_zip_debug_info}" = "xno"; then
42318     ZIP_DEBUGINFO_FILES=false
42319   else
42320     ZIP_DEBUGINFO_FILES=true
42321   fi
42322 
42323 
42324 
42325 
42326 
42327 
42328 
42329 ###############################################################################
42330 #
42331 # Check dependencies for external and internal libraries.
42332 #
42333 ###############################################################################
42334 
42335 # After we have toolchain, we can compile fixpath. It's needed by the lib checks.
42336 
42337   # When using cygwin or msys, we need a wrapper binary that renames
42338   # /cygdrive/c/ arguments into c:/ arguments and peeks into
42339   # @files and rewrites these too! This wrapper binary is
42340   # called fixpath.
42341   FIXPATH=
42342   if test "x$OPENJDK_BUILD_OS" = xwindows; then
42343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
42344 $as_echo_n "checking if fixpath can be created... " >&6; }
42345     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
42346     FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe"
42347     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
42348       FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC`
42349       FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN`
42350       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
42351       FIXPATH="$OUTPUT_ROOT/fixpath.exe -c"
42352     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
42353       FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC`
42354       FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN`
42355 
42356       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
42357       # @ was chosen as separator to minimize risk of other tools messing around with it
42358       all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq`
42359       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
42360 
42361       FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list"
42362     fi
42363     rm -f $OUTPUT_ROOT/fixpath*
42364     cd $OUTPUT_ROOT
42365     $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1
42366     cd $CURDIR
42367 
42368     if test ! -x $OUTPUT_ROOT/fixpath.exe; then
42369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42370 $as_echo "no" >&6; }
42371       cat $OUTPUT_ROOT/fixpath1.log
42372       as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5
42373     fi
42374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42375 $as_echo "yes" >&6; }
42376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
42377 $as_echo_n "checking if fixpath.exe works... " >&6; }
42378     cd $OUTPUT_ROOT
42379     $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1
42380     cd $CURDIR
42381     if test ! -x $OUTPUT_ROOT/fixpath2.exe; then
42382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42383 $as_echo "no" >&6; }
42384       cat $OUTPUT_ROOT/fixpath2.log
42385       as_fn_error $? "fixpath did not work!" "$LINENO" 5
42386     fi
42387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42388 $as_echo "yes" >&6; }
42389     rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj
42390   fi
42391 
42392 
42393 
42394 
42395 
42396 
42397   ###############################################################################
42398   #
42399   # OS specific settings that we never will need to probe.
42400   #
42401   if test "x$OPENJDK_TARGET_OS" = xlinux; then
42402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
42403 $as_echo_n "checking what is not needed on Linux?... " >&6; }
42404     PULSE_NOT_NEEDED=yes
42405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
42406 $as_echo "pulse" >&6; }
42407   fi
42408 
42409   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
42410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
42411 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
42412     ALSA_NOT_NEEDED=yes
42413     PULSE_NOT_NEEDED=yes
42414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
42415 $as_echo "alsa pulse" >&6; }
42416   fi
42417 
42418   if test "x$OPENJDK_TARGET_OS" = xaix; then
42419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5
42420 $as_echo_n "checking what is not needed on AIX?... " >&6; }
42421     ALSA_NOT_NEEDED=yes
42422     PULSE_NOT_NEEDED=yes
42423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
42424 $as_echo "alsa pulse" >&6; }
42425   fi
42426 
42427 
42428   if test "x$OPENJDK_TARGET_OS" = xwindows; then
42429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
42430 $as_echo_n "checking what is not needed on Windows?... " >&6; }
42431     CUPS_NOT_NEEDED=yes
42432     ALSA_NOT_NEEDED=yes
42433     PULSE_NOT_NEEDED=yes
42434     X11_NOT_NEEDED=yes
42435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
42436 $as_echo "alsa cups pulse x11" >&6; }
42437   fi
42438 
42439   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
42441 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
42442     ALSA_NOT_NEEDED=yes
42443     PULSE_NOT_NEEDED=yes
42444     X11_NOT_NEEDED=yes
42445     # If the java runtime framework is disabled, then we need X11.
42446     # This will be adjusted below.
42447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
42448 $as_echo "alsa pulse x11" >&6; }
42449   fi
42450 
42451   if test "x$OPENJDK_TARGET_OS" = xbsd; then
42452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
42453 $as_echo_n "checking what is not needed on bsd?... " >&6; }
42454     ALSA_NOT_NEEDED=yes
42455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
42456 $as_echo "alsa" >&6; }
42457   fi
42458 
42459   if test "x$OPENJDK" = "xfalse"; then
42460     FREETYPE_NOT_NEEDED=yes
42461   fi
42462 
42463   if test "x$SUPPORT_HEADFUL" = xno; then
42464     X11_NOT_NEEDED=yes
42465   fi
42466 
42467   ###############################################################################
42468   #
42469   # Check for MacOSX support for OpenJDK.
42470   #
42471 
42472 
42473   # Check whether --enable-macosx-runtime-support was given.
42474 if test "${enable_macosx_runtime_support+set}" = set; then :
42475   enableval=$enable_macosx_runtime_support;
42476 fi
42477 
42478   if test "x$enable_macosx_runtime_support" != x; then
42479     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5
42480 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;}
42481   fi
42482 
42483 
42484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5
42485 $as_echo_n "checking for Mac OS X Java Framework... " >&6; }
42486   if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
42487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5
42488 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; }
42489   else
42490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42491 $as_echo "no" >&6; }
42492   fi
42493 
42494 
42495 
42496   ###############################################################################
42497   #
42498   # Check for X Windows
42499   #
42500 
42501   # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
42502   # Make a simple check for the libraries at the sysroot, and setup --x-includes and
42503   # --x-libraries for the sysroot, if that seems to be correct.
42504   if test "x$SYS_ROOT" != "x/"; then
42505     if test "x$x_includes" = xNONE; then
42506       if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
42507         x_includes="$SYS_ROOT/usr/X11R6/include"
42508       elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
42509         x_includes="$SYS_ROOT/usr/include"
42510       fi
42511     fi
42512     if test "x$x_libraries" = xNONE; then
42513       if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
42514         x_libraries="$SYS_ROOT/usr/X11R6/lib"
42515       elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
42516         x_libraries="$SYS_ROOT/usr/lib64"
42517       elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then
42518         x_libraries="$SYS_ROOT/usr/lib"
42519       fi
42520     fi
42521   fi
42522 
42523   # Now let autoconf do it's magic
42524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
42525 $as_echo_n "checking for X... " >&6; }
42526 
42527 
42528 # Check whether --with-x was given.
42529 if test "${with_x+set}" = set; then :
42530   withval=$with_x;
42531 fi
42532 
42533 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
42534 if test "x$with_x" = xno; then
42535   # The user explicitly disabled X.
42536   have_x=disabled
42537 else
42538   case $x_includes,$x_libraries in #(
42539     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
42540     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
42541   $as_echo_n "(cached) " >&6
42542 else
42543   # One or both of the vars are not set, and there is no cached value.
42544 ac_x_includes=no ac_x_libraries=no
42545 rm -f -r conftest.dir
42546 if mkdir conftest.dir; then
42547   cd conftest.dir
42548   cat >Imakefile <<'_ACEOF'
42549 incroot:
42550         @echo incroot='${INCROOT}'
42551 usrlibdir:
42552         @echo usrlibdir='${USRLIBDIR}'
42553 libdir:
42554         @echo libdir='${LIBDIR}'
42555 _ACEOF
42556   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
42557     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
42558     for ac_var in incroot usrlibdir libdir; do
42559       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
42560     done
42561     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
42562     for ac_extension in a so sl dylib la dll; do
42563       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
42564          test -f "$ac_im_libdir/libX11.$ac_extension"; then
42565         ac_im_usrlibdir=$ac_im_libdir; break
42566       fi
42567     done
42568     # Screen out bogus values from the imake configuration.  They are
42569     # bogus both because they are the default anyway, and because
42570     # using them would break gcc on systems where it needs fixed includes.
42571     case $ac_im_incroot in
42572         /usr/include) ac_x_includes= ;;
42573         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
42574     esac
42575     case $ac_im_usrlibdir in
42576         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
42577         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
42578     esac
42579   fi
42580   cd ..
42581   rm -f -r conftest.dir
42582 fi
42583 
42584 # Standard set of common directories for X headers.
42585 # Check X11 before X11Rn because it is often a symlink to the current release.
42586 ac_x_header_dirs='
42587 /usr/X11/include
42588 /usr/X11R7/include
42589 /usr/X11R6/include
42590 /usr/X11R5/include
42591 /usr/X11R4/include
42592 
42593 /usr/include/X11
42594 /usr/include/X11R7
42595 /usr/include/X11R6
42596 /usr/include/X11R5
42597 /usr/include/X11R4
42598 
42599 /usr/local/X11/include
42600 /usr/local/X11R7/include
42601 /usr/local/X11R6/include
42602 /usr/local/X11R5/include
42603 /usr/local/X11R4/include
42604 
42605 /usr/local/include/X11
42606 /usr/local/include/X11R7
42607 /usr/local/include/X11R6
42608 /usr/local/include/X11R5
42609 /usr/local/include/X11R4
42610 
42611 /usr/X386/include
42612 /usr/x386/include
42613 /usr/XFree86/include/X11
42614 
42615 /usr/include
42616 /usr/local/include
42617 /usr/unsupported/include
42618 /usr/athena/include
42619 /usr/local/x11r5/include
42620 /usr/lpp/Xamples/include
42621 
42622 /usr/openwin/include
42623 /usr/openwin/share/include'
42624 
42625 if test "$ac_x_includes" = no; then
42626   # Guess where to find include files, by looking for Xlib.h.
42627   # First, try using that file with no special directory specified.
42628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42629 /* end confdefs.h.  */
42630 #include <X11/Xlib.h>
42631 _ACEOF
42632 if ac_fn_cxx_try_cpp "$LINENO"; then :
42633   # We can compile using X headers with no special include directory.
42634 ac_x_includes=
42635 else
42636   for ac_dir in $ac_x_header_dirs; do
42637   if test -r "$ac_dir/X11/Xlib.h"; then
42638     ac_x_includes=$ac_dir
42639     break
42640   fi
42641 done
42642 fi
42643 rm -f conftest.err conftest.i conftest.$ac_ext
42644 fi # $ac_x_includes = no
42645 
42646 if test "$ac_x_libraries" = no; then
42647   # Check for the libraries.
42648   # See if we find them without any special options.
42649   # Don't add to $LIBS permanently.
42650   ac_save_LIBS=$LIBS
42651   LIBS="-lX11 $LIBS"
42652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42653 /* end confdefs.h.  */
42654 #include <X11/Xlib.h>
42655 int
42656 main ()
42657 {
42658 XrmInitialize ()
42659   ;
42660   return 0;
42661 }
42662 _ACEOF
42663 if ac_fn_cxx_try_link "$LINENO"; then :
42664   LIBS=$ac_save_LIBS
42665 # We can link X programs with no special library path.
42666 ac_x_libraries=
42667 else
42668   LIBS=$ac_save_LIBS
42669 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
42670 do
42671   # Don't even attempt the hair of trying to link an X program!
42672   for ac_extension in a so sl dylib la dll; do
42673     if test -r "$ac_dir/libX11.$ac_extension"; then
42674       ac_x_libraries=$ac_dir
42675       break 2
42676     fi
42677   done
42678 done
42679 fi
42680 rm -f core conftest.err conftest.$ac_objext \
42681     conftest$ac_exeext conftest.$ac_ext
42682 fi # $ac_x_libraries = no
42683 
42684 case $ac_x_includes,$ac_x_libraries in #(
42685   no,* | *,no | *\'*)
42686     # Didn't find X, or a directory has "'" in its name.
42687     ac_cv_have_x="have_x=no";; #(
42688   *)
42689     # Record where we found X for the cache.
42690     ac_cv_have_x="have_x=yes\
42691         ac_x_includes='$ac_x_includes'\
42692         ac_x_libraries='$ac_x_libraries'"
42693 esac
42694 fi
42695 ;; #(
42696     *) have_x=yes;;
42697   esac
42698   eval "$ac_cv_have_x"
42699 fi # $with_x != no
42700 
42701 if test "$have_x" != yes; then
42702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
42703 $as_echo "$have_x" >&6; }
42704   no_x=yes
42705 else
42706   # If each of the values was on the command line, it overrides each guess.
42707   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
42708   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
42709   # Update the cache value to reflect the command line values.
42710   ac_cv_have_x="have_x=yes\
42711         ac_x_includes='$x_includes'\
42712         ac_x_libraries='$x_libraries'"
42713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
42714 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
42715 fi
42716 
42717   if test "$no_x" = yes; then
42718   # Not all programs may use this symbol, but it does not hurt to define it.
42719 
42720 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
42721 
42722   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
42723 else
42724   if test -n "$x_includes"; then
42725     X_CFLAGS="$X_CFLAGS -I$x_includes"
42726   fi
42727 
42728   # It would also be nice to do this for all -L options, not just this one.
42729   if test -n "$x_libraries"; then
42730     X_LIBS="$X_LIBS -L$x_libraries"
42731     # For Solaris; some versions of Sun CC require a space after -R and
42732     # others require no space.  Words are not sufficient . . . .
42733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
42734 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
42735     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
42736     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
42737     ac_cxx_werror_flag=yes
42738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42739 /* end confdefs.h.  */
42740 
42741 int
42742 main ()
42743 {
42744 
42745   ;
42746   return 0;
42747 }
42748 _ACEOF
42749 if ac_fn_cxx_try_link "$LINENO"; then :
42750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42751 $as_echo "no" >&6; }
42752        X_LIBS="$X_LIBS -R$x_libraries"
42753 else
42754   LIBS="$ac_xsave_LIBS -R $x_libraries"
42755        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42756 /* end confdefs.h.  */
42757 
42758 int
42759 main ()
42760 {
42761 
42762   ;
42763   return 0;
42764 }
42765 _ACEOF
42766 if ac_fn_cxx_try_link "$LINENO"; then :
42767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42768 $as_echo "yes" >&6; }
42769           X_LIBS="$X_LIBS -R $x_libraries"
42770 else
42771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
42772 $as_echo "neither works" >&6; }
42773 fi
42774 rm -f core conftest.err conftest.$ac_objext \
42775     conftest$ac_exeext conftest.$ac_ext
42776 fi
42777 rm -f core conftest.err conftest.$ac_objext \
42778     conftest$ac_exeext conftest.$ac_ext
42779     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
42780     LIBS=$ac_xsave_LIBS
42781   fi
42782 
42783   # Check for system-dependent libraries X programs must link with.
42784   # Do this before checking for the system-independent R6 libraries
42785   # (-lICE), since we may need -lsocket or whatever for X linking.
42786 
42787   if test "$ISC" = yes; then
42788     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
42789   else
42790     # Martyn Johnson says this is needed for Ultrix, if the X
42791     # libraries were built with DECnet support.  And Karl Berry says
42792     # the Alpha needs dnet_stub (dnet does not exist).
42793     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
42794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42795 /* end confdefs.h.  */
42796 
42797 /* Override any GCC internal prototype to avoid an error.
42798    Use char because int might match the return type of a GCC
42799    builtin and then its argument prototype would still apply.  */
42800 #ifdef __cplusplus
42801 extern "C"
42802 #endif
42803 char XOpenDisplay ();
42804 int
42805 main ()
42806 {
42807 return XOpenDisplay ();
42808   ;
42809   return 0;
42810 }
42811 _ACEOF
42812 if ac_fn_cxx_try_link "$LINENO"; then :
42813 
42814 else
42815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
42816 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
42817 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
42818   $as_echo_n "(cached) " >&6
42819 else
42820   ac_check_lib_save_LIBS=$LIBS
42821 LIBS="-ldnet  $LIBS"
42822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42823 /* end confdefs.h.  */
42824 
42825 /* Override any GCC internal prototype to avoid an error.
42826    Use char because int might match the return type of a GCC
42827    builtin and then its argument prototype would still apply.  */
42828 #ifdef __cplusplus
42829 extern "C"
42830 #endif
42831 char dnet_ntoa ();
42832 int
42833 main ()
42834 {
42835 return dnet_ntoa ();
42836   ;
42837   return 0;
42838 }
42839 _ACEOF
42840 if ac_fn_cxx_try_link "$LINENO"; then :
42841   ac_cv_lib_dnet_dnet_ntoa=yes
42842 else
42843   ac_cv_lib_dnet_dnet_ntoa=no
42844 fi
42845 rm -f core conftest.err conftest.$ac_objext \
42846     conftest$ac_exeext conftest.$ac_ext
42847 LIBS=$ac_check_lib_save_LIBS
42848 fi
42849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
42850 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
42851 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
42852   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
42853 fi
42854 
42855     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
42856       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
42857 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
42858 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
42859   $as_echo_n "(cached) " >&6
42860 else
42861   ac_check_lib_save_LIBS=$LIBS
42862 LIBS="-ldnet_stub  $LIBS"
42863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42864 /* end confdefs.h.  */
42865 
42866 /* Override any GCC internal prototype to avoid an error.
42867    Use char because int might match the return type of a GCC
42868    builtin and then its argument prototype would still apply.  */
42869 #ifdef __cplusplus
42870 extern "C"
42871 #endif
42872 char dnet_ntoa ();
42873 int
42874 main ()
42875 {
42876 return dnet_ntoa ();
42877   ;
42878   return 0;
42879 }
42880 _ACEOF
42881 if ac_fn_cxx_try_link "$LINENO"; then :
42882   ac_cv_lib_dnet_stub_dnet_ntoa=yes
42883 else
42884   ac_cv_lib_dnet_stub_dnet_ntoa=no
42885 fi
42886 rm -f core conftest.err conftest.$ac_objext \
42887     conftest$ac_exeext conftest.$ac_ext
42888 LIBS=$ac_check_lib_save_LIBS
42889 fi
42890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
42891 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
42892 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
42893   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
42894 fi
42895 
42896     fi
42897 fi
42898 rm -f core conftest.err conftest.$ac_objext \
42899     conftest$ac_exeext conftest.$ac_ext
42900     LIBS="$ac_xsave_LIBS"
42901 
42902     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
42903     # to get the SysV transport functions.
42904     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
42905     # needs -lnsl.
42906     # The nsl library prevents programs from opening the X display
42907     # on Irix 5.2, according to T.E. Dickey.
42908     # The functions gethostbyname, getservbyname, and inet_addr are
42909     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
42910     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
42911 if test "x$ac_cv_func_gethostbyname" = xyes; then :
42912 
42913 fi
42914 
42915     if test $ac_cv_func_gethostbyname = no; then
42916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
42917 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
42918 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
42919   $as_echo_n "(cached) " >&6
42920 else
42921   ac_check_lib_save_LIBS=$LIBS
42922 LIBS="-lnsl  $LIBS"
42923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42924 /* end confdefs.h.  */
42925 
42926 /* Override any GCC internal prototype to avoid an error.
42927    Use char because int might match the return type of a GCC
42928    builtin and then its argument prototype would still apply.  */
42929 #ifdef __cplusplus
42930 extern "C"
42931 #endif
42932 char gethostbyname ();
42933 int
42934 main ()
42935 {
42936 return gethostbyname ();
42937   ;
42938   return 0;
42939 }
42940 _ACEOF
42941 if ac_fn_cxx_try_link "$LINENO"; then :
42942   ac_cv_lib_nsl_gethostbyname=yes
42943 else
42944   ac_cv_lib_nsl_gethostbyname=no
42945 fi
42946 rm -f core conftest.err conftest.$ac_objext \
42947     conftest$ac_exeext conftest.$ac_ext
42948 LIBS=$ac_check_lib_save_LIBS
42949 fi
42950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
42951 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
42952 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
42953   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
42954 fi
42955 
42956       if test $ac_cv_lib_nsl_gethostbyname = no; then
42957         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
42958 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
42959 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
42960   $as_echo_n "(cached) " >&6
42961 else
42962   ac_check_lib_save_LIBS=$LIBS
42963 LIBS="-lbsd  $LIBS"
42964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42965 /* end confdefs.h.  */
42966 
42967 /* Override any GCC internal prototype to avoid an error.
42968    Use char because int might match the return type of a GCC
42969    builtin and then its argument prototype would still apply.  */
42970 #ifdef __cplusplus
42971 extern "C"
42972 #endif
42973 char gethostbyname ();
42974 int
42975 main ()
42976 {
42977 return gethostbyname ();
42978   ;
42979   return 0;
42980 }
42981 _ACEOF
42982 if ac_fn_cxx_try_link "$LINENO"; then :
42983   ac_cv_lib_bsd_gethostbyname=yes
42984 else
42985   ac_cv_lib_bsd_gethostbyname=no
42986 fi
42987 rm -f core conftest.err conftest.$ac_objext \
42988     conftest$ac_exeext conftest.$ac_ext
42989 LIBS=$ac_check_lib_save_LIBS
42990 fi
42991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
42992 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
42993 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
42994   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
42995 fi
42996 
42997       fi
42998     fi
42999 
43000     # lieder@skyler.mavd.honeywell.com says without -lsocket,
43001     # socket/setsockopt and other routines are undefined under SCO ODT
43002     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
43003     # on later versions), says Simon Leinen: it contains gethostby*
43004     # variants that don't use the name server (or something).  -lsocket
43005     # must be given before -lnsl if both are needed.  We assume that
43006     # if connect needs -lnsl, so does gethostbyname.
43007     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
43008 if test "x$ac_cv_func_connect" = xyes; then :
43009 
43010 fi
43011 
43012     if test $ac_cv_func_connect = no; then
43013       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
43014 $as_echo_n "checking for connect in -lsocket... " >&6; }
43015 if ${ac_cv_lib_socket_connect+:} false; then :
43016   $as_echo_n "(cached) " >&6
43017 else
43018   ac_check_lib_save_LIBS=$LIBS
43019 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
43020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43021 /* end confdefs.h.  */
43022 
43023 /* Override any GCC internal prototype to avoid an error.
43024    Use char because int might match the return type of a GCC
43025    builtin and then its argument prototype would still apply.  */
43026 #ifdef __cplusplus
43027 extern "C"
43028 #endif
43029 char connect ();
43030 int
43031 main ()
43032 {
43033 return connect ();
43034   ;
43035   return 0;
43036 }
43037 _ACEOF
43038 if ac_fn_cxx_try_link "$LINENO"; then :
43039   ac_cv_lib_socket_connect=yes
43040 else
43041   ac_cv_lib_socket_connect=no
43042 fi
43043 rm -f core conftest.err conftest.$ac_objext \
43044     conftest$ac_exeext conftest.$ac_ext
43045 LIBS=$ac_check_lib_save_LIBS
43046 fi
43047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
43048 $as_echo "$ac_cv_lib_socket_connect" >&6; }
43049 if test "x$ac_cv_lib_socket_connect" = xyes; then :
43050   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
43051 fi
43052 
43053     fi
43054 
43055     # Guillermo Gomez says -lposix is necessary on A/UX.
43056     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
43057 if test "x$ac_cv_func_remove" = xyes; then :
43058 
43059 fi
43060 
43061     if test $ac_cv_func_remove = no; then
43062       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
43063 $as_echo_n "checking for remove in -lposix... " >&6; }
43064 if ${ac_cv_lib_posix_remove+:} false; then :
43065   $as_echo_n "(cached) " >&6
43066 else
43067   ac_check_lib_save_LIBS=$LIBS
43068 LIBS="-lposix  $LIBS"
43069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43070 /* end confdefs.h.  */
43071 
43072 /* Override any GCC internal prototype to avoid an error.
43073    Use char because int might match the return type of a GCC
43074    builtin and then its argument prototype would still apply.  */
43075 #ifdef __cplusplus
43076 extern "C"
43077 #endif
43078 char remove ();
43079 int
43080 main ()
43081 {
43082 return remove ();
43083   ;
43084   return 0;
43085 }
43086 _ACEOF
43087 if ac_fn_cxx_try_link "$LINENO"; then :
43088   ac_cv_lib_posix_remove=yes
43089 else
43090   ac_cv_lib_posix_remove=no
43091 fi
43092 rm -f core conftest.err conftest.$ac_objext \
43093     conftest$ac_exeext conftest.$ac_ext
43094 LIBS=$ac_check_lib_save_LIBS
43095 fi
43096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
43097 $as_echo "$ac_cv_lib_posix_remove" >&6; }
43098 if test "x$ac_cv_lib_posix_remove" = xyes; then :
43099   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
43100 fi
43101 
43102     fi
43103 
43104     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
43105     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
43106 if test "x$ac_cv_func_shmat" = xyes; then :
43107 
43108 fi
43109 
43110     if test $ac_cv_func_shmat = no; then
43111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
43112 $as_echo_n "checking for shmat in -lipc... " >&6; }
43113 if ${ac_cv_lib_ipc_shmat+:} false; then :
43114   $as_echo_n "(cached) " >&6
43115 else
43116   ac_check_lib_save_LIBS=$LIBS
43117 LIBS="-lipc  $LIBS"
43118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43119 /* end confdefs.h.  */
43120 
43121 /* Override any GCC internal prototype to avoid an error.
43122    Use char because int might match the return type of a GCC
43123    builtin and then its argument prototype would still apply.  */
43124 #ifdef __cplusplus
43125 extern "C"
43126 #endif
43127 char shmat ();
43128 int
43129 main ()
43130 {
43131 return shmat ();
43132   ;
43133   return 0;
43134 }
43135 _ACEOF
43136 if ac_fn_cxx_try_link "$LINENO"; then :
43137   ac_cv_lib_ipc_shmat=yes
43138 else
43139   ac_cv_lib_ipc_shmat=no
43140 fi
43141 rm -f core conftest.err conftest.$ac_objext \
43142     conftest$ac_exeext conftest.$ac_ext
43143 LIBS=$ac_check_lib_save_LIBS
43144 fi
43145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
43146 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
43147 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
43148   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
43149 fi
43150 
43151     fi
43152   fi
43153 
43154   # Check for libraries that X11R6 Xt/Xaw programs need.
43155   ac_save_LDFLAGS=$LDFLAGS
43156   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
43157   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
43158   # check for ICE first), but we must link in the order -lSM -lICE or
43159   # we get undefined symbols.  So assume we have SM if we have ICE.
43160   # These have to be linked with before -lX11, unlike the other
43161   # libraries we check for below, so use a different variable.
43162   # John Interrante, Karl Berry
43163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
43164 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
43165 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
43166   $as_echo_n "(cached) " >&6
43167 else
43168   ac_check_lib_save_LIBS=$LIBS
43169 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
43170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43171 /* end confdefs.h.  */
43172 
43173 /* Override any GCC internal prototype to avoid an error.
43174    Use char because int might match the return type of a GCC
43175    builtin and then its argument prototype would still apply.  */
43176 #ifdef __cplusplus
43177 extern "C"
43178 #endif
43179 char IceConnectionNumber ();
43180 int
43181 main ()
43182 {
43183 return IceConnectionNumber ();
43184   ;
43185   return 0;
43186 }
43187 _ACEOF
43188 if ac_fn_cxx_try_link "$LINENO"; then :
43189   ac_cv_lib_ICE_IceConnectionNumber=yes
43190 else
43191   ac_cv_lib_ICE_IceConnectionNumber=no
43192 fi
43193 rm -f core conftest.err conftest.$ac_objext \
43194     conftest$ac_exeext conftest.$ac_ext
43195 LIBS=$ac_check_lib_save_LIBS
43196 fi
43197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
43198 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
43199 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
43200   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
43201 fi
43202 
43203   LDFLAGS=$ac_save_LDFLAGS
43204 
43205 fi
43206 
43207 
43208   # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
43209   # this doesn't make sense so we remove it.
43210   if test "x$COMPILE_TYPE" = xcross; then
43211     X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
43212   fi
43213 
43214   if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
43215 
43216   # Print a helpful message on how to acquire the necessary build dependency.
43217   # x11 is the help tag: freetype, cups, pulse, alsa etc
43218   MISSING_DEPENDENCY=x11
43219 
43220   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43221     cygwin_help $MISSING_DEPENDENCY
43222   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43223     msys_help $MISSING_DEPENDENCY
43224   else
43225     PKGHANDLER_COMMAND=
43226 
43227     case $PKGHANDLER in
43228       apt-get)
43229         apt_help     $MISSING_DEPENDENCY ;;
43230       yum)
43231         yum_help     $MISSING_DEPENDENCY ;;
43232       port)
43233         port_help    $MISSING_DEPENDENCY ;;
43234       pkgutil)
43235         pkgutil_help $MISSING_DEPENDENCY ;;
43236       pkgadd)
43237         pkgadd_help  $MISSING_DEPENDENCY ;;
43238     esac
43239 
43240     if test "x$PKGHANDLER_COMMAND" != x; then
43241       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43242     fi
43243   fi
43244 
43245     as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
43246   fi
43247 
43248   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
43249     OPENWIN_HOME="/usr/openwin"
43250   fi
43251 
43252 
43253 
43254   #
43255   # Weird Sol10 something check...TODO change to try compile
43256   #
43257   if test "x${OPENJDK_TARGET_OS}" = xsolaris; then
43258     if test "`uname -r`" = "5.10"; then
43259       if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then
43260         X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS"
43261       fi
43262     fi
43263   fi
43264 
43265   ac_ext=c
43266 ac_cpp='$CPP $CPPFLAGS'
43267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43270 
43271   OLD_CFLAGS="$CFLAGS"
43272   CFLAGS="$CFLAGS $X_CFLAGS"
43273 
43274   # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
43275   for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h
43276 do :
43277   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43278 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
43279         # include <X11/Xlib.h>
43280         # include <X11/Xutil.h>
43281 
43282 
43283 "
43284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43285   cat >>confdefs.h <<_ACEOF
43286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43287 _ACEOF
43288  X11_A_OK=yes
43289 else
43290   X11_A_OK=no; break
43291 fi
43292 
43293 done
43294 
43295 
43296   CFLAGS="$OLD_CFLAGS"
43297   ac_ext=cpp
43298 ac_cpp='$CXXCPP $CPPFLAGS'
43299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43302 
43303 
43304   if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
43305 
43306   # Print a helpful message on how to acquire the necessary build dependency.
43307   # x11 is the help tag: freetype, cups, pulse, alsa etc
43308   MISSING_DEPENDENCY=x11
43309 
43310   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43311     cygwin_help $MISSING_DEPENDENCY
43312   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43313     msys_help $MISSING_DEPENDENCY
43314   else
43315     PKGHANDLER_COMMAND=
43316 
43317     case $PKGHANDLER in
43318       apt-get)
43319         apt_help     $MISSING_DEPENDENCY ;;
43320       yum)
43321         yum_help     $MISSING_DEPENDENCY ;;
43322       port)
43323         port_help    $MISSING_DEPENDENCY ;;
43324       pkgutil)
43325         pkgutil_help $MISSING_DEPENDENCY ;;
43326       pkgadd)
43327         pkgadd_help  $MISSING_DEPENDENCY ;;
43328     esac
43329 
43330     if test "x$PKGHANDLER_COMMAND" != x; then
43331       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43332     fi
43333   fi
43334 
43335     as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5
43336   fi
43337 
43338 
43339 
43340 
43341 
43342 
43343   ###############################################################################
43344   #
43345   # The common unix printing system cups is used to print from java.
43346   #
43347 
43348 # Check whether --with-cups was given.
43349 if test "${with_cups+set}" = set; then :
43350   withval=$with_cups;
43351 fi
43352 
43353 
43354 # Check whether --with-cups-include was given.
43355 if test "${with_cups_include+set}" = set; then :
43356   withval=$with_cups_include;
43357 fi
43358 
43359 
43360   if test "x$CUPS_NOT_NEEDED" = xyes; then
43361     if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then
43362       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
43363 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
43364     fi
43365     CUPS_CFLAGS=
43366   else
43367     CUPS_FOUND=no
43368 
43369     if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then
43370       as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
43371     fi
43372 
43373     if test "x${with_cups}" != x; then
43374       CUPS_CFLAGS="-I${with_cups}/include"
43375       CUPS_FOUND=yes
43376     fi
43377     if test "x${with_cups_include}" != x; then
43378       CUPS_CFLAGS="-I${with_cups_include}"
43379       CUPS_FOUND=yes
43380     fi
43381     if test "x$CUPS_FOUND" = xno; then
43382 
43383 
43384   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
43385     # Source the builddeps file again, to make sure it uses the latest variables!
43386     . $builddepsfile
43387     # Look for a target and build machine specific resource!
43388     eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
43389     if test "x$resource" = x; then
43390       # Ok, lets instead look for a target specific resource
43391       eval resource=\${builddep_cups_TARGET_${rewritten_target_var}}
43392     fi
43393     if test "x$resource" = x; then
43394       # Ok, lets instead look for a build specific resource
43395       eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
43396     fi
43397     if test "x$resource" = x; then
43398       # Ok, lets instead look for a generic resource
43399       # (The cups comes from M4 and not the shell, thus no need for eval here.)
43400       resource=${builddep_cups}
43401     fi
43402     if test "x$resource" != x; then
43403       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
43404 $as_echo "$as_me: Using builddeps $resource for cups" >&6;}
43405       # If the resource in the builddeps.conf file is an existing directory,
43406       # for example /java/linux/cups
43407       if test -d ${resource}; then
43408         depdir=${resource}
43409       else
43410 
43411   # cups is for example mymodule
43412   # $resource is for example libs/general/libmymod_1_2_3.zip
43413   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
43414   # $with_builddeps_dir is for example /localhome/builddeps
43415   # depdir is the name of the variable into which we store the depdir, eg MYMOD
43416   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
43417   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
43418   filename=`basename $resource`
43419   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
43420   filebase=${filename%%.*}
43421   extension=${filename#*.}
43422   installdir=$with_builddeps_dir/$filebase
43423   if test ! -f $installdir/$filename.unpacked; then
43424     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
43425 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
43426     if test ! -d $installdir; then
43427       mkdir -p $installdir
43428     fi
43429     if test ! -d $installdir; then
43430       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
43431     fi
43432     tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
43433     touch $tmpfile
43434     if test ! -f $tmpfile; then
43435       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
43436     fi
43437 
43438   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
43439   # $tmpfile is the local file name for the downloaded file.
43440   VALID_TOOL=no
43441   if test "x$BDEPS_FTP" = xwget; then
43442     VALID_TOOL=yes
43443     wget -O $tmpfile $with_builddeps_server/$resource
43444   fi
43445   if test "x$BDEPS_FTP" = xlftp; then
43446     VALID_TOOL=yes
43447     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
43448   fi
43449   if test "x$BDEPS_FTP" = xftp; then
43450     VALID_TOOL=yes
43451     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
43452     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
43453     FTPUSERPWD=${FTPSERVER%%@*}
43454     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
43455       FTPUSER=${userpwd%%:*}
43456       FTPPWD=${userpwd#*@}
43457       FTPSERVER=${FTPSERVER#*@}
43458     else
43459       FTPUSER=ftp
43460       FTPPWD=ftp
43461     fi
43462     # the "pass" command does not work on some
43463     # ftp clients (read ftp.exe) but if it works,
43464     # passive mode is better!
43465     ( \
43466         echo "user $FTPUSER $FTPPWD"        ; \
43467         echo "pass"                         ; \
43468         echo "bin"                          ; \
43469         echo "get $FTPPATH $tmpfile"              ; \
43470     ) | ftp -in $FTPSERVER
43471   fi
43472   if test "x$VALID_TOOL" != xyes; then
43473     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
43474   fi
43475 
43476     mv $tmpfile $installdir/$filename
43477     if test ! -s $installdir/$filename; then
43478       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
43479     fi
43480     case "$extension" in
43481       zip)  echo "Unzipping $installdir/$filename..."
43482         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
43483         ;;
43484       tar.gz) echo "Untaring $installdir/$filename..."
43485         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43486         ;;
43487       tgz) echo "Untaring $installdir/$filename..."
43488         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43489         ;;
43490       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
43491         ;;
43492     esac
43493   fi
43494   if test -f $installdir/$filename.unpacked; then
43495     depdir=$installdir
43496   fi
43497 
43498       fi
43499       # Source the builddeps file again, because in the previous command, the depdir
43500       # was updated to point at the current build dependency install directory.
43501       . $builddepsfile
43502       # Now extract variables from the builddeps.conf files.
43503       theroot=${builddep_cups_ROOT}
43504       thecflags=${builddep_cups_CFLAGS}
43505       thelibs=${builddep_cups_LIBS}
43506       if test "x$depdir" = x; then
43507         as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
43508       fi
43509       CUPS=$depdir
43510       if test "x$theroot" != x; then
43511         CUPS="$theroot"
43512       fi
43513       if test "x$thecflags" != x; then
43514         CUPS_CFLAGS="$thecflags"
43515       fi
43516       if test "x$thelibs" != x; then
43517         CUPS_LIBS="$thelibs"
43518       fi
43519       CUPS_FOUND=yes
43520 
43521     fi
43522 
43523   fi
43524 
43525     fi
43526     if test "x$CUPS_FOUND" = xno; then
43527       # Are the cups headers installed in the default /usr/include location?
43528       for ac_header in cups/cups.h cups/ppd.h
43529 do :
43530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43531 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
43532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43533   cat >>confdefs.h <<_ACEOF
43534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43535 _ACEOF
43536 
43537             CUPS_FOUND=yes
43538             CUPS_CFLAGS=
43539             DEFAULT_CUPS=yes
43540 
43541 
43542 fi
43543 
43544 done
43545 
43546     fi
43547     if test "x$CUPS_FOUND" = xno; then
43548       # Getting nervous now? Lets poke around for standard Solaris third-party
43549       # package installation locations.
43550       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5
43551 $as_echo_n "checking for cups headers... " >&6; }
43552       if test -s /opt/sfw/cups/include/cups/cups.h; then
43553         # An SFW package seems to be installed!
43554         CUPS_FOUND=yes
43555         CUPS_CFLAGS="-I/opt/sfw/cups/include"
43556       elif test -s /opt/csw/include/cups/cups.h; then
43557         # A CSW package seems to be installed!
43558         CUPS_FOUND=yes
43559         CUPS_CFLAGS="-I/opt/csw/include"
43560       fi
43561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
43562 $as_echo "$CUPS_FOUND" >&6; }
43563     fi
43564     if test "x$CUPS_FOUND" = xno; then
43565 
43566   # Print a helpful message on how to acquire the necessary build dependency.
43567   # cups is the help tag: freetype, cups, pulse, alsa etc
43568   MISSING_DEPENDENCY=cups
43569 
43570   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43571     cygwin_help $MISSING_DEPENDENCY
43572   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43573     msys_help $MISSING_DEPENDENCY
43574   else
43575     PKGHANDLER_COMMAND=
43576 
43577     case $PKGHANDLER in
43578       apt-get)
43579         apt_help     $MISSING_DEPENDENCY ;;
43580       yum)
43581         yum_help     $MISSING_DEPENDENCY ;;
43582       port)
43583         port_help    $MISSING_DEPENDENCY ;;
43584       pkgutil)
43585         pkgutil_help $MISSING_DEPENDENCY ;;
43586       pkgadd)
43587         pkgadd_help  $MISSING_DEPENDENCY ;;
43588     esac
43589 
43590     if test "x$PKGHANDLER_COMMAND" != x; then
43591       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43592     fi
43593   fi
43594 
43595       as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
43596     fi
43597   fi
43598 
43599 
43600 
43601 
43602 
43603 
43604   ###############################################################################
43605   #
43606   # The ubiquitous freetype library is used to render fonts.
43607   #
43608 
43609 # Check whether --with-freetype was given.
43610 if test "${with_freetype+set}" = set; then :
43611   withval=$with_freetype;
43612 fi
43613 
43614 
43615 # Check whether --with-freetype-include was given.
43616 if test "${with_freetype_include+set}" = set; then :
43617   withval=$with_freetype_include;
43618 fi
43619 
43620 
43621 # Check whether --with-freetype-lib was given.
43622 if test "${with_freetype_lib+set}" = set; then :
43623   withval=$with_freetype_lib;
43624 fi
43625 
43626   # Check whether --enable-freetype-bundling was given.
43627 if test "${enable_freetype_bundling+set}" = set; then :
43628   enableval=$enable_freetype_bundling;
43629 fi
43630 
43631 
43632   FREETYPE_CFLAGS=
43633   FREETYPE_LIBS=
43634   FREETYPE_BUNDLE_LIB_PATH=
43635 
43636   if test "x$FREETYPE_NOT_NEEDED" = xyes; then
43637     if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
43638       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
43639 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
43640     fi
43641     if test "x$enable_freetype_bundling" != x; then
43642       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5
43643 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;}
43644     fi
43645   else
43646     # freetype is needed to build; go get it!
43647 
43648     BUNDLE_FREETYPE="$enable_freetype_bundling"
43649 
43650     if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
43651       # User has specified settings
43652 
43653       if test "x$BUNDLE_FREETYPE" = x; then
43654         # If not specified, default is to bundle freetype
43655         BUNDLE_FREETYPE=yes
43656       fi
43657 
43658       if test "x$with_freetype" != x; then
43659         POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include"
43660         POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib"
43661       fi
43662 
43663       # Allow --with-freetype-lib and --with-freetype-include to override
43664       if test "x$with_freetype_include" != x; then
43665         POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include"
43666       fi
43667       if test "x$with_freetype_lib" != x; then
43668         POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib"
43669       fi
43670 
43671       if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then
43672         # Okay, we got it. Check that it works.
43673 
43674   POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43675   POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43676   METHOD="--with-freetype"
43677 
43678   # First check if the files exists.
43679   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43680     # We found an arbitrary include file. That's a good sign.
43681     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43682 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43683     FOUND_FREETYPE=yes
43684 
43685     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43686     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43687       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43688 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43689       FOUND_FREETYPE=no
43690     else
43691       if test "x$OPENJDK_TARGET_OS" = xwindows; then
43692         # On Windows, we will need both .lib and .dll file.
43693         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43694           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43695 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43696           FOUND_FREETYPE=no
43697         fi
43698       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
43699         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43700         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43701       fi
43702     fi
43703   fi
43704 
43705   if test "x$FOUND_FREETYPE" = xyes; then
43706 
43707   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43708 
43709   # Input might be given as Windows format, start by converting to
43710   # unix format.
43711   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43712   new_path=`$CYGPATH -u "$path"`
43713 
43714   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43715   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43716   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43717   # "foo.exe" is OK but "foo" is an error.
43718   #
43719   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43720   # It is also a way to make sure we got the proper file name for the real test later on.
43721   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43722   if test "x$test_shortpath" = x; then
43723     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43724 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43725     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43726   fi
43727 
43728   # Call helper function which possibly converts this using DOS-style short mode.
43729   # If so, the updated path is stored in $new_path.
43730 
43731   input_path="$new_path"
43732   # Check if we need to convert this using DOS-style short mode. If the path
43733   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43734   # take no chances and rewrite it.
43735   # Note: m4 eats our [], so we need to use [ and ] instead.
43736   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43737   if test "x$has_forbidden_chars" != x; then
43738     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43739     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43740     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43741     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43742       # Going to short mode and back again did indeed matter. Since short mode is
43743       # case insensitive, let's make it lowercase to improve readability.
43744       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43745       # Now convert it back to Unix-stile (cygpath)
43746       input_path=`$CYGPATH -u "$shortmode_path"`
43747       new_path="$input_path"
43748     fi
43749   fi
43750 
43751   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43752   if test "x$test_cygdrive_prefix" = x; then
43753     # As a simple fix, exclude /usr/bin since it's not a real path.
43754     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43755       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43756       # a path prefixed by /cygdrive for fixpath to work.
43757       new_path="$CYGWIN_ROOT_PATH$input_path"
43758     fi
43759   fi
43760 
43761 
43762   if test "x$path" != "x$new_path"; then
43763     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43764     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43765 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43766   fi
43767 
43768   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43769 
43770   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43771   has_colon=`$ECHO $path | $GREP ^.:`
43772   new_path="$path"
43773   if test "x$has_colon" = x; then
43774     # Not in mixed or Windows style, start by that.
43775     new_path=`cmd //c echo $path`
43776   fi
43777 
43778 
43779   input_path="$new_path"
43780   # Check if we need to convert this using DOS-style short mode. If the path
43781   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43782   # take no chances and rewrite it.
43783   # Note: m4 eats our [], so we need to use [ and ] instead.
43784   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43785   if test "x$has_forbidden_chars" != x; then
43786     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43787     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43788   fi
43789 
43790 
43791   windows_path="$new_path"
43792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43793     unix_path=`$CYGPATH -u "$windows_path"`
43794     new_path="$unix_path"
43795   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43796     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43797     new_path="$unix_path"
43798   fi
43799 
43800   if test "x$path" != "x$new_path"; then
43801     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43802     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43803 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43804   fi
43805 
43806   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43807   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43808 
43809   else
43810     # We're on a posix platform. Hooray! :)
43811     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43812     has_space=`$ECHO "$path" | $GREP " "`
43813     if test "x$has_space" != x; then
43814       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43815 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43816       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43817     fi
43818 
43819     # Use eval to expand a potential ~
43820     eval path="$path"
43821     if test ! -f "$path" && test ! -d "$path"; then
43822       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43823     fi
43824 
43825     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
43826   fi
43827 
43828 
43829   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43830 
43831   # Input might be given as Windows format, start by converting to
43832   # unix format.
43833   path="$POTENTIAL_FREETYPE_LIB_PATH"
43834   new_path=`$CYGPATH -u "$path"`
43835 
43836   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43837   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43838   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43839   # "foo.exe" is OK but "foo" is an error.
43840   #
43841   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43842   # It is also a way to make sure we got the proper file name for the real test later on.
43843   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43844   if test "x$test_shortpath" = x; then
43845     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43846 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43847     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
43848   fi
43849 
43850   # Call helper function which possibly converts this using DOS-style short mode.
43851   # If so, the updated path is stored in $new_path.
43852 
43853   input_path="$new_path"
43854   # Check if we need to convert this using DOS-style short mode. If the path
43855   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43856   # take no chances and rewrite it.
43857   # Note: m4 eats our [], so we need to use [ and ] instead.
43858   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43859   if test "x$has_forbidden_chars" != x; then
43860     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43861     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43862     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43863     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43864       # Going to short mode and back again did indeed matter. Since short mode is
43865       # case insensitive, let's make it lowercase to improve readability.
43866       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43867       # Now convert it back to Unix-stile (cygpath)
43868       input_path=`$CYGPATH -u "$shortmode_path"`
43869       new_path="$input_path"
43870     fi
43871   fi
43872 
43873   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43874   if test "x$test_cygdrive_prefix" = x; then
43875     # As a simple fix, exclude /usr/bin since it's not a real path.
43876     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43877       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43878       # a path prefixed by /cygdrive for fixpath to work.
43879       new_path="$CYGWIN_ROOT_PATH$input_path"
43880     fi
43881   fi
43882 
43883 
43884   if test "x$path" != "x$new_path"; then
43885     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43886     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43887 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43888   fi
43889 
43890   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43891 
43892   path="$POTENTIAL_FREETYPE_LIB_PATH"
43893   has_colon=`$ECHO $path | $GREP ^.:`
43894   new_path="$path"
43895   if test "x$has_colon" = x; then
43896     # Not in mixed or Windows style, start by that.
43897     new_path=`cmd //c echo $path`
43898   fi
43899 
43900 
43901   input_path="$new_path"
43902   # Check if we need to convert this using DOS-style short mode. If the path
43903   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43904   # take no chances and rewrite it.
43905   # Note: m4 eats our [], so we need to use [ and ] instead.
43906   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43907   if test "x$has_forbidden_chars" != x; then
43908     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43909     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43910   fi
43911 
43912 
43913   windows_path="$new_path"
43914   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43915     unix_path=`$CYGPATH -u "$windows_path"`
43916     new_path="$unix_path"
43917   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43918     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43919     new_path="$unix_path"
43920   fi
43921 
43922   if test "x$path" != "x$new_path"; then
43923     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43924     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43925 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43926   fi
43927 
43928   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43929   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43930 
43931   else
43932     # We're on a posix platform. Hooray! :)
43933     path="$POTENTIAL_FREETYPE_LIB_PATH"
43934     has_space=`$ECHO "$path" | $GREP " "`
43935     if test "x$has_space" != x; then
43936       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43937 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43938       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43939     fi
43940 
43941     # Use eval to expand a potential ~
43942     eval path="$path"
43943     if test ! -f "$path" && test ! -d "$path"; then
43944       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43945     fi
43946 
43947     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43948   fi
43949 
43950 
43951     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43953 $as_echo_n "checking for freetype includes... " >&6; }
43954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43955 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43956     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43958 $as_echo_n "checking for freetype libraries... " >&6; }
43959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43960 $as_echo "$FREETYPE_LIB_PATH" >&6; }
43961   fi
43962 
43963         if test "x$FOUND_FREETYPE" != xyes; then
43964           as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5
43965         fi
43966       else
43967         # User specified only one of lib or include. This is an error.
43968         if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then
43969           { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5
43970 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;}
43971           as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
43972         else
43973           { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5
43974 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;}
43975           as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
43976         fi
43977       fi
43978     else
43979       # User did not specify settings, but we need freetype. Try to locate it.
43980 
43981       if test "x$BUNDLE_FREETYPE" = x; then
43982         # If not specified, default is to bundle freetype only on windows
43983         if test "x$OPENJDK_TARGET_OS" = xwindows; then
43984           BUNDLE_FREETYPE=yes
43985         else
43986           BUNDLE_FREETYPE=no
43987         fi
43988       fi
43989 
43990       if test "x$FOUND_FREETYPE" != xyes; then
43991         # Check builddeps
43992 
43993 
43994   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
43995     # Source the builddeps file again, to make sure it uses the latest variables!
43996     . $builddepsfile
43997     # Look for a target and build machine specific resource!
43998     eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
43999     if test "x$resource" = x; then
44000       # Ok, lets instead look for a target specific resource
44001       eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}}
44002     fi
44003     if test "x$resource" = x; then
44004       # Ok, lets instead look for a build specific resource
44005       eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
44006     fi
44007     if test "x$resource" = x; then
44008       # Ok, lets instead look for a generic resource
44009       # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
44010       resource=${builddep_freetype2}
44011     fi
44012     if test "x$resource" != x; then
44013       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
44014 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
44015       # If the resource in the builddeps.conf file is an existing directory,
44016       # for example /java/linux/cups
44017       if test -d ${resource}; then
44018         depdir=${resource}
44019       else
44020 
44021   # freetype2 is for example mymodule
44022   # $resource is for example libs/general/libmymod_1_2_3.zip
44023   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
44024   # $with_builddeps_dir is for example /localhome/builddeps
44025   # depdir is the name of the variable into which we store the depdir, eg MYMOD
44026   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
44027   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
44028   filename=`basename $resource`
44029   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
44030   filebase=${filename%%.*}
44031   extension=${filename#*.}
44032   installdir=$with_builddeps_dir/$filebase
44033   if test ! -f $installdir/$filename.unpacked; then
44034     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
44035 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
44036     if test ! -d $installdir; then
44037       mkdir -p $installdir
44038     fi
44039     if test ! -d $installdir; then
44040       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
44041     fi
44042     tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
44043     touch $tmpfile
44044     if test ! -f $tmpfile; then
44045       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
44046     fi
44047 
44048   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
44049   # $tmpfile is the local file name for the downloaded file.
44050   VALID_TOOL=no
44051   if test "x$BDEPS_FTP" = xwget; then
44052     VALID_TOOL=yes
44053     wget -O $tmpfile $with_builddeps_server/$resource
44054   fi
44055   if test "x$BDEPS_FTP" = xlftp; then
44056     VALID_TOOL=yes
44057     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
44058   fi
44059   if test "x$BDEPS_FTP" = xftp; then
44060     VALID_TOOL=yes
44061     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
44062     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
44063     FTPUSERPWD=${FTPSERVER%%@*}
44064     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
44065       FTPUSER=${userpwd%%:*}
44066       FTPPWD=${userpwd#*@}
44067       FTPSERVER=${FTPSERVER#*@}
44068     else
44069       FTPUSER=ftp
44070       FTPPWD=ftp
44071     fi
44072     # the "pass" command does not work on some
44073     # ftp clients (read ftp.exe) but if it works,
44074     # passive mode is better!
44075     ( \
44076         echo "user $FTPUSER $FTPPWD"        ; \
44077         echo "pass"                         ; \
44078         echo "bin"                          ; \
44079         echo "get $FTPPATH $tmpfile"              ; \
44080     ) | ftp -in $FTPSERVER
44081   fi
44082   if test "x$VALID_TOOL" != xyes; then
44083     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
44084   fi
44085 
44086     mv $tmpfile $installdir/$filename
44087     if test ! -s $installdir/$filename; then
44088       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
44089     fi
44090     case "$extension" in
44091       zip)  echo "Unzipping $installdir/$filename..."
44092         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
44093         ;;
44094       tar.gz) echo "Untaring $installdir/$filename..."
44095         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
44096         ;;
44097       tgz) echo "Untaring $installdir/$filename..."
44098         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
44099         ;;
44100       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
44101         ;;
44102     esac
44103   fi
44104   if test -f $installdir/$filename.unpacked; then
44105     depdir=$installdir
44106   fi
44107 
44108       fi
44109       # Source the builddeps file again, because in the previous command, the depdir
44110       # was updated to point at the current build dependency install directory.
44111       . $builddepsfile
44112       # Now extract variables from the builddeps.conf files.
44113       theroot=${builddep_freetype2_ROOT}
44114       thecflags=${builddep_freetype2_CFLAGS}
44115       thelibs=${builddep_freetype2_LIBS}
44116       if test "x$depdir" = x; then
44117         as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
44118       fi
44119       FREETYPE=$depdir
44120       if test "x$theroot" != x; then
44121         FREETYPE="$theroot"
44122       fi
44123       if test "x$thecflags" != x; then
44124         FREETYPE_CFLAGS="$thecflags"
44125       fi
44126       if test "x$thelibs" != x; then
44127         FREETYPE_LIBS="$thelibs"
44128       fi
44129       FOUND_FREETYPE=yes
44130       else FOUND_FREETYPE=no
44131 
44132     fi
44133     else FOUND_FREETYPE=no
44134 
44135   fi
44136 
44137         # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
44138         if test "x$FOUND_FREETYPE" = xyes; then
44139           if test "x$BUNDLE_FREETYPE" = xyes; then
44140             { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5
44141 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;}
44142             FOUND_FREETYPE=no
44143           else
44144             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
44145 $as_echo_n "checking for freetype... " >&6; }
44146             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5
44147 $as_echo "yes (using builddeps)" >&6; }
44148           fi
44149         fi
44150       fi
44151 
44152       if test "x$FOUND_FREETYPE" != xyes; then
44153         # Check modules using pkg-config, but only if we have it (ugly output results otherwise)
44154         if test "x$PKG_CONFIG" != x; then
44155 
44156 pkg_failed=no
44157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
44158 $as_echo_n "checking for FREETYPE... " >&6; }
44159 
44160 if test -n "$FREETYPE_CFLAGS"; then
44161     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
44162  elif test -n "$PKG_CONFIG"; then
44163     if test -n "$PKG_CONFIG" && \
44164     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
44165   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
44166   ac_status=$?
44167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44168   test $ac_status = 0; }; then
44169   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
44170 else
44171   pkg_failed=yes
44172 fi
44173  else
44174     pkg_failed=untried
44175 fi
44176 if test -n "$FREETYPE_LIBS"; then
44177     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
44178  elif test -n "$PKG_CONFIG"; then
44179     if test -n "$PKG_CONFIG" && \
44180     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
44181   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
44182   ac_status=$?
44183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44184   test $ac_status = 0; }; then
44185   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
44186 else
44187   pkg_failed=yes
44188 fi
44189  else
44190     pkg_failed=untried
44191 fi
44192 
44193 
44194 
44195 if test $pkg_failed = yes; then
44196 
44197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44198         _pkg_short_errors_supported=yes
44199 else
44200         _pkg_short_errors_supported=no
44201 fi
44202         if test $_pkg_short_errors_supported = yes; then
44203                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
44204         else
44205                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
44206         fi
44207         # Put the nasty error message in config.log where it belongs
44208         echo "$FREETYPE_PKG_ERRORS" >&5
44209 
44210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44211 $as_echo "no" >&6; }
44212                 FOUND_FREETYPE=no
44213 elif test $pkg_failed = untried; then
44214         FOUND_FREETYPE=no
44215 else
44216         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
44217         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
44218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44219 $as_echo "yes" >&6; }
44220         FOUND_FREETYPE=yes
44221 fi
44222           if test "x$FOUND_FREETYPE" = xyes; then
44223             # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us.
44224             FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'`
44225             # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64
44226             if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
44227               FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'`
44228             fi
44229             # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
44230             if test "x$BUNDLE_FREETYPE" = xyes; then
44231               { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5
44232 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;}
44233               FOUND_FREETYPE=no
44234             else
44235               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
44236 $as_echo_n "checking for freetype... " >&6; }
44237               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5
44238 $as_echo "yes (using pkg-config)" >&6; }
44239             fi
44240           fi
44241         fi
44242       fi
44243 
44244       if test "x$FOUND_FREETYPE" != xyes; then
44245         # Check in well-known locations
44246         if test "x$OPENJDK_TARGET_OS" = xwindows; then
44247           FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32"
44248 
44249   windows_path="$FREETYPE_BASE_DIR"
44250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44251     unix_path=`$CYGPATH -u "$windows_path"`
44252     FREETYPE_BASE_DIR="$unix_path"
44253   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44254     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44255     FREETYPE_BASE_DIR="$unix_path"
44256   fi
44257 
44258 
44259   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44260   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44261   METHOD="well-known location"
44262 
44263   # First check if the files exists.
44264   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44265     # We found an arbitrary include file. That's a good sign.
44266     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44267 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44268     FOUND_FREETYPE=yes
44269 
44270     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44271     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44272       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44273 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44274       FOUND_FREETYPE=no
44275     else
44276       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44277         # On Windows, we will need both .lib and .dll file.
44278         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44279           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44280 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44281           FOUND_FREETYPE=no
44282         fi
44283       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
44284         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44285         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44286       fi
44287     fi
44288   fi
44289 
44290   if test "x$FOUND_FREETYPE" = xyes; then
44291 
44292   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44293 
44294   # Input might be given as Windows format, start by converting to
44295   # unix format.
44296   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44297   new_path=`$CYGPATH -u "$path"`
44298 
44299   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44300   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44301   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44302   # "foo.exe" is OK but "foo" is an error.
44303   #
44304   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44305   # It is also a way to make sure we got the proper file name for the real test later on.
44306   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44307   if test "x$test_shortpath" = x; then
44308     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44309 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44310     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44311   fi
44312 
44313   # Call helper function which possibly converts this using DOS-style short mode.
44314   # If so, the updated path is stored in $new_path.
44315 
44316   input_path="$new_path"
44317   # Check if we need to convert this using DOS-style short mode. If the path
44318   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44319   # take no chances and rewrite it.
44320   # Note: m4 eats our [], so we need to use [ and ] instead.
44321   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44322   if test "x$has_forbidden_chars" != x; then
44323     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44324     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44325     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44326     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44327       # Going to short mode and back again did indeed matter. Since short mode is
44328       # case insensitive, let's make it lowercase to improve readability.
44329       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44330       # Now convert it back to Unix-stile (cygpath)
44331       input_path=`$CYGPATH -u "$shortmode_path"`
44332       new_path="$input_path"
44333     fi
44334   fi
44335 
44336   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44337   if test "x$test_cygdrive_prefix" = x; then
44338     # As a simple fix, exclude /usr/bin since it's not a real path.
44339     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44340       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44341       # a path prefixed by /cygdrive for fixpath to work.
44342       new_path="$CYGWIN_ROOT_PATH$input_path"
44343     fi
44344   fi
44345 
44346 
44347   if test "x$path" != "x$new_path"; then
44348     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44349     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44350 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44351   fi
44352 
44353   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44354 
44355   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44356   has_colon=`$ECHO $path | $GREP ^.:`
44357   new_path="$path"
44358   if test "x$has_colon" = x; then
44359     # Not in mixed or Windows style, start by that.
44360     new_path=`cmd //c echo $path`
44361   fi
44362 
44363 
44364   input_path="$new_path"
44365   # Check if we need to convert this using DOS-style short mode. If the path
44366   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44367   # take no chances and rewrite it.
44368   # Note: m4 eats our [], so we need to use [ and ] instead.
44369   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44370   if test "x$has_forbidden_chars" != x; then
44371     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44372     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44373   fi
44374 
44375 
44376   windows_path="$new_path"
44377   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44378     unix_path=`$CYGPATH -u "$windows_path"`
44379     new_path="$unix_path"
44380   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44381     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44382     new_path="$unix_path"
44383   fi
44384 
44385   if test "x$path" != "x$new_path"; then
44386     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44387     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44388 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44389   fi
44390 
44391   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44392   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44393 
44394   else
44395     # We're on a posix platform. Hooray! :)
44396     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44397     has_space=`$ECHO "$path" | $GREP " "`
44398     if test "x$has_space" != x; then
44399       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44400 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44401       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44402     fi
44403 
44404     # Use eval to expand a potential ~
44405     eval path="$path"
44406     if test ! -f "$path" && test ! -d "$path"; then
44407       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44408     fi
44409 
44410     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44411   fi
44412 
44413 
44414   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44415 
44416   # Input might be given as Windows format, start by converting to
44417   # unix format.
44418   path="$POTENTIAL_FREETYPE_LIB_PATH"
44419   new_path=`$CYGPATH -u "$path"`
44420 
44421   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44422   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44423   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44424   # "foo.exe" is OK but "foo" is an error.
44425   #
44426   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44427   # It is also a way to make sure we got the proper file name for the real test later on.
44428   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44429   if test "x$test_shortpath" = x; then
44430     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44431 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44432     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44433   fi
44434 
44435   # Call helper function which possibly converts this using DOS-style short mode.
44436   # If so, the updated path is stored in $new_path.
44437 
44438   input_path="$new_path"
44439   # Check if we need to convert this using DOS-style short mode. If the path
44440   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44441   # take no chances and rewrite it.
44442   # Note: m4 eats our [], so we need to use [ and ] instead.
44443   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44444   if test "x$has_forbidden_chars" != x; then
44445     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44446     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44447     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44448     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44449       # Going to short mode and back again did indeed matter. Since short mode is
44450       # case insensitive, let's make it lowercase to improve readability.
44451       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44452       # Now convert it back to Unix-stile (cygpath)
44453       input_path=`$CYGPATH -u "$shortmode_path"`
44454       new_path="$input_path"
44455     fi
44456   fi
44457 
44458   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44459   if test "x$test_cygdrive_prefix" = x; then
44460     # As a simple fix, exclude /usr/bin since it's not a real path.
44461     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44462       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44463       # a path prefixed by /cygdrive for fixpath to work.
44464       new_path="$CYGWIN_ROOT_PATH$input_path"
44465     fi
44466   fi
44467 
44468 
44469   if test "x$path" != "x$new_path"; then
44470     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44471     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44472 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44473   fi
44474 
44475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44476 
44477   path="$POTENTIAL_FREETYPE_LIB_PATH"
44478   has_colon=`$ECHO $path | $GREP ^.:`
44479   new_path="$path"
44480   if test "x$has_colon" = x; then
44481     # Not in mixed or Windows style, start by that.
44482     new_path=`cmd //c echo $path`
44483   fi
44484 
44485 
44486   input_path="$new_path"
44487   # Check if we need to convert this using DOS-style short mode. If the path
44488   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44489   # take no chances and rewrite it.
44490   # Note: m4 eats our [], so we need to use [ and ] instead.
44491   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44492   if test "x$has_forbidden_chars" != x; then
44493     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44494     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44495   fi
44496 
44497 
44498   windows_path="$new_path"
44499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44500     unix_path=`$CYGPATH -u "$windows_path"`
44501     new_path="$unix_path"
44502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44503     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44504     new_path="$unix_path"
44505   fi
44506 
44507   if test "x$path" != "x$new_path"; then
44508     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44509     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44510 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44511   fi
44512 
44513   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44514   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44515 
44516   else
44517     # We're on a posix platform. Hooray! :)
44518     path="$POTENTIAL_FREETYPE_LIB_PATH"
44519     has_space=`$ECHO "$path" | $GREP " "`
44520     if test "x$has_space" != x; then
44521       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44522 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44523       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44524     fi
44525 
44526     # Use eval to expand a potential ~
44527     eval path="$path"
44528     if test ! -f "$path" && test ! -d "$path"; then
44529       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44530     fi
44531 
44532     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44533   fi
44534 
44535 
44536     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44538 $as_echo_n "checking for freetype includes... " >&6; }
44539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44540 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44541     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44543 $as_echo_n "checking for freetype libraries... " >&6; }
44544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44545 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44546   fi
44547 
44548           if test "x$FOUND_FREETYPE" != xyes; then
44549             FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32"
44550 
44551   windows_path="$FREETYPE_BASE_DIR"
44552   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44553     unix_path=`$CYGPATH -u "$windows_path"`
44554     FREETYPE_BASE_DIR="$unix_path"
44555   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44556     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44557     FREETYPE_BASE_DIR="$unix_path"
44558   fi
44559 
44560 
44561   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44562   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44563   METHOD="well-known location"
44564 
44565   # First check if the files exists.
44566   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44567     # We found an arbitrary include file. That's a good sign.
44568     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44569 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44570     FOUND_FREETYPE=yes
44571 
44572     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44573     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44574       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44575 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44576       FOUND_FREETYPE=no
44577     else
44578       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44579         # On Windows, we will need both .lib and .dll file.
44580         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44581           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44582 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44583           FOUND_FREETYPE=no
44584         fi
44585       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
44586         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44587         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44588       fi
44589     fi
44590   fi
44591 
44592   if test "x$FOUND_FREETYPE" = xyes; then
44593 
44594   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44595 
44596   # Input might be given as Windows format, start by converting to
44597   # unix format.
44598   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44599   new_path=`$CYGPATH -u "$path"`
44600 
44601   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44602   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44603   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44604   # "foo.exe" is OK but "foo" is an error.
44605   #
44606   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44607   # It is also a way to make sure we got the proper file name for the real test later on.
44608   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44609   if test "x$test_shortpath" = x; then
44610     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44611 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44612     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44613   fi
44614 
44615   # Call helper function which possibly converts this using DOS-style short mode.
44616   # If so, the updated path is stored in $new_path.
44617 
44618   input_path="$new_path"
44619   # Check if we need to convert this using DOS-style short mode. If the path
44620   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44621   # take no chances and rewrite it.
44622   # Note: m4 eats our [], so we need to use [ and ] instead.
44623   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44624   if test "x$has_forbidden_chars" != x; then
44625     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44626     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44627     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44628     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44629       # Going to short mode and back again did indeed matter. Since short mode is
44630       # case insensitive, let's make it lowercase to improve readability.
44631       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44632       # Now convert it back to Unix-stile (cygpath)
44633       input_path=`$CYGPATH -u "$shortmode_path"`
44634       new_path="$input_path"
44635     fi
44636   fi
44637 
44638   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44639   if test "x$test_cygdrive_prefix" = x; then
44640     # As a simple fix, exclude /usr/bin since it's not a real path.
44641     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44642       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44643       # a path prefixed by /cygdrive for fixpath to work.
44644       new_path="$CYGWIN_ROOT_PATH$input_path"
44645     fi
44646   fi
44647 
44648 
44649   if test "x$path" != "x$new_path"; then
44650     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44651     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44652 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44653   fi
44654 
44655   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44656 
44657   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44658   has_colon=`$ECHO $path | $GREP ^.:`
44659   new_path="$path"
44660   if test "x$has_colon" = x; then
44661     # Not in mixed or Windows style, start by that.
44662     new_path=`cmd //c echo $path`
44663   fi
44664 
44665 
44666   input_path="$new_path"
44667   # Check if we need to convert this using DOS-style short mode. If the path
44668   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44669   # take no chances and rewrite it.
44670   # Note: m4 eats our [], so we need to use [ and ] instead.
44671   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44672   if test "x$has_forbidden_chars" != x; then
44673     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44674     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44675   fi
44676 
44677 
44678   windows_path="$new_path"
44679   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44680     unix_path=`$CYGPATH -u "$windows_path"`
44681     new_path="$unix_path"
44682   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44683     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44684     new_path="$unix_path"
44685   fi
44686 
44687   if test "x$path" != "x$new_path"; then
44688     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44689     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44690 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44691   fi
44692 
44693   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44694   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44695 
44696   else
44697     # We're on a posix platform. Hooray! :)
44698     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44699     has_space=`$ECHO "$path" | $GREP " "`
44700     if test "x$has_space" != x; then
44701       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44702 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44703       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44704     fi
44705 
44706     # Use eval to expand a potential ~
44707     eval path="$path"
44708     if test ! -f "$path" && test ! -d "$path"; then
44709       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44710     fi
44711 
44712     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44713   fi
44714 
44715 
44716   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44717 
44718   # Input might be given as Windows format, start by converting to
44719   # unix format.
44720   path="$POTENTIAL_FREETYPE_LIB_PATH"
44721   new_path=`$CYGPATH -u "$path"`
44722 
44723   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44724   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44725   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44726   # "foo.exe" is OK but "foo" is an error.
44727   #
44728   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44729   # It is also a way to make sure we got the proper file name for the real test later on.
44730   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44731   if test "x$test_shortpath" = x; then
44732     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44733 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44734     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44735   fi
44736 
44737   # Call helper function which possibly converts this using DOS-style short mode.
44738   # If so, the updated path is stored in $new_path.
44739 
44740   input_path="$new_path"
44741   # Check if we need to convert this using DOS-style short mode. If the path
44742   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44743   # take no chances and rewrite it.
44744   # Note: m4 eats our [], so we need to use [ and ] instead.
44745   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44746   if test "x$has_forbidden_chars" != x; then
44747     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44748     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44749     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44750     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44751       # Going to short mode and back again did indeed matter. Since short mode is
44752       # case insensitive, let's make it lowercase to improve readability.
44753       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44754       # Now convert it back to Unix-stile (cygpath)
44755       input_path=`$CYGPATH -u "$shortmode_path"`
44756       new_path="$input_path"
44757     fi
44758   fi
44759 
44760   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44761   if test "x$test_cygdrive_prefix" = x; then
44762     # As a simple fix, exclude /usr/bin since it's not a real path.
44763     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44764       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44765       # a path prefixed by /cygdrive for fixpath to work.
44766       new_path="$CYGWIN_ROOT_PATH$input_path"
44767     fi
44768   fi
44769 
44770 
44771   if test "x$path" != "x$new_path"; then
44772     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44773     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44774 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44775   fi
44776 
44777   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44778 
44779   path="$POTENTIAL_FREETYPE_LIB_PATH"
44780   has_colon=`$ECHO $path | $GREP ^.:`
44781   new_path="$path"
44782   if test "x$has_colon" = x; then
44783     # Not in mixed or Windows style, start by that.
44784     new_path=`cmd //c echo $path`
44785   fi
44786 
44787 
44788   input_path="$new_path"
44789   # Check if we need to convert this using DOS-style short mode. If the path
44790   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44791   # take no chances and rewrite it.
44792   # Note: m4 eats our [], so we need to use [ and ] instead.
44793   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44794   if test "x$has_forbidden_chars" != x; then
44795     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44796     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44797   fi
44798 
44799 
44800   windows_path="$new_path"
44801   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44802     unix_path=`$CYGPATH -u "$windows_path"`
44803     new_path="$unix_path"
44804   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44805     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44806     new_path="$unix_path"
44807   fi
44808 
44809   if test "x$path" != "x$new_path"; then
44810     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44811     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44812 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44813   fi
44814 
44815   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44816   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44817 
44818   else
44819     # We're on a posix platform. Hooray! :)
44820     path="$POTENTIAL_FREETYPE_LIB_PATH"
44821     has_space=`$ECHO "$path" | $GREP " "`
44822     if test "x$has_space" != x; then
44823       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44824 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44825       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44826     fi
44827 
44828     # Use eval to expand a potential ~
44829     eval path="$path"
44830     if test ! -f "$path" && test ! -d "$path"; then
44831       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44832     fi
44833 
44834     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44835   fi
44836 
44837 
44838     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44840 $as_echo_n "checking for freetype includes... " >&6; }
44841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44842 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44843     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44845 $as_echo_n "checking for freetype libraries... " >&6; }
44846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44847 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44848   fi
44849 
44850           fi
44851         else
44852           if test "x$SYS_ROOT" = "x/"; then
44853             FREETYPE_ROOT=
44854           else
44855             FREETYPE_ROOT="$SYS_ROOT"
44856           fi
44857           FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr"
44858 
44859   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44860   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44861   METHOD="well-known location"
44862 
44863   # First check if the files exists.
44864   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44865     # We found an arbitrary include file. That's a good sign.
44866     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44867 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44868     FOUND_FREETYPE=yes
44869 
44870     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44871     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44872       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44873 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44874       FOUND_FREETYPE=no
44875     else
44876       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44877         # On Windows, we will need both .lib and .dll file.
44878         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44879           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44880 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44881           FOUND_FREETYPE=no
44882         fi
44883       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
44884         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44885         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44886       fi
44887     fi
44888   fi
44889 
44890   if test "x$FOUND_FREETYPE" = xyes; then
44891 
44892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44893 
44894   # Input might be given as Windows format, start by converting to
44895   # unix format.
44896   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44897   new_path=`$CYGPATH -u "$path"`
44898 
44899   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44900   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44901   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44902   # "foo.exe" is OK but "foo" is an error.
44903   #
44904   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44905   # It is also a way to make sure we got the proper file name for the real test later on.
44906   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44907   if test "x$test_shortpath" = x; then
44908     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44909 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44910     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44911   fi
44912 
44913   # Call helper function which possibly converts this using DOS-style short mode.
44914   # If so, the updated path is stored in $new_path.
44915 
44916   input_path="$new_path"
44917   # Check if we need to convert this using DOS-style short mode. If the path
44918   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44919   # take no chances and rewrite it.
44920   # Note: m4 eats our [], so we need to use [ and ] instead.
44921   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44922   if test "x$has_forbidden_chars" != x; then
44923     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44924     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44925     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44926     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44927       # Going to short mode and back again did indeed matter. Since short mode is
44928       # case insensitive, let's make it lowercase to improve readability.
44929       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44930       # Now convert it back to Unix-stile (cygpath)
44931       input_path=`$CYGPATH -u "$shortmode_path"`
44932       new_path="$input_path"
44933     fi
44934   fi
44935 
44936   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44937   if test "x$test_cygdrive_prefix" = x; then
44938     # As a simple fix, exclude /usr/bin since it's not a real path.
44939     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44940       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44941       # a path prefixed by /cygdrive for fixpath to work.
44942       new_path="$CYGWIN_ROOT_PATH$input_path"
44943     fi
44944   fi
44945 
44946 
44947   if test "x$path" != "x$new_path"; then
44948     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44949     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44950 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44951   fi
44952 
44953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44954 
44955   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44956   has_colon=`$ECHO $path | $GREP ^.:`
44957   new_path="$path"
44958   if test "x$has_colon" = x; then
44959     # Not in mixed or Windows style, start by that.
44960     new_path=`cmd //c echo $path`
44961   fi
44962 
44963 
44964   input_path="$new_path"
44965   # Check if we need to convert this using DOS-style short mode. If the path
44966   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44967   # take no chances and rewrite it.
44968   # Note: m4 eats our [], so we need to use [ and ] instead.
44969   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44970   if test "x$has_forbidden_chars" != x; then
44971     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44972     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44973   fi
44974 
44975 
44976   windows_path="$new_path"
44977   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44978     unix_path=`$CYGPATH -u "$windows_path"`
44979     new_path="$unix_path"
44980   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44981     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44982     new_path="$unix_path"
44983   fi
44984 
44985   if test "x$path" != "x$new_path"; then
44986     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44987     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44988 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44989   fi
44990 
44991   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44992   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44993 
44994   else
44995     # We're on a posix platform. Hooray! :)
44996     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44997     has_space=`$ECHO "$path" | $GREP " "`
44998     if test "x$has_space" != x; then
44999       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45000 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45001       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45002     fi
45003 
45004     # Use eval to expand a potential ~
45005     eval path="$path"
45006     if test ! -f "$path" && test ! -d "$path"; then
45007       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45008     fi
45009 
45010     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45011   fi
45012 
45013 
45014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45015 
45016   # Input might be given as Windows format, start by converting to
45017   # unix format.
45018   path="$POTENTIAL_FREETYPE_LIB_PATH"
45019   new_path=`$CYGPATH -u "$path"`
45020 
45021   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45022   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45023   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45024   # "foo.exe" is OK but "foo" is an error.
45025   #
45026   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45027   # It is also a way to make sure we got the proper file name for the real test later on.
45028   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45029   if test "x$test_shortpath" = x; then
45030     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45031 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45032     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45033   fi
45034 
45035   # Call helper function which possibly converts this using DOS-style short mode.
45036   # If so, the updated path is stored in $new_path.
45037 
45038   input_path="$new_path"
45039   # Check if we need to convert this using DOS-style short mode. If the path
45040   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45041   # take no chances and rewrite it.
45042   # Note: m4 eats our [], so we need to use [ and ] instead.
45043   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45044   if test "x$has_forbidden_chars" != x; then
45045     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45046     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45047     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45048     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45049       # Going to short mode and back again did indeed matter. Since short mode is
45050       # case insensitive, let's make it lowercase to improve readability.
45051       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45052       # Now convert it back to Unix-stile (cygpath)
45053       input_path=`$CYGPATH -u "$shortmode_path"`
45054       new_path="$input_path"
45055     fi
45056   fi
45057 
45058   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45059   if test "x$test_cygdrive_prefix" = x; then
45060     # As a simple fix, exclude /usr/bin since it's not a real path.
45061     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45062       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45063       # a path prefixed by /cygdrive for fixpath to work.
45064       new_path="$CYGWIN_ROOT_PATH$input_path"
45065     fi
45066   fi
45067 
45068 
45069   if test "x$path" != "x$new_path"; then
45070     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45071     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45072 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45073   fi
45074 
45075   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45076 
45077   path="$POTENTIAL_FREETYPE_LIB_PATH"
45078   has_colon=`$ECHO $path | $GREP ^.:`
45079   new_path="$path"
45080   if test "x$has_colon" = x; then
45081     # Not in mixed or Windows style, start by that.
45082     new_path=`cmd //c echo $path`
45083   fi
45084 
45085 
45086   input_path="$new_path"
45087   # Check if we need to convert this using DOS-style short mode. If the path
45088   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45089   # take no chances and rewrite it.
45090   # Note: m4 eats our [], so we need to use [ and ] instead.
45091   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45092   if test "x$has_forbidden_chars" != x; then
45093     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45094     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45095   fi
45096 
45097 
45098   windows_path="$new_path"
45099   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45100     unix_path=`$CYGPATH -u "$windows_path"`
45101     new_path="$unix_path"
45102   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45103     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45104     new_path="$unix_path"
45105   fi
45106 
45107   if test "x$path" != "x$new_path"; then
45108     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45109     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45110 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45111   fi
45112 
45113   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45114   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45115 
45116   else
45117     # We're on a posix platform. Hooray! :)
45118     path="$POTENTIAL_FREETYPE_LIB_PATH"
45119     has_space=`$ECHO "$path" | $GREP " "`
45120     if test "x$has_space" != x; then
45121       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45122 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45123       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45124     fi
45125 
45126     # Use eval to expand a potential ~
45127     eval path="$path"
45128     if test ! -f "$path" && test ! -d "$path"; then
45129       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45130     fi
45131 
45132     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45133   fi
45134 
45135 
45136     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45138 $as_echo_n "checking for freetype includes... " >&6; }
45139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45140 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45141     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45143 $as_echo_n "checking for freetype libraries... " >&6; }
45144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45145 $as_echo "$FREETYPE_LIB_PATH" >&6; }
45146   fi
45147 
45148 
45149           if test "x$FOUND_FREETYPE" != xyes; then
45150             FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11"
45151 
45152   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45153   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
45154   METHOD="well-known location"
45155 
45156   # First check if the files exists.
45157   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45158     # We found an arbitrary include file. That's a good sign.
45159     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45160 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45161     FOUND_FREETYPE=yes
45162 
45163     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45164     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45165       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45166 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45167       FOUND_FREETYPE=no
45168     else
45169       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45170         # On Windows, we will need both .lib and .dll file.
45171         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45172           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45173 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45174           FOUND_FREETYPE=no
45175         fi
45176       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
45177         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45178         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45179       fi
45180     fi
45181   fi
45182 
45183   if test "x$FOUND_FREETYPE" = xyes; then
45184 
45185   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45186 
45187   # Input might be given as Windows format, start by converting to
45188   # unix format.
45189   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45190   new_path=`$CYGPATH -u "$path"`
45191 
45192   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45193   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45194   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45195   # "foo.exe" is OK but "foo" is an error.
45196   #
45197   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45198   # It is also a way to make sure we got the proper file name for the real test later on.
45199   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45200   if test "x$test_shortpath" = x; then
45201     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45202 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45203     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45204   fi
45205 
45206   # Call helper function which possibly converts this using DOS-style short mode.
45207   # If so, the updated path is stored in $new_path.
45208 
45209   input_path="$new_path"
45210   # Check if we need to convert this using DOS-style short mode. If the path
45211   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45212   # take no chances and rewrite it.
45213   # Note: m4 eats our [], so we need to use [ and ] instead.
45214   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45215   if test "x$has_forbidden_chars" != x; then
45216     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45217     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45218     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45219     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45220       # Going to short mode and back again did indeed matter. Since short mode is
45221       # case insensitive, let's make it lowercase to improve readability.
45222       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45223       # Now convert it back to Unix-stile (cygpath)
45224       input_path=`$CYGPATH -u "$shortmode_path"`
45225       new_path="$input_path"
45226     fi
45227   fi
45228 
45229   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45230   if test "x$test_cygdrive_prefix" = x; then
45231     # As a simple fix, exclude /usr/bin since it's not a real path.
45232     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45233       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45234       # a path prefixed by /cygdrive for fixpath to work.
45235       new_path="$CYGWIN_ROOT_PATH$input_path"
45236     fi
45237   fi
45238 
45239 
45240   if test "x$path" != "x$new_path"; then
45241     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45242     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45243 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45244   fi
45245 
45246   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45247 
45248   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45249   has_colon=`$ECHO $path | $GREP ^.:`
45250   new_path="$path"
45251   if test "x$has_colon" = x; then
45252     # Not in mixed or Windows style, start by that.
45253     new_path=`cmd //c echo $path`
45254   fi
45255 
45256 
45257   input_path="$new_path"
45258   # Check if we need to convert this using DOS-style short mode. If the path
45259   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45260   # take no chances and rewrite it.
45261   # Note: m4 eats our [], so we need to use [ and ] instead.
45262   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45263   if test "x$has_forbidden_chars" != x; then
45264     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45265     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45266   fi
45267 
45268 
45269   windows_path="$new_path"
45270   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45271     unix_path=`$CYGPATH -u "$windows_path"`
45272     new_path="$unix_path"
45273   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45274     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45275     new_path="$unix_path"
45276   fi
45277 
45278   if test "x$path" != "x$new_path"; then
45279     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45280     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45281 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45282   fi
45283 
45284   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45285   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45286 
45287   else
45288     # We're on a posix platform. Hooray! :)
45289     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45290     has_space=`$ECHO "$path" | $GREP " "`
45291     if test "x$has_space" != x; then
45292       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45293 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45294       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45295     fi
45296 
45297     # Use eval to expand a potential ~
45298     eval path="$path"
45299     if test ! -f "$path" && test ! -d "$path"; then
45300       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45301     fi
45302 
45303     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45304   fi
45305 
45306 
45307   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45308 
45309   # Input might be given as Windows format, start by converting to
45310   # unix format.
45311   path="$POTENTIAL_FREETYPE_LIB_PATH"
45312   new_path=`$CYGPATH -u "$path"`
45313 
45314   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45315   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45316   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45317   # "foo.exe" is OK but "foo" is an error.
45318   #
45319   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45320   # It is also a way to make sure we got the proper file name for the real test later on.
45321   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45322   if test "x$test_shortpath" = x; then
45323     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45324 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45325     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45326   fi
45327 
45328   # Call helper function which possibly converts this using DOS-style short mode.
45329   # If so, the updated path is stored in $new_path.
45330 
45331   input_path="$new_path"
45332   # Check if we need to convert this using DOS-style short mode. If the path
45333   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45334   # take no chances and rewrite it.
45335   # Note: m4 eats our [], so we need to use [ and ] instead.
45336   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45337   if test "x$has_forbidden_chars" != x; then
45338     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45339     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45340     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45341     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45342       # Going to short mode and back again did indeed matter. Since short mode is
45343       # case insensitive, let's make it lowercase to improve readability.
45344       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45345       # Now convert it back to Unix-stile (cygpath)
45346       input_path=`$CYGPATH -u "$shortmode_path"`
45347       new_path="$input_path"
45348     fi
45349   fi
45350 
45351   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45352   if test "x$test_cygdrive_prefix" = x; then
45353     # As a simple fix, exclude /usr/bin since it's not a real path.
45354     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45355       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45356       # a path prefixed by /cygdrive for fixpath to work.
45357       new_path="$CYGWIN_ROOT_PATH$input_path"
45358     fi
45359   fi
45360 
45361 
45362   if test "x$path" != "x$new_path"; then
45363     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45364     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45365 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45366   fi
45367 
45368   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45369 
45370   path="$POTENTIAL_FREETYPE_LIB_PATH"
45371   has_colon=`$ECHO $path | $GREP ^.:`
45372   new_path="$path"
45373   if test "x$has_colon" = x; then
45374     # Not in mixed or Windows style, start by that.
45375     new_path=`cmd //c echo $path`
45376   fi
45377 
45378 
45379   input_path="$new_path"
45380   # Check if we need to convert this using DOS-style short mode. If the path
45381   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45382   # take no chances and rewrite it.
45383   # Note: m4 eats our [], so we need to use [ and ] instead.
45384   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45385   if test "x$has_forbidden_chars" != x; then
45386     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45387     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45388   fi
45389 
45390 
45391   windows_path="$new_path"
45392   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45393     unix_path=`$CYGPATH -u "$windows_path"`
45394     new_path="$unix_path"
45395   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45396     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45397     new_path="$unix_path"
45398   fi
45399 
45400   if test "x$path" != "x$new_path"; then
45401     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45402     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45403 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45404   fi
45405 
45406   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45407   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45408 
45409   else
45410     # We're on a posix platform. Hooray! :)
45411     path="$POTENTIAL_FREETYPE_LIB_PATH"
45412     has_space=`$ECHO "$path" | $GREP " "`
45413     if test "x$has_space" != x; then
45414       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45415 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45416       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45417     fi
45418 
45419     # Use eval to expand a potential ~
45420     eval path="$path"
45421     if test ! -f "$path" && test ! -d "$path"; then
45422       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45423     fi
45424 
45425     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45426   fi
45427 
45428 
45429     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45431 $as_echo_n "checking for freetype includes... " >&6; }
45432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45433 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45434     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45436 $as_echo_n "checking for freetype libraries... " >&6; }
45437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45438 $as_echo "$FREETYPE_LIB_PATH" >&6; }
45439   fi
45440 
45441           fi
45442 
45443           if test "x$FOUND_FREETYPE" != xyes; then
45444             FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr"
45445             if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
45446 
45447   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45448   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu"
45449   METHOD="well-known location"
45450 
45451   # First check if the files exists.
45452   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45453     # We found an arbitrary include file. That's a good sign.
45454     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45455 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45456     FOUND_FREETYPE=yes
45457 
45458     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45459     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45460       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45461 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45462       FOUND_FREETYPE=no
45463     else
45464       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45465         # On Windows, we will need both .lib and .dll file.
45466         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45467           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45468 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45469           FOUND_FREETYPE=no
45470         fi
45471       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
45472         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45473         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45474       fi
45475     fi
45476   fi
45477 
45478   if test "x$FOUND_FREETYPE" = xyes; then
45479 
45480   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45481 
45482   # Input might be given as Windows format, start by converting to
45483   # unix format.
45484   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45485   new_path=`$CYGPATH -u "$path"`
45486 
45487   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45488   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45489   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45490   # "foo.exe" is OK but "foo" is an error.
45491   #
45492   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45493   # It is also a way to make sure we got the proper file name for the real test later on.
45494   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45495   if test "x$test_shortpath" = x; then
45496     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45497 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45498     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45499   fi
45500 
45501   # Call helper function which possibly converts this using DOS-style short mode.
45502   # If so, the updated path is stored in $new_path.
45503 
45504   input_path="$new_path"
45505   # Check if we need to convert this using DOS-style short mode. If the path
45506   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45507   # take no chances and rewrite it.
45508   # Note: m4 eats our [], so we need to use [ and ] instead.
45509   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45510   if test "x$has_forbidden_chars" != x; then
45511     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45512     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45513     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45514     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45515       # Going to short mode and back again did indeed matter. Since short mode is
45516       # case insensitive, let's make it lowercase to improve readability.
45517       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45518       # Now convert it back to Unix-stile (cygpath)
45519       input_path=`$CYGPATH -u "$shortmode_path"`
45520       new_path="$input_path"
45521     fi
45522   fi
45523 
45524   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45525   if test "x$test_cygdrive_prefix" = x; then
45526     # As a simple fix, exclude /usr/bin since it's not a real path.
45527     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45528       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45529       # a path prefixed by /cygdrive for fixpath to work.
45530       new_path="$CYGWIN_ROOT_PATH$input_path"
45531     fi
45532   fi
45533 
45534 
45535   if test "x$path" != "x$new_path"; then
45536     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45537     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45538 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45539   fi
45540 
45541   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45542 
45543   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45544   has_colon=`$ECHO $path | $GREP ^.:`
45545   new_path="$path"
45546   if test "x$has_colon" = x; then
45547     # Not in mixed or Windows style, start by that.
45548     new_path=`cmd //c echo $path`
45549   fi
45550 
45551 
45552   input_path="$new_path"
45553   # Check if we need to convert this using DOS-style short mode. If the path
45554   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45555   # take no chances and rewrite it.
45556   # Note: m4 eats our [], so we need to use [ and ] instead.
45557   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45558   if test "x$has_forbidden_chars" != x; then
45559     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45560     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45561   fi
45562 
45563 
45564   windows_path="$new_path"
45565   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45566     unix_path=`$CYGPATH -u "$windows_path"`
45567     new_path="$unix_path"
45568   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45569     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45570     new_path="$unix_path"
45571   fi
45572 
45573   if test "x$path" != "x$new_path"; then
45574     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45575     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45576 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45577   fi
45578 
45579   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45580   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45581 
45582   else
45583     # We're on a posix platform. Hooray! :)
45584     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45585     has_space=`$ECHO "$path" | $GREP " "`
45586     if test "x$has_space" != x; then
45587       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45588 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45589       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45590     fi
45591 
45592     # Use eval to expand a potential ~
45593     eval path="$path"
45594     if test ! -f "$path" && test ! -d "$path"; then
45595       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45596     fi
45597 
45598     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45599   fi
45600 
45601 
45602   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45603 
45604   # Input might be given as Windows format, start by converting to
45605   # unix format.
45606   path="$POTENTIAL_FREETYPE_LIB_PATH"
45607   new_path=`$CYGPATH -u "$path"`
45608 
45609   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45610   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45611   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45612   # "foo.exe" is OK but "foo" is an error.
45613   #
45614   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45615   # It is also a way to make sure we got the proper file name for the real test later on.
45616   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45617   if test "x$test_shortpath" = x; then
45618     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45619 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45620     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45621   fi
45622 
45623   # Call helper function which possibly converts this using DOS-style short mode.
45624   # If so, the updated path is stored in $new_path.
45625 
45626   input_path="$new_path"
45627   # Check if we need to convert this using DOS-style short mode. If the path
45628   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45629   # take no chances and rewrite it.
45630   # Note: m4 eats our [], so we need to use [ and ] instead.
45631   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45632   if test "x$has_forbidden_chars" != x; then
45633     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45634     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45635     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45636     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45637       # Going to short mode and back again did indeed matter. Since short mode is
45638       # case insensitive, let's make it lowercase to improve readability.
45639       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45640       # Now convert it back to Unix-stile (cygpath)
45641       input_path=`$CYGPATH -u "$shortmode_path"`
45642       new_path="$input_path"
45643     fi
45644   fi
45645 
45646   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45647   if test "x$test_cygdrive_prefix" = x; then
45648     # As a simple fix, exclude /usr/bin since it's not a real path.
45649     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45650       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45651       # a path prefixed by /cygdrive for fixpath to work.
45652       new_path="$CYGWIN_ROOT_PATH$input_path"
45653     fi
45654   fi
45655 
45656 
45657   if test "x$path" != "x$new_path"; then
45658     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45659     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45660 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45661   fi
45662 
45663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45664 
45665   path="$POTENTIAL_FREETYPE_LIB_PATH"
45666   has_colon=`$ECHO $path | $GREP ^.:`
45667   new_path="$path"
45668   if test "x$has_colon" = x; then
45669     # Not in mixed or Windows style, start by that.
45670     new_path=`cmd //c echo $path`
45671   fi
45672 
45673 
45674   input_path="$new_path"
45675   # Check if we need to convert this using DOS-style short mode. If the path
45676   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45677   # take no chances and rewrite it.
45678   # Note: m4 eats our [], so we need to use [ and ] instead.
45679   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45680   if test "x$has_forbidden_chars" != x; then
45681     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45682     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45683   fi
45684 
45685 
45686   windows_path="$new_path"
45687   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45688     unix_path=`$CYGPATH -u "$windows_path"`
45689     new_path="$unix_path"
45690   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45691     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45692     new_path="$unix_path"
45693   fi
45694 
45695   if test "x$path" != "x$new_path"; then
45696     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45697     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45698 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45699   fi
45700 
45701   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45702   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45703 
45704   else
45705     # We're on a posix platform. Hooray! :)
45706     path="$POTENTIAL_FREETYPE_LIB_PATH"
45707     has_space=`$ECHO "$path" | $GREP " "`
45708     if test "x$has_space" != x; then
45709       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45710 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45711       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45712     fi
45713 
45714     # Use eval to expand a potential ~
45715     eval path="$path"
45716     if test ! -f "$path" && test ! -d "$path"; then
45717       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45718     fi
45719 
45720     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45721   fi
45722 
45723 
45724     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45726 $as_echo_n "checking for freetype includes... " >&6; }
45727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45728 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45729     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45731 $as_echo_n "checking for freetype libraries... " >&6; }
45732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45733 $as_echo "$FREETYPE_LIB_PATH" >&6; }
45734   fi
45735 
45736             else
45737 
45738   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45739   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu"
45740   METHOD="well-known location"
45741 
45742   # First check if the files exists.
45743   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45744     # We found an arbitrary include file. That's a good sign.
45745     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45746 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45747     FOUND_FREETYPE=yes
45748 
45749     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45750     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45751       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45752 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45753       FOUND_FREETYPE=no
45754     else
45755       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45756         # On Windows, we will need both .lib and .dll file.
45757         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45758           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45759 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45760           FOUND_FREETYPE=no
45761         fi
45762       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
45763         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45764         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45765       fi
45766     fi
45767   fi
45768 
45769   if test "x$FOUND_FREETYPE" = xyes; then
45770 
45771   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45772 
45773   # Input might be given as Windows format, start by converting to
45774   # unix format.
45775   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45776   new_path=`$CYGPATH -u "$path"`
45777 
45778   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45779   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45780   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45781   # "foo.exe" is OK but "foo" is an error.
45782   #
45783   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45784   # It is also a way to make sure we got the proper file name for the real test later on.
45785   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45786   if test "x$test_shortpath" = x; then
45787     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45788 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45789     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45790   fi
45791 
45792   # Call helper function which possibly converts this using DOS-style short mode.
45793   # If so, the updated path is stored in $new_path.
45794 
45795   input_path="$new_path"
45796   # Check if we need to convert this using DOS-style short mode. If the path
45797   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45798   # take no chances and rewrite it.
45799   # Note: m4 eats our [], so we need to use [ and ] instead.
45800   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45801   if test "x$has_forbidden_chars" != x; then
45802     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45803     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45804     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45805     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45806       # Going to short mode and back again did indeed matter. Since short mode is
45807       # case insensitive, let's make it lowercase to improve readability.
45808       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45809       # Now convert it back to Unix-stile (cygpath)
45810       input_path=`$CYGPATH -u "$shortmode_path"`
45811       new_path="$input_path"
45812     fi
45813   fi
45814 
45815   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45816   if test "x$test_cygdrive_prefix" = x; then
45817     # As a simple fix, exclude /usr/bin since it's not a real path.
45818     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45819       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45820       # a path prefixed by /cygdrive for fixpath to work.
45821       new_path="$CYGWIN_ROOT_PATH$input_path"
45822     fi
45823   fi
45824 
45825 
45826   if test "x$path" != "x$new_path"; then
45827     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45828     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45829 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45830   fi
45831 
45832   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45833 
45834   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45835   has_colon=`$ECHO $path | $GREP ^.:`
45836   new_path="$path"
45837   if test "x$has_colon" = x; then
45838     # Not in mixed or Windows style, start by that.
45839     new_path=`cmd //c echo $path`
45840   fi
45841 
45842 
45843   input_path="$new_path"
45844   # Check if we need to convert this using DOS-style short mode. If the path
45845   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45846   # take no chances and rewrite it.
45847   # Note: m4 eats our [], so we need to use [ and ] instead.
45848   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45849   if test "x$has_forbidden_chars" != x; then
45850     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45851     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45852   fi
45853 
45854 
45855   windows_path="$new_path"
45856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45857     unix_path=`$CYGPATH -u "$windows_path"`
45858     new_path="$unix_path"
45859   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45860     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45861     new_path="$unix_path"
45862   fi
45863 
45864   if test "x$path" != "x$new_path"; then
45865     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45866     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45867 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45868   fi
45869 
45870   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45871   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45872 
45873   else
45874     # We're on a posix platform. Hooray! :)
45875     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45876     has_space=`$ECHO "$path" | $GREP " "`
45877     if test "x$has_space" != x; then
45878       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45879 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45880       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45881     fi
45882 
45883     # Use eval to expand a potential ~
45884     eval path="$path"
45885     if test ! -f "$path" && test ! -d "$path"; then
45886       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45887     fi
45888 
45889     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45890   fi
45891 
45892 
45893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45894 
45895   # Input might be given as Windows format, start by converting to
45896   # unix format.
45897   path="$POTENTIAL_FREETYPE_LIB_PATH"
45898   new_path=`$CYGPATH -u "$path"`
45899 
45900   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45901   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45902   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45903   # "foo.exe" is OK but "foo" is an error.
45904   #
45905   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45906   # It is also a way to make sure we got the proper file name for the real test later on.
45907   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45908   if test "x$test_shortpath" = x; then
45909     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45910 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45911     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45912   fi
45913 
45914   # Call helper function which possibly converts this using DOS-style short mode.
45915   # If so, the updated path is stored in $new_path.
45916 
45917   input_path="$new_path"
45918   # Check if we need to convert this using DOS-style short mode. If the path
45919   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45920   # take no chances and rewrite it.
45921   # Note: m4 eats our [], so we need to use [ and ] instead.
45922   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45923   if test "x$has_forbidden_chars" != x; then
45924     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45925     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45926     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45927     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45928       # Going to short mode and back again did indeed matter. Since short mode is
45929       # case insensitive, let's make it lowercase to improve readability.
45930       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45931       # Now convert it back to Unix-stile (cygpath)
45932       input_path=`$CYGPATH -u "$shortmode_path"`
45933       new_path="$input_path"
45934     fi
45935   fi
45936 
45937   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45938   if test "x$test_cygdrive_prefix" = x; then
45939     # As a simple fix, exclude /usr/bin since it's not a real path.
45940     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45941       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45942       # a path prefixed by /cygdrive for fixpath to work.
45943       new_path="$CYGWIN_ROOT_PATH$input_path"
45944     fi
45945   fi
45946 
45947 
45948   if test "x$path" != "x$new_path"; then
45949     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45950     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45951 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45952   fi
45953 
45954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45955 
45956   path="$POTENTIAL_FREETYPE_LIB_PATH"
45957   has_colon=`$ECHO $path | $GREP ^.:`
45958   new_path="$path"
45959   if test "x$has_colon" = x; then
45960     # Not in mixed or Windows style, start by that.
45961     new_path=`cmd //c echo $path`
45962   fi
45963 
45964 
45965   input_path="$new_path"
45966   # Check if we need to convert this using DOS-style short mode. If the path
45967   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45968   # take no chances and rewrite it.
45969   # Note: m4 eats our [], so we need to use [ and ] instead.
45970   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45971   if test "x$has_forbidden_chars" != x; then
45972     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45973     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45974   fi
45975 
45976 
45977   windows_path="$new_path"
45978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45979     unix_path=`$CYGPATH -u "$windows_path"`
45980     new_path="$unix_path"
45981   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45982     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45983     new_path="$unix_path"
45984   fi
45985 
45986   if test "x$path" != "x$new_path"; then
45987     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45988     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45989 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45990   fi
45991 
45992   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45993   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45994 
45995   else
45996     # We're on a posix platform. Hooray! :)
45997     path="$POTENTIAL_FREETYPE_LIB_PATH"
45998     has_space=`$ECHO "$path" | $GREP " "`
45999     if test "x$has_space" != x; then
46000       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46001 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46002       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46003     fi
46004 
46005     # Use eval to expand a potential ~
46006     eval path="$path"
46007     if test ! -f "$path" && test ! -d "$path"; then
46008       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46009     fi
46010 
46011     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46012   fi
46013 
46014 
46015     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
46017 $as_echo_n "checking for freetype includes... " >&6; }
46018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
46019 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
46020     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
46021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
46022 $as_echo_n "checking for freetype libraries... " >&6; }
46023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
46024 $as_echo "$FREETYPE_LIB_PATH" >&6; }
46025   fi
46026 
46027               if test "x$FOUND_FREETYPE" != xyes; then
46028 
46029   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
46030   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32"
46031   METHOD="well-known location"
46032 
46033   # First check if the files exists.
46034   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
46035     # We found an arbitrary include file. That's a good sign.
46036     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
46037 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
46038     FOUND_FREETYPE=yes
46039 
46040     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
46041     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
46042       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
46043 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
46044       FOUND_FREETYPE=no
46045     else
46046       if test "x$OPENJDK_TARGET_OS" = xwindows; then
46047         # On Windows, we will need both .lib and .dll file.
46048         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
46049           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
46050 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
46051           FOUND_FREETYPE=no
46052         fi
46053       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
46054         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
46055         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
46056       fi
46057     fi
46058   fi
46059 
46060   if test "x$FOUND_FREETYPE" = xyes; then
46061 
46062   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46063 
46064   # Input might be given as Windows format, start by converting to
46065   # unix format.
46066   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46067   new_path=`$CYGPATH -u "$path"`
46068 
46069   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46070   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46071   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46072   # "foo.exe" is OK but "foo" is an error.
46073   #
46074   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46075   # It is also a way to make sure we got the proper file name for the real test later on.
46076   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46077   if test "x$test_shortpath" = x; then
46078     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46079 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46080     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
46081   fi
46082 
46083   # Call helper function which possibly converts this using DOS-style short mode.
46084   # If so, the updated path is stored in $new_path.
46085 
46086   input_path="$new_path"
46087   # Check if we need to convert this using DOS-style short mode. If the path
46088   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46089   # take no chances and rewrite it.
46090   # Note: m4 eats our [], so we need to use [ and ] instead.
46091   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46092   if test "x$has_forbidden_chars" != x; then
46093     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46094     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46095     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46096     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46097       # Going to short mode and back again did indeed matter. Since short mode is
46098       # case insensitive, let's make it lowercase to improve readability.
46099       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46100       # Now convert it back to Unix-stile (cygpath)
46101       input_path=`$CYGPATH -u "$shortmode_path"`
46102       new_path="$input_path"
46103     fi
46104   fi
46105 
46106   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46107   if test "x$test_cygdrive_prefix" = x; then
46108     # As a simple fix, exclude /usr/bin since it's not a real path.
46109     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46110       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46111       # a path prefixed by /cygdrive for fixpath to work.
46112       new_path="$CYGWIN_ROOT_PATH$input_path"
46113     fi
46114   fi
46115 
46116 
46117   if test "x$path" != "x$new_path"; then
46118     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
46119     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46120 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46121   fi
46122 
46123   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46124 
46125   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46126   has_colon=`$ECHO $path | $GREP ^.:`
46127   new_path="$path"
46128   if test "x$has_colon" = x; then
46129     # Not in mixed or Windows style, start by that.
46130     new_path=`cmd //c echo $path`
46131   fi
46132 
46133 
46134   input_path="$new_path"
46135   # Check if we need to convert this using DOS-style short mode. If the path
46136   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46137   # take no chances and rewrite it.
46138   # Note: m4 eats our [], so we need to use [ and ] instead.
46139   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46140   if test "x$has_forbidden_chars" != x; then
46141     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46142     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46143   fi
46144 
46145 
46146   windows_path="$new_path"
46147   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46148     unix_path=`$CYGPATH -u "$windows_path"`
46149     new_path="$unix_path"
46150   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46151     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46152     new_path="$unix_path"
46153   fi
46154 
46155   if test "x$path" != "x$new_path"; then
46156     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
46157     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46158 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46159   fi
46160 
46161   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46162   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46163 
46164   else
46165     # We're on a posix platform. Hooray! :)
46166     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46167     has_space=`$ECHO "$path" | $GREP " "`
46168     if test "x$has_space" != x; then
46169       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46170 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46171       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46172     fi
46173 
46174     # Use eval to expand a potential ~
46175     eval path="$path"
46176     if test ! -f "$path" && test ! -d "$path"; then
46177       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46178     fi
46179 
46180     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
46181   fi
46182 
46183 
46184   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46185 
46186   # Input might be given as Windows format, start by converting to
46187   # unix format.
46188   path="$POTENTIAL_FREETYPE_LIB_PATH"
46189   new_path=`$CYGPATH -u "$path"`
46190 
46191   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46192   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46193   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46194   # "foo.exe" is OK but "foo" is an error.
46195   #
46196   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46197   # It is also a way to make sure we got the proper file name for the real test later on.
46198   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46199   if test "x$test_shortpath" = x; then
46200     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46201 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46202     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
46203   fi
46204 
46205   # Call helper function which possibly converts this using DOS-style short mode.
46206   # If so, the updated path is stored in $new_path.
46207 
46208   input_path="$new_path"
46209   # Check if we need to convert this using DOS-style short mode. If the path
46210   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46211   # take no chances and rewrite it.
46212   # Note: m4 eats our [], so we need to use [ and ] instead.
46213   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46214   if test "x$has_forbidden_chars" != x; then
46215     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46216     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46217     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46218     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46219       # Going to short mode and back again did indeed matter. Since short mode is
46220       # case insensitive, let's make it lowercase to improve readability.
46221       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46222       # Now convert it back to Unix-stile (cygpath)
46223       input_path=`$CYGPATH -u "$shortmode_path"`
46224       new_path="$input_path"
46225     fi
46226   fi
46227 
46228   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46229   if test "x$test_cygdrive_prefix" = x; then
46230     # As a simple fix, exclude /usr/bin since it's not a real path.
46231     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46232       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46233       # a path prefixed by /cygdrive for fixpath to work.
46234       new_path="$CYGWIN_ROOT_PATH$input_path"
46235     fi
46236   fi
46237 
46238 
46239   if test "x$path" != "x$new_path"; then
46240     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46241     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46242 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46243   fi
46244 
46245   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46246 
46247   path="$POTENTIAL_FREETYPE_LIB_PATH"
46248   has_colon=`$ECHO $path | $GREP ^.:`
46249   new_path="$path"
46250   if test "x$has_colon" = x; then
46251     # Not in mixed or Windows style, start by that.
46252     new_path=`cmd //c echo $path`
46253   fi
46254 
46255 
46256   input_path="$new_path"
46257   # Check if we need to convert this using DOS-style short mode. If the path
46258   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46259   # take no chances and rewrite it.
46260   # Note: m4 eats our [], so we need to use [ and ] instead.
46261   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46262   if test "x$has_forbidden_chars" != x; then
46263     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46264     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46265   fi
46266 
46267 
46268   windows_path="$new_path"
46269   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46270     unix_path=`$CYGPATH -u "$windows_path"`
46271     new_path="$unix_path"
46272   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46273     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46274     new_path="$unix_path"
46275   fi
46276 
46277   if test "x$path" != "x$new_path"; then
46278     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46279     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46280 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46281   fi
46282 
46283   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46284   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46285 
46286   else
46287     # We're on a posix platform. Hooray! :)
46288     path="$POTENTIAL_FREETYPE_LIB_PATH"
46289     has_space=`$ECHO "$path" | $GREP " "`
46290     if test "x$has_space" != x; then
46291       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46292 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46293       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46294     fi
46295 
46296     # Use eval to expand a potential ~
46297     eval path="$path"
46298     if test ! -f "$path" && test ! -d "$path"; then
46299       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46300     fi
46301 
46302     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46303   fi
46304 
46305 
46306     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
46308 $as_echo_n "checking for freetype includes... " >&6; }
46309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
46310 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
46311     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
46312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
46313 $as_echo_n "checking for freetype libraries... " >&6; }
46314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
46315 $as_echo "$FREETYPE_LIB_PATH" >&6; }
46316   fi
46317 
46318               fi
46319             fi
46320           fi
46321         fi
46322       fi # end check in well-known locations
46323 
46324       if test "x$FOUND_FREETYPE" != xyes; then
46325 
46326   # Print a helpful message on how to acquire the necessary build dependency.
46327   # freetype is the help tag: freetype, cups, pulse, alsa etc
46328   MISSING_DEPENDENCY=freetype
46329 
46330   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46331     cygwin_help $MISSING_DEPENDENCY
46332   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46333     msys_help $MISSING_DEPENDENCY
46334   else
46335     PKGHANDLER_COMMAND=
46336 
46337     case $PKGHANDLER in
46338       apt-get)
46339         apt_help     $MISSING_DEPENDENCY ;;
46340       yum)
46341         yum_help     $MISSING_DEPENDENCY ;;
46342       port)
46343         port_help    $MISSING_DEPENDENCY ;;
46344       pkgutil)
46345         pkgutil_help $MISSING_DEPENDENCY ;;
46346       pkgadd)
46347         pkgadd_help  $MISSING_DEPENDENCY ;;
46348     esac
46349 
46350     if test "x$PKGHANDLER_COMMAND" != x; then
46351       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
46352     fi
46353   fi
46354 
46355         as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5
46356       fi
46357     fi # end user specified settings
46358 
46359     # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir.
46360     if test "x$FREETYPE_CFLAGS" = x; then
46361 
46362   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46363 
46364   # Input might be given as Windows format, start by converting to
46365   # unix format.
46366   path="$FREETYPE_INCLUDE_PATH"
46367   new_path=`$CYGPATH -u "$path"`
46368 
46369   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46370   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46371   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46372   # "foo.exe" is OK but "foo" is an error.
46373   #
46374   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46375   # It is also a way to make sure we got the proper file name for the real test later on.
46376   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46377   if test "x$test_shortpath" = x; then
46378     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46379 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46380     as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5
46381   fi
46382 
46383   # Call helper function which possibly converts this using DOS-style short mode.
46384   # If so, the updated path is stored in $new_path.
46385 
46386   input_path="$new_path"
46387   # Check if we need to convert this using DOS-style short mode. If the path
46388   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46389   # take no chances and rewrite it.
46390   # Note: m4 eats our [], so we need to use [ and ] instead.
46391   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46392   if test "x$has_forbidden_chars" != x; then
46393     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46394     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46395     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46396     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46397       # Going to short mode and back again did indeed matter. Since short mode is
46398       # case insensitive, let's make it lowercase to improve readability.
46399       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46400       # Now convert it back to Unix-stile (cygpath)
46401       input_path=`$CYGPATH -u "$shortmode_path"`
46402       new_path="$input_path"
46403     fi
46404   fi
46405 
46406   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46407   if test "x$test_cygdrive_prefix" = x; then
46408     # As a simple fix, exclude /usr/bin since it's not a real path.
46409     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46410       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46411       # a path prefixed by /cygdrive for fixpath to work.
46412       new_path="$CYGWIN_ROOT_PATH$input_path"
46413     fi
46414   fi
46415 
46416 
46417   if test "x$path" != "x$new_path"; then
46418     FREETYPE_INCLUDE_PATH="$new_path"
46419     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46420 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46421   fi
46422 
46423   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46424 
46425   path="$FREETYPE_INCLUDE_PATH"
46426   has_colon=`$ECHO $path | $GREP ^.:`
46427   new_path="$path"
46428   if test "x$has_colon" = x; then
46429     # Not in mixed or Windows style, start by that.
46430     new_path=`cmd //c echo $path`
46431   fi
46432 
46433 
46434   input_path="$new_path"
46435   # Check if we need to convert this using DOS-style short mode. If the path
46436   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46437   # take no chances and rewrite it.
46438   # Note: m4 eats our [], so we need to use [ and ] instead.
46439   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46440   if test "x$has_forbidden_chars" != x; then
46441     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46442     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46443   fi
46444 
46445 
46446   windows_path="$new_path"
46447   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46448     unix_path=`$CYGPATH -u "$windows_path"`
46449     new_path="$unix_path"
46450   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46451     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46452     new_path="$unix_path"
46453   fi
46454 
46455   if test "x$path" != "x$new_path"; then
46456     FREETYPE_INCLUDE_PATH="$new_path"
46457     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46458 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46459   fi
46460 
46461   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46462   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46463 
46464   else
46465     # We're on a posix platform. Hooray! :)
46466     path="$FREETYPE_INCLUDE_PATH"
46467     has_space=`$ECHO "$path" | $GREP " "`
46468     if test "x$has_space" != x; then
46469       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46470 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46471       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46472     fi
46473 
46474     # Use eval to expand a potential ~
46475     eval path="$path"
46476     if test ! -f "$path" && test ! -d "$path"; then
46477       as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46478     fi
46479 
46480     FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
46481   fi
46482 
46483       if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then
46484         FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH"
46485       else
46486         FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH"
46487       fi
46488     fi
46489 
46490     if test "x$FREETYPE_LIBS" = x; then
46491 
46492   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46493 
46494   # Input might be given as Windows format, start by converting to
46495   # unix format.
46496   path="$FREETYPE_LIB_PATH"
46497   new_path=`$CYGPATH -u "$path"`
46498 
46499   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46500   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46501   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46502   # "foo.exe" is OK but "foo" is an error.
46503   #
46504   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46505   # It is also a way to make sure we got the proper file name for the real test later on.
46506   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46507   if test "x$test_shortpath" = x; then
46508     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46509 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46510     as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5
46511   fi
46512 
46513   # Call helper function which possibly converts this using DOS-style short mode.
46514   # If so, the updated path is stored in $new_path.
46515 
46516   input_path="$new_path"
46517   # Check if we need to convert this using DOS-style short mode. If the path
46518   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46519   # take no chances and rewrite it.
46520   # Note: m4 eats our [], so we need to use [ and ] instead.
46521   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46522   if test "x$has_forbidden_chars" != x; then
46523     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46524     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46525     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46526     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46527       # Going to short mode and back again did indeed matter. Since short mode is
46528       # case insensitive, let's make it lowercase to improve readability.
46529       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46530       # Now convert it back to Unix-stile (cygpath)
46531       input_path=`$CYGPATH -u "$shortmode_path"`
46532       new_path="$input_path"
46533     fi
46534   fi
46535 
46536   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46537   if test "x$test_cygdrive_prefix" = x; then
46538     # As a simple fix, exclude /usr/bin since it's not a real path.
46539     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46540       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46541       # a path prefixed by /cygdrive for fixpath to work.
46542       new_path="$CYGWIN_ROOT_PATH$input_path"
46543     fi
46544   fi
46545 
46546 
46547   if test "x$path" != "x$new_path"; then
46548     FREETYPE_LIB_PATH="$new_path"
46549     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
46550 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46551   fi
46552 
46553   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46554 
46555   path="$FREETYPE_LIB_PATH"
46556   has_colon=`$ECHO $path | $GREP ^.:`
46557   new_path="$path"
46558   if test "x$has_colon" = x; then
46559     # Not in mixed or Windows style, start by that.
46560     new_path=`cmd //c echo $path`
46561   fi
46562 
46563 
46564   input_path="$new_path"
46565   # Check if we need to convert this using DOS-style short mode. If the path
46566   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46567   # take no chances and rewrite it.
46568   # Note: m4 eats our [], so we need to use [ and ] instead.
46569   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46570   if test "x$has_forbidden_chars" != x; then
46571     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46572     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46573   fi
46574 
46575 
46576   windows_path="$new_path"
46577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46578     unix_path=`$CYGPATH -u "$windows_path"`
46579     new_path="$unix_path"
46580   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46581     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46582     new_path="$unix_path"
46583   fi
46584 
46585   if test "x$path" != "x$new_path"; then
46586     FREETYPE_LIB_PATH="$new_path"
46587     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
46588 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46589   fi
46590 
46591   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46592   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46593 
46594   else
46595     # We're on a posix platform. Hooray! :)
46596     path="$FREETYPE_LIB_PATH"
46597     has_space=`$ECHO "$path" | $GREP " "`
46598     if test "x$has_space" != x; then
46599       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46600 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46601       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46602     fi
46603 
46604     # Use eval to expand a potential ~
46605     eval path="$path"
46606     if test ! -f "$path" && test ! -d "$path"; then
46607       as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46608     fi
46609 
46610     FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46611   fi
46612 
46613       if test "x$OPENJDK_TARGET_OS" = xwindows; then
46614         FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib"
46615       else
46616         FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype"
46617       fi
46618     fi
46619 
46620     # Try to compile it
46621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5
46622 $as_echo_n "checking if we can compile and link with freetype... " >&6; }
46623     ac_ext=cpp
46624 ac_cpp='$CXXCPP $CPPFLAGS'
46625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46628 
46629     PREV_CXXCFLAGS="$CXXFLAGS"
46630     PREV_LIBS="$LIBS"
46631     PREV_CXX="$CXX"
46632     CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS"
46633     LIBS="$LIBS $FREETYPE_LIBS"
46634     CXX="$FIXPATH $CXX"
46635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46636 /* end confdefs.h.  */
46637 
46638           #include<ft2build.h>
46639           #include FT_FREETYPE_H
46640           int main () {
46641             FT_Init_FreeType(NULL);
46642             return 0;
46643           }
46644 
46645 _ACEOF
46646 if ac_fn_cxx_try_link "$LINENO"; then :
46647 
46648           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46649 $as_echo "yes" >&6; }
46650 
46651 else
46652 
46653           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46654 $as_echo "no" >&6; }
46655           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5
46656 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;}
46657           { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5
46658 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;}
46659 
46660 
46661   # Print a helpful message on how to acquire the necessary build dependency.
46662   # freetype is the help tag: freetype, cups, pulse, alsa etc
46663   MISSING_DEPENDENCY=freetype
46664 
46665   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46666     cygwin_help $MISSING_DEPENDENCY
46667   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46668     msys_help $MISSING_DEPENDENCY
46669   else
46670     PKGHANDLER_COMMAND=
46671 
46672     case $PKGHANDLER in
46673       apt-get)
46674         apt_help     $MISSING_DEPENDENCY ;;
46675       yum)
46676         yum_help     $MISSING_DEPENDENCY ;;
46677       port)
46678         port_help    $MISSING_DEPENDENCY ;;
46679       pkgutil)
46680         pkgutil_help $MISSING_DEPENDENCY ;;
46681       pkgadd)
46682         pkgadd_help  $MISSING_DEPENDENCY ;;
46683     esac
46684 
46685     if test "x$PKGHANDLER_COMMAND" != x; then
46686       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
46687     fi
46688   fi
46689 
46690 
46691           as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5
46692 
46693 
46694 fi
46695 rm -f core conftest.err conftest.$ac_objext \
46696     conftest$ac_exeext conftest.$ac_ext
46697     CXXCFLAGS="$PREV_CXXFLAGS"
46698     LIBS="$PREV_LIBS"
46699     CXX="$PREV_CXX"
46700     ac_ext=cpp
46701 ac_cpp='$CXXCPP $CPPFLAGS'
46702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46705 
46706 
46707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5
46708 $as_echo_n "checking if we should bundle freetype... " >&6; }
46709     if test "x$BUNDLE_FREETYPE" = xyes; then
46710       FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH"
46711     fi
46712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5
46713 $as_echo "$BUNDLE_FREETYPE" >&6; }
46714 
46715   fi # end freetype needed
46716 
46717 
46718 
46719 
46720 
46721 
46722 
46723   ###############################################################################
46724   #
46725   # Check for alsa headers and libraries. Used on Linux/GNU systems.
46726   #
46727 
46728 # Check whether --with-alsa was given.
46729 if test "${with_alsa+set}" = set; then :
46730   withval=$with_alsa;
46731 fi
46732 
46733 
46734 # Check whether --with-alsa-include was given.
46735 if test "${with_alsa_include+set}" = set; then :
46736   withval=$with_alsa_include;
46737 fi
46738 
46739 
46740 # Check whether --with-alsa-lib was given.
46741 if test "${with_alsa_lib+set}" = set; then :
46742   withval=$with_alsa_lib;
46743 fi
46744 
46745 
46746   if test "x$ALSA_NOT_NEEDED" = xyes; then
46747     if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then
46748       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
46749 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
46750     fi
46751     ALSA_CFLAGS=
46752     ALSA_LIBS=
46753   else
46754     ALSA_FOUND=no
46755 
46756     if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then
46757       as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
46758     fi
46759 
46760     if test "x${with_alsa}" != x; then
46761       ALSA_LIBS="-L${with_alsa}/lib -lalsa"
46762       ALSA_CFLAGS="-I${with_alsa}/include"
46763       ALSA_FOUND=yes
46764     fi
46765     if test "x${with_alsa_include}" != x; then
46766       ALSA_CFLAGS="-I${with_alsa_include}"
46767       ALSA_FOUND=yes
46768     fi
46769     if test "x${with_alsa_lib}" != x; then
46770       ALSA_LIBS="-L${with_alsa_lib} -lalsa"
46771       ALSA_FOUND=yes
46772     fi
46773     if test "x$ALSA_FOUND" = xno; then
46774 
46775 
46776   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
46777     # Source the builddeps file again, to make sure it uses the latest variables!
46778     . $builddepsfile
46779     # Look for a target and build machine specific resource!
46780     eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
46781     if test "x$resource" = x; then
46782       # Ok, lets instead look for a target specific resource
46783       eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}}
46784     fi
46785     if test "x$resource" = x; then
46786       # Ok, lets instead look for a build specific resource
46787       eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
46788     fi
46789     if test "x$resource" = x; then
46790       # Ok, lets instead look for a generic resource
46791       # (The alsa comes from M4 and not the shell, thus no need for eval here.)
46792       resource=${builddep_alsa}
46793     fi
46794     if test "x$resource" != x; then
46795       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
46796 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
46797       # If the resource in the builddeps.conf file is an existing directory,
46798       # for example /java/linux/cups
46799       if test -d ${resource}; then
46800         depdir=${resource}
46801       else
46802 
46803   # alsa is for example mymodule
46804   # $resource is for example libs/general/libmymod_1_2_3.zip
46805   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
46806   # $with_builddeps_dir is for example /localhome/builddeps
46807   # depdir is the name of the variable into which we store the depdir, eg MYMOD
46808   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
46809   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
46810   filename=`basename $resource`
46811   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
46812   filebase=${filename%%.*}
46813   extension=${filename#*.}
46814   installdir=$with_builddeps_dir/$filebase
46815   if test ! -f $installdir/$filename.unpacked; then
46816     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
46817 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
46818     if test ! -d $installdir; then
46819       mkdir -p $installdir
46820     fi
46821     if test ! -d $installdir; then
46822       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
46823     fi
46824     tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
46825     touch $tmpfile
46826     if test ! -f $tmpfile; then
46827       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
46828     fi
46829 
46830   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
46831   # $tmpfile is the local file name for the downloaded file.
46832   VALID_TOOL=no
46833   if test "x$BDEPS_FTP" = xwget; then
46834     VALID_TOOL=yes
46835     wget -O $tmpfile $with_builddeps_server/$resource
46836   fi
46837   if test "x$BDEPS_FTP" = xlftp; then
46838     VALID_TOOL=yes
46839     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
46840   fi
46841   if test "x$BDEPS_FTP" = xftp; then
46842     VALID_TOOL=yes
46843     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
46844     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
46845     FTPUSERPWD=${FTPSERVER%%@*}
46846     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
46847       FTPUSER=${userpwd%%:*}
46848       FTPPWD=${userpwd#*@}
46849       FTPSERVER=${FTPSERVER#*@}
46850     else
46851       FTPUSER=ftp
46852       FTPPWD=ftp
46853     fi
46854     # the "pass" command does not work on some
46855     # ftp clients (read ftp.exe) but if it works,
46856     # passive mode is better!
46857     ( \
46858         echo "user $FTPUSER $FTPPWD"        ; \
46859         echo "pass"                         ; \
46860         echo "bin"                          ; \
46861         echo "get $FTPPATH $tmpfile"              ; \
46862     ) | ftp -in $FTPSERVER
46863   fi
46864   if test "x$VALID_TOOL" != xyes; then
46865     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
46866   fi
46867 
46868     mv $tmpfile $installdir/$filename
46869     if test ! -s $installdir/$filename; then
46870       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
46871     fi
46872     case "$extension" in
46873       zip)  echo "Unzipping $installdir/$filename..."
46874         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
46875         ;;
46876       tar.gz) echo "Untaring $installdir/$filename..."
46877         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
46878         ;;
46879       tgz) echo "Untaring $installdir/$filename..."
46880         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
46881         ;;
46882       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
46883         ;;
46884     esac
46885   fi
46886   if test -f $installdir/$filename.unpacked; then
46887     depdir=$installdir
46888   fi
46889 
46890       fi
46891       # Source the builddeps file again, because in the previous command, the depdir
46892       # was updated to point at the current build dependency install directory.
46893       . $builddepsfile
46894       # Now extract variables from the builddeps.conf files.
46895       theroot=${builddep_alsa_ROOT}
46896       thecflags=${builddep_alsa_CFLAGS}
46897       thelibs=${builddep_alsa_LIBS}
46898       if test "x$depdir" = x; then
46899         as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
46900       fi
46901       ALSA=$depdir
46902       if test "x$theroot" != x; then
46903         ALSA="$theroot"
46904       fi
46905       if test "x$thecflags" != x; then
46906         ALSA_CFLAGS="$thecflags"
46907       fi
46908       if test "x$thelibs" != x; then
46909         ALSA_LIBS="$thelibs"
46910       fi
46911       ALSA_FOUND=yes
46912       else ALSA_FOUND=no
46913 
46914     fi
46915     else ALSA_FOUND=no
46916 
46917   fi
46918 
46919     fi
46920     if test "x$ALSA_FOUND" = xno; then
46921 
46922 pkg_failed=no
46923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
46924 $as_echo_n "checking for ALSA... " >&6; }
46925 
46926 if test -n "$ALSA_CFLAGS"; then
46927     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
46928  elif test -n "$PKG_CONFIG"; then
46929     if test -n "$PKG_CONFIG" && \
46930     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
46931   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
46932   ac_status=$?
46933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46934   test $ac_status = 0; }; then
46935   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
46936 else
46937   pkg_failed=yes
46938 fi
46939  else
46940     pkg_failed=untried
46941 fi
46942 if test -n "$ALSA_LIBS"; then
46943     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
46944  elif test -n "$PKG_CONFIG"; then
46945     if test -n "$PKG_CONFIG" && \
46946     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
46947   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
46948   ac_status=$?
46949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46950   test $ac_status = 0; }; then
46951   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
46952 else
46953   pkg_failed=yes
46954 fi
46955  else
46956     pkg_failed=untried
46957 fi
46958 
46959 
46960 
46961 if test $pkg_failed = yes; then
46962 
46963 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46964         _pkg_short_errors_supported=yes
46965 else
46966         _pkg_short_errors_supported=no
46967 fi
46968         if test $_pkg_short_errors_supported = yes; then
46969                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
46970         else
46971                 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
46972         fi
46973         # Put the nasty error message in config.log where it belongs
46974         echo "$ALSA_PKG_ERRORS" >&5
46975 
46976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46977 $as_echo "no" >&6; }
46978                 ALSA_FOUND=no
46979 elif test $pkg_failed = untried; then
46980         ALSA_FOUND=no
46981 else
46982         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
46983         ALSA_LIBS=$pkg_cv_ALSA_LIBS
46984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46985 $as_echo "yes" >&6; }
46986         ALSA_FOUND=yes
46987 fi
46988     fi
46989     if test "x$ALSA_FOUND" = xno; then
46990       for ac_header in alsa/asoundlib.h
46991 do :
46992   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
46993 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
46994   cat >>confdefs.h <<_ACEOF
46995 #define HAVE_ALSA_ASOUNDLIB_H 1
46996 _ACEOF
46997 
46998             ALSA_FOUND=yes
46999             ALSA_CFLAGS=-Iignoreme
47000             ALSA_LIBS=-lasound
47001             DEFAULT_ALSA=yes
47002 
47003 else
47004   ALSA_FOUND=no
47005 fi
47006 
47007 done
47008 
47009     fi
47010     if test "x$ALSA_FOUND" = xno; then
47011 
47012   # Print a helpful message on how to acquire the necessary build dependency.
47013   # alsa is the help tag: freetype, cups, pulse, alsa etc
47014   MISSING_DEPENDENCY=alsa
47015 
47016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
47017     cygwin_help $MISSING_DEPENDENCY
47018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
47019     msys_help $MISSING_DEPENDENCY
47020   else
47021     PKGHANDLER_COMMAND=
47022 
47023     case $PKGHANDLER in
47024       apt-get)
47025         apt_help     $MISSING_DEPENDENCY ;;
47026       yum)
47027         yum_help     $MISSING_DEPENDENCY ;;
47028       port)
47029         port_help    $MISSING_DEPENDENCY ;;
47030       pkgutil)
47031         pkgutil_help $MISSING_DEPENDENCY ;;
47032       pkgadd)
47033         pkgadd_help  $MISSING_DEPENDENCY ;;
47034     esac
47035 
47036     if test "x$PKGHANDLER_COMMAND" != x; then
47037       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
47038     fi
47039   fi
47040 
47041       as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
47042     fi
47043   fi
47044 
47045 
47046 
47047 
47048 
47049 
47050   ###############################################################################
47051   #
47052   # Check for the jpeg library
47053   #
47054 
47055   USE_EXTERNAL_LIBJPEG=true
47056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
47057 $as_echo_n "checking for main in -ljpeg... " >&6; }
47058 if ${ac_cv_lib_jpeg_main+:} false; then :
47059   $as_echo_n "(cached) " >&6
47060 else
47061   ac_check_lib_save_LIBS=$LIBS
47062 LIBS="-ljpeg  $LIBS"
47063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47064 /* end confdefs.h.  */
47065 
47066 
47067 int
47068 main ()
47069 {
47070 return main ();
47071   ;
47072   return 0;
47073 }
47074 _ACEOF
47075 if ac_fn_cxx_try_link "$LINENO"; then :
47076   ac_cv_lib_jpeg_main=yes
47077 else
47078   ac_cv_lib_jpeg_main=no
47079 fi
47080 rm -f core conftest.err conftest.$ac_objext \
47081     conftest$ac_exeext conftest.$ac_ext
47082 LIBS=$ac_check_lib_save_LIBS
47083 fi
47084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
47085 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
47086 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
47087   cat >>confdefs.h <<_ACEOF
47088 #define HAVE_LIBJPEG 1
47089 _ACEOF
47090 
47091   LIBS="-ljpeg $LIBS"
47092 
47093 else
47094    USE_EXTERNAL_LIBJPEG=false
47095       { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
47096 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
47097 
47098 fi
47099 
47100 
47101 
47102   ###############################################################################
47103   #
47104   # Check for the gif library
47105   #
47106 
47107 
47108 # Check whether --with-giflib was given.
47109 if test "${with_giflib+set}" = set; then :
47110   withval=$with_giflib;
47111 fi
47112 
47113 
47114 
47115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
47116 $as_echo_n "checking for which giflib to use... " >&6; }
47117 
47118   # default is bundled
47119   DEFAULT_GIFLIB=bundled
47120 
47121   #
47122   # if user didn't specify, use DEFAULT_GIFLIB
47123   #
47124   if test "x${with_giflib}" = "x"; then
47125     with_giflib=${DEFAULT_GIFLIB}
47126   fi
47127 
47128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
47129 $as_echo "${with_giflib}" >&6; }
47130 
47131   if test "x${with_giflib}" = "xbundled"; then
47132     USE_EXTERNAL_LIBGIF=false
47133   elif test "x${with_giflib}" = "xsystem"; then
47134     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
47135 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
47136 
47137 else
47138    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
47139 fi
47140 
47141 
47142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
47143 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
47144 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
47145   $as_echo_n "(cached) " >&6
47146 else
47147   ac_check_lib_save_LIBS=$LIBS
47148 LIBS="-lgif  $LIBS"
47149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47150 /* end confdefs.h.  */
47151 
47152 /* Override any GCC internal prototype to avoid an error.
47153    Use char because int might match the return type of a GCC
47154    builtin and then its argument prototype would still apply.  */
47155 #ifdef __cplusplus
47156 extern "C"
47157 #endif
47158 char DGifGetCode ();
47159 int
47160 main ()
47161 {
47162 return DGifGetCode ();
47163   ;
47164   return 0;
47165 }
47166 _ACEOF
47167 if ac_fn_cxx_try_link "$LINENO"; then :
47168   ac_cv_lib_gif_DGifGetCode=yes
47169 else
47170   ac_cv_lib_gif_DGifGetCode=no
47171 fi
47172 rm -f core conftest.err conftest.$ac_objext \
47173     conftest$ac_exeext conftest.$ac_ext
47174 LIBS=$ac_check_lib_save_LIBS
47175 fi
47176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47177 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47178 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47179   cat >>confdefs.h <<_ACEOF
47180 #define HAVE_LIBGIF 1
47181 _ACEOF
47182 
47183   LIBS="-lgif $LIBS"
47184 
47185 else
47186    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47187 fi
47188 
47189 
47190     USE_EXTERNAL_LIBGIF=true
47191   else
47192     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
47193   fi
47194 
47195 
47196   ###############################################################################
47197   #
47198   # Check for the zlib library
47199   #
47200 
47201 
47202 # Check whether --with-zlib was given.
47203 if test "${with_zlib+set}" = set; then :
47204   withval=$with_zlib;
47205 fi
47206 
47207 
47208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
47209 $as_echo_n "checking for compress in -lz... " >&6; }
47210 if ${ac_cv_lib_z_compress+:} false; then :
47211   $as_echo_n "(cached) " >&6
47212 else
47213   ac_check_lib_save_LIBS=$LIBS
47214 LIBS="-lz  $LIBS"
47215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47216 /* end confdefs.h.  */
47217 
47218 /* Override any GCC internal prototype to avoid an error.
47219    Use char because int might match the return type of a GCC
47220    builtin and then its argument prototype would still apply.  */
47221 #ifdef __cplusplus
47222 extern "C"
47223 #endif
47224 char compress ();
47225 int
47226 main ()
47227 {
47228 return compress ();
47229   ;
47230   return 0;
47231 }
47232 _ACEOF
47233 if ac_fn_cxx_try_link "$LINENO"; then :
47234   ac_cv_lib_z_compress=yes
47235 else
47236   ac_cv_lib_z_compress=no
47237 fi
47238 rm -f core conftest.err conftest.$ac_objext \
47239     conftest$ac_exeext conftest.$ac_ext
47240 LIBS=$ac_check_lib_save_LIBS
47241 fi
47242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
47243 $as_echo "$ac_cv_lib_z_compress" >&6; }
47244 if test "x$ac_cv_lib_z_compress" = xyes; then :
47245    ZLIB_FOUND=yes
47246 else
47247    ZLIB_FOUND=no
47248 fi
47249 
47250 
47251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
47252 $as_echo_n "checking for which zlib to use... " >&6; }
47253 
47254   DEFAULT_ZLIB=bundled
47255   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
47256     #
47257     # On macosx default is system...on others default is
47258     #
47259     DEFAULT_ZLIB=system
47260   fi
47261 
47262   if test "x${ZLIB_FOUND}" != "xyes"; then
47263     #
47264     # If we don't find any system...set default to bundled
47265     #
47266     DEFAULT_ZLIB=bundled
47267   fi
47268 
47269   #
47270   # If user didn't specify, use DEFAULT_ZLIB
47271   #
47272   if test "x${with_zlib}" = "x"; then
47273     with_zlib=${DEFAULT_ZLIB}
47274   fi
47275 
47276   if test "x${with_zlib}" = "xbundled"; then
47277     USE_EXTERNAL_LIBZ=false
47278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47279 $as_echo "bundled" >&6; }
47280   elif test "x${with_zlib}" = "xsystem"; then
47281     if test "x${ZLIB_FOUND}" = "xyes"; then
47282       USE_EXTERNAL_LIBZ=true
47283       { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47284 $as_echo "system" >&6; }
47285     else
47286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
47287 $as_echo "system not found" >&6; }
47288       as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5
47289     fi
47290   else
47291     as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5
47292   fi
47293 
47294 
47295 
47296   ###############################################################################
47297   LIBZIP_CAN_USE_MMAP=true
47298 
47299 
47300 
47301   ###############################################################################
47302   #
47303   # Check if altzone exists in time.h
47304   #
47305 
47306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47307 /* end confdefs.h.  */
47308 #include <time.h>
47309 int
47310 main ()
47311 {
47312 return (int)altzone;
47313   ;
47314   return 0;
47315 }
47316 _ACEOF
47317 if ac_fn_cxx_try_link "$LINENO"; then :
47318   has_altzone=yes
47319 else
47320   has_altzone=no
47321 fi
47322 rm -f core conftest.err conftest.$ac_objext \
47323     conftest$ac_exeext conftest.$ac_ext
47324   if test "x$has_altzone" = xyes; then
47325 
47326 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
47327 
47328   fi
47329 
47330   ###############################################################################
47331   #
47332   # Check the maths library
47333   #
47334 
47335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
47336 $as_echo_n "checking for cos in -lm... " >&6; }
47337 if ${ac_cv_lib_m_cos+:} false; then :
47338   $as_echo_n "(cached) " >&6
47339 else
47340   ac_check_lib_save_LIBS=$LIBS
47341 LIBS="-lm  $LIBS"
47342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47343 /* end confdefs.h.  */
47344 
47345 /* Override any GCC internal prototype to avoid an error.
47346    Use char because int might match the return type of a GCC
47347    builtin and then its argument prototype would still apply.  */
47348 #ifdef __cplusplus
47349 extern "C"
47350 #endif
47351 char cos ();
47352 int
47353 main ()
47354 {
47355 return cos ();
47356   ;
47357   return 0;
47358 }
47359 _ACEOF
47360 if ac_fn_cxx_try_link "$LINENO"; then :
47361   ac_cv_lib_m_cos=yes
47362 else
47363   ac_cv_lib_m_cos=no
47364 fi
47365 rm -f core conftest.err conftest.$ac_objext \
47366     conftest$ac_exeext conftest.$ac_ext
47367 LIBS=$ac_check_lib_save_LIBS
47368 fi
47369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
47370 $as_echo "$ac_cv_lib_m_cos" >&6; }
47371 if test "x$ac_cv_lib_m_cos" = xyes; then :
47372   cat >>confdefs.h <<_ACEOF
47373 #define HAVE_LIBM 1
47374 _ACEOF
47375 
47376   LIBS="-lm $LIBS"
47377 
47378 else
47379 
47380         { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
47381 $as_echo "$as_me: Maths library was not found" >&6;}
47382 
47383 
47384 fi
47385 
47386 
47387 
47388   ###############################################################################
47389   #
47390   # Check for libdl.so
47391 
47392   save_LIBS="$LIBS"
47393   LIBS=""
47394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
47396 if ${ac_cv_lib_dl_dlopen+:} false; then :
47397   $as_echo_n "(cached) " >&6
47398 else
47399   ac_check_lib_save_LIBS=$LIBS
47400 LIBS="-ldl  $LIBS"
47401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47402 /* end confdefs.h.  */
47403 
47404 /* Override any GCC internal prototype to avoid an error.
47405    Use char because int might match the return type of a GCC
47406    builtin and then its argument prototype would still apply.  */
47407 #ifdef __cplusplus
47408 extern "C"
47409 #endif
47410 char dlopen ();
47411 int
47412 main ()
47413 {
47414 return dlopen ();
47415   ;
47416   return 0;
47417 }
47418 _ACEOF
47419 if ac_fn_cxx_try_link "$LINENO"; then :
47420   ac_cv_lib_dl_dlopen=yes
47421 else
47422   ac_cv_lib_dl_dlopen=no
47423 fi
47424 rm -f core conftest.err conftest.$ac_objext \
47425     conftest$ac_exeext conftest.$ac_ext
47426 LIBS=$ac_check_lib_save_LIBS
47427 fi
47428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
47430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
47431   cat >>confdefs.h <<_ACEOF
47432 #define HAVE_LIBDL 1
47433 _ACEOF
47434 
47435   LIBS="-ldl $LIBS"
47436 
47437 fi
47438 
47439   LIBDL="$LIBS"
47440 
47441   LIBS="$save_LIBS"
47442 
47443 
47444   ###############################################################################
47445   #
47446   # statically link libstdc++ before C++ ABI is stablized on Linux unless
47447   # dynamic build is configured on command line.
47448   #
47449 
47450 # Check whether --with-stdc++lib was given.
47451 if test "${with_stdc__lib+set}" = set; then :
47452   withval=$with_stdc__lib;
47453         if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \
47454                 && test "x$with_stdc__lib" != xdefault; then
47455           as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5
47456         fi
47457 
47458 else
47459   with_stdc__lib=default
47460 
47461 fi
47462 
47463 
47464   if test "x$OPENJDK_TARGET_OS" = xlinux; then
47465     # Test if -lstdc++ works.
47466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
47467 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
47468     ac_ext=cpp
47469 ac_cpp='$CXXCPP $CPPFLAGS'
47470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47473 
47474     OLD_CXXFLAGS="$CXXFLAGS"
47475     CXXFLAGS="$CXXFLAGS -lstdc++"
47476     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47477 /* end confdefs.h.  */
47478 
47479 int
47480 main ()
47481 {
47482 return 0;
47483   ;
47484   return 0;
47485 }
47486 _ACEOF
47487 if ac_fn_cxx_try_link "$LINENO"; then :
47488   has_dynamic_libstdcxx=yes
47489 else
47490   has_dynamic_libstdcxx=no
47491 fi
47492 rm -f core conftest.err conftest.$ac_objext \
47493     conftest$ac_exeext conftest.$ac_ext
47494     CXXFLAGS="$OLD_CXXFLAGS"
47495     ac_ext=cpp
47496 ac_cpp='$CXXCPP $CPPFLAGS'
47497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47500 
47501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
47502 $as_echo "$has_dynamic_libstdcxx" >&6; }
47503 
47504     # Test if stdc++ can be linked statically.
47505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
47506 $as_echo_n "checking if static link of stdc++ is possible... " >&6; }
47507     STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
47508     ac_ext=cpp
47509 ac_cpp='$CXXCPP $CPPFLAGS'
47510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47513 
47514     OLD_LIBS="$LIBS"
47515     OLD_CXX="$CXX"
47516     LIBS="$STATIC_STDCXX_FLAGS"
47517     CXX="$CC"
47518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47519 /* end confdefs.h.  */
47520 
47521 int
47522 main ()
47523 {
47524 return 0;
47525   ;
47526   return 0;
47527 }
47528 _ACEOF
47529 if ac_fn_cxx_try_link "$LINENO"; then :
47530   has_static_libstdcxx=yes
47531 else
47532   has_static_libstdcxx=no
47533 fi
47534 rm -f core conftest.err conftest.$ac_objext \
47535     conftest$ac_exeext conftest.$ac_ext
47536     LIBS="$OLD_LIBS"
47537     CXX="$OLD_CXX"
47538     ac_ext=cpp
47539 ac_cpp='$CXXCPP $CPPFLAGS'
47540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47543 
47544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
47545 $as_echo "$has_static_libstdcxx" >&6; }
47546 
47547     if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
47548       as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5
47549     fi
47550 
47551     if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
47552       as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5
47553     fi
47554 
47555     if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
47556       as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5
47557     fi
47558 
47559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
47560 $as_echo_n "checking how to link with libstdc++... " >&6; }
47561     # If dynamic was requested, it's available since it would fail above otherwise.
47562     # If dynamic wasn't requested, go with static unless it isn't available.
47563     if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47564       LIBCXX="$LIBCXX -lstdc++"
47565       LDCXX="$CXX"
47566       STATIC_CXX_SETTING="STATIC_CXX=false"
47567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
47568 $as_echo "dynamic" >&6; }
47569     else
47570       LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
47571       LDCXX="$CC"
47572       STATIC_CXX_SETTING="STATIC_CXX=true"
47573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
47574 $as_echo "static" >&6; }
47575     fi
47576   fi
47577 
47578 
47579   if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47580     # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS
47581 
47582 pkg_failed=no
47583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
47584 $as_echo_n "checking for LIBFFI... " >&6; }
47585 
47586 if test -n "$LIBFFI_CFLAGS"; then
47587     pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
47588  elif test -n "$PKG_CONFIG"; then
47589     if test -n "$PKG_CONFIG" && \
47590     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
47591   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
47592   ac_status=$?
47593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47594   test $ac_status = 0; }; then
47595   pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
47596 else
47597   pkg_failed=yes
47598 fi
47599  else
47600     pkg_failed=untried
47601 fi
47602 if test -n "$LIBFFI_LIBS"; then
47603     pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
47604  elif test -n "$PKG_CONFIG"; then
47605     if test -n "$PKG_CONFIG" && \
47606     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
47607   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
47608   ac_status=$?
47609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47610   test $ac_status = 0; }; then
47611   pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
47612 else
47613   pkg_failed=yes
47614 fi
47615  else
47616     pkg_failed=untried
47617 fi
47618 
47619 
47620 
47621 if test $pkg_failed = yes; then
47622 
47623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47624         _pkg_short_errors_supported=yes
47625 else
47626         _pkg_short_errors_supported=no
47627 fi
47628         if test $_pkg_short_errors_supported = yes; then
47629                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
47630         else
47631                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
47632         fi
47633         # Put the nasty error message in config.log where it belongs
47634         echo "$LIBFFI_PKG_ERRORS" >&5
47635 
47636         as_fn_error $? "Package requirements (libffi) were not met:
47637 
47638 $LIBFFI_PKG_ERRORS
47639 
47640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
47641 installed software in a non-standard prefix.
47642 
47643 Alternatively, you may set the environment variables LIBFFI_CFLAGS
47644 and LIBFFI_LIBS to avoid the need to call pkg-config.
47645 See the pkg-config man page for more details.
47646 " "$LINENO" 5
47647 elif test $pkg_failed = untried; then
47648         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47650 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47651 is in your PATH or set the PKG_CONFIG environment variable to the full
47652 path to pkg-config.
47653 
47654 Alternatively, you may set the environment variables LIBFFI_CFLAGS
47655 and LIBFFI_LIBS to avoid the need to call pkg-config.
47656 See the pkg-config man page for more details.
47657 
47658 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
47659 See \`config.log' for more details" "$LINENO" 5; }
47660 else
47661         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
47662         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
47663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47664 $as_echo "yes" >&6; }
47665         :
47666 fi
47667 
47668   fi
47669 
47670   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47671     # Extract the first word of "llvm-config", so it can be a program name with args.
47672 set dummy llvm-config; ac_word=$2
47673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47674 $as_echo_n "checking for $ac_word... " >&6; }
47675 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
47676   $as_echo_n "(cached) " >&6
47677 else
47678   if test -n "$LLVM_CONFIG"; then
47679   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
47680 else
47681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47682 for as_dir in $PATH
47683 do
47684   IFS=$as_save_IFS
47685   test -z "$as_dir" && as_dir=.
47686     for ac_exec_ext in '' $ac_executable_extensions; do
47687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47688     ac_cv_prog_LLVM_CONFIG="llvm-config"
47689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47690     break 2
47691   fi
47692 done
47693   done
47694 IFS=$as_save_IFS
47695 
47696 fi
47697 fi
47698 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
47699 if test -n "$LLVM_CONFIG"; then
47700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
47701 $as_echo "$LLVM_CONFIG" >&6; }
47702 else
47703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47704 $as_echo "no" >&6; }
47705 fi
47706 
47707 
47708 
47709     if test "x$LLVM_CONFIG" != xllvm-config; then
47710       as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5
47711     fi
47712 
47713     llvm_components="jit mcjit engine nativecodegen native"
47714     unset LLVM_CFLAGS
47715     for flag in $("$LLVM_CONFIG" --cxxflags); do
47716       if echo "${flag}" | grep -q '^-[ID]'; then
47717         if test "${flag}" != "-D_DEBUG" ; then
47718           if test "${LLVM_CFLAGS}" != "" ; then
47719             LLVM_CFLAGS="${LLVM_CFLAGS} "
47720           fi
47721           LLVM_CFLAGS="${LLVM_CFLAGS}${flag}"
47722         fi
47723       fi
47724     done
47725     llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//')
47726     LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}"
47727 
47728     unset LLVM_LDFLAGS
47729     for flag in $("${LLVM_CONFIG}" --ldflags); do
47730       if echo "${flag}" | grep -q '^-L'; then
47731         if test "${LLVM_LDFLAGS}" != ""; then
47732           LLVM_LDFLAGS="${LLVM_LDFLAGS} "
47733         fi
47734         LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}"
47735       fi
47736     done
47737 
47738     unset LLVM_LIBS
47739     for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do
47740       if echo "${flag}" | grep -q '^-l'; then
47741         if test "${LLVM_LIBS}" != ""; then
47742           LLVM_LIBS="${LLVM_LIBS} "
47743         fi
47744         LLVM_LIBS="${LLVM_LIBS}${flag}"
47745       fi
47746     done
47747 
47748 
47749 
47750 
47751   fi
47752 
47753   # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
47754   if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then
47755     LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
47756   fi
47757 
47758   # TODO better (platform agnostic) test
47759   if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then
47760     LIBCXX="-lstdc++"
47761   fi
47762 
47763 
47764 
47765 
47766 
47767 ###############################################################################
47768 #
47769 # We need to do some final tweaking, when everything else is done.
47770 #
47771 ###############################################################################
47772 
47773 
47774   HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
47775 
47776 
47777   # The name of the Service Agent jar.
47778   SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
47779   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
47780     SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
47781   fi
47782 
47783 
47784 
47785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5
47786 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; }
47787 
47788     if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then
47789       ENABLE_INTREE_EC=yes
47790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47791 $as_echo "yes" >&6; }
47792     else
47793       ENABLE_INTREE_EC=no
47794       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47795 $as_echo "no" >&6; }
47796     fi
47797 
47798 
47799 
47800 
47801 ###############################################################################
47802 #
47803 # Configure parts of the build that only affect the build performance,
47804 # not the result.
47805 #
47806 ###############################################################################
47807 
47808 
47809   # How many cores do we have on this build system?
47810 
47811 # Check whether --with-num-cores was given.
47812 if test "${with_num_cores+set}" = set; then :
47813   withval=$with_num_cores;
47814 fi
47815 
47816   if test "x$with_num_cores" = x; then
47817     # The number of cores were not specified, try to probe them.
47818 
47819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
47820 $as_echo_n "checking for number of cores... " >&6; }
47821   NUM_CORES=1
47822   FOUND_CORES=no
47823 
47824   if test -f /proc/cpuinfo; then
47825     # Looks like a Linux (or cygwin) system
47826     NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
47827     FOUND_CORES=yes
47828   elif test -x /usr/sbin/psrinfo; then
47829     # Looks like a Solaris system
47830     NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
47831     FOUND_CORES=yes
47832   elif test -x /usr/sbin/system_profiler; then
47833     # Looks like a MacOSX system
47834     NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
47835     FOUND_CORES=yes
47836   elif test "x$OPENJDK_BUILD_OS" = xaix ; then
47837     NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'`
47838     FOUND_CORES=yes
47839   elif test -n "$NUMBER_OF_PROCESSORS"; then
47840     # On windows, look in the env
47841     NUM_CORES=$NUMBER_OF_PROCESSORS
47842     FOUND_CORES=yes
47843   fi
47844 
47845   if test "x$FOUND_CORES" = xyes; then
47846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
47847 $as_echo "$NUM_CORES" >&6; }
47848   else
47849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
47850 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
47851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
47852 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
47853   fi
47854 
47855   else
47856     NUM_CORES=$with_num_cores
47857   fi
47858 
47859 
47860 
47861   # How much memory do we have on this build system?
47862 
47863 # Check whether --with-memory-size was given.
47864 if test "${with_memory_size+set}" = set; then :
47865   withval=$with_memory_size;
47866 fi
47867 
47868   if test "x$with_memory_size" = x; then
47869     # The memory size was not specified, try to probe it.
47870 
47871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
47872 $as_echo_n "checking for memory size... " >&6; }
47873   # Default to 1024 MB
47874   MEMORY_SIZE=1024
47875   FOUND_MEM=no
47876 
47877   if test -f /proc/meminfo; then
47878     # Looks like a Linux (or cygwin) system
47879     MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
47880     MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
47881     FOUND_MEM=yes
47882   elif test -x /usr/sbin/prtconf; then
47883     # Looks like a Solaris or AIX system
47884     MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'`
47885     FOUND_MEM=yes
47886   elif test -x /usr/sbin/system_profiler; then
47887     # Looks like a MacOSX system
47888     MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
47889     MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
47890     FOUND_MEM=yes
47891   elif test "x$OPENJDK_BUILD_OS" = xwindows; then
47892     # Windows, but without cygwin
47893     MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
47894     MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
47895     FOUND_MEM=yes
47896   fi
47897 
47898   if test "x$FOUND_MEM" = xyes; then
47899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
47900 $as_echo "$MEMORY_SIZE MB" >&6; }
47901   else
47902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
47903 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
47904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5
47905 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;}
47906   fi
47907 
47908   else
47909     MEMORY_SIZE=$with_memory_size
47910   fi
47911 
47912 
47913 
47914   # Provide a decent default number of parallel jobs for make depending on
47915   # number of cores, amount of memory and machine architecture.
47916 
47917 # Check whether --with-jobs was given.
47918 if test "${with_jobs+set}" = set; then :
47919   withval=$with_jobs;
47920 fi
47921 
47922   if test "x$with_jobs" = x; then
47923     # Number of jobs was not specified, calculate.
47924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5
47925 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; }
47926     # Approximate memory in GB, rounding up a bit.
47927     memory_gb=`expr $MEMORY_SIZE / 1100`
47928     # Pick the lowest of memory in gb and number of cores.
47929     if test "$memory_gb" -lt "$NUM_CORES"; then
47930       JOBS="$memory_gb"
47931     else
47932       JOBS="$NUM_CORES"
47933       # On bigger machines, leave some room for other processes to run
47934       if test "$JOBS" -gt "4"; then
47935         JOBS=`expr $JOBS '*' 90 / 100`
47936       fi
47937     fi
47938     # Cap number of jobs to 16
47939     if test "$JOBS" -gt "16"; then
47940       JOBS=16
47941     fi
47942     if test "$JOBS" -eq "0"; then
47943       JOBS=1
47944     fi
47945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5
47946 $as_echo "$JOBS" >&6; }
47947   else
47948     JOBS=$with_jobs
47949   fi
47950 
47951 
47952 
47953 # Setup smart javac (after cores and memory have been setup)
47954 
47955 
47956 # Check whether --with-sjavac-server-java was given.
47957 if test "${with_sjavac_server_java+set}" = set; then :
47958   withval=$with_sjavac_server_java;
47959 fi
47960 
47961 
47962   if test "x$with_sjavac_server_java" != x; then
47963     SJAVAC_SERVER_JAVA="$with_sjavac_server_java"
47964     FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""`
47965     if test "x$FOUND_VERSION" = x; then
47966       as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5
47967     fi
47968   else
47969     SJAVAC_SERVER_JAVA=""
47970     # Hotspot specific options.
47971 
47972   $ECHO "Check if jvm arg is ok: -verbosegc" >&5
47973   $ECHO "Command: $JAVA -verbosegc -version" >&5
47974   OUTPUT=`$JAVA -verbosegc -version 2>&1`
47975   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
47976   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
47977   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
47978     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc"
47979     JVM_ARG_OK=true
47980   else
47981     $ECHO "Arg failed:" >&5
47982     $ECHO "$OUTPUT" >&5
47983     JVM_ARG_OK=false
47984   fi
47985 
47986     # JRockit specific options.
47987 
47988   $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5
47989   $ECHO "Command: $JAVA -Xverbose:gc -version" >&5
47990   OUTPUT=`$JAVA -Xverbose:gc -version 2>&1`
47991   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
47992   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
47993   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
47994     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc"
47995     JVM_ARG_OK=true
47996   else
47997     $ECHO "Arg failed:" >&5
47998     $ECHO "$OUTPUT" >&5
47999     JVM_ARG_OK=false
48000   fi
48001 
48002     SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA"
48003   fi
48004 
48005 
48006   if test "$MEMORY_SIZE" -gt "2500"; then
48007 
48008   $ECHO "Check if jvm arg is ok: -d64" >&5
48009   $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5
48010   OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1`
48011   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48012   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48013   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48014     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64"
48015     JVM_ARG_OK=true
48016   else
48017     $ECHO "Arg failed:" >&5
48018     $ECHO "$OUTPUT" >&5
48019     JVM_ARG_OK=false
48020   fi
48021 
48022     if test "$JVM_ARG_OK" = true; then
48023       JVM_64BIT=true
48024       JVM_ARG_OK=false
48025     fi
48026   fi
48027 
48028   if test "$JVM_64BIT" = true; then
48029     if test "$MEMORY_SIZE" -gt "17000"; then
48030 
48031   $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5
48032   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5
48033   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1`
48034   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48035   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48036   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48037     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G"
48038     JVM_ARG_OK=true
48039   else
48040     $ECHO "Arg failed:" >&5
48041     $ECHO "$OUTPUT" >&5
48042     JVM_ARG_OK=false
48043   fi
48044 
48045     fi
48046     if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then
48047 
48048   $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5
48049   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5
48050   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1`
48051   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48052   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48053   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48054     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G"
48055     JVM_ARG_OK=true
48056   else
48057     $ECHO "Arg failed:" >&5
48058     $ECHO "$OUTPUT" >&5
48059     JVM_ARG_OK=false
48060   fi
48061 
48062     fi
48063     if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then
48064 
48065   $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5
48066   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5
48067   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1`
48068   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48069   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48070   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48071     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G"
48072     JVM_ARG_OK=true
48073   else
48074     $ECHO "Arg failed:" >&5
48075     $ECHO "$OUTPUT" >&5
48076     JVM_ARG_OK=false
48077   fi
48078 
48079     fi
48080     if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then
48081 
48082   $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5
48083   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5
48084   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1`
48085   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48086   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48087   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48088     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M"
48089     JVM_ARG_OK=true
48090   else
48091     $ECHO "Arg failed:" >&5
48092     $ECHO "$OUTPUT" >&5
48093     JVM_ARG_OK=false
48094   fi
48095 
48096     fi
48097   fi
48098   if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then
48099 
48100   $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5
48101   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5
48102   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1`
48103   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48104   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48105   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48106     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M"
48107     JVM_ARG_OK=true
48108   else
48109     $ECHO "Arg failed:" >&5
48110     $ECHO "$OUTPUT" >&5
48111     JVM_ARG_OK=false
48112   fi
48113 
48114   fi
48115   if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then
48116 
48117   $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5
48118   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5
48119   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1`
48120   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48121   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48122   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48123     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M"
48124     JVM_ARG_OK=true
48125   else
48126     $ECHO "Arg failed:" >&5
48127     $ECHO "$OUTPUT" >&5
48128     JVM_ARG_OK=false
48129   fi
48130 
48131   fi
48132   if test "$JVM_ARG_OK" = false; then
48133 
48134   $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5
48135   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5
48136   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1`
48137   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48138   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48139   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48140     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M"
48141     JVM_ARG_OK=true
48142   else
48143     $ECHO "Arg failed:" >&5
48144     $ECHO "$OUTPUT" >&5
48145     JVM_ARG_OK=false
48146   fi
48147 
48148   fi
48149 
48150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
48151 $as_echo_n "checking whether to use sjavac... " >&6; }
48152   # Check whether --enable-sjavac was given.
48153 if test "${enable_sjavac+set}" = set; then :
48154   enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
48155 else
48156   ENABLE_SJAVAC='no'
48157 fi
48158 
48159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
48160 $as_echo "$ENABLE_SJAVAC" >&6; }
48161 
48162 
48163   if test "x$ENABLE_SJAVAC" = xyes; then
48164     SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers"
48165   else
48166     SJAVAC_SERVER_DIR=
48167   fi
48168 
48169 
48170 
48171 # Can the C/C++ compiler use precompiled headers?
48172 
48173 
48174   ###############################################################################
48175   #
48176   # Can the C/C++ compiler use precompiled headers?
48177   #
48178   # Check whether --enable-precompiled-headers was given.
48179 if test "${enable_precompiled_headers+set}" = set; then :
48180   enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers}
48181 else
48182   ENABLE_PRECOMPH=yes
48183 fi
48184 
48185 
48186   USE_PRECOMPILED_HEADER=1
48187   if test "x$ENABLE_PRECOMPH" = xno; then
48188     USE_PRECOMPILED_HEADER=0
48189   fi
48190 
48191   if test "x$ENABLE_PRECOMPH" = xyes; then
48192     # Check that the compiler actually supports precomp headers.
48193     if test "x$GCC" = xyes; then
48194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
48195 $as_echo_n "checking that precompiled headers work... " >&6; }
48196       echo "int alfa();" > conftest.h
48197       $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5
48198       if test ! -f conftest.hpp.gch; then
48199         USE_PRECOMPILED_HEADER=0
48200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48201 $as_echo "no" >&6; }
48202       else
48203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48204 $as_echo "yes" >&6; }
48205       fi
48206       rm -f conftest.h conftest.hpp.gch
48207     fi
48208   fi
48209 
48210 
48211 
48212 
48213 # Setup use of ccache, if available
48214 
48215   # Check whether --enable-ccache was given.
48216 if test "${enable_ccache+set}" = set; then :
48217   enableval=$enable_ccache;
48218 fi
48219 
48220 
48221   CCACHE=
48222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
48223 $as_echo_n "checking is ccache enabled... " >&6; }
48224   ENABLE_CCACHE=$enable_ccache
48225   if test "x$enable_ccache" = xyes; then
48226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48227 $as_echo "yes" >&6; }
48228     OLD_PATH="$PATH"
48229     if test "x$TOOLS_DIR" != x; then
48230       PATH=$TOOLS_DIR:$PATH
48231     fi
48232 
48233 
48234 
48235   # Publish this variable in the help.
48236 
48237 
48238   if test "x$CCACHE" = x; then
48239     # The variable is not set by user, try to locate tool using the code snippet
48240     for ac_prog in ccache
48241 do
48242   # Extract the first word of "$ac_prog", so it can be a program name with args.
48243 set dummy $ac_prog; ac_word=$2
48244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48245 $as_echo_n "checking for $ac_word... " >&6; }
48246 if ${ac_cv_path_CCACHE+:} false; then :
48247   $as_echo_n "(cached) " >&6
48248 else
48249   case $CCACHE in
48250   [\\/]* | ?:[\\/]*)
48251   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48252   ;;
48253   *)
48254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48255 for as_dir in $PATH
48256 do
48257   IFS=$as_save_IFS
48258   test -z "$as_dir" && as_dir=.
48259     for ac_exec_ext in '' $ac_executable_extensions; do
48260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48261     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48263     break 2
48264   fi
48265 done
48266   done
48267 IFS=$as_save_IFS
48268 
48269   ;;
48270 esac
48271 fi
48272 CCACHE=$ac_cv_path_CCACHE
48273 if test -n "$CCACHE"; then
48274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48275 $as_echo "$CCACHE" >&6; }
48276 else
48277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48278 $as_echo "no" >&6; }
48279 fi
48280 
48281 
48282   test -n "$CCACHE" && break
48283 done
48284 
48285   else
48286     # The variable is set, but is it from the command line or the environment?
48287 
48288     # Try to remove the string !CCACHE! from our list.
48289     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/}
48290     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
48291       # If it failed, the variable was not from the command line. Ignore it,
48292       # but warn the user (except for BASH, which is always set by the calling BASH).
48293       if test "xCCACHE" != xBASH; then
48294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5
48295 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;}
48296       fi
48297       # Try to locate tool using the code snippet
48298       for ac_prog in ccache
48299 do
48300   # Extract the first word of "$ac_prog", so it can be a program name with args.
48301 set dummy $ac_prog; ac_word=$2
48302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48303 $as_echo_n "checking for $ac_word... " >&6; }
48304 if ${ac_cv_path_CCACHE+:} false; then :
48305   $as_echo_n "(cached) " >&6
48306 else
48307   case $CCACHE in
48308   [\\/]* | ?:[\\/]*)
48309   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48310   ;;
48311   *)
48312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48313 for as_dir in $PATH
48314 do
48315   IFS=$as_save_IFS
48316   test -z "$as_dir" && as_dir=.
48317     for ac_exec_ext in '' $ac_executable_extensions; do
48318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48319     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48321     break 2
48322   fi
48323 done
48324   done
48325 IFS=$as_save_IFS
48326 
48327   ;;
48328 esac
48329 fi
48330 CCACHE=$ac_cv_path_CCACHE
48331 if test -n "$CCACHE"; then
48332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48333 $as_echo "$CCACHE" >&6; }
48334 else
48335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48336 $as_echo "no" >&6; }
48337 fi
48338 
48339 
48340   test -n "$CCACHE" && break
48341 done
48342 
48343     else
48344       # If it succeeded, then it was overridden by the user. We will use it
48345       # for the tool.
48346 
48347       # First remove it from the list of overridden variables, so we can test
48348       # for unknown variables in the end.
48349       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
48350 
48351       # Check if the provided tool contains a complete path.
48352       tool_specified="$CCACHE"
48353       tool_basename="${tool_specified##*/}"
48354       if test "x$tool_basename" = "x$tool_specified"; then
48355         # A command without a complete path is provided, search $PATH.
48356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5
48357 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;}
48358         # Extract the first word of "$tool_basename", so it can be a program name with args.
48359 set dummy $tool_basename; ac_word=$2
48360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48361 $as_echo_n "checking for $ac_word... " >&6; }
48362 if ${ac_cv_path_CCACHE+:} false; then :
48363   $as_echo_n "(cached) " >&6
48364 else
48365   case $CCACHE in
48366   [\\/]* | ?:[\\/]*)
48367   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48368   ;;
48369   *)
48370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48371 for as_dir in $PATH
48372 do
48373   IFS=$as_save_IFS
48374   test -z "$as_dir" && as_dir=.
48375     for ac_exec_ext in '' $ac_executable_extensions; do
48376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48377     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48379     break 2
48380   fi
48381 done
48382   done
48383 IFS=$as_save_IFS
48384 
48385   ;;
48386 esac
48387 fi
48388 CCACHE=$ac_cv_path_CCACHE
48389 if test -n "$CCACHE"; then
48390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48391 $as_echo "$CCACHE" >&6; }
48392 else
48393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48394 $as_echo "no" >&6; }
48395 fi
48396 
48397 
48398         if test "x$CCACHE" = x; then
48399           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
48400         fi
48401       else
48402         # Otherwise we believe it is a complete path. Use it as it is.
48403         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5
48404 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;}
48405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5
48406 $as_echo_n "checking for CCACHE... " >&6; }
48407         if test ! -x "$tool_specified"; then
48408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
48409 $as_echo "not found" >&6; }
48410           as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5
48411         fi
48412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
48413 $as_echo "$tool_specified" >&6; }
48414       fi
48415     fi
48416   fi
48417 
48418 
48419 
48420   if test "x$CCACHE" = x; then
48421     as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5
48422   fi
48423 
48424 
48425     CCACHE_STATUS="enabled"
48426     PATH="$OLD_PATH"
48427   elif test "x$enable_ccache" = xno; then
48428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
48429 $as_echo "no, explicitly disabled" >&6; }
48430   elif test "x$enable_ccache" = x; then
48431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48432 $as_echo "no" >&6; }
48433   else
48434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
48435 $as_echo "unknown" >&6; }
48436     as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
48437   fi
48438 
48439 
48440 
48441 # Check whether --with-ccache-dir was given.
48442 if test "${with_ccache_dir+set}" = set; then :
48443   withval=$with_ccache_dir;
48444 fi
48445 
48446 
48447   if test "x$with_ccache_dir" != x; then
48448     # When using a non home ccache directory, assume the use is to share ccache files
48449     # with other users. Thus change the umask.
48450     SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
48451     if test "x$CCACHE" = x; then
48452       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
48453 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
48454     fi
48455   fi
48456 
48457   if test "x$CCACHE" != x; then
48458 
48459   if test "x$CCACHE" != x; then
48460     # Only use ccache if it is 3.1.4 or later, which supports
48461     # precompiled headers.
48462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
48463 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
48464     HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
48465     if test "x$HAS_GOOD_CCACHE" = x; then
48466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
48467 $as_echo "no, disabling ccache" >&6; }
48468       CCACHE=
48469       CCACHE_STATUS="disabled"
48470     else
48471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48472 $as_echo "yes" >&6; }
48473       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
48474 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
48475       PUSHED_FLAGS="$CXXFLAGS"
48476       CXXFLAGS="-fpch-preprocess $CXXFLAGS"
48477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48478 /* end confdefs.h.  */
48479 
48480 int
48481 main ()
48482 {
48483 
48484   ;
48485   return 0;
48486 }
48487 _ACEOF
48488 if ac_fn_cxx_try_compile "$LINENO"; then :
48489   CC_KNOWS_CCACHE_TRICK=yes
48490 else
48491   CC_KNOWS_CCACHE_TRICK=no
48492 fi
48493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48494       CXXFLAGS="$PUSHED_FLAGS"
48495       if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
48496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48497 $as_echo "yes" >&6; }
48498       else
48499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
48500 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
48501         CCACHE=
48502         CCACHE_STATUS="disabled"
48503       fi
48504     fi
48505   fi
48506 
48507   if test "x$CCACHE" != x; then
48508     CCACHE_SLOPPINESS=time_macros
48509     CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
48510     CCACHE_FLAGS=-fpch-preprocess
48511 
48512     if test "x$SET_CCACHE_DIR" != x; then
48513       mkdir -p $CCACHE_DIR > /dev/null 2>&1
48514       chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
48515     fi
48516   fi
48517 
48518   fi
48519 
48520 
48521 ###############################################################################
48522 #
48523 # And now the finish...
48524 #
48525 ###############################################################################
48526 
48527 # Check for some common pitfalls
48528 
48529   if test x"$OPENJDK_BUILD_OS" = xwindows; then
48530     file_to_test="$SRC_ROOT/LICENSE"
48531     if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
48532       as_fn_error $? "Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin." "$LINENO" 5
48533     fi
48534   fi
48535 
48536 
48537   # Did user specify any unknown variables?
48538 
48539   if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
48540     # Replace the separating ! with spaces before presenting for end user.
48541     unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
48542     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5
48543 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;}
48544   fi
48545 
48546 
48547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5
48548 $as_echo_n "checking if build directory is on local disk... " >&6; }
48549 
48550   # df -l lists only local disks; if the given directory is not found then
48551   # a non-zero exit code is given
48552   if test "x$DF" = x; then
48553     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48554       # msys does not have df; use Windows "net use" instead.
48555       IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:`
48556       if test "x$IS_NETWORK_DISK" = x; then
48557         OUTPUT_DIR_IS_LOCAL="yes"
48558       else
48559         OUTPUT_DIR_IS_LOCAL="no"
48560       fi
48561     else
48562       # No df here, say it's local
48563       OUTPUT_DIR_IS_LOCAL="yes"
48564     fi
48565   else
48566     if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then
48567       OUTPUT_DIR_IS_LOCAL="yes"
48568     else
48569       OUTPUT_DIR_IS_LOCAL="no"
48570     fi
48571   fi
48572 
48573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5
48574 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; }
48575 
48576 
48577 
48578   # Check if the user has any old-style ALT_ variables set.
48579   FOUND_ALT_VARIABLES=`env | grep ^ALT_`
48580 
48581   # Before generating output files, test if they exist. If they do, this is a reconfigure.
48582   # Since we can't properly handle the dependencies for this, warn the user about the situation
48583   if test -e $OUTPUT_ROOT/spec.gmk; then
48584     IS_RECONFIGURE=yes
48585   else
48586     IS_RECONFIGURE=no
48587   fi
48588 
48589 
48590 # At the end, call the custom hook. (Dummy macro if no custom sources available)
48591 
48592 
48593 # We're messing a bit with internal autoconf variables to put the config.status
48594 # in the output directory instead of the current directory.
48595 CONFIG_STATUS="$OUTPUT_ROOT/config.status"
48596 
48597 # Create the actual output files. Now the main work of configure is done.
48598 cat >confcache <<\_ACEOF
48599 # This file is a shell script that caches the results of configure
48600 # tests run on this system so they can be shared between configure
48601 # scripts and configure runs, see configure's option --config-cache.
48602 # It is not useful on other systems.  If it contains results you don't
48603 # want to keep, you may remove or edit it.
48604 #
48605 # config.status only pays attention to the cache file if you give it
48606 # the --recheck option to rerun configure.
48607 #
48608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48610 # following values.
48611 
48612 _ACEOF
48613 
48614 # The following way of writing the cache mishandles newlines in values,
48615 # but we know of no workaround that is simple, portable, and efficient.
48616 # So, we kill variables containing newlines.
48617 # Ultrix sh set writes to stderr and can't be redirected directly,
48618 # and sets the high bit in the cache file unless we assign to the vars.
48619 (
48620   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48621     eval ac_val=\$$ac_var
48622     case $ac_val in #(
48623     *${as_nl}*)
48624       case $ac_var in #(
48625       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
48626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48627       esac
48628       case $ac_var in #(
48629       _ | IFS | as_nl) ;; #(
48630       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48631       *) { eval $ac_var=; unset $ac_var;} ;;
48632       esac ;;
48633     esac
48634   done
48635 
48636   (set) 2>&1 |
48637     case $as_nl`(ac_space=' '; set) 2>&1` in #(
48638     *${as_nl}ac_space=\ *)
48639       # `set' does not quote correctly, so add quotes: double-quote
48640       # substitution turns \\\\ into \\, and sed turns \\ into \.
48641       sed -n \
48642         "s/'/'\\\\''/g;
48643           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48644       ;; #(
48645     *)
48646       # `set' quotes correctly as required by POSIX, so do not add quotes.
48647       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48648       ;;
48649     esac |
48650     sort
48651 ) |
48652   sed '
48653      /^ac_cv_env_/b end
48654      t clear
48655      :clear
48656      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48657      t end
48658      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48659      :end' >>confcache
48660 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48661   if test -w "$cache_file"; then
48662     if test "x$cache_file" != "x/dev/null"; then
48663       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
48664 $as_echo "$as_me: updating cache $cache_file" >&6;}
48665       if test ! -f "$cache_file" || test -h "$cache_file"; then
48666         cat confcache >"$cache_file"
48667       else
48668         case $cache_file in #(
48669         */* | ?:*)
48670           mv -f confcache "$cache_file"$$ &&
48671           mv -f "$cache_file"$$ "$cache_file" ;; #(
48672         *)
48673           mv -f confcache "$cache_file" ;;
48674         esac
48675       fi
48676     fi
48677   else
48678     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
48679 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48680   fi
48681 fi
48682 rm -f confcache
48683 
48684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48685 # Let make expand exec_prefix.
48686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48687 
48688 DEFS=-DHAVE_CONFIG_H
48689 
48690 ac_libobjs=
48691 ac_ltlibobjs=
48692 U=
48693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48694   # 1. Remove the extension, and $U if already installed.
48695   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48696   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48697   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
48698   #    will be set to the directory where LIBOBJS objects are built.
48699   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48700   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
48701 done
48702 LIBOBJS=$ac_libobjs
48703 
48704 LTLIBOBJS=$ac_ltlibobjs
48705 
48706 
48707 
48708 : "${CONFIG_STATUS=./config.status}"
48709 ac_write_fail=0
48710 ac_clean_files_save=$ac_clean_files
48711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
48713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
48714 as_write_fail=0
48715 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
48716 #! $SHELL
48717 # Generated by $as_me.
48718 # Run this file to recreate the current configuration.
48719 # Compiler output produced by configure, useful for debugging
48720 # configure, is in config.log if it exists.
48721 
48722 debug=false
48723 ac_cs_recheck=false
48724 ac_cs_silent=false
48725 
48726 SHELL=\${CONFIG_SHELL-$SHELL}
48727 export SHELL
48728 _ASEOF
48729 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
48730 ## -------------------- ##
48731 ## M4sh Initialization. ##
48732 ## -------------------- ##
48733 
48734 # Be more Bourne compatible
48735 DUALCASE=1; export DUALCASE # for MKS sh
48736 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
48737   emulate sh
48738   NULLCMD=:
48739   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48740   # is contrary to our usage.  Disable this feature.
48741   alias -g '${1+"$@"}'='"$@"'
48742   setopt NO_GLOB_SUBST
48743 else
48744   case `(set -o) 2>/dev/null` in #(
48745   *posix*) :
48746     set -o posix ;; #(
48747   *) :
48748      ;;
48749 esac
48750 fi
48751 
48752 
48753 as_nl='
48754 '
48755 export as_nl
48756 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48757 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48758 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48760 # Prefer a ksh shell builtin over an external printf program on Solaris,
48761 # but without wasting forks for bash or zsh.
48762 if test -z "$BASH_VERSION$ZSH_VERSION" \
48763     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48764   as_echo='print -r --'
48765   as_echo_n='print -rn --'
48766 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48767   as_echo='printf %s\n'
48768   as_echo_n='printf %s'
48769 else
48770   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
48771     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48772     as_echo_n='/usr/ucb/echo -n'
48773   else
48774     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48775     as_echo_n_body='eval
48776       arg=$1;
48777       case $arg in #(
48778       *"$as_nl"*)
48779         expr "X$arg" : "X\\(.*\\)$as_nl";
48780         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48781       esac;
48782       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
48783     '
48784     export as_echo_n_body
48785     as_echo_n='sh -c $as_echo_n_body as_echo'
48786   fi
48787   export as_echo_body
48788   as_echo='sh -c $as_echo_body as_echo'
48789 fi
48790 
48791 # The user is always right.
48792 if test "${PATH_SEPARATOR+set}" != set; then
48793   PATH_SEPARATOR=:
48794   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48795     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48796       PATH_SEPARATOR=';'
48797   }
48798 fi
48799 
48800 
48801 # IFS
48802 # We need space, tab and new line, in precisely that order.  Quoting is
48803 # there to prevent editors from complaining about space-tab.
48804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
48805 # splitting by setting IFS to empty value.)
48806 IFS=" ""        $as_nl"
48807 
48808 # Find who we are.  Look in the path if we contain no directory separator.
48809 as_myself=
48810 case $0 in #((
48811   *[\\/]* ) as_myself=$0 ;;
48812   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48813 for as_dir in $PATH
48814 do
48815   IFS=$as_save_IFS
48816   test -z "$as_dir" && as_dir=.
48817     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48818   done
48819 IFS=$as_save_IFS
48820 
48821      ;;
48822 esac
48823 # We did not find ourselves, most probably we were run as `sh COMMAND'
48824 # in which case we are not to be found in the path.
48825 if test "x$as_myself" = x; then
48826   as_myself=$0
48827 fi
48828 if test ! -f "$as_myself"; then
48829   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
48830   exit 1
48831 fi
48832 
48833 # Unset variables that we do not need and which cause bugs (e.g. in
48834 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
48835 # suppresses any "Segmentation fault" message there.  '((' could
48836 # trigger a bug in pdksh 5.2.14.
48837 for as_var in BASH_ENV ENV MAIL MAILPATH
48838 do eval test x\${$as_var+set} = xset \
48839   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
48840 done
48841 PS1='$ '
48842 PS2='> '
48843 PS4='+ '
48844 
48845 # NLS nuisances.
48846 LC_ALL=C
48847 export LC_ALL
48848 LANGUAGE=C
48849 export LANGUAGE
48850 
48851 # CDPATH.
48852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48853 
48854 
48855 # as_fn_error STATUS ERROR [LINENO LOG_FD]
48856 # ----------------------------------------
48857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
48858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
48859 # script with STATUS, using 1 if that was 0.
48860 as_fn_error ()
48861 {
48862   as_status=$1; test $as_status -eq 0 && as_status=1
48863   if test "$4"; then
48864     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
48865     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48866   fi
48867   $as_echo "$as_me: error: $2" >&2
48868   as_fn_exit $as_status
48869 } # as_fn_error
48870 
48871 
48872 # as_fn_set_status STATUS
48873 # -----------------------
48874 # Set $? to STATUS, without forking.
48875 as_fn_set_status ()
48876 {
48877   return $1
48878 } # as_fn_set_status
48879 
48880 # as_fn_exit STATUS
48881 # -----------------
48882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
48883 as_fn_exit ()
48884 {
48885   set +e
48886   as_fn_set_status $1
48887   exit $1
48888 } # as_fn_exit
48889 
48890 # as_fn_unset VAR
48891 # ---------------
48892 # Portably unset VAR.
48893 as_fn_unset ()
48894 {
48895   { eval $1=; unset $1;}
48896 }
48897 as_unset=as_fn_unset
48898 # as_fn_append VAR VALUE
48899 # ----------------------
48900 # Append the text in VALUE to the end of the definition contained in VAR. Take
48901 # advantage of any shell optimizations that allow amortized linear growth over
48902 # repeated appends, instead of the typical quadratic growth present in naive
48903 # implementations.
48904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
48905   eval 'as_fn_append ()
48906   {
48907     eval $1+=\$2
48908   }'
48909 else
48910   as_fn_append ()
48911   {
48912     eval $1=\$$1\$2
48913   }
48914 fi # as_fn_append
48915 
48916 # as_fn_arith ARG...
48917 # ------------------
48918 # Perform arithmetic evaluation on the ARGs, and store the result in the
48919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
48920 # must be portable across $(()) and expr.
48921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
48922   eval 'as_fn_arith ()
48923   {
48924     as_val=$(( $* ))
48925   }'
48926 else
48927   as_fn_arith ()
48928   {
48929     as_val=`expr "$@" || test $? -eq 1`
48930   }
48931 fi # as_fn_arith
48932 
48933 
48934 if expr a : '\(a\)' >/dev/null 2>&1 &&
48935    test "X`expr 00001 : '.*\(...\)'`" = X001; then
48936   as_expr=expr
48937 else
48938   as_expr=false
48939 fi
48940 
48941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
48942   as_basename=basename
48943 else
48944   as_basename=false
48945 fi
48946 
48947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48948   as_dirname=dirname
48949 else
48950   as_dirname=false
48951 fi
48952 
48953 as_me=`$as_basename -- "$0" ||
48954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48955          X"$0" : 'X\(//\)$' \| \
48956          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
48957 $as_echo X/"$0" |
48958     sed '/^.*\/\([^/][^/]*\)\/*$/{
48959             s//\1/
48960             q
48961           }
48962           /^X\/\(\/\/\)$/{
48963             s//\1/
48964             q
48965           }
48966           /^X\/\(\/\).*/{
48967             s//\1/
48968             q
48969           }
48970           s/.*/./; q'`
48971 
48972 # Avoid depending upon Character Ranges.
48973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48976 as_cr_digits='0123456789'
48977 as_cr_alnum=$as_cr_Letters$as_cr_digits
48978 
48979 ECHO_C= ECHO_N= ECHO_T=
48980 case `echo -n x` in #(((((
48981 -n*)
48982   case `echo 'xy\c'` in
48983   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
48984   xy)  ECHO_C='\c';;
48985   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
48986        ECHO_T=' ';;
48987   esac;;
48988 *)
48989   ECHO_N='-n';;
48990 esac
48991 
48992 rm -f conf$$ conf$$.exe conf$$.file
48993 if test -d conf$$.dir; then
48994   rm -f conf$$.dir/conf$$.file
48995 else
48996   rm -f conf$$.dir
48997   mkdir conf$$.dir 2>/dev/null
48998 fi
48999 if (echo >conf$$.file) 2>/dev/null; then
49000   if ln -s conf$$.file conf$$ 2>/dev/null; then
49001     as_ln_s='ln -s'
49002     # ... but there are two gotchas:
49003     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49004     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49005     # In both cases, we have to default to `cp -pR'.
49006     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49007       as_ln_s='cp -pR'
49008   elif ln conf$$.file conf$$ 2>/dev/null; then
49009     as_ln_s=ln
49010   else
49011     as_ln_s='cp -pR'
49012   fi
49013 else
49014   as_ln_s='cp -pR'
49015 fi
49016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49017 rmdir conf$$.dir 2>/dev/null
49018 
49019 
49020 # as_fn_mkdir_p
49021 # -------------
49022 # Create "$as_dir" as a directory, including parents if necessary.
49023 as_fn_mkdir_p ()
49024 {
49025 
49026   case $as_dir in #(
49027   -*) as_dir=./$as_dir;;
49028   esac
49029   test -d "$as_dir" || eval $as_mkdir_p || {
49030     as_dirs=
49031     while :; do
49032       case $as_dir in #(
49033       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
49034       *) as_qdir=$as_dir;;
49035       esac
49036       as_dirs="'$as_qdir' $as_dirs"
49037       as_dir=`$as_dirname -- "$as_dir" ||
49038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49039          X"$as_dir" : 'X\(//\)[^/]' \| \
49040          X"$as_dir" : 'X\(//\)$' \| \
49041          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49042 $as_echo X"$as_dir" |
49043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49044             s//\1/
49045             q
49046           }
49047           /^X\(\/\/\)[^/].*/{
49048             s//\1/
49049             q
49050           }
49051           /^X\(\/\/\)$/{
49052             s//\1/
49053             q
49054           }
49055           /^X\(\/\).*/{
49056             s//\1/
49057             q
49058           }
49059           s/.*/./; q'`
49060       test -d "$as_dir" && break
49061     done
49062     test -z "$as_dirs" || eval "mkdir $as_dirs"
49063   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
49064 
49065 
49066 } # as_fn_mkdir_p
49067 if mkdir -p . 2>/dev/null; then
49068   as_mkdir_p='mkdir -p "$as_dir"'
49069 else
49070   test -d ./-p && rmdir ./-p
49071   as_mkdir_p=false
49072 fi
49073 
49074 
49075 # as_fn_executable_p FILE
49076 # -----------------------
49077 # Test if FILE is an executable regular file.
49078 as_fn_executable_p ()
49079 {
49080   test -f "$1" && test -x "$1"
49081 } # as_fn_executable_p
49082 as_test_x='test -x'
49083 as_executable_p=as_fn_executable_p
49084 
49085 # Sed expression to map a string onto a valid CPP name.
49086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49087 
49088 # Sed expression to map a string onto a valid variable name.
49089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49090 
49091 
49092 exec 6>&1
49093 ## ----------------------------------- ##
49094 ## Main body of $CONFIG_STATUS script. ##
49095 ## ----------------------------------- ##
49096 _ASEOF
49097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
49098 
49099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49100 # Save the log message, to keep $0 and so on meaningful, and to
49101 # report actual input values of CONFIG_FILES etc. instead of their
49102 # values after options handling.
49103 ac_log="
49104 This file was extended by OpenJDK $as_me jdk8, which was
49105 generated by GNU Autoconf 2.69.  Invocation command line was
49106 
49107   CONFIG_FILES    = $CONFIG_FILES
49108   CONFIG_HEADERS  = $CONFIG_HEADERS
49109   CONFIG_LINKS    = $CONFIG_LINKS
49110   CONFIG_COMMANDS = $CONFIG_COMMANDS
49111   $ $0 $@
49112 
49113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
49114 "
49115 
49116 _ACEOF
49117 
49118 case $ac_config_files in *"
49119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
49120 esac
49121 
49122 case $ac_config_headers in *"
49123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
49124 esac
49125 
49126 
49127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49128 # Files that config.status was made for.
49129 config_files="$ac_config_files"
49130 config_headers="$ac_config_headers"
49131 
49132 _ACEOF
49133 
49134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49135 ac_cs_usage="\
49136 \`$as_me' instantiates files and other configuration actions
49137 from templates according to the current configuration.  Unless the files
49138 and actions are specified as TAGs, all are instantiated by default.
49139 
49140 Usage: $0 [OPTION]... [TAG]...
49141 
49142   -h, --help       print this help, then exit
49143   -V, --version    print version number and configuration settings, then exit
49144       --config     print configuration, then exit
49145   -q, --quiet, --silent
49146                    do not print progress messages
49147   -d, --debug      don't remove temporary files
49148       --recheck    update $as_me by reconfiguring in the same conditions
49149       --file=FILE[:TEMPLATE]
49150                    instantiate the configuration file FILE
49151       --header=FILE[:TEMPLATE]
49152                    instantiate the configuration header FILE
49153 
49154 Configuration files:
49155 $config_files
49156 
49157 Configuration headers:
49158 $config_headers
49159 
49160 Report bugs to <build-dev@openjdk.java.net>.
49161 OpenJDK home page: <http://openjdk.java.net>."
49162 
49163 _ACEOF
49164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49165 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
49166 ac_cs_version="\\
49167 OpenJDK config.status jdk8
49168 configured by $0, generated by GNU Autoconf 2.69,
49169   with options \\"\$ac_cs_config\\"
49170 
49171 Copyright (C) 2012 Free Software Foundation, Inc.
49172 This config.status script is free software; the Free Software Foundation
49173 gives unlimited permission to copy, distribute and modify it."
49174 
49175 ac_pwd='$ac_pwd'
49176 srcdir='$srcdir'
49177 AWK='$AWK'
49178 test -n "\$AWK" || AWK=awk
49179 _ACEOF
49180 
49181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49182 # The default lists apply if the user does not specify any file.
49183 ac_need_defaults=:
49184 while test $# != 0
49185 do
49186   case $1 in
49187   --*=?*)
49188     ac_option=`expr "X$1" : 'X\([^=]*\)='`
49189     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
49190     ac_shift=:
49191     ;;
49192   --*=)
49193     ac_option=`expr "X$1" : 'X\([^=]*\)='`
49194     ac_optarg=
49195     ac_shift=:
49196     ;;
49197   *)
49198     ac_option=$1
49199     ac_optarg=$2
49200     ac_shift=shift
49201     ;;
49202   esac
49203 
49204   case $ac_option in
49205   # Handling of the options.
49206   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49207     ac_cs_recheck=: ;;
49208   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
49209     $as_echo "$ac_cs_version"; exit ;;
49210   --config | --confi | --conf | --con | --co | --c )
49211     $as_echo "$ac_cs_config"; exit ;;
49212   --debug | --debu | --deb | --de | --d | -d )
49213     debug=: ;;
49214   --file | --fil | --fi | --f )
49215     $ac_shift
49216     case $ac_optarg in
49217     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49218     '') as_fn_error $? "missing file argument" ;;
49219     esac
49220     as_fn_append CONFIG_FILES " '$ac_optarg'"
49221     ac_need_defaults=false;;
49222   --header | --heade | --head | --hea )
49223     $ac_shift
49224     case $ac_optarg in
49225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49226     esac
49227     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
49228     ac_need_defaults=false;;
49229   --he | --h)
49230     # Conflict between --help and --header
49231     as_fn_error $? "ambiguous option: \`$1'
49232 Try \`$0 --help' for more information.";;
49233   --help | --hel | -h )
49234     $as_echo "$ac_cs_usage"; exit ;;
49235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49236   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49237     ac_cs_silent=: ;;
49238 
49239   # This is an error.
49240   -*) as_fn_error $? "unrecognized option: \`$1'
49241 Try \`$0 --help' for more information." ;;
49242 
49243   *) as_fn_append ac_config_targets " $1"
49244      ac_need_defaults=false ;;
49245 
49246   esac
49247   shift
49248 done
49249 
49250 ac_configure_extra_args=
49251 
49252 if $ac_cs_silent; then
49253   exec 6>/dev/null
49254   ac_configure_extra_args="$ac_configure_extra_args --silent"
49255 fi
49256 
49257 _ACEOF
49258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49259 if \$ac_cs_recheck; then
49260   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49261   shift
49262   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49263   CONFIG_SHELL='$SHELL'
49264   export CONFIG_SHELL
49265   exec "\$@"
49266 fi
49267 
49268 _ACEOF
49269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49270 exec 5>>config.log
49271 {
49272   echo
49273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49274 ## Running $as_me. ##
49275 _ASBOX
49276   $as_echo "$ac_log"
49277 } >&5
49278 
49279 _ACEOF
49280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49281 _ACEOF
49282 
49283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49284 
49285 # Handling of arguments.
49286 for ac_config_target in $ac_config_targets
49287 do
49288   case $ac_config_target in
49289     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
49290     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
49291     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
49292     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
49293     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
49294     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
49295     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
49296 
49297   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
49298   esac
49299 done
49300 
49301 
49302 # If the user did not use the arguments to specify the items to instantiate,
49303 # then the envvar interface is used.  Set only those that are not.
49304 # We use the long form for the default assignment because of an extremely
49305 # bizarre bug on SunOS 4.1.3.
49306 if $ac_need_defaults; then
49307   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49308   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49309 fi
49310 
49311 # Have a temporary directory for convenience.  Make it in the build tree
49312 # simply because there is no reason against having it here, and in addition,
49313 # creating and moving files from /tmp can sometimes cause problems.
49314 # Hook for its removal unless debugging.
49315 # Note that there is a small window in which the directory will not be cleaned:
49316 # after its creation but before its name has been assigned to `$tmp'.
49317 $debug ||
49318 {
49319   tmp= ac_tmp=
49320   trap 'exit_status=$?
49321   : "${ac_tmp:=$tmp}"
49322   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
49323 ' 0
49324   trap 'as_fn_exit 1' 1 2 13 15
49325 }
49326 # Create a (secure) tmp directory for tmp files.
49327 
49328 {
49329   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49330   test -d "$tmp"
49331 }  ||
49332 {
49333   tmp=./conf$$-$RANDOM
49334   (umask 077 && mkdir "$tmp")
49335 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
49336 ac_tmp=$tmp
49337 
49338 # Set up the scripts for CONFIG_FILES section.
49339 # No need to generate them if there are no CONFIG_FILES.
49340 # This happens for instance with `./config.status config.h'.
49341 if test -n "$CONFIG_FILES"; then
49342 
49343 
49344 ac_cr=`echo X | tr X '\015'`
49345 # On cygwin, bash can eat \r inside `` if the user requested igncr.
49346 # But we know of no other shell where ac_cr would be empty at this
49347 # point, so we can use a bashism as a fallback.
49348 if test "x$ac_cr" = x; then
49349   eval ac_cr=\$\'\\r\'
49350 fi
49351 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49352 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49353   ac_cs_awk_cr='\\r'
49354 else
49355   ac_cs_awk_cr=$ac_cr
49356 fi
49357 
49358 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
49359 _ACEOF
49360 
49361 
49362 {
49363   echo "cat >conf$$subs.awk <<_ACEOF" &&
49364   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
49365   echo "_ACEOF"
49366 } >conf$$subs.sh ||
49367   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
49368 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
49369 ac_delim='%!_!# '
49370 for ac_last_try in false false false false false :; do
49371   . ./conf$$subs.sh ||
49372     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
49373 
49374   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
49375   if test $ac_delim_n = $ac_delim_num; then
49376     break
49377   elif $ac_last_try; then
49378     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
49379   else
49380     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49381   fi
49382 done
49383 rm -f conf$$subs.sh
49384 
49385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49386 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
49387 _ACEOF
49388 sed -n '
49389 h
49390 s/^/S["/; s/!.*/"]=/
49391 p
49392 g
49393 s/^[^!]*!//
49394 :repl
49395 t repl
49396 s/'"$ac_delim"'$//
49397 t delim
49398 :nl
49399 h
49400 s/\(.\{148\}\)..*/\1/
49401 t more1
49402 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
49403 p
49404 n
49405 b repl
49406 :more1
49407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49408 p
49409 g
49410 s/.\{148\}//
49411 t nl
49412 :delim
49413 h
49414 s/\(.\{148\}\)..*/\1/
49415 t more2
49416 s/["\\]/\\&/g; s/^/"/; s/$/"/
49417 p
49418 b
49419 :more2
49420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49421 p
49422 g
49423 s/.\{148\}//
49424 t delim
49425 ' <conf$$subs.awk | sed '
49426 /^[^""]/{
49427   N
49428   s/\n//
49429 }
49430 ' >>$CONFIG_STATUS || ac_write_fail=1
49431 rm -f conf$$subs.awk
49432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49433 _ACAWK
49434 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
49435   for (key in S) S_is_set[key] = 1
49436   FS = ""
49437 
49438 }
49439 {
49440   line = $ 0
49441   nfields = split(line, field, "@")
49442   substed = 0
49443   len = length(field[1])
49444   for (i = 2; i < nfields; i++) {
49445     key = field[i]
49446     keylen = length(key)
49447     if (S_is_set[key]) {
49448       value = S[key]
49449       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
49450       len += length(value) + length(field[++i])
49451       substed = 1
49452     } else
49453       len += 1 + keylen
49454   }
49455 
49456   print line
49457 }
49458 
49459 _ACAWK
49460 _ACEOF
49461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49462 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49463   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
49464 else
49465   cat
49466 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
49467   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
49468 _ACEOF
49469 
49470 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
49471 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
49472 # trailing colons and then remove the whole line if VPATH becomes empty
49473 # (actually we leave an empty line to preserve line numbers).
49474 if test "x$srcdir" = x.; then
49475   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
49476 h
49477 s///
49478 s/^/:/
49479 s/[      ]*$/:/
49480 s/:\$(srcdir):/:/g
49481 s/:\${srcdir}:/:/g
49482 s/:@srcdir@:/:/g
49483 s/^:*//
49484 s/:*$//
49485 x
49486 s/\(=[   ]*\).*/\1/
49487 G
49488 s/\n//
49489 s/^[^=]*=[       ]*$//
49490 }'
49491 fi
49492 
49493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49494 fi # test -n "$CONFIG_FILES"
49495 
49496 # Set up the scripts for CONFIG_HEADERS section.
49497 # No need to generate them if there are no CONFIG_HEADERS.
49498 # This happens for instance with `./config.status Makefile'.
49499 if test -n "$CONFIG_HEADERS"; then
49500 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
49501 BEGIN {
49502 _ACEOF
49503 
49504 # Transform confdefs.h into an awk script `defines.awk', embedded as
49505 # here-document in config.status, that substitutes the proper values into
49506 # config.h.in to produce config.h.
49507 
49508 # Create a delimiter string that does not exist in confdefs.h, to ease
49509 # handling of long lines.
49510 ac_delim='%!_!# '
49511 for ac_last_try in false false :; do
49512   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
49513   if test -z "$ac_tt"; then
49514     break
49515   elif $ac_last_try; then
49516     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
49517   else
49518     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49519   fi
49520 done
49521 
49522 # For the awk script, D is an array of macro values keyed by name,
49523 # likewise P contains macro parameters if any.  Preserve backslash
49524 # newline sequences.
49525 
49526 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49527 sed -n '
49528 s/.\{148\}/&'"$ac_delim"'/g
49529 t rset
49530 :rset
49531 s/^[     ]*#[    ]*define[       ][      ]*/ /
49532 t def
49533 d
49534 :def
49535 s/\\$//
49536 t bsnl
49537 s/["\\]/\\&/g
49538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
49539 D["\1"]=" \3"/p
49540 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
49541 d
49542 :bsnl
49543 s/["\\]/\\&/g
49544 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
49545 D["\1"]=" \3\\\\\\n"\\/p
49546 t cont
49547 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49548 t cont
49549 d
49550 :cont
49551 n
49552 s/.\{148\}/&'"$ac_delim"'/g
49553 t clear
49554 :clear
49555 s/\\$//
49556 t bsnlc
49557 s/["\\]/\\&/g; s/^/"/; s/$/"/p
49558 d
49559 :bsnlc
49560 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49561 b cont
49562 ' <confdefs.h | sed '
49563 s/'"$ac_delim"'/"\\\
49564 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49565 
49566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49567   for (key in D) D_is_set[key] = 1
49568   FS = ""
49569 }
49570 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49571   line = \$ 0
49572   split(line, arg, " ")
49573   if (arg[1] == "#") {
49574     defundef = arg[2]
49575     mac1 = arg[3]
49576   } else {
49577     defundef = substr(arg[1], 2)
49578     mac1 = arg[2]
49579   }
49580   split(mac1, mac2, "(") #)
49581   macro = mac2[1]
49582   prefix = substr(line, 1, index(line, defundef) - 1)
49583   if (D_is_set[macro]) {
49584     # Preserve the white space surrounding the "#".
49585     print prefix "define", macro P[macro] D[macro]
49586     next
49587   } else {
49588     # Replace #undef with comments.  This is necessary, for example,
49589     # in the case of _POSIX_SOURCE, which is predefined and required
49590     # on some systems where configure will not decide to define it.
49591     if (defundef == "undef") {
49592       print "/*", prefix defundef, macro, "*/"
49593       next
49594     }
49595   }
49596 }
49597 { print }
49598 _ACAWK
49599 _ACEOF
49600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49601   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
49602 fi # test -n "$CONFIG_HEADERS"
49603 
49604 
49605 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
49606 shift
49607 for ac_tag
49608 do
49609   case $ac_tag in
49610   :[FHLC]) ac_mode=$ac_tag; continue;;
49611   esac
49612   case $ac_mode$ac_tag in
49613   :[FHL]*:*);;
49614   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
49615   :[FH]-) ac_tag=-:-;;
49616   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49617   esac
49618   ac_save_IFS=$IFS
49619   IFS=:
49620   set x $ac_tag
49621   IFS=$ac_save_IFS
49622   shift
49623   ac_file=$1
49624   shift
49625 
49626   case $ac_mode in
49627   :L) ac_source=$1;;
49628   :[FH])
49629     ac_file_inputs=
49630     for ac_f
49631     do
49632       case $ac_f in
49633       -) ac_f="$ac_tmp/stdin";;
49634       *) # Look for the file first in the build tree, then in the source tree
49635          # (if the path is not absolute).  The absolute path cannot be DOS-style,
49636          # because $ac_f cannot contain `:'.
49637          test -f "$ac_f" ||
49638            case $ac_f in
49639            [\\/$]*) false;;
49640            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49641            esac ||
49642            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
49643       esac
49644       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49645       as_fn_append ac_file_inputs " '$ac_f'"
49646     done
49647 
49648     # Let's still pretend it is `configure' which instantiates (i.e., don't
49649     # use $as_me), people would be surprised to read:
49650     #    /* config.h.  Generated by config.status.  */
49651     configure_input='Generated from '`
49652           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49653         `' by configure.'
49654     if test x"$ac_file" != x-; then
49655       configure_input="$ac_file.  $configure_input"
49656       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
49657 $as_echo "$as_me: creating $ac_file" >&6;}
49658     fi
49659     # Neutralize special characters interpreted by sed in replacement strings.
49660     case $configure_input in #(
49661     *\&* | *\|* | *\\* )
49662        ac_sed_conf_input=`$as_echo "$configure_input" |
49663        sed 's/[\\\\&|]/\\\\&/g'`;; #(
49664     *) ac_sed_conf_input=$configure_input;;
49665     esac
49666 
49667     case $ac_tag in
49668     *:-:* | *:-) cat >"$ac_tmp/stdin" \
49669       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
49670     esac
49671     ;;
49672   esac
49673 
49674   ac_dir=`$as_dirname -- "$ac_file" ||
49675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49676          X"$ac_file" : 'X\(//\)[^/]' \| \
49677          X"$ac_file" : 'X\(//\)$' \| \
49678          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49679 $as_echo X"$ac_file" |
49680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49681             s//\1/
49682             q
49683           }
49684           /^X\(\/\/\)[^/].*/{
49685             s//\1/
49686             q
49687           }
49688           /^X\(\/\/\)$/{
49689             s//\1/
49690             q
49691           }
49692           /^X\(\/\).*/{
49693             s//\1/
49694             q
49695           }
49696           s/.*/./; q'`
49697   as_dir="$ac_dir"; as_fn_mkdir_p
49698   ac_builddir=.
49699 
49700 case "$ac_dir" in
49701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49702 *)
49703   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
49704   # A ".." for each directory in $ac_dir_suffix.
49705   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
49706   case $ac_top_builddir_sub in
49707   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49708   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49709   esac ;;
49710 esac
49711 ac_abs_top_builddir=$ac_pwd
49712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49713 # for backward compatibility:
49714 ac_top_builddir=$ac_top_build_prefix
49715 
49716 case $srcdir in
49717   .)  # We are building in place.
49718     ac_srcdir=.
49719     ac_top_srcdir=$ac_top_builddir_sub
49720     ac_abs_top_srcdir=$ac_pwd ;;
49721   [\\/]* | ?:[\\/]* )  # Absolute name.
49722     ac_srcdir=$srcdir$ac_dir_suffix;
49723     ac_top_srcdir=$srcdir
49724     ac_abs_top_srcdir=$srcdir ;;
49725   *) # Relative name.
49726     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49727     ac_top_srcdir=$ac_top_build_prefix$srcdir
49728     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49729 esac
49730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49731 
49732 
49733   case $ac_mode in
49734   :F)
49735   #
49736   # CONFIG_FILE
49737   #
49738 
49739 _ACEOF
49740 
49741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49742 # If the template does not know about datarootdir, expand it.
49743 # FIXME: This hack should be removed a few years after 2.60.
49744 ac_datarootdir_hack=; ac_datarootdir_seen=
49745 ac_sed_dataroot='
49746 /datarootdir/ {
49747   p
49748   q
49749 }
49750 /@datadir@/p
49751 /@docdir@/p
49752 /@infodir@/p
49753 /@localedir@/p
49754 /@mandir@/p'
49755 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49756 *datarootdir*) ac_datarootdir_seen=yes;;
49757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49759 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49760 _ACEOF
49761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49762   ac_datarootdir_hack='
49763   s&@datadir@&$datadir&g
49764   s&@docdir@&$docdir&g
49765   s&@infodir@&$infodir&g
49766   s&@localedir@&$localedir&g
49767   s&@mandir@&$mandir&g
49768   s&\\\${datarootdir}&$datarootdir&g' ;;
49769 esac
49770 _ACEOF
49771 
49772 # Neutralize VPATH when `$srcdir' = `.'.
49773 # Shell code in configure.ac might set extrasub.
49774 # FIXME: do we really want to maintain this feature?
49775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49776 ac_sed_extra="$ac_vpsub
49777 $extrasub
49778 _ACEOF
49779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49780 :t
49781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49782 s|@configure_input@|$ac_sed_conf_input|;t t
49783 s&@top_builddir@&$ac_top_builddir_sub&;t t
49784 s&@top_build_prefix@&$ac_top_build_prefix&;t t
49785 s&@srcdir@&$ac_srcdir&;t t
49786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49787 s&@top_srcdir@&$ac_top_srcdir&;t t
49788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49789 s&@builddir@&$ac_builddir&;t t
49790 s&@abs_builddir@&$ac_abs_builddir&;t t
49791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49792 $ac_datarootdir_hack
49793 "
49794 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
49795   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49796 
49797 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49798   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
49799   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
49800       "$ac_tmp/out"`; test -z "$ac_out"; } &&
49801   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49802 which seems to be undefined.  Please make sure it is defined" >&5
49803 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49804 which seems to be undefined.  Please make sure it is defined" >&2;}
49805 
49806   rm -f "$ac_tmp/stdin"
49807   case $ac_file in
49808   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
49809   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
49810   esac \
49811   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49812  ;;
49813   :H)
49814   #
49815   # CONFIG_HEADER
49816   #
49817   if test x"$ac_file" != x-; then
49818     {
49819       $as_echo "/* $configure_input  */" \
49820       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
49821     } >"$ac_tmp/config.h" \
49822       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49823     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
49824       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
49825 $as_echo "$as_me: $ac_file is unchanged" >&6;}
49826     else
49827       rm -f "$ac_file"
49828       mv "$ac_tmp/config.h" "$ac_file" \
49829         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49830     fi
49831   else
49832     $as_echo "/* $configure_input  */" \
49833       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
49834       || as_fn_error $? "could not create -" "$LINENO" 5
49835   fi
49836  ;;
49837 
49838 
49839   esac
49840 
49841 done # for ac_tag
49842 
49843 
49844 as_fn_exit 0
49845 _ACEOF
49846 ac_clean_files=$ac_clean_files_save
49847 
49848 test $ac_write_fail = 0 ||
49849   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
49850 
49851 
49852 # configure is writing to config.log, and then calls config.status.
49853 # config.status does its own redirection, appending to config.log.
49854 # Unfortunately, on DOS this fails, as config.log is still kept open
49855 # by configure, so config.status won't be able to write to it; its
49856 # output is simply discarded.  So we exec the FD to /dev/null,
49857 # effectively closing config.log, so it can be properly (re)opened and
49858 # appended to by config.status.  When coming back to configure, we
49859 # need to make the FD available again.
49860 if test "$no_create" != yes; then
49861   ac_cs_success=:
49862   ac_config_status_args=
49863   test "$silent" = yes &&
49864     ac_config_status_args="$ac_config_status_args --quiet"
49865   exec 5>/dev/null
49866   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49867   exec 5>>config.log
49868   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49869   # would make configure fail if this is the last instruction.
49870   $ac_cs_success || as_fn_exit 1
49871 fi
49872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49873   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49874 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49875 fi
49876 
49877 
49878 # Try to move the config.log file to the output directory.
49879 if test -e ./config.log; then
49880   $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
49881 fi
49882 
49883 # Make the compare script executable
49884 $CHMOD +x $OUTPUT_ROOT/compare.sh
49885 
49886 # Finally output some useful information to the user
49887 
49888   # Finally output some useful information to the user
49889 
49890   printf "\n"
49891   printf "====================================================\n"
49892   printf "A new configuration has been successfully created in\n"
49893   printf "$OUTPUT_ROOT\n"
49894   if test "x$CONFIGURE_COMMAND_LINE" != x; then
49895     printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
49896   else
49897     printf "using default settings.\n"
49898   fi
49899 
49900   printf "\n"
49901   printf "Configuration summary:\n"
49902   printf "* Debug level:    $DEBUG_LEVEL\n"
49903   printf "* JDK variant:    $JDK_VARIANT\n"
49904   printf "* JVM variants:   $with_jvm_variants\n"
49905   printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
49906 
49907   printf "\n"
49908   printf "Tools summary:\n"
49909   if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
49910     printf "* Environment:    $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
49911   fi
49912   printf "* Boot JDK:       $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
49913   printf "* C Compiler:     $CC_VENDOR version $CC_VERSION (at $CC)\n"
49914   printf "* C++ Compiler:   $CXX_VENDOR version $CXX_VERSION (at $CXX)\n"
49915 
49916   printf "\n"
49917   printf "Build performance summary:\n"
49918   printf "* Cores to use:   $JOBS\n"
49919   printf "* Memory limit:   $MEMORY_SIZE MB\n"
49920   if test "x$CCACHE_STATUS" != "x"; then
49921     printf "* ccache status:  $CCACHE_STATUS\n"
49922   fi
49923   printf "\n"
49924 
49925   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
49926     printf "NOTE: You have requested to build more than one version of the JVM, which\n"
49927     printf "will result in longer build times.\n"
49928     printf "\n"
49929   fi
49930 
49931   if test "x$FOUND_ALT_VARIABLES" != "x"; then
49932     printf "WARNING: You have old-style ALT_ environment variables set.\n"
49933     printf "These are not respected, and will be ignored. It is recommended\n"
49934     printf "that you clean your environment. The following variables are set:\n"
49935     printf "$FOUND_ALT_VARIABLES\n"
49936     printf "\n"
49937   fi
49938 
49939   if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
49940     printf "WARNING: Your build output directory is not on a local disk.\n"
49941     printf "This will severely degrade build performance!\n"
49942     printf "It is recommended that you create an output directory on a local disk,\n"
49943     printf "and run the configure script again from that directory.\n"
49944     printf "\n"
49945   fi
49946 
49947   if test "x$IS_RECONFIGURE" = "xyes"; then
49948     printf "WARNING: The result of this configuration has overridden an older\n"
49949     printf "configuration. You *should* run 'make clean' to make sure you get a\n"
49950     printf "proper build. Failure to do so might result in strange build problems.\n"
49951     printf "\n"
49952   fi
49953