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 NO_LIFETIME_DSE_CFLAG
 683 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 684 CXXSTD_CXXFLAG
 685 LEGACY_EXTRA_LDFLAGS
 686 LEGACY_EXTRA_CXXFLAGS
 687 LEGACY_EXTRA_CFLAGS
 688 CXX_FLAG_DEPS
 689 C_FLAG_DEPS
 690 CXX_O_FLAG_NONE
 691 CXX_O_FLAG_NORM
 692 CXX_O_FLAG_HI
 693 CXX_O_FLAG_HIGHEST
 694 C_O_FLAG_NONE
 695 C_O_FLAG_NORM
 696 C_O_FLAG_HI
 697 C_O_FLAG_HIGHEST
 698 POST_MCS_CMD
 699 POST_STRIP_CMD
 700 SET_EXECUTABLE_ORIGIN
 701 SET_SHARED_LIBRARY_ORIGIN
 702 CXX_FLAG_REORDER
 703 C_FLAG_REORDER
 704 SET_SHARED_LIBRARY_MAPFILE
 705 SET_SHARED_LIBRARY_NAME
 706 SHARED_LIBRARY_FLAGS
 707 EXE_SUFFIX
 708 STATIC_LIBRARY_SUFFIX
 709 SHARED_LIBRARY_SUFFIX
 710 LIBRARY_PREFIX
 711 STATIC_LIBRARY
 712 SHARED_LIBRARY
 713 OBJ_SUFFIX
 714 COMPILER_NAME
 715 JT_HOME
 716 JTREGEXE
 717 ac_ct_OBJDUMP
 718 OBJDUMP
 719 ac_ct_OBJCOPY
 720 OBJCOPY
 721 ac_ct_STRIP
 722 ac_ct_NM
 723 OTOOL
 724 MCS
 725 STRIP
 726 GNM
 727 NM
 728 AS
 729 CXXCPP
 730 CPP
 731 COMPILER_TYPE
 732 RC_FLAGS
 733 DUMPBIN
 734 WINAR
 735 HOTSPOT_RC
 736 HOTSPOT_MT
 737 RC
 738 MT
 739 WINLD
 740 HOTSPOT_LD
 741 HOTSPOT_CXX
 742 ARFLAGS
 743 ac_ct_AR
 744 AR
 745 LDEXECXX
 746 LDCXX
 747 LDEXE
 748 LD
 749 ac_ct_OBJC
 750 OBJCFLAGS
 751 OBJC
 752 CXX_VERSION
 753 CC_VERSION
 754 ac_ct_CXX
 755 CXXFLAGS
 756 CXX
 757 ac_ct_PROPER_COMPILER_CXX
 758 PROPER_COMPILER_CXX
 759 POTENTIAL_CXX
 760 TOOLS_DIR_CXX
 761 COMPILER_TARGET_BITS_FLAG
 762 OBJEXT
 763 EXEEXT
 764 ac_ct_CC
 765 CPPFLAGS
 766 LDFLAGS
 767 CFLAGS
 768 CC
 769 ac_ct_PROPER_COMPILER_CC
 770 PROPER_COMPILER_CC
 771 POTENTIAL_CC
 772 TOOLS_DIR_CC
 773 SDKPATH
 774 XCODEBUILD
 775 SET_DEVELOPER_DIR
 776 BUILD_LD
 777 BUILD_CXX
 778 BUILD_CC
 779 MSVCR_DLL
 780 VS_PATH
 781 VS_LIB
 782 VS_INCLUDE
 783 CYGWIN_LINK
 784 AR_OUT_OPTION
 785 LD_OUT_OPTION
 786 EXE_OUT_OPTION
 787 CC_OUT_OPTION
 788 BUILD_HOTSPOT
 789 HOTSPOT_DIST
 790 BUILD_OUTPUT
 791 OVERRIDE_SRC_ROOT
 792 ADD_SRC_ROOT
 793 JDK_TOPDIR
 794 NASHORN_TOPDIR
 795 HOTSPOT_TOPDIR
 796 JAXWS_TOPDIR
 797 JAXP_TOPDIR
 798 CORBA_TOPDIR
 799 LANGTOOLS_TOPDIR
 800 JAVA_FLAGS_SMALL
 801 JAVA_FLAGS_BIG
 802 JAVA_FLAGS
 803 BOOT_JDK_BITS
 804 JAVAC_FLAGS
 805 BOOT_JDK_SOURCETARGET
 806 BOOT_JDK
 807 BOOT_TOOLSJAR
 808 BOOT_RTJAR
 809 JAVA_CHECK
 810 JAVAC_CHECK
 811 COOKED_BUILD_NUMBER
 812 COOKED_JDK_UPDATE_VERSION
 813 JDK_VERSION
 814 COPYRIGHT_YEAR
 815 MACOSX_BUNDLE_ID_BASE
 816 MACOSX_BUNDLE_NAME_BASE
 817 COMPANY_NAME
 818 JDK_RC_PLATFORM_NAME
 819 PRODUCT_SUFFIX
 820 PRODUCT_NAME
 821 LAUNCHER_NAME
 822 MILESTONE
 823 JDK_BUILD_NUMBER
 824 JDK_UPDATE_VERSION
 825 JDK_MICRO_VERSION
 826 JDK_MINOR_VERSION
 827 JDK_MAJOR_VERSION
 828 USER_RELEASE_SUFFIX
 829 COMPRESS_JARS
 830 UNLIMITED_CRYPTO
 831 CACERTS_FILE
 832 TEST_IN_BUILD
 833 BUILD_HEADLESS
 834 SUPPORT_HEADFUL
 835 SUPPORT_HEADLESS
 836 BDEPS_FTP
 837 BDEPS_UNZIP
 838 OS_VERSION_MICRO
 839 OS_VERSION_MINOR
 840 OS_VERSION_MAJOR
 841 PKG_CONFIG
 842 CODESIGN
 843 XATTR
 844 DSYMUTIL
 845 IS_GNU_TIME
 846 TIME
 847 STAT
 848 HG
 849 READELF
 850 LDD
 851 ZIP
 852 UNZIP
 853 FIND_DELETE
 854 MAKE
 855 CHECK_TOOLSDIR_MAKE
 856 CHECK_TOOLSDIR_GMAKE
 857 CHECK_MAKE
 858 CHECK_GMAKE
 859 PKGHANDLER
 860 OUTPUT_ROOT
 861 CONF_NAME
 862 SPEC
 863 BUILD_VARIANT_RELEASE
 864 DEBUG_CLASSFILES
 865 FASTDEBUG
 866 VARIANT
 867 DEBUG_LEVEL
 868 MACOSX_UNIVERSAL
 869 INCLUDE_SA
 870 JVM_VARIANT_CORE
 871 JVM_VARIANT_ZEROSHARK
 872 JVM_VARIANT_ZERO
 873 JVM_VARIANT_KERNEL
 874 JVM_VARIANT_MINIMAL1
 875 JVM_VARIANT_CLIENT
 876 JVM_VARIANT_SERVER
 877 JVM_VARIANTS
 878 JVM_INTERPRETER
 879 JDK_VARIANT
 880 SET_OPENJDK
 881 BUILD_LOG_WRAPPER
 882 BUILD_LOG_PREVIOUS
 883 BUILD_LOG
 884 SYS_ROOT
 885 PATH_SEP
 886 SRC_ROOT
 887 ZERO_ARCHDEF
 888 DEFINE_CROSS_COMPILE_ARCH
 889 LP64
 890 OPENJDK_TARGET_OS_EXPORT_DIR
 891 OPENJDK_TARGET_OS_API_DIR
 892 OPENJDK_TARGET_CPU_JLI_CFLAGS
 893 OPENJDK_TARGET_CPU_OSARCH
 894 OPENJDK_TARGET_CPU_ISADIR
 895 OPENJDK_TARGET_CPU_LIBDIR
 896 OPENJDK_TARGET_CPU_LEGACY_LIB
 897 OPENJDK_TARGET_CPU_LEGACY
 898 REQUIRED_OS_VERSION
 899 REQUIRED_OS_NAME
 900 COMPILE_TYPE
 901 OPENJDK_TARGET_CPU_ENDIAN
 902 OPENJDK_TARGET_CPU_BITS
 903 OPENJDK_TARGET_CPU_ARCH
 904 OPENJDK_TARGET_CPU
 905 OPENJDK_TARGET_OS_API
 906 OPENJDK_TARGET_OS
 907 OPENJDK_BUILD_CPU_ENDIAN
 908 OPENJDK_BUILD_CPU_BITS
 909 OPENJDK_BUILD_CPU_ARCH
 910 OPENJDK_BUILD_CPU
 911 OPENJDK_BUILD_OS_API
 912 OPENJDK_BUILD_OS
 913 OPENJDK_BUILD_AUTOCONF_NAME
 914 OPENJDK_TARGET_AUTOCONF_NAME
 915 target_os
 916 target_vendor
 917 target_cpu
 918 target
 919 host_os
 920 host_vendor
 921 host_cpu
 922 host
 923 build_os
 924 build_vendor
 925 build_cpu
 926 build
 927 SETFILE
 928 DF
 929 READLINK
 930 CYGPATH
 931 SED
 932 FGREP
 933 EGREP
 934 GREP
 935 AWK
 936 XARGS
 937 WHICH
 938 WC
 939 UNIQ
 940 UNAME
 941 TR
 942 TOUCH
 943 TEE
 944 TAR
 945 TAIL
 946 SORT
 947 SH
 948 RM
 949 PRINTF
 950 NAWK
 951 MV
 952 MKTEMP
 953 MKDIR
 954 LS
 955 LN
 956 HEAD
 957 FIND
 958 FILE
 959 EXPR
 960 ECHO
 961 DIRNAME
 962 DIFF
 963 DATE
 964 CUT
 965 CPIO
 966 CP
 967 COMM
 968 CMP
 969 CHMOD
 970 CAT
 971 BASH
 972 BASENAME
 973 DATE_WHEN_CONFIGURED
 974 CONFIGURE_COMMAND_LINE
 975 CUSTOM_MAKE_DIR
 976 target_alias
 977 host_alias
 978 build_alias
 979 LIBS
 980 ECHO_T
 981 ECHO_N
 982 ECHO_C
 983 DEFS
 984 mandir
 985 localedir
 986 libdir
 987 psdir
 988 pdfdir
 989 dvidir
 990 htmldir
 991 infodir
 992 docdir
 993 oldincludedir
 994 includedir
 995 localstatedir
 996 sharedstatedir
 997 sysconfdir
 998 datadir
 999 datarootdir
1000 libexecdir
1001 sbindir
1002 bindir
1003 program_transform_name
1004 prefix
1005 exec_prefix
1006 PACKAGE_URL
1007 PACKAGE_BUGREPORT
1008 PACKAGE_STRING
1009 PACKAGE_VERSION
1010 PACKAGE_TARNAME
1011 PACKAGE_NAME
1012 PATH_SEPARATOR
1013 SHELL'
1014 ac_subst_files=''
1015 ac_user_opts='
1016 enable_option_checking
1017 with_custom_make_dir
1018 with_target_bits
1019 with_sys_root
1020 with_tools_dir
1021 with_xcode_path
1022 with_devkit
1023 enable_openjdk_only
1024 with_jdk_variant
1025 with_jvm_interpreter
1026 with_jvm_variants
1027 enable_debug
1028 with_debug_level
1029 with_conf_name
1030 with_builddeps_conf
1031 with_builddeps_server
1032 with_builddeps_dir
1033 with_builddeps_group
1034 enable_headful
1035 enable_hotspot_test_in_build
1036 with_cacerts_file
1037 enable_unlimited_crypto
1038 with_milestone
1039 with_update_version
1040 with_user_release_suffix
1041 with_build_number
1042 with_copyright_year
1043 with_boot_jdk
1044 with_boot_jdk_jvmargs
1045 with_add_source_root
1046 with_override_source_root
1047 with_adds_and_overrides
1048 with_override_langtools
1049 with_override_corba
1050 with_override_jaxp
1051 with_override_jaxws
1052 with_override_hotspot
1053 with_override_nashorn
1054 with_override_jdk
1055 with_import_hotspot
1056 with_msvcr_dll
1057 with_dxsdk
1058 with_dxsdk_lib
1059 with_dxsdk_include
1060 with_jtreg
1061 with_extra_cflags
1062 with_extra_cxxflags
1063 with_extra_ldflags
1064 enable_debug_symbols
1065 enable_zip_debug_info
1066 enable_macosx_runtime_support
1067 with_x
1068 with_cups
1069 with_cups_include
1070 with_freetype
1071 with_freetype_include
1072 with_freetype_lib
1073 enable_freetype_bundling
1074 with_alsa
1075 with_alsa_include
1076 with_alsa_lib
1077 with_giflib
1078 with_zlib
1079 with_stdc__lib
1080 with_num_cores
1081 with_memory_size
1082 with_jobs
1083 with_sjavac_server_java
1084 enable_sjavac
1085 enable_precompiled_headers
1086 enable_ccache
1087 with_ccache_dir
1088 '
1089       ac_precious_vars='build_alias
1090 host_alias
1091 target_alias
1092 BASENAME
1093 BASH
1094 CAT
1095 CHMOD
1096 CMP
1097 COMM
1098 CP
1099 CPIO
1100 CUT
1101 DATE
1102 DIFF
1103 DIRNAME
1104 ECHO
1105 EXPR
1106 FILE
1107 FIND
1108 HEAD
1109 LN
1110 LS
1111 MKDIR
1112 MKTEMP
1113 MV
1114 NAWK
1115 PRINTF
1116 RM
1117 SH
1118 SORT
1119 TAIL
1120 TAR
1121 TEE
1122 TOUCH
1123 TR
1124 UNAME
1125 UNIQ
1126 WC
1127 WHICH
1128 XARGS
1129 AWK
1130 GREP
1131 EGREP
1132 FGREP
1133 SED
1134 CYGPATH
1135 READLINK
1136 DF
1137 SETFILE
1138 UNZIP
1139 ZIP
1140 LDD
1141 READELF
1142 HG
1143 STAT
1144 TIME
1145 DSYMUTIL
1146 XATTR
1147 CODESIGN
1148 PKG_CONFIG
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 JTREGEXE
1173 XMKMF
1174 FREETYPE_CFLAGS
1175 FREETYPE_LIBS
1176 ALSA_CFLAGS
1177 ALSA_LIBS
1178 LIBFFI_CFLAGS
1179 LIBFFI_LIBS
1180 CCACHE'
1181 
1182 
1183 # Initialize some variables set by options.
1184 ac_init_help=
1185 ac_init_version=false
1186 ac_unrecognized_opts=
1187 ac_unrecognized_sep=
1188 # The variables have the same names as the options, with
1189 # dashes changed to underlines.
1190 cache_file=/dev/null
1191 exec_prefix=NONE
1192 no_create=
1193 no_recursion=
1194 prefix=NONE
1195 program_prefix=NONE
1196 program_suffix=NONE
1197 program_transform_name=s,x,x,
1198 silent=
1199 site=
1200 srcdir=
1201 verbose=
1202 x_includes=NONE
1203 x_libraries=NONE
1204 
1205 # Installation directory options.
1206 # These are left unexpanded so users can "make install exec_prefix=/foo"
1207 # and all the variables that are supposed to be based on exec_prefix
1208 # by default will actually change.
1209 # Use braces instead of parens because sh, perl, etc. also accept them.
1210 # (The list follows the same order as the GNU Coding Standards.)
1211 bindir='${exec_prefix}/bin'
1212 sbindir='${exec_prefix}/sbin'
1213 libexecdir='${exec_prefix}/libexec'
1214 datarootdir='${prefix}/share'
1215 datadir='${datarootdir}'
1216 sysconfdir='${prefix}/etc'
1217 sharedstatedir='${prefix}/com'
1218 localstatedir='${prefix}/var'
1219 includedir='${prefix}/include'
1220 oldincludedir='/usr/include'
1221 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1222 infodir='${datarootdir}/info'
1223 htmldir='${docdir}'
1224 dvidir='${docdir}'
1225 pdfdir='${docdir}'
1226 psdir='${docdir}'
1227 libdir='${exec_prefix}/lib'
1228 localedir='${datarootdir}/locale'
1229 mandir='${datarootdir}/man'
1230 
1231 ac_prev=
1232 ac_dashdash=
1233 for ac_option
1234 do
1235   # If the previous option needs an argument, assign it.
1236   if test -n "$ac_prev"; then
1237     eval $ac_prev=\$ac_option
1238     ac_prev=
1239     continue
1240   fi
1241 
1242   case $ac_option in
1243   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1244   *=)   ac_optarg= ;;
1245   *)    ac_optarg=yes ;;
1246   esac
1247 
1248   # Accept the important Cygnus configure options, so we can diagnose typos.
1249 
1250   case $ac_dashdash$ac_option in
1251   --)
1252     ac_dashdash=yes ;;
1253 
1254   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1255     ac_prev=bindir ;;
1256   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1257     bindir=$ac_optarg ;;
1258 
1259   -build | --build | --buil | --bui | --bu)
1260     ac_prev=build_alias ;;
1261   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1262     build_alias=$ac_optarg ;;
1263 
1264   -cache-file | --cache-file | --cache-fil | --cache-fi \
1265   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1266     ac_prev=cache_file ;;
1267   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1268   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1269     cache_file=$ac_optarg ;;
1270 
1271   --config-cache | -C)
1272     cache_file=config.cache ;;
1273 
1274   -datadir | --datadir | --datadi | --datad)
1275     ac_prev=datadir ;;
1276   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1277     datadir=$ac_optarg ;;
1278 
1279   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1280   | --dataroo | --dataro | --datar)
1281     ac_prev=datarootdir ;;
1282   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1283   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1284     datarootdir=$ac_optarg ;;
1285 
1286   -disable-* | --disable-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       as_fn_error $? "invalid feature name: $ac_useropt"
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "enable_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval enable_$ac_useropt=no ;;
1301 
1302   -docdir | --docdir | --docdi | --doc | --do)
1303     ac_prev=docdir ;;
1304   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1305     docdir=$ac_optarg ;;
1306 
1307   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1308     ac_prev=dvidir ;;
1309   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1310     dvidir=$ac_optarg ;;
1311 
1312   -enable-* | --enable-*)
1313     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1314     # Reject names that are not valid shell variable names.
1315     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316       as_fn_error $? "invalid feature name: $ac_useropt"
1317     ac_useropt_orig=$ac_useropt
1318     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319     case $ac_user_opts in
1320       *"
1321 "enable_$ac_useropt"
1322 "*) ;;
1323       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1324          ac_unrecognized_sep=', ';;
1325     esac
1326     eval enable_$ac_useropt=\$ac_optarg ;;
1327 
1328   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1329   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1330   | --exec | --exe | --ex)
1331     ac_prev=exec_prefix ;;
1332   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1333   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1334   | --exec=* | --exe=* | --ex=*)
1335     exec_prefix=$ac_optarg ;;
1336 
1337   -gas | --gas | --ga | --g)
1338     # Obsolete; use --with-gas.
1339     with_gas=yes ;;
1340 
1341   -help | --help | --hel | --he | -h)
1342     ac_init_help=long ;;
1343   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1344     ac_init_help=recursive ;;
1345   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1346     ac_init_help=short ;;
1347 
1348   -host | --host | --hos | --ho)
1349     ac_prev=host_alias ;;
1350   -host=* | --host=* | --hos=* | --ho=*)
1351     host_alias=$ac_optarg ;;
1352 
1353   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1354     ac_prev=htmldir ;;
1355   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1356   | --ht=*)
1357     htmldir=$ac_optarg ;;
1358 
1359   -includedir | --includedir | --includedi | --included | --include \
1360   | --includ | --inclu | --incl | --inc)
1361     ac_prev=includedir ;;
1362   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1363   | --includ=* | --inclu=* | --incl=* | --inc=*)
1364     includedir=$ac_optarg ;;
1365 
1366   -infodir | --infodir | --infodi | --infod | --info | --inf)
1367     ac_prev=infodir ;;
1368   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1369     infodir=$ac_optarg ;;
1370 
1371   -libdir | --libdir | --libdi | --libd)
1372     ac_prev=libdir ;;
1373   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1374     libdir=$ac_optarg ;;
1375 
1376   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1377   | --libexe | --libex | --libe)
1378     ac_prev=libexecdir ;;
1379   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1380   | --libexe=* | --libex=* | --libe=*)
1381     libexecdir=$ac_optarg ;;
1382 
1383   -localedir | --localedir | --localedi | --localed | --locale)
1384     ac_prev=localedir ;;
1385   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1386     localedir=$ac_optarg ;;
1387 
1388   -localstatedir | --localstatedir | --localstatedi | --localstated \
1389   | --localstate | --localstat | --localsta | --localst | --locals)
1390     ac_prev=localstatedir ;;
1391   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1392   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1393     localstatedir=$ac_optarg ;;
1394 
1395   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1396     ac_prev=mandir ;;
1397   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1398     mandir=$ac_optarg ;;
1399 
1400   -nfp | --nfp | --nf)
1401     # Obsolete; use --without-fp.
1402     with_fp=no ;;
1403 
1404   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1405   | --no-cr | --no-c | -n)
1406     no_create=yes ;;
1407 
1408   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1409   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1410     no_recursion=yes ;;
1411 
1412   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1413   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1414   | --oldin | --oldi | --old | --ol | --o)
1415     ac_prev=oldincludedir ;;
1416   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1417   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1418   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1419     oldincludedir=$ac_optarg ;;
1420 
1421   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1422     ac_prev=prefix ;;
1423   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1424     prefix=$ac_optarg ;;
1425 
1426   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1427   | --program-pre | --program-pr | --program-p)
1428     ac_prev=program_prefix ;;
1429   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1430   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1431     program_prefix=$ac_optarg ;;
1432 
1433   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1434   | --program-suf | --program-su | --program-s)
1435     ac_prev=program_suffix ;;
1436   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1437   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1438     program_suffix=$ac_optarg ;;
1439 
1440   -program-transform-name | --program-transform-name \
1441   | --program-transform-nam | --program-transform-na \
1442   | --program-transform-n | --program-transform- \
1443   | --program-transform | --program-transfor \
1444   | --program-transfo | --program-transf \
1445   | --program-trans | --program-tran \
1446   | --progr-tra | --program-tr | --program-t)
1447     ac_prev=program_transform_name ;;
1448   -program-transform-name=* | --program-transform-name=* \
1449   | --program-transform-nam=* | --program-transform-na=* \
1450   | --program-transform-n=* | --program-transform-=* \
1451   | --program-transform=* | --program-transfor=* \
1452   | --program-transfo=* | --program-transf=* \
1453   | --program-trans=* | --program-tran=* \
1454   | --progr-tra=* | --program-tr=* | --program-t=*)
1455     program_transform_name=$ac_optarg ;;
1456 
1457   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1458     ac_prev=pdfdir ;;
1459   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1460     pdfdir=$ac_optarg ;;
1461 
1462   -psdir | --psdir | --psdi | --psd | --ps)
1463     ac_prev=psdir ;;
1464   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1465     psdir=$ac_optarg ;;
1466 
1467   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468   | -silent | --silent | --silen | --sile | --sil)
1469     silent=yes ;;
1470 
1471   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1472     ac_prev=sbindir ;;
1473   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1474   | --sbi=* | --sb=*)
1475     sbindir=$ac_optarg ;;
1476 
1477   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1478   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1479   | --sharedst | --shareds | --shared | --share | --shar \
1480   | --sha | --sh)
1481     ac_prev=sharedstatedir ;;
1482   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1483   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1484   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1485   | --sha=* | --sh=*)
1486     sharedstatedir=$ac_optarg ;;
1487 
1488   -site | --site | --sit)
1489     ac_prev=site ;;
1490   -site=* | --site=* | --sit=*)
1491     site=$ac_optarg ;;
1492 
1493   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1494     ac_prev=srcdir ;;
1495   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1496     srcdir=$ac_optarg ;;
1497 
1498   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1499   | --syscon | --sysco | --sysc | --sys | --sy)
1500     ac_prev=sysconfdir ;;
1501   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1502   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1503     sysconfdir=$ac_optarg ;;
1504 
1505   -target | --target | --targe | --targ | --tar | --ta | --t)
1506     ac_prev=target_alias ;;
1507   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1508     target_alias=$ac_optarg ;;
1509 
1510   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1511     verbose=yes ;;
1512 
1513   -version | --version | --versio | --versi | --vers | -V)
1514     ac_init_version=: ;;
1515 
1516   -with-* | --with-*)
1517     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1518     # Reject names that are not valid shell variable names.
1519     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1520       as_fn_error $? "invalid package name: $ac_useropt"
1521     ac_useropt_orig=$ac_useropt
1522     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1523     case $ac_user_opts in
1524       *"
1525 "with_$ac_useropt"
1526 "*) ;;
1527       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1528          ac_unrecognized_sep=', ';;
1529     esac
1530     eval with_$ac_useropt=\$ac_optarg ;;
1531 
1532   -without-* | --without-*)
1533     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1534     # Reject names that are not valid shell variable names.
1535     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536       as_fn_error $? "invalid package name: $ac_useropt"
1537     ac_useropt_orig=$ac_useropt
1538     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539     case $ac_user_opts in
1540       *"
1541 "with_$ac_useropt"
1542 "*) ;;
1543       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1544          ac_unrecognized_sep=', ';;
1545     esac
1546     eval with_$ac_useropt=no ;;
1547 
1548   --x)
1549     # Obsolete; use --with-x.
1550     with_x=yes ;;
1551 
1552   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1553   | --x-incl | --x-inc | --x-in | --x-i)
1554     ac_prev=x_includes ;;
1555   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1556   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1557     x_includes=$ac_optarg ;;
1558 
1559   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1560   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1561     ac_prev=x_libraries ;;
1562   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1563   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1564     x_libraries=$ac_optarg ;;
1565 
1566   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1567 Try \`$0 --help' for more information"
1568     ;;
1569 
1570   *=*)
1571     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1572     # Reject names that are not valid shell variable names.
1573     case $ac_envvar in #(
1574       '' | [0-9]* | *[!_$as_cr_alnum]* )
1575       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1576     esac
1577     eval $ac_envvar=\$ac_optarg
1578     export $ac_envvar ;;
1579 
1580   *)
1581     # FIXME: should be removed in autoconf 3.0.
1582     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1583     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1584       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1585     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1586     ;;
1587 
1588   esac
1589 done
1590 
1591 if test -n "$ac_prev"; then
1592   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1593   as_fn_error $? "missing argument to $ac_option"
1594 fi
1595 
1596 if test -n "$ac_unrecognized_opts"; then
1597   case $enable_option_checking in
1598     no) ;;
1599     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1600     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1601   esac
1602 fi
1603 
1604 # Check all directory arguments for consistency.
1605 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1606                 datadir sysconfdir sharedstatedir localstatedir includedir \
1607                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1608                 libdir localedir mandir
1609 do
1610   eval ac_val=\$$ac_var
1611   # Remove trailing slashes.
1612   case $ac_val in
1613     */ )
1614       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1615       eval $ac_var=\$ac_val;;
1616   esac
1617   # Be sure to have absolute directory names.
1618   case $ac_val in
1619     [\\/$]* | ?:[\\/]* )  continue;;
1620     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1621   esac
1622   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1623 done
1624 
1625 # There might be people who depend on the old broken behavior: `$host'
1626 # used to hold the argument of --host etc.
1627 # FIXME: To remove some day.
1628 build=$build_alias
1629 host=$host_alias
1630 target=$target_alias
1631 
1632 # FIXME: To remove some day.
1633 if test "x$host_alias" != x; then
1634   if test "x$build_alias" = x; then
1635     cross_compiling=maybe
1636   elif test "x$build_alias" != "x$host_alias"; then
1637     cross_compiling=yes
1638   fi
1639 fi
1640 
1641 ac_tool_prefix=
1642 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1643 
1644 test "$silent" = yes && exec 6>/dev/null
1645 
1646 
1647 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1648 ac_ls_di=`ls -di .` &&
1649 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1650   as_fn_error $? "working directory cannot be determined"
1651 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1652   as_fn_error $? "pwd does not report name of working directory"
1653 
1654 
1655 # Find the source files, if location was not specified.
1656 if test -z "$srcdir"; then
1657   ac_srcdir_defaulted=yes
1658   # Try the directory containing this script, then the parent directory.
1659   ac_confdir=`$as_dirname -- "$as_myself" ||
1660 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1661          X"$as_myself" : 'X\(//\)[^/]' \| \
1662          X"$as_myself" : 'X\(//\)$' \| \
1663          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1664 $as_echo X"$as_myself" |
1665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1666             s//\1/
1667             q
1668           }
1669           /^X\(\/\/\)[^/].*/{
1670             s//\1/
1671             q
1672           }
1673           /^X\(\/\/\)$/{
1674             s//\1/
1675             q
1676           }
1677           /^X\(\/\).*/{
1678             s//\1/
1679             q
1680           }
1681           s/.*/./; q'`
1682   srcdir=$ac_confdir
1683   if test ! -r "$srcdir/$ac_unique_file"; then
1684     srcdir=..
1685   fi
1686 else
1687   ac_srcdir_defaulted=no
1688 fi
1689 if test ! -r "$srcdir/$ac_unique_file"; then
1690   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1691   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1692 fi
1693 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1694 ac_abs_confdir=`(
1695         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1696         pwd)`
1697 # When building in place, set srcdir=.
1698 if test "$ac_abs_confdir" = "$ac_pwd"; then
1699   srcdir=.
1700 fi
1701 # Remove unnecessary trailing slashes from srcdir.
1702 # Double slashes in file names in object file debugging info
1703 # mess up M-x gdb in Emacs.
1704 case $srcdir in
1705 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1706 esac
1707 for ac_var in $ac_precious_vars; do
1708   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1709   eval ac_env_${ac_var}_value=\$${ac_var}
1710   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1711   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1712 done
1713 
1714 #
1715 # Report the --help message.
1716 #
1717 if test "$ac_init_help" = "long"; then
1718   # Omit some internal or obsolete options to make the list less imposing.
1719   # This message is too long to be a string in the A/UX 3.1 sh.
1720   cat <<_ACEOF
1721 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1722 
1723 Usage: $0 [OPTION]... [VAR=VALUE]...
1724 
1725 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1726 VAR=VALUE.  See below for descriptions of some of the useful variables.
1727 
1728 Defaults for the options are specified in brackets.
1729 
1730 Configuration:
1731   -h, --help              display this help and exit
1732       --help=short        display options specific to this package
1733       --help=recursive    display the short help of all the included packages
1734   -V, --version           display version information and exit
1735   -q, --quiet, --silent   do not print \`checking ...' messages
1736       --cache-file=FILE   cache test results in FILE [disabled]
1737   -C, --config-cache      alias for \`--cache-file=config.cache'
1738   -n, --no-create         do not create output files
1739       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1740 
1741 Installation directories:
1742   --prefix=PREFIX         install architecture-independent files in PREFIX
1743                           [$ac_default_prefix]
1744   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1745                           [PREFIX]
1746 
1747 By default, \`make install' will install all the files in
1748 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1749 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1750 for instance \`--prefix=\$HOME'.
1751 
1752 For better control, use the options below.
1753 
1754 Fine tuning of the installation directories:
1755   --bindir=DIR            user executables [EPREFIX/bin]
1756   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1757   --libexecdir=DIR        program executables [EPREFIX/libexec]
1758   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1759   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1760   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1761   --libdir=DIR            object code libraries [EPREFIX/lib]
1762   --includedir=DIR        C header files [PREFIX/include]
1763   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1764   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1765   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1766   --infodir=DIR           info documentation [DATAROOTDIR/info]
1767   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1768   --mandir=DIR            man documentation [DATAROOTDIR/man]
1769   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1770   --htmldir=DIR           html documentation [DOCDIR]
1771   --dvidir=DIR            dvi documentation [DOCDIR]
1772   --pdfdir=DIR            pdf documentation [DOCDIR]
1773   --psdir=DIR             ps documentation [DOCDIR]
1774 _ACEOF
1775 
1776   cat <<\_ACEOF
1777 
1778 X features:
1779   --x-includes=DIR    X include files are in DIR
1780   --x-libraries=DIR   X library files are in DIR
1781 
1782 System types:
1783   --build=BUILD     configure for building on BUILD [guessed]
1784   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1785   --target=TARGET   configure for building compilers for TARGET [HOST]
1786 _ACEOF
1787 fi
1788 
1789 if test -n "$ac_init_help"; then
1790   case $ac_init_help in
1791      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1792    esac
1793   cat <<\_ACEOF
1794 
1795 Optional Features:
1796   --disable-option-checking  ignore unrecognized --enable/--with options
1797   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1798   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1799   --enable-openjdk-only   suppress building custom source even if present
1800                           [disabled]
1801   --enable-debug          set the debug level to fastdebug (shorthand for
1802                           --with-debug-level=fastdebug) [disabled]
1803   --disable-headful       disable building headful support (graphical UI
1804                           support) [enabled]
1805   --enable-hotspot-test-in-build
1806                           run the Queens test after Hotspot build [disabled]
1807   --enable-unlimited-crypto
1808                           Enable unlimited crypto policy [disabled]
1809   --disable-debug-symbols disable generation of debug symbols [enabled]
1810   --disable-zip-debug-info
1811                           disable zipping of debug-info files [enabled]
1812   --enable-macosx-runtime-support
1813                           Deprecated. Option is kept for backwards
1814                           compatibility and is ignored
1815   --disable-freetype-bundling
1816                           disable bundling of the freetype library with the
1817                           build result [enabled on Windows or when using
1818                           --with-freetype, disabled otherwise]
1819   --enable-sjavac         use sjavac to do fast incremental compiles
1820                           [disabled]
1821   --disable-precompiled-headers
1822                           disable using precompiled headers when compiling C++
1823                           [enabled]
1824   --enable-ccache         enable using ccache to speed up recompilations
1825                           [disabled]
1826 
1827 Optional Packages:
1828   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1829   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1830   --with-custom-make-dir  use this directory for custom build/make files
1831   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1832                           support it), e.g. --with-target-bits=32 [guessed]
1833   --with-sys-root         pass this sys-root to the compilers and tools (for
1834                           cross-compiling)
1835   --with-tools-dir        search this directory for compilers and tools (for
1836                           cross-compiling)
1837   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1838                           10.9 and later)
1839   --with-devkit           use this directory as base for tools-dir and
1840                           sys-root (for cross-compiling)
1841   --with-jdk-variant      JDK variant to build (normal) [normal]
1842   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1843   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1844                           client, minimal1, kernel, zero, zeroshark, core)
1845                           [server]
1846   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1847                           [release]
1848   --with-conf-name        use this as the name of the configuration [generated
1849                           from important configuration options]
1850   --with-builddeps-conf   use this configuration file for the builddeps
1851   --with-builddeps-server download and use build dependencies from this server
1852                           url
1853   --with-builddeps-dir    store downloaded build dependencies here
1854                           [/localhome/builddeps]
1855   --with-builddeps-group  chgrp the downloaded build dependencies to this
1856                           group
1857   --with-cacerts-file     specify alternative cacerts file
1858   --with-milestone        Set milestone value for build [internal]
1859   --with-update-version   Set update version value for build [b00]
1860   --with-user-release-suffix
1861                           Add a custom string to the version string if build
1862                           number isn't set.[username_builddateb00]
1863   --with-build-number     Set build number value for build [b00]
1864   --with-copyright-year   Set copyright year value for build [current year]
1865   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1866   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1867                           invocations of the Boot JDK, overriding the default
1868                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1869                           -enableassertions"
1870   --with-add-source-root  for each and every source directory, look in this
1871                           additional source root for the same directory; if it
1872                           exists and have files in it, include it in the build
1873   --with-override-source-root
1874                           for each and every source directory, look in this
1875                           override source root for the same directory; if it
1876                           exists, use that directory instead and ignore the
1877                           directory in the original source root
1878   --with-adds-and-overrides
1879                           use the subdirs 'adds' and 'overrides' in the
1880                           specified directory as add-source-root and
1881                           override-source-root
1882   --with-override-langtools
1883                           use this langtools dir for the build
1884   --with-override-corba   use this corba dir for the build
1885   --with-override-jaxp    use this jaxp dir for the build
1886   --with-override-jaxws   use this jaxws dir for the build
1887   --with-override-hotspot use this hotspot dir for the build
1888   --with-override-nashorn use this nashorn dir for the build
1889   --with-override-jdk     use this jdk dir for the build
1890   --with-import-hotspot   import hotspot binaries from this jdk image or
1891                           hotspot build dist dir instead of building from
1892                           source
1893   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1894                           only) [probed]
1895   --with-dxsdk            Deprecated. Option is kept for backwards
1896                           compatibility and is ignored
1897   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1898                           compatibility and is ignored
1899   --with-dxsdk-include    Deprecated. Option is kept for backwards
1900                           compatibility and is ignored
1901   --with-jtreg            Regression Test Harness [probed]
1902   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1903   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1904   --with-extra-ldflags    extra flags to be used when linking jdk
1905   --with-x                use the X Window System
1906   --with-cups             specify prefix directory for the cups package
1907                           (expecting the headers under PATH/include)
1908   --with-cups-include     specify directory for the cups include files
1909   --with-freetype         specify prefix directory for the freetype package
1910                           (expecting the libraries under PATH/lib and the
1911                           headers under PATH/include)
1912   --with-freetype-include specify directory for the freetype include files
1913   --with-freetype-lib     specify directory for the freetype library
1914   --with-alsa             specify prefix directory for the alsa package
1915                           (expecting the libraries under PATH/lib and the
1916                           headers under PATH/include)
1917   --with-alsa-include     specify directory for the alsa include files
1918   --with-alsa-lib         specify directory for the alsa library
1919   --with-giflib           use giflib from build system or OpenJDK source
1920                           (system, bundled) [bundled]
1921   --with-zlib             use zlib from build system or OpenJDK source
1922                           (system, bundled) [bundled]
1923   --with-stdc++lib=<static>,<dynamic>,<default>
1924                           force linking of the C++ runtime on Linux to either
1925                           static or dynamic, default is static with dynamic as
1926                           fallback
1927   --with-num-cores        number of cores in the build system, e.g.
1928                           --with-num-cores=8 [probed]
1929   --with-memory-size      memory (in MB) available in the build system, e.g.
1930                           --with-memory-size=1024 [probed]
1931   --with-jobs             number of parallel jobs to let make run [calculated
1932                           based on cores and memory]
1933   --with-sjavac-server-java
1934                           use this java binary for running the sjavac
1935                           background server [Boot JDK java]
1936   --with-ccache-dir       where to store ccache files [~/.ccache]
1937 
1938 Some influential environment variables:
1939   BASENAME    Override default value for BASENAME
1940   BASH        Override default value for BASH
1941   CAT         Override default value for CAT
1942   CHMOD       Override default value for CHMOD
1943   CMP         Override default value for CMP
1944   COMM        Override default value for COMM
1945   CP          Override default value for CP
1946   CPIO        Override default value for CPIO
1947   CUT         Override default value for CUT
1948   DATE        Override default value for DATE
1949   DIFF        Override default value for DIFF
1950   DIRNAME     Override default value for DIRNAME
1951   ECHO        Override default value for ECHO
1952   EXPR        Override default value for EXPR
1953   FILE        Override default value for FILE
1954   FIND        Override default value for FIND
1955   HEAD        Override default value for HEAD
1956   LN          Override default value for LN
1957   LS          Override default value for LS
1958   MKDIR       Override default value for MKDIR
1959   MKTEMP      Override default value for MKTEMP
1960   MV          Override default value for MV
1961   NAWK        Override default value for NAWK
1962   PRINTF      Override default value for PRINTF
1963   RM          Override default value for RM
1964   SH          Override default value for SH
1965   SORT        Override default value for SORT
1966   TAIL        Override default value for TAIL
1967   TAR         Override default value for TAR
1968   TEE         Override default value for TEE
1969   TOUCH       Override default value for TOUCH
1970   TR          Override default value for TR
1971   UNAME       Override default value for UNAME
1972   UNIQ        Override default value for UNIQ
1973   WC          Override default value for WC
1974   WHICH       Override default value for WHICH
1975   XARGS       Override default value for XARGS
1976   AWK         Override default value for AWK
1977   GREP        Override default value for GREP
1978   EGREP       Override default value for EGREP
1979   FGREP       Override default value for FGREP
1980   SED         Override default value for SED
1981   CYGPATH     Override default value for CYGPATH
1982   READLINK    Override default value for READLINK
1983   DF          Override default value for DF
1984   SETFILE     Override default value for SETFILE
1985   UNZIP       Override default value for UNZIP
1986   ZIP         Override default value for ZIP
1987   LDD         Override default value for LDD
1988   READELF     Override default value for READELF
1989   HG          Override default value for HG
1990   STAT        Override default value for STAT
1991   TIME        Override default value for TIME
1992   DSYMUTIL    Override default value for DSYMUTIL
1993   XATTR       Override default value for XATTR
1994   CODESIGN    Override default value for CODESIGN
1995   PKG_CONFIG  path to pkg-config utility
1996   BUILD_CC    Override default value for BUILD_CC
1997   BUILD_CXX   Override default value for BUILD_CXX
1998   BUILD_LD    Override default value for BUILD_LD
1999   CC          C compiler command
2000   CFLAGS      C compiler flags
2001   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2002               nonstandard directory <lib dir>
2003   LIBS        libraries to pass to the linker, e.g. -l<library>
2004   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2005               you have headers in a nonstandard directory <include dir>
2006   CXX         C++ compiler command
2007   CXXFLAGS    C++ compiler flags
2008   OBJC        Objective C compiler command
2009   OBJCFLAGS   Objective C compiler flags
2010   AR          Override default value for AR
2011   CPP         C preprocessor
2012   CXXCPP      C++ preprocessor
2013   AS          Override default value for AS
2014   NM          Override default value for NM
2015   GNM         Override default value for GNM
2016   STRIP       Override default value for STRIP
2017   MCS         Override default value for MCS
2018   OBJCOPY     Override default value for OBJCOPY
2019   OBJDUMP     Override default value for OBJDUMP
2020   JTREGEXE    Override default value for JTREGEXE
2021   XMKMF       Path to xmkmf, Makefile generator for X Window System
2022   FREETYPE_CFLAGS
2023               C compiler flags for FREETYPE, overriding pkg-config
2024   FREETYPE_LIBS
2025               linker flags for FREETYPE, overriding pkg-config
2026   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2027   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2028   LIBFFI_CFLAGS
2029               C compiler flags for LIBFFI, overriding pkg-config
2030   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2031   CCACHE      Override default value for CCACHE
2032 
2033 Use these variables to override the choices made by `configure' or to help
2034 it to find libraries and programs with nonstandard names/locations.
2035 
2036 Report bugs to <build-dev@openjdk.java.net>.
2037 OpenJDK home page: <http://openjdk.java.net>.
2038 _ACEOF
2039 ac_status=$?
2040 fi
2041 
2042 if test "$ac_init_help" = "recursive"; then
2043   # If there are subdirs, report their specific --help.
2044   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2045     test -d "$ac_dir" ||
2046       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2047       continue
2048     ac_builddir=.
2049 
2050 case "$ac_dir" in
2051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2052 *)
2053   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2054   # A ".." for each directory in $ac_dir_suffix.
2055   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2056   case $ac_top_builddir_sub in
2057   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2058   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2059   esac ;;
2060 esac
2061 ac_abs_top_builddir=$ac_pwd
2062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2063 # for backward compatibility:
2064 ac_top_builddir=$ac_top_build_prefix
2065 
2066 case $srcdir in
2067   .)  # We are building in place.
2068     ac_srcdir=.
2069     ac_top_srcdir=$ac_top_builddir_sub
2070     ac_abs_top_srcdir=$ac_pwd ;;
2071   [\\/]* | ?:[\\/]* )  # Absolute name.
2072     ac_srcdir=$srcdir$ac_dir_suffix;
2073     ac_top_srcdir=$srcdir
2074     ac_abs_top_srcdir=$srcdir ;;
2075   *) # Relative name.
2076     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2077     ac_top_srcdir=$ac_top_build_prefix$srcdir
2078     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2079 esac
2080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2081 
2082     cd "$ac_dir" || { ac_status=$?; continue; }
2083     # Check for guested configure.
2084     if test -f "$ac_srcdir/configure.gnu"; then
2085       echo &&
2086       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2087     elif test -f "$ac_srcdir/configure"; then
2088       echo &&
2089       $SHELL "$ac_srcdir/configure" --help=recursive
2090     else
2091       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2092     fi || ac_status=$?
2093     cd "$ac_pwd" || { ac_status=$?; break; }
2094   done
2095 fi
2096 
2097 test -n "$ac_init_help" && exit $ac_status
2098 if $ac_init_version; then
2099   cat <<\_ACEOF
2100 OpenJDK configure jdk8
2101 generated by GNU Autoconf 2.69
2102 
2103 Copyright (C) 2012 Free Software Foundation, Inc.
2104 This configure script is free software; the Free Software Foundation
2105 gives unlimited permission to copy, distribute and modify it.
2106 _ACEOF
2107   exit
2108 fi
2109 
2110 ## ------------------------ ##
2111 ## Autoconf initialization. ##
2112 ## ------------------------ ##
2113 
2114 # ac_fn_c_try_compile LINENO
2115 # --------------------------
2116 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2117 ac_fn_c_try_compile ()
2118 {
2119   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120   rm -f conftest.$ac_objext
2121   if { { ac_try="$ac_compile"
2122 case "(($ac_try" in
2123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124   *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128   (eval "$ac_compile") 2>conftest.err
2129   ac_status=$?
2130   if test -s conftest.err; then
2131     grep -v '^ *+' conftest.err >conftest.er1
2132     cat conftest.er1 >&5
2133     mv -f conftest.er1 conftest.err
2134   fi
2135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136   test $ac_status = 0; } && {
2137          test -z "$ac_c_werror_flag" ||
2138          test ! -s conftest.err
2139        } && test -s conftest.$ac_objext; then :
2140   ac_retval=0
2141 else
2142   $as_echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2144 
2145         ac_retval=1
2146 fi
2147   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148   as_fn_set_status $ac_retval
2149 
2150 } # ac_fn_c_try_compile
2151 
2152 # ac_fn_cxx_try_compile LINENO
2153 # ----------------------------
2154 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2155 ac_fn_cxx_try_compile ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   rm -f conftest.$ac_objext
2159   if { { ac_try="$ac_compile"
2160 case "(($ac_try" in
2161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162   *) ac_try_echo=$ac_try;;
2163 esac
2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165 $as_echo "$ac_try_echo"; } >&5
2166   (eval "$ac_compile") 2>conftest.err
2167   ac_status=$?
2168   if test -s conftest.err; then
2169     grep -v '^ *+' conftest.err >conftest.er1
2170     cat conftest.er1 >&5
2171     mv -f conftest.er1 conftest.err
2172   fi
2173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174   test $ac_status = 0; } && {
2175          test -z "$ac_cxx_werror_flag" ||
2176          test ! -s conftest.err
2177        } && test -s conftest.$ac_objext; then :
2178   ac_retval=0
2179 else
2180   $as_echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2182 
2183         ac_retval=1
2184 fi
2185   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186   as_fn_set_status $ac_retval
2187 
2188 } # ac_fn_cxx_try_compile
2189 
2190 # ac_fn_objc_try_compile LINENO
2191 # -----------------------------
2192 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_objc_try_compile ()
2194 {
2195   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196   rm -f conftest.$ac_objext
2197   if { { ac_try="$ac_compile"
2198 case "(($ac_try" in
2199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200   *) ac_try_echo=$ac_try;;
2201 esac
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204   (eval "$ac_compile") 2>conftest.err
2205   ac_status=$?
2206   if test -s conftest.err; then
2207     grep -v '^ *+' conftest.err >conftest.er1
2208     cat conftest.er1 >&5
2209     mv -f conftest.er1 conftest.err
2210   fi
2211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212   test $ac_status = 0; } && {
2213          test -z "$ac_objc_werror_flag" ||
2214          test ! -s conftest.err
2215        } && test -s conftest.$ac_objext; then :
2216   ac_retval=0
2217 else
2218   $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220 
2221         ac_retval=1
2222 fi
2223   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224   as_fn_set_status $ac_retval
2225 
2226 } # ac_fn_objc_try_compile
2227 
2228 # ac_fn_c_try_cpp LINENO
2229 # ----------------------
2230 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2231 ac_fn_c_try_cpp ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   if { { ac_try="$ac_cpp conftest.$ac_ext"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2242   ac_status=$?
2243   if test -s conftest.err; then
2244     grep -v '^ *+' conftest.err >conftest.er1
2245     cat conftest.er1 >&5
2246     mv -f conftest.er1 conftest.err
2247   fi
2248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249   test $ac_status = 0; } > conftest.i && {
2250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2251          test ! -s conftest.err
2252        }; then :
2253   ac_retval=0
2254 else
2255   $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257 
2258     ac_retval=1
2259 fi
2260   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261   as_fn_set_status $ac_retval
2262 
2263 } # ac_fn_c_try_cpp
2264 
2265 # ac_fn_cxx_try_cpp LINENO
2266 # ------------------------
2267 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2268 ac_fn_cxx_try_cpp ()
2269 {
2270   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271   if { { ac_try="$ac_cpp conftest.$ac_ext"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2279   ac_status=$?
2280   if test -s conftest.err; then
2281     grep -v '^ *+' conftest.err >conftest.er1
2282     cat conftest.er1 >&5
2283     mv -f conftest.er1 conftest.err
2284   fi
2285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286   test $ac_status = 0; } > conftest.i && {
2287          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2288          test ! -s conftest.err
2289        }; then :
2290   ac_retval=0
2291 else
2292   $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294 
2295     ac_retval=1
2296 fi
2297   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298   as_fn_set_status $ac_retval
2299 
2300 } # ac_fn_cxx_try_cpp
2301 
2302 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2303 # ---------------------------------------------------------
2304 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2305 # the include files in INCLUDES and setting the cache variable VAR
2306 # accordingly.
2307 ac_fn_cxx_check_header_mongrel ()
2308 {
2309   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310   if eval \${$3+:} false; then :
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if eval \${$3+:} false; then :
2314   $as_echo_n "(cached) " >&6
2315 fi
2316 eval ac_res=\$$3
2317                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 else
2320   # Is the header compilable?
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2322 $as_echo_n "checking $2 usability... " >&6; }
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 #include <$2>
2327 _ACEOF
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329   ac_header_compiler=yes
2330 else
2331   ac_header_compiler=no
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2335 $as_echo "$ac_header_compiler" >&6; }
2336 
2337 # Is the header present?
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2339 $as_echo_n "checking $2 presence... " >&6; }
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h.  */
2342 #include <$2>
2343 _ACEOF
2344 if ac_fn_cxx_try_cpp "$LINENO"; then :
2345   ac_header_preproc=yes
2346 else
2347   ac_header_preproc=no
2348 fi
2349 rm -f conftest.err conftest.i conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2351 $as_echo "$ac_header_preproc" >&6; }
2352 
2353 # So?  What about this header?
2354 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2355   yes:no: )
2356     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2357 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2360     ;;
2361   no:yes:* )
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2363 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2365 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2366     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2367 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2368     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2369 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2370     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2372 ( $as_echo "## ----------------------------------------- ##
2373 ## Report this to build-dev@openjdk.java.net ##
2374 ## ----------------------------------------- ##"
2375      ) | sed "s/^/$as_me: WARNING:     /" >&2
2376     ;;
2377 esac
2378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 $as_echo_n "checking for $2... " >&6; }
2380 if eval \${$3+:} false; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   eval "$3=\$ac_header_compiler"
2384 fi
2385 eval ac_res=\$$3
2386                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 fi
2389   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 
2391 } # ac_fn_cxx_check_header_mongrel
2392 
2393 # ac_fn_cxx_try_run LINENO
2394 # ------------------------
2395 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2396 # that executables *can* be run.
2397 ac_fn_cxx_try_run ()
2398 {
2399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400   if { { ac_try="$ac_link"
2401 case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407   (eval "$ac_link") 2>&5
2408   ac_status=$?
2409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2411   { { case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417   (eval "$ac_try") 2>&5
2418   ac_status=$?
2419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2420   test $ac_status = 0; }; }; then :
2421   ac_retval=0
2422 else
2423   $as_echo "$as_me: program exited with status $ac_status" >&5
2424        $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426 
2427        ac_retval=$ac_status
2428 fi
2429   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2430   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431   as_fn_set_status $ac_retval
2432 
2433 } # ac_fn_cxx_try_run
2434 
2435 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2436 # ---------------------------------------------------------
2437 # Tests whether HEADER exists and can be compiled using the include files in
2438 # INCLUDES, setting the cache variable VAR accordingly.
2439 ac_fn_cxx_check_header_compile ()
2440 {
2441   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if eval \${$3+:} false; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 $4
2450 #include <$2>
2451 _ACEOF
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2453   eval "$3=yes"
2454 else
2455   eval "$3=no"
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 eval ac_res=\$$3
2460                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 
2464 } # ac_fn_cxx_check_header_compile
2465 
2466 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2467 # ----------------------------------------------
2468 # Tries to find the compile-time value of EXPR in a program that includes
2469 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2470 # computed
2471 ac_fn_cxx_compute_int ()
2472 {
2473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474   if test "$cross_compiling" = yes; then
2475     # Depending upon the size, compute the lo and hi bounds.
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h.  */
2478 $4
2479 int
2480 main ()
2481 {
2482 static int test_array [1 - 2 * !(($2) >= 0)];
2483 test_array [0] = 0;
2484 return test_array [0];
2485 
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 if ac_fn_cxx_try_compile "$LINENO"; then :
2491   ac_lo=0 ac_mid=0
2492   while :; do
2493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h.  */
2495 $4
2496 int
2497 main ()
2498 {
2499 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2500 test_array [0] = 0;
2501 return test_array [0];
2502 
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2508   ac_hi=$ac_mid; break
2509 else
2510   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2511                         if test $ac_lo -le $ac_mid; then
2512                           ac_lo= ac_hi=
2513                           break
2514                         fi
2515                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518   done
2519 else
2520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h.  */
2522 $4
2523 int
2524 main ()
2525 {
2526 static int test_array [1 - 2 * !(($2) < 0)];
2527 test_array [0] = 0;
2528 return test_array [0];
2529 
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 if ac_fn_cxx_try_compile "$LINENO"; then :
2535   ac_hi=-1 ac_mid=-1
2536   while :; do
2537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 int
2541 main ()
2542 {
2543 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2544 test_array [0] = 0;
2545 return test_array [0];
2546 
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_cxx_try_compile "$LINENO"; then :
2552   ac_lo=$ac_mid; break
2553 else
2554   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2555                         if test $ac_mid -le $ac_hi; then
2556                           ac_lo= ac_hi=
2557                           break
2558                         fi
2559                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2560 fi
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562   done
2563 else
2564   ac_lo= ac_hi=
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 # Binary search between lo and hi bounds.
2570 while test "x$ac_lo" != "x$ac_hi"; do
2571   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $4
2575 int
2576 main ()
2577 {
2578 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2579 test_array [0] = 0;
2580 return test_array [0];
2581 
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_cxx_try_compile "$LINENO"; then :
2587   ac_hi=$ac_mid
2588 else
2589   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 done
2593 case $ac_lo in #((
2594 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2595 '') ac_retval=1 ;;
2596 esac
2597   else
2598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h.  */
2600 $4
2601 static long int longval () { return $2; }
2602 static unsigned long int ulongval () { return $2; }
2603 #include <stdio.h>
2604 #include <stdlib.h>
2605 int
2606 main ()
2607 {
2608 
2609   FILE *f = fopen ("conftest.val", "w");
2610   if (! f)
2611     return 1;
2612   if (($2) < 0)
2613     {
2614       long int i = longval ();
2615       if (i != ($2))
2616         return 1;
2617       fprintf (f, "%ld", i);
2618     }
2619   else
2620     {
2621       unsigned long int i = ulongval ();
2622       if (i != ($2))
2623         return 1;
2624       fprintf (f, "%lu", i);
2625     }
2626   /* Do not output a trailing newline, as this causes \r\n confusion
2627      on some platforms.  */
2628   return ferror (f) || fclose (f) != 0;
2629 
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_cxx_try_run "$LINENO"; then :
2635   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2636 else
2637   ac_retval=1
2638 fi
2639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2640   conftest.$ac_objext conftest.beam conftest.$ac_ext
2641 rm -f conftest.val
2642 
2643   fi
2644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645   as_fn_set_status $ac_retval
2646 
2647 } # ac_fn_cxx_compute_int
2648 
2649 # ac_fn_cxx_try_link LINENO
2650 # -------------------------
2651 # Try to link conftest.$ac_ext, and return whether this succeeded.
2652 ac_fn_cxx_try_link ()
2653 {
2654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655   rm -f conftest.$ac_objext conftest$ac_exeext
2656   if { { ac_try="$ac_link"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663   (eval "$ac_link") 2>conftest.err
2664   ac_status=$?
2665   if test -s conftest.err; then
2666     grep -v '^ *+' conftest.err >conftest.er1
2667     cat conftest.er1 >&5
2668     mv -f conftest.er1 conftest.err
2669   fi
2670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671   test $ac_status = 0; } && {
2672          test -z "$ac_cxx_werror_flag" ||
2673          test ! -s conftest.err
2674        } && test -s conftest$ac_exeext && {
2675          test "$cross_compiling" = yes ||
2676          test -x conftest$ac_exeext
2677        }; then :
2678   ac_retval=0
2679 else
2680   $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682 
2683         ac_retval=1
2684 fi
2685   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2686   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2687   # interfere with the next link command; also delete a directory that is
2688   # left behind by Apple's compiler.  We do this before executing the actions.
2689   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2691   as_fn_set_status $ac_retval
2692 
2693 } # ac_fn_cxx_try_link
2694 
2695 # ac_fn_cxx_check_func LINENO FUNC VAR
2696 # ------------------------------------
2697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2698 ac_fn_cxx_check_func ()
2699 {
2700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704   $as_echo_n "(cached) " >&6
2705 else
2706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h.  */
2708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2710 #define $2 innocuous_$2
2711 
2712 /* System header to define __stub macros and hopefully few prototypes,
2713     which can conflict with char $2 (); below.
2714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2715     <limits.h> exists even on freestanding compilers.  */
2716 
2717 #ifdef __STDC__
2718 # include <limits.h>
2719 #else
2720 # include <assert.h>
2721 #endif
2722 
2723 #undef $2
2724 
2725 /* Override any GCC internal prototype to avoid an error.
2726    Use char because int might match the return type of a GCC
2727    builtin and then its argument prototype would still apply.  */
2728 #ifdef __cplusplus
2729 extern "C"
2730 #endif
2731 char $2 ();
2732 /* The GNU C library defines this for functions which it implements
2733     to always fail with ENOSYS.  Some functions are actually named
2734     something starting with __ and the normal name is an alias.  */
2735 #if defined __stub_$2 || defined __stub___$2
2736 choke me
2737 #endif
2738 
2739 int
2740 main ()
2741 {
2742 return $2 ();
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 if ac_fn_cxx_try_link "$LINENO"; then :
2748   eval "$3=yes"
2749 else
2750   eval "$3=no"
2751 fi
2752 rm -f core conftest.err conftest.$ac_objext \
2753     conftest$ac_exeext conftest.$ac_ext
2754 fi
2755 eval ac_res=\$$3
2756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759 
2760 } # ac_fn_cxx_check_func
2761 
2762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2763 # -------------------------------------------------------
2764 # Tests whether HEADER exists and can be compiled using the include files in
2765 # INCLUDES, setting the cache variable VAR accordingly.
2766 ac_fn_c_check_header_compile ()
2767 {
2768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if eval \${$3+:} false; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 $4
2777 #include <$2>
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2780   eval "$3=yes"
2781 else
2782   eval "$3=no"
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 
2791 } # ac_fn_c_check_header_compile
2792 cat >config.log <<_ACEOF
2793 This file contains any messages produced by compilers while
2794 running configure, to aid debugging if configure makes a mistake.
2795 
2796 It was created by OpenJDK $as_me jdk8, which was
2797 generated by GNU Autoconf 2.69.  Invocation command line was
2798 
2799   $ $0 $@
2800 
2801 _ACEOF
2802 exec 5>>config.log
2803 {
2804 cat <<_ASUNAME
2805 ## --------- ##
2806 ## Platform. ##
2807 ## --------- ##
2808 
2809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2810 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2811 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2812 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2813 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2814 
2815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2816 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2817 
2818 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2819 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2821 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2822 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2823 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2824 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2825 
2826 _ASUNAME
2827 
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     $as_echo "PATH: $as_dir"
2834   done
2835 IFS=$as_save_IFS
2836 
2837 } >&5
2838 
2839 cat >&5 <<_ACEOF
2840 
2841 
2842 ## ----------- ##
2843 ## Core tests. ##
2844 ## ----------- ##
2845 
2846 _ACEOF
2847 
2848 
2849 # Keep a trace of the command line.
2850 # Strip out --no-create and --no-recursion so they do not pile up.
2851 # Strip out --silent because we don't want to record it for future runs.
2852 # Also quote any args containing shell meta-characters.
2853 # Make two passes to allow for proper duplicate-argument suppression.
2854 ac_configure_args=
2855 ac_configure_args0=
2856 ac_configure_args1=
2857 ac_must_keep_next=false
2858 for ac_pass in 1 2
2859 do
2860   for ac_arg
2861   do
2862     case $ac_arg in
2863     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2864     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2865     | -silent | --silent | --silen | --sile | --sil)
2866       continue ;;
2867     *\'*)
2868       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2869     esac
2870     case $ac_pass in
2871     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2872     2)
2873       as_fn_append ac_configure_args1 " '$ac_arg'"
2874       if test $ac_must_keep_next = true; then
2875         ac_must_keep_next=false # Got value, back to normal.
2876       else
2877         case $ac_arg in
2878           *=* | --config-cache | -C | -disable-* | --disable-* \
2879           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2880           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2881           | -with-* | --with-* | -without-* | --without-* | --x)
2882             case "$ac_configure_args0 " in
2883               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2884             esac
2885             ;;
2886           -* ) ac_must_keep_next=true ;;
2887         esac
2888       fi
2889       as_fn_append ac_configure_args " '$ac_arg'"
2890       ;;
2891     esac
2892   done
2893 done
2894 { ac_configure_args0=; unset ac_configure_args0;}
2895 { ac_configure_args1=; unset ac_configure_args1;}
2896 
2897 # When interrupted or exit'd, cleanup temporary files, and complete
2898 # config.log.  We remove comments because anyway the quotes in there
2899 # would cause problems or look ugly.
2900 # WARNING: Use '\'' to represent an apostrophe within the trap.
2901 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2902 trap 'exit_status=$?
2903   # Save into config.log some information that might help in debugging.
2904   {
2905     echo
2906 
2907     $as_echo "## ---------------- ##
2908 ## Cache variables. ##
2909 ## ---------------- ##"
2910     echo
2911     # The following way of writing the cache mishandles newlines in values,
2912 (
2913   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2914     eval ac_val=\$$ac_var
2915     case $ac_val in #(
2916     *${as_nl}*)
2917       case $ac_var in #(
2918       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2920       esac
2921       case $ac_var in #(
2922       _ | IFS | as_nl) ;; #(
2923       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2924       *) { eval $ac_var=; unset $ac_var;} ;;
2925       esac ;;
2926     esac
2927   done
2928   (set) 2>&1 |
2929     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2930     *${as_nl}ac_space=\ *)
2931       sed -n \
2932         "s/'\''/'\''\\\\'\'''\''/g;
2933           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2934       ;; #(
2935     *)
2936       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2937       ;;
2938     esac |
2939     sort
2940 )
2941     echo
2942 
2943     $as_echo "## ----------------- ##
2944 ## Output variables. ##
2945 ## ----------------- ##"
2946     echo
2947     for ac_var in $ac_subst_vars
2948     do
2949       eval ac_val=\$$ac_var
2950       case $ac_val in
2951       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2952       esac
2953       $as_echo "$ac_var='\''$ac_val'\''"
2954     done | sort
2955     echo
2956 
2957     if test -n "$ac_subst_files"; then
2958       $as_echo "## ------------------- ##
2959 ## File substitutions. ##
2960 ## ------------------- ##"
2961       echo
2962       for ac_var in $ac_subst_files
2963       do
2964         eval ac_val=\$$ac_var
2965         case $ac_val in
2966         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2967         esac
2968         $as_echo "$ac_var='\''$ac_val'\''"
2969       done | sort
2970       echo
2971     fi
2972 
2973     if test -s confdefs.h; then
2974       $as_echo "## ----------- ##
2975 ## confdefs.h. ##
2976 ## ----------- ##"
2977       echo
2978       cat confdefs.h
2979       echo
2980     fi
2981     test "$ac_signal" != 0 &&
2982       $as_echo "$as_me: caught signal $ac_signal"
2983     $as_echo "$as_me: exit $exit_status"
2984   } >&5
2985   rm -f core *.core core.conftest.* &&
2986     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2987     exit $exit_status
2988 ' 0
2989 for ac_signal in 1 2 13 15; do
2990   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2991 done
2992 ac_signal=0
2993 
2994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2995 rm -f -r conftest* confdefs.h
2996 
2997 $as_echo "/* confdefs.h */" > confdefs.h
2998 
2999 # Predefined preprocessor variables.
3000 
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE_NAME "$PACKAGE_NAME"
3003 _ACEOF
3004 
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3007 _ACEOF
3008 
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3011 _ACEOF
3012 
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_STRING "$PACKAGE_STRING"
3015 _ACEOF
3016 
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3019 _ACEOF
3020 
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_URL "$PACKAGE_URL"
3023 _ACEOF
3024 
3025 
3026 # Let the site file select an alternate cache file if it wants to.
3027 # Prefer an explicitly selected file to automatically selected ones.
3028 ac_site_file1=NONE
3029 ac_site_file2=NONE
3030 if test -n "$CONFIG_SITE"; then
3031   # We do not want a PATH search for config.site.
3032   case $CONFIG_SITE in #((
3033     -*)  ac_site_file1=./$CONFIG_SITE;;
3034     */*) ac_site_file1=$CONFIG_SITE;;
3035     *)   ac_site_file1=./$CONFIG_SITE;;
3036   esac
3037 elif test "x$prefix" != xNONE; then
3038   ac_site_file1=$prefix/share/config.site
3039   ac_site_file2=$prefix/etc/config.site
3040 else
3041   ac_site_file1=$ac_default_prefix/share/config.site
3042   ac_site_file2=$ac_default_prefix/etc/config.site
3043 fi
3044 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3045 do
3046   test "x$ac_site_file" = xNONE && continue
3047   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3048     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3049 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3050     sed 's/^/| /' "$ac_site_file" >&5
3051     . "$ac_site_file" \
3052       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error $? "failed to load site script $ac_site_file
3055 See \`config.log' for more details" "$LINENO" 5; }
3056   fi
3057 done
3058 
3059 if test -r "$cache_file"; then
3060   # Some versions of bash will fail to source /dev/null (special files
3061   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3062   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3063     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3064 $as_echo "$as_me: loading cache $cache_file" >&6;}
3065     case $cache_file in
3066       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3067       *)                      . "./$cache_file";;
3068     esac
3069   fi
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3072 $as_echo "$as_me: creating cache $cache_file" >&6;}
3073   >$cache_file
3074 fi
3075 
3076 # Check that the precious variables saved in the cache have kept the same
3077 # value.
3078 ac_cache_corrupted=false
3079 for ac_var in $ac_precious_vars; do
3080   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3081   eval ac_new_set=\$ac_env_${ac_var}_set
3082   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3083   eval ac_new_val=\$ac_env_${ac_var}_value
3084   case $ac_old_set,$ac_new_set in
3085     set,)
3086       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3087 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3088       ac_cache_corrupted=: ;;
3089     ,set)
3090       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3091 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3092       ac_cache_corrupted=: ;;
3093     ,);;
3094     *)
3095       if test "x$ac_old_val" != "x$ac_new_val"; then
3096         # differences in whitespace do not lead to failure.
3097         ac_old_val_w=`echo x $ac_old_val`
3098         ac_new_val_w=`echo x $ac_new_val`
3099         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3100           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3101 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3102           ac_cache_corrupted=:
3103         else
3104           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3105 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3106           eval $ac_var=\$ac_old_val
3107         fi
3108         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3109 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3110         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3111 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3112       fi;;
3113   esac
3114   # Pass precious variables to config.status.
3115   if test "$ac_new_set" = set; then
3116     case $ac_new_val in
3117     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3118     *) ac_arg=$ac_var=$ac_new_val ;;
3119     esac
3120     case " $ac_configure_args " in
3121       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3122       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3123     esac
3124   fi
3125 done
3126 if $ac_cache_corrupted; then
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3130 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3131   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3132 fi
3133 ## -------------------- ##
3134 ## Main body of script. ##
3135 ## -------------------- ##
3136 
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 
3143 
3144 
3145 ac_aux_dir=
3146 for ac_dir in build-aux "$srcdir"/build-aux; do
3147   if test -f "$ac_dir/install-sh"; then
3148     ac_aux_dir=$ac_dir
3149     ac_install_sh="$ac_aux_dir/install-sh -c"
3150     break
3151   elif test -f "$ac_dir/install.sh"; then
3152     ac_aux_dir=$ac_dir
3153     ac_install_sh="$ac_aux_dir/install.sh -c"
3154     break
3155   elif test -f "$ac_dir/shtool"; then
3156     ac_aux_dir=$ac_dir
3157     ac_install_sh="$ac_aux_dir/shtool install -c"
3158     break
3159   fi
3160 done
3161 if test -z "$ac_aux_dir"; then
3162   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3163 fi
3164 
3165 # These three variables are undocumented and unsupported,
3166 # and are intended to be withdrawn in a future Autoconf release.
3167 # They can cause serious problems if a builder's source tree is in a directory
3168 # whose full name contains unusual characters.
3169 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3170 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3171 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3172 
3173 
3174 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3175 
3176 #
3177 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3178 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3179 #
3180 # This code is free software; you can redistribute it and/or modify it
3181 # under the terms of the GNU General Public License version 2 only, as
3182 # published by the Free Software Foundation.  Oracle designates this
3183 # particular file as subject to the "Classpath" exception as provided
3184 # by Oracle in the LICENSE file that accompanied this code.
3185 #
3186 # This code is distributed in the hope that it will be useful, but WITHOUT
3187 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3188 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3189 # version 2 for more details (a copy is included in the LICENSE file that
3190 # accompanied this code).
3191 #
3192 # You should have received a copy of the GNU General Public License version
3193 # 2 along with this work; if not, write to the Free Software Foundation,
3194 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3195 #
3196 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3197 # or visit www.oracle.com if you need additional information or have any
3198 # questions.
3199 #
3200 
3201 #
3202 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3203 #
3204 # This program is free software; you can redistribute it and/or modify
3205 # it under the terms of the GNU General Public License as published by
3206 # the Free Software Foundation; either version 2 of the License, or
3207 # (at your option) any later version.
3208 #
3209 # This program is distributed in the hope that it will be useful, but
3210 # WITHOUT ANY WARRANTY; without even the implied warranty of
3211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3212 # General Public License for more details.
3213 #
3214 # You should have received a copy of the GNU General Public License
3215 # along with this program; if not, write to the Free Software
3216 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3217 #
3218 # As a special exception to the GNU General Public License, if you
3219 # distribute this file as part of a program that contains a
3220 # configuration script generated by Autoconf, you may include it under
3221 # the same distribution terms that you use for the rest of that program.
3222 
3223 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3224 # ----------------------------------
3225 # PKG_PROG_PKG_CONFIG
3226 
3227 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3228 #
3229 # Check to see whether a particular set of modules exists.  Similar
3230 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3231 #
3232 #
3233 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3234 # this or PKG_CHECK_MODULES is called, or make sure to call
3235 # PKG_CHECK_EXISTS manually
3236 # --------------------------------------------------------------
3237 
3238 
3239 
3240 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3241 # ---------------------------------------------
3242 # _PKG_CONFIG
3243 
3244 # _PKG_SHORT_ERRORS_SUPPORTED
3245 # -----------------------------
3246 # _PKG_SHORT_ERRORS_SUPPORTED
3247 
3248 
3249 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3250 # [ACTION-IF-NOT-FOUND])
3251 #
3252 #
3253 # Note that if there is a possibility the first call to
3254 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3255 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3256 #
3257 #
3258 # --------------------------------------------------------------
3259 # PKG_CHECK_MODULES
3260 
3261 
3262 # Include these first...
3263 #
3264 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3265 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3266 #
3267 # This code is free software; you can redistribute it and/or modify it
3268 # under the terms of the GNU General Public License version 2 only, as
3269 # published by the Free Software Foundation.  Oracle designates this
3270 # particular file as subject to the "Classpath" exception as provided
3271 # by Oracle in the LICENSE file that accompanied this code.
3272 #
3273 # This code is distributed in the hope that it will be useful, but WITHOUT
3274 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3275 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3276 # version 2 for more details (a copy is included in the LICENSE file that
3277 # accompanied this code).
3278 #
3279 # You should have received a copy of the GNU General Public License version
3280 # 2 along with this work; if not, write to the Free Software Foundation,
3281 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3282 #
3283 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3284 # or visit www.oracle.com if you need additional information or have any
3285 # questions.
3286 #
3287 
3288 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3289 # If so, then append $1 to $2 \
3290 # Also set JVM_ARG_OK to true/false depending on outcome.
3291 
3292 
3293 # Appends a string to a path variable, only adding the : when needed.
3294 
3295 
3296 # This will make sure the given variable points to a full and proper
3297 # path. This means:
3298 # 1) There will be no spaces in the path. On posix platforms,
3299 #    spaces in the path will result in an error. On Windows,
3300 #    the path will be rewritten using short-style to be space-free.
3301 # 2) The path will be absolute, and it will be in unix-style (on
3302 #     cygwin).
3303 # $1: The name of the variable to fix
3304 
3305 
3306 # This will make sure the given variable points to a executable
3307 # with a full and proper path. This means:
3308 # 1) There will be no spaces in the path. On posix platforms,
3309 #    spaces in the path will result in an error. On Windows,
3310 #    the path will be rewritten using short-style to be space-free.
3311 # 2) The path will be absolute, and it will be in unix-style (on
3312 #     cygwin).
3313 # Any arguments given to the executable is preserved.
3314 # If the input variable does not have a directory specification, then
3315 # it need to be in the PATH.
3316 # $1: The name of the variable to fix
3317 
3318 
3319 
3320 
3321 # Register a --with argument but mark it as deprecated
3322 # $1: The name of the with argument to deprecate, not including --with-
3323 
3324 
3325 # Register a --enable argument but mark it as deprecated
3326 # $1: The name of the with argument to deprecate, not including --enable-
3327 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3328 
3329 
3330 
3331 
3332 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3333 # $1: variable to check
3334 
3335 
3336 # Check that there are no unprocessed overridden variables left.
3337 # If so, they are an incorrect argument and we will exit with an error.
3338 
3339 
3340 # Setup a tool for the given variable. If correctly specified by the user,
3341 # use that value, otherwise search for the tool using the supplied code snippet.
3342 # $1: variable to set
3343 # $2: code snippet to call to look for the tool
3344 
3345 
3346 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3347 # $1: variable to set
3348 # $2: executable name (or list of names) to look for
3349 
3350 
3351 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3352 # $1: variable to set
3353 # $2: executable name (or list of names) to look for
3354 
3355 
3356 # Like BASIC_PATH_PROGS but fails if no tool was found.
3357 # $1: variable to set
3358 # $2: executable name (or list of names) to look for
3359 
3360 
3361 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3362 # $1: variable to set
3363 # $2: autoconf macro to call to look for the special tool
3364 
3365 
3366 # Setup the most fundamental tools that relies on not much else to set up,
3367 # but is used by much of the early bootstrap code.
3368 
3369 
3370 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3371 
3372 
3373 
3374 
3375 
3376 
3377 
3378 #%%% Simple tools %%%
3379 
3380 # Check if we have found a usable version of make
3381 # $1: the path to a potential make binary (or empty)
3382 # $2: the description on how we found this
3383 
3384 
3385 # Goes looking for a usable version of GNU make.
3386 
3387 
3388 
3389 
3390 
3391 
3392 # Check if build directory is on local disk. If not possible to determine,
3393 # we prefer to claim it's local.
3394 # Argument 1: directory to test
3395 # Argument 2: what to do if it is on local disk
3396 # Argument 3: what to do otherwise (remote disk or failure)
3397 
3398 
3399 # Check that source files have basic read permissions set. This might
3400 # not be the case in cygwin in certain conditions.
3401 
3402 
3403 
3404 
3405 #
3406 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3407 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3408 #
3409 # This code is free software; you can redistribute it and/or modify it
3410 # under the terms of the GNU General Public License version 2 only, as
3411 # published by the Free Software Foundation.  Oracle designates this
3412 # particular file as subject to the "Classpath" exception as provided
3413 # by Oracle in the LICENSE file that accompanied this code.
3414 #
3415 # This code is distributed in the hope that it will be useful, but WITHOUT
3416 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3417 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3418 # version 2 for more details (a copy is included in the LICENSE file that
3419 # accompanied this code).
3420 #
3421 # You should have received a copy of the GNU General Public License version
3422 # 2 along with this work; if not, write to the Free Software Foundation,
3423 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3424 #
3425 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3426 # or visit www.oracle.com if you need additional information or have any
3427 # questions.
3428 #
3429 
3430 
3431 
3432 
3433 
3434 # Helper function which possibly converts a path using DOS-style short mode.
3435 # If so, the updated path is stored in $new_path.
3436 # $1: The path to check
3437 
3438 
3439 # Helper function which possibly converts a path using DOS-style short mode.
3440 # If so, the updated path is stored in $new_path.
3441 # $1: The path to check
3442 
3443 
3444 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3445 # and could probably be heavily simplified. However, all changes in this
3446 # area tend to need lot of testing in different scenarios, and in lack of
3447 # proper unit testing, cleaning this up has not been deemed worth the effort
3448 # at the moment.
3449 
3450 
3451 
3452 
3453 
3454 
3455 
3456 
3457 
3458 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3459 
3460 
3461 
3462 
3463 #
3464 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3465 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3466 #
3467 # This code is free software; you can redistribute it and/or modify it
3468 # under the terms of the GNU General Public License version 2 only, as
3469 # published by the Free Software Foundation.  Oracle designates this
3470 # particular file as subject to the "Classpath" exception as provided
3471 # by Oracle in the LICENSE file that accompanied this code.
3472 #
3473 # This code is distributed in the hope that it will be useful, but WITHOUT
3474 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3475 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3476 # version 2 for more details (a copy is included in the LICENSE file that
3477 # accompanied this code).
3478 #
3479 # You should have received a copy of the GNU General Public License version
3480 # 2 along with this work; if not, write to the Free Software Foundation,
3481 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3482 #
3483 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3484 # or visit www.oracle.com if you need additional information or have any
3485 # questions.
3486 #
3487 
3488 
3489 
3490 
3491 
3492 
3493 
3494 
3495 
3496 
3497 
3498 # ... then the rest
3499 #
3500 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3501 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3502 #
3503 # This code is free software; you can redistribute it and/or modify it
3504 # under the terms of the GNU General Public License version 2 only, as
3505 # published by the Free Software Foundation.  Oracle designates this
3506 # particular file as subject to the "Classpath" exception as provided
3507 # by Oracle in the LICENSE file that accompanied this code.
3508 #
3509 # This code is distributed in the hope that it will be useful, but WITHOUT
3510 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3511 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3512 # version 2 for more details (a copy is included in the LICENSE file that
3513 # accompanied this code).
3514 #
3515 # You should have received a copy of the GNU General Public License version
3516 # 2 along with this work; if not, write to the Free Software Foundation,
3517 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3518 #
3519 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3520 # or visit www.oracle.com if you need additional information or have any
3521 # questions.
3522 #
3523 
3524 # Execute the check given as argument, and verify the result
3525 # If the Boot JDK was previously found, do nothing
3526 # $1 A command line (typically autoconf macro) to execute
3527 
3528 
3529 # Test: Is bootjdk explicitely set by command line arguments?
3530 
3531 
3532 # Test: Is bootjdk available from builddeps?
3533 
3534 
3535 # Test: Is $JAVA_HOME set?
3536 
3537 
3538 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3539 
3540 
3541 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3542 
3543 
3544 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3545 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3546 # $1 = Path to directory containing jdk installations.
3547 # $2 = String to append to the found JDK directory to get the proper JDK home
3548 
3549 
3550 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3551 # environmental variable as base for where to look.
3552 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3553 
3554 
3555 # Test: Is there a JDK installed in default, well-known locations?
3556 
3557 
3558 # Check that a command-line tool in the Boot JDK is correct
3559 # $1 = name of variable to assign
3560 # $2 = name of binary
3561 
3562 
3563 ###############################################################################
3564 #
3565 # We need a Boot JDK to bootstrap the build.
3566 #
3567 
3568 
3569 
3570 
3571 
3572 #
3573 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3574 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3575 #
3576 # This code is free software; you can redistribute it and/or modify it
3577 # under the terms of the GNU General Public License version 2 only, as
3578 # published by the Free Software Foundation.  Oracle designates this
3579 # particular file as subject to the "Classpath" exception as provided
3580 # by Oracle in the LICENSE file that accompanied this code.
3581 #
3582 # This code is distributed in the hope that it will be useful, but WITHOUT
3583 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3584 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3585 # version 2 for more details (a copy is included in the LICENSE file that
3586 # accompanied this code).
3587 #
3588 # You should have received a copy of the GNU General Public License version
3589 # 2 along with this work; if not, write to the Free Software Foundation,
3590 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3591 #
3592 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3593 # or visit www.oracle.com if you need additional information or have any
3594 # questions.
3595 #
3596 
3597 
3598 
3599 
3600 
3601 
3602 
3603 
3604 
3605 
3606 
3607 
3608 
3609 
3610 
3611 
3612 
3613 
3614 
3615 
3616 #
3617 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3618 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3619 #
3620 # This code is free software; you can redistribute it and/or modify it
3621 # under the terms of the GNU General Public License version 2 only, as
3622 # published by the Free Software Foundation.  Oracle designates this
3623 # particular file as subject to the "Classpath" exception as provided
3624 # by Oracle in the LICENSE file that accompanied this code.
3625 #
3626 # This code is distributed in the hope that it will be useful, but WITHOUT
3627 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3628 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3629 # version 2 for more details (a copy is included in the LICENSE file that
3630 # accompanied this code).
3631 #
3632 # You should have received a copy of the GNU General Public License version
3633 # 2 along with this work; if not, write to the Free Software Foundation,
3634 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3635 #
3636 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3637 # or visit www.oracle.com if you need additional information or have any
3638 # questions.
3639 #
3640 
3641 
3642 
3643 
3644 
3645 cygwin_help() {
3646   case $1 in
3647     unzip)
3648       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3649       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3650       ;;
3651     zip)
3652       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3653       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3654       ;;
3655     make)
3656       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3657       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3658       ;;
3659     freetype)
3660       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3661         HELP_MSG="To install freetype, run:
3662 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3663 chmod +x /tmp/freetype-setup.exe
3664 /tmp/freetype-setup.exe
3665 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3666 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3667       else
3668         HELP_MSG="You need to build a 64-bit version of freetype.
3669 This is not readily available.
3670 You can find source code and build instructions on
3671 http://www.freetype.org/
3672 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3673       fi
3674       ;;
3675   esac
3676 }
3677 
3678 msys_help() {
3679   PKGHANDLER_COMMAND=""
3680 }
3681 
3682 apt_help() {
3683   case $1 in
3684     devkit)
3685       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3686     openjdk)
3687       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3688     alsa)
3689       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3690     cups)
3691       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3692     freetype)
3693       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3694     pulse)
3695       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3696     x11)
3697       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3698     ccache)
3699       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3700   esac
3701 }
3702 
3703 yum_help() {
3704   case $1 in
3705     devkit)
3706       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3707     openjdk)
3708       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3709     alsa)
3710       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3711     cups)
3712       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3713     freetype)
3714       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3715     pulse)
3716       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3717     x11)
3718       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3719     ccache)
3720       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3721   esac
3722 }
3723 
3724 port_help() {
3725   PKGHANDLER_COMMAND=""
3726 }
3727 
3728 pkgutil_help() {
3729   PKGHANDLER_COMMAND=""
3730 }
3731 
3732 pkgadd_help() {
3733   PKGHANDLER_COMMAND=""
3734 }
3735 
3736 
3737 
3738 #
3739 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3740 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3741 #
3742 # This code is free software; you can redistribute it and/or modify it
3743 # under the terms of the GNU General Public License version 2 only, as
3744 # published by the Free Software Foundation.  Oracle designates this
3745 # particular file as subject to the "Classpath" exception as provided
3746 # by Oracle in the LICENSE file that accompanied this code.
3747 #
3748 # This code is distributed in the hope that it will be useful, but WITHOUT
3749 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3750 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3751 # version 2 for more details (a copy is included in the LICENSE file that
3752 # accompanied this code).
3753 #
3754 # You should have received a copy of the GNU General Public License version
3755 # 2 along with this work; if not, write to the Free Software Foundation,
3756 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3757 #
3758 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3759 # or visit www.oracle.com if you need additional information or have any
3760 # questions.
3761 #
3762 
3763 
3764 
3765 
3766 
3767 
3768 
3769 
3770 
3771 
3772 ###############################################################################
3773 #
3774 # Should we build only OpenJDK even if closed sources are present?
3775 #
3776 
3777 
3778 
3779 
3780 ###############################################################################
3781 #
3782 # Setup version numbers
3783 #
3784 
3785 
3786 
3787 
3788 
3789 
3790 # Support for customization of the build process. Some build files
3791 # will include counterparts from this location, if they exist. This allows
3792 # for a degree of customization of the build targets and the rules/recipes
3793 # to create them
3794 
3795 # Check whether --with-custom-make-dir was given.
3796 if test "${with_custom_make_dir+set}" = set; then :
3797   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3798 fi
3799 
3800 
3801 
3802 #
3803 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3804 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3805 #
3806 # This code is free software; you can redistribute it and/or modify it
3807 # under the terms of the GNU General Public License version 2 only, as
3808 # published by the Free Software Foundation.  Oracle designates this
3809 # particular file as subject to the "Classpath" exception as provided
3810 # by Oracle in the LICENSE file that accompanied this code.
3811 #
3812 # This code is distributed in the hope that it will be useful, but WITHOUT
3813 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3814 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3815 # version 2 for more details (a copy is included in the LICENSE file that
3816 # accompanied this code).
3817 #
3818 # You should have received a copy of the GNU General Public License version
3819 # 2 along with this work; if not, write to the Free Software Foundation,
3820 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3821 #
3822 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3823 # or visit www.oracle.com if you need additional information or have any
3824 # questions.
3825 #
3826 
3827 
3828 
3829 
3830 
3831 
3832 
3833 
3834 
3835 
3836 
3837 
3838 
3839 
3840 
3841 
3842 
3843 #
3844 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3845 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3846 #
3847 # This code is free software; you can redistribute it and/or modify it
3848 # under the terms of the GNU General Public License version 2 only, as
3849 # published by the Free Software Foundation.  Oracle designates this
3850 # particular file as subject to the "Classpath" exception as provided
3851 # by Oracle in the LICENSE file that accompanied this code.
3852 #
3853 # This code is distributed in the hope that it will be useful, but WITHOUT
3854 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3855 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3856 # version 2 for more details (a copy is included in the LICENSE file that
3857 # accompanied this code).
3858 #
3859 # You should have received a copy of the GNU General Public License version
3860 # 2 along with this work; if not, write to the Free Software Foundation,
3861 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3862 #
3863 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3864 # or visit www.oracle.com if you need additional information or have any
3865 # questions.
3866 #
3867 
3868 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3869 # Converts autoconf style CPU name to OpenJDK style, into
3870 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3871 
3872 
3873 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3874 # Converts autoconf style OS name to OpenJDK style, into
3875 # VAR_OS and VAR_OS_API.
3876 
3877 
3878 # Expects $host_os $host_cpu $build_os and $build_cpu
3879 # and $with_target_bits to have been setup!
3880 #
3881 # Translate the standard triplet(quadruplet) definition
3882 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3883 # OPENJDK_BUILD_OS, etc.
3884 
3885 
3886 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3887 # accordingly. Must be done after setting up build and target system, but before
3888 # doing anything else with these values.
3889 
3890 
3891 # Setup the legacy variables, for controlling the old makefiles.
3892 #
3893 
3894 
3895 
3896 
3897 #%%% Build and target systems %%%
3898 
3899 
3900 
3901 
3902 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3903 # Add -mX to various FLAGS variables.
3904 
3905 
3906 
3907 
3908 
3909 
3910 #
3911 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3912 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3913 #
3914 # This code is free software; you can redistribute it and/or modify it
3915 # under the terms of the GNU General Public License version 2 only, as
3916 # published by the Free Software Foundation.  Oracle designates this
3917 # particular file as subject to the "Classpath" exception as provided
3918 # by Oracle in the LICENSE file that accompanied this code.
3919 #
3920 # This code is distributed in the hope that it will be useful, but WITHOUT
3921 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3922 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3923 # version 2 for more details (a copy is included in the LICENSE file that
3924 # accompanied this code).
3925 #
3926 # You should have received a copy of the GNU General Public License version
3927 # 2 along with this work; if not, write to the Free Software Foundation,
3928 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3929 #
3930 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3931 # or visit www.oracle.com if you need additional information or have any
3932 # questions.
3933 #
3934 
3935 
3936 
3937 
3938 
3939 
3940 
3941 
3942 #
3943 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3944 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3945 #
3946 # This code is free software; you can redistribute it and/or modify it
3947 # under the terms of the GNU General Public License version 2 only, as
3948 # published by the Free Software Foundation.  Oracle designates this
3949 # particular file as subject to the "Classpath" exception as provided
3950 # by Oracle in the LICENSE file that accompanied this code.
3951 #
3952 # This code is distributed in the hope that it will be useful, but WITHOUT
3953 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3954 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3955 # version 2 for more details (a copy is included in the LICENSE file that
3956 # accompanied this code).
3957 #
3958 # You should have received a copy of the GNU General Public License version
3959 # 2 along with this work; if not, write to the Free Software Foundation,
3960 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3961 #
3962 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3963 # or visit www.oracle.com if you need additional information or have any
3964 # questions.
3965 #
3966 
3967 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
3968 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
3969 
3970 
3971 # Check if the configured compiler (C and C++) is of a specific version or
3972 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
3973 #
3974 # Arguments:
3975 #   $1:   The version string to check against the found version
3976 #   $2:   block to run if the compiler is at least this version (>=)
3977 #   $3:   block to run if the compiler is older than this version (<)
3978 
3979 
3980 # $1 = compiler to test (CC or CXX)
3981 # $2 = human readable name of compiler (C or C++)
3982 
3983 
3984 
3985 
3986 
3987 # $1 = compiler to test (CC or CXX)
3988 # $2 = human readable name of compiler (C or C++)
3989 # $3 = list of compiler names to search for
3990 
3991 
3992 
3993 
3994 
3995 
3996 
3997 
3998 
3999 
4000 
4001 
4002 
4003 # TOOLCHAIN_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4004 #                                      [RUN-IF-FALSE])
4005 # ------------------------------------------------------------
4006 # Check that the C compiler supports an argument
4007 
4008 
4009 # TOOLCHAIN_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4010 #                                        [RUN-IF-FALSE])
4011 # ------------------------------------------------------------
4012 # Check that the C++ compiler supports an argument
4013 
4014 
4015 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4016 #                                    [RUN-IF-FALSE])
4017 # ------------------------------------------------------------
4018 # Check that the C and C++ compilers support an argument
4019 
4020 
4021 
4022 
4023 # Setup the JTREG paths
4024 
4025 
4026 
4027 
4028 #
4029 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4030 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4031 #
4032 # This code is free software; you can redistribute it and/or modify it
4033 # under the terms of the GNU General Public License version 2 only, as
4034 # published by the Free Software Foundation.  Oracle designates this
4035 # particular file as subject to the "Classpath" exception as provided
4036 # by Oracle in the LICENSE file that accompanied this code.
4037 #
4038 # This code is distributed in the hope that it will be useful, but WITHOUT
4039 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4040 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4041 # version 2 for more details (a copy is included in the LICENSE file that
4042 # accompanied this code).
4043 #
4044 # You should have received a copy of the GNU General Public License version
4045 # 2 along with this work; if not, write to the Free Software Foundation,
4046 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4047 #
4048 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4049 # or visit www.oracle.com if you need additional information or have any
4050 # questions.
4051 #
4052 
4053 
4054 
4055 
4056 
4057 
4058 
4059 # Check if the VS env variables were setup prior to running configure.
4060 # If not, then find vcvarsall.bat and run it automatically, and integrate
4061 # the set env variables into the spec file.
4062 
4063 
4064 
4065 
4066 
4067 
4068 
4069 
4070 
4071 
4072 
4073 # This line needs to be here, verbatim, after all includes and the dummy hook
4074 # definitions. It is replaced with custom functionality when building
4075 # custom sources.
4076 #CUSTOM_AUTOCONF_INCLUDE
4077 
4078 # Do not change or remove the following line, it is needed for consistency checks:
4079 DATE_WHEN_GENERATED=1521554908
4080 
4081 ###############################################################################
4082 #
4083 # Initialization / Boot-strapping
4084 #
4085 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4086 # thus it jumps back and forth, each time gaining something needed later on.
4087 #
4088 ###############################################################################
4089 
4090 # Basic initialization that must happen first of all
4091 
4092   # Save the original command line. This is passed to us by the wrapper configure script.
4093 
4094   DATE_WHEN_CONFIGURED=`LANG=C date`
4095 
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4097 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4099 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4100 
4101 
4102   # Start with tools that do not need have cross compilation support
4103   # and can be expected to be found in the default PATH. These tools are
4104   # used by configure. Nor are these tools expected to be found in the
4105   # devkit from the builddeps server either, since they are
4106   # needed to download the devkit.
4107 
4108   # First are all the simple required tools.
4109 
4110 
4111 
4112   # Publish this variable in the help.
4113 
4114 
4115   if test "x$BASENAME" = x; then
4116     # The variable is not set by user, try to locate tool using the code snippet
4117     for ac_prog in basename
4118 do
4119   # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy $ac_prog; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_path_BASENAME+:} false; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   case $BASENAME in
4127   [\\/]* | ?:[\\/]*)
4128   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4129   ;;
4130   *)
4131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145 
4146   ;;
4147 esac
4148 fi
4149 BASENAME=$ac_cv_path_BASENAME
4150 if test -n "$BASENAME"; then
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4152 $as_echo "$BASENAME" >&6; }
4153 else
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 fi
4157 
4158 
4159   test -n "$BASENAME" && break
4160 done
4161 
4162   else
4163     # The variable is set, but is it from the command line or the environment?
4164 
4165     # Try to remove the string !BASENAME! from our list.
4166     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4167     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4168       # If it failed, the variable was not from the command line. Ignore it,
4169       # but warn the user (except for BASH, which is always set by the calling BASH).
4170       if test "xBASENAME" != xBASH; then
4171         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4172 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4173       fi
4174       # Try to locate tool using the code snippet
4175       for ac_prog in basename
4176 do
4177   # Extract the first word of "$ac_prog", so it can be a program name with args.
4178 set dummy $ac_prog; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_path_BASENAME+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   case $BASENAME in
4185   [\\/]* | ?:[\\/]*)
4186   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4187   ;;
4188   *)
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194     for ac_exec_ext in '' $ac_executable_extensions; do
4195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201   done
4202 IFS=$as_save_IFS
4203 
4204   ;;
4205 esac
4206 fi
4207 BASENAME=$ac_cv_path_BASENAME
4208 if test -n "$BASENAME"; then
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4210 $as_echo "$BASENAME" >&6; }
4211 else
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215 
4216 
4217   test -n "$BASENAME" && break
4218 done
4219 
4220     else
4221       # If it succeeded, then it was overridden by the user. We will use it
4222       # for the tool.
4223 
4224       # First remove it from the list of overridden variables, so we can test
4225       # for unknown variables in the end.
4226       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4227 
4228       # Check if the provided tool contains a complete path.
4229       tool_specified="$BASENAME"
4230       tool_basename="${tool_specified##*/}"
4231       if test "x$tool_basename" = "x$tool_specified"; then
4232         # A command without a complete path is provided, search $PATH.
4233         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4234 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4235         # Extract the first word of "$tool_basename", so it can be a program name with args.
4236 set dummy $tool_basename; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_path_BASENAME+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   case $BASENAME in
4243   [\\/]* | ?:[\\/]*)
4244   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4245   ;;
4246   *)
4247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252     for ac_exec_ext in '' $ac_executable_extensions; do
4253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259   done
4260 IFS=$as_save_IFS
4261 
4262   ;;
4263 esac
4264 fi
4265 BASENAME=$ac_cv_path_BASENAME
4266 if test -n "$BASENAME"; then
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4268 $as_echo "$BASENAME" >&6; }
4269 else
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273 
4274 
4275         if test "x$BASENAME" = x; then
4276           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4277         fi
4278       else
4279         # Otherwise we believe it is a complete path. Use it as it is.
4280         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4281 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4283 $as_echo_n "checking for BASENAME... " >&6; }
4284         if test ! -x "$tool_specified"; then
4285           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4286 $as_echo "not found" >&6; }
4287           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4288         fi
4289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4290 $as_echo "$tool_specified" >&6; }
4291       fi
4292     fi
4293   fi
4294 
4295 
4296 
4297   if test "x$BASENAME" = x; then
4298     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4299   fi
4300 
4301 
4302 
4303 
4304 
4305   # Publish this variable in the help.
4306 
4307 
4308   if test "x$BASH" = x; then
4309     # The variable is not set by user, try to locate tool using the code snippet
4310     for ac_prog in bash
4311 do
4312   # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_path_BASH+:} false; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   case $BASH in
4320   [\\/]* | ?:[\\/]*)
4321   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4322   ;;
4323   *)
4324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336   done
4337 IFS=$as_save_IFS
4338 
4339   ;;
4340 esac
4341 fi
4342 BASH=$ac_cv_path_BASH
4343 if test -n "$BASH"; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4345 $as_echo "$BASH" >&6; }
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350 
4351 
4352   test -n "$BASH" && break
4353 done
4354 
4355   else
4356     # The variable is set, but is it from the command line or the environment?
4357 
4358     # Try to remove the string !BASH! from our list.
4359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4361       # If it failed, the variable was not from the command line. Ignore it,
4362       # but warn the user (except for BASH, which is always set by the calling BASH).
4363       if test "xBASH" != xBASH; then
4364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4365 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4366       fi
4367       # Try to locate tool using the code snippet
4368       for ac_prog in bash
4369 do
4370   # Extract the first word of "$ac_prog", so it can be a program name with args.
4371 set dummy $ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_path_BASH+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   case $BASH in
4378   [\\/]* | ?:[\\/]*)
4379   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4380   ;;
4381   *)
4382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385   IFS=$as_save_IFS
4386   test -z "$as_dir" && as_dir=.
4387     for ac_exec_ext in '' $ac_executable_extensions; do
4388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394   done
4395 IFS=$as_save_IFS
4396 
4397   ;;
4398 esac
4399 fi
4400 BASH=$ac_cv_path_BASH
4401 if test -n "$BASH"; then
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4403 $as_echo "$BASH" >&6; }
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408 
4409 
4410   test -n "$BASH" && break
4411 done
4412 
4413     else
4414       # If it succeeded, then it was overridden by the user. We will use it
4415       # for the tool.
4416 
4417       # First remove it from the list of overridden variables, so we can test
4418       # for unknown variables in the end.
4419       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4420 
4421       # Check if the provided tool contains a complete path.
4422       tool_specified="$BASH"
4423       tool_basename="${tool_specified##*/}"
4424       if test "x$tool_basename" = "x$tool_specified"; then
4425         # A command without a complete path is provided, search $PATH.
4426         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4427 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4428         # Extract the first word of "$tool_basename", so it can be a program name with args.
4429 set dummy $tool_basename; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if ${ac_cv_path_BASH+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   case $BASH in
4436   [\\/]* | ?:[\\/]*)
4437   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4438   ;;
4439   *)
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452   done
4453 IFS=$as_save_IFS
4454 
4455   ;;
4456 esac
4457 fi
4458 BASH=$ac_cv_path_BASH
4459 if test -n "$BASH"; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4461 $as_echo "$BASH" >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466 
4467 
4468         if test "x$BASH" = x; then
4469           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4470         fi
4471       else
4472         # Otherwise we believe it is a complete path. Use it as it is.
4473         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4474 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4476 $as_echo_n "checking for BASH... " >&6; }
4477         if test ! -x "$tool_specified"; then
4478           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4479 $as_echo "not found" >&6; }
4480           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4481         fi
4482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4483 $as_echo "$tool_specified" >&6; }
4484       fi
4485     fi
4486   fi
4487 
4488 
4489 
4490   if test "x$BASH" = x; then
4491     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4492   fi
4493 
4494 
4495 
4496 
4497 
4498   # Publish this variable in the help.
4499 
4500 
4501   if test "x$CAT" = x; then
4502     # The variable is not set by user, try to locate tool using the code snippet
4503     for ac_prog in cat
4504 do
4505   # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_path_CAT+:} false; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   case $CAT in
4513   [\\/]* | ?:[\\/]*)
4514   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4515   ;;
4516   *)
4517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_exec_ext in '' $ac_executable_extensions; do
4523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529   done
4530 IFS=$as_save_IFS
4531 
4532   ;;
4533 esac
4534 fi
4535 CAT=$ac_cv_path_CAT
4536 if test -n "$CAT"; then
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4538 $as_echo "$CAT" >&6; }
4539 else
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 fi
4543 
4544 
4545   test -n "$CAT" && break
4546 done
4547 
4548   else
4549     # The variable is set, but is it from the command line or the environment?
4550 
4551     # Try to remove the string !CAT! from our list.
4552     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4553     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4554       # If it failed, the variable was not from the command line. Ignore it,
4555       # but warn the user (except for BASH, which is always set by the calling BASH).
4556       if test "xCAT" != xBASH; then
4557         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4558 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4559       fi
4560       # Try to locate tool using the code snippet
4561       for ac_prog in cat
4562 do
4563   # Extract the first word of "$ac_prog", so it can be a program name with args.
4564 set dummy $ac_prog; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if ${ac_cv_path_CAT+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   case $CAT in
4571   [\\/]* | ?:[\\/]*)
4572   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4573   ;;
4574   *)
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580     for ac_exec_ext in '' $ac_executable_extensions; do
4581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587   done
4588 IFS=$as_save_IFS
4589 
4590   ;;
4591 esac
4592 fi
4593 CAT=$ac_cv_path_CAT
4594 if test -n "$CAT"; then
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4596 $as_echo "$CAT" >&6; }
4597 else
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601 
4602 
4603   test -n "$CAT" && break
4604 done
4605 
4606     else
4607       # If it succeeded, then it was overridden by the user. We will use it
4608       # for the tool.
4609 
4610       # First remove it from the list of overridden variables, so we can test
4611       # for unknown variables in the end.
4612       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4613 
4614       # Check if the provided tool contains a complete path.
4615       tool_specified="$CAT"
4616       tool_basename="${tool_specified##*/}"
4617       if test "x$tool_basename" = "x$tool_specified"; then
4618         # A command without a complete path is provided, search $PATH.
4619         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4620 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4621         # Extract the first word of "$tool_basename", so it can be a program name with args.
4622 set dummy $tool_basename; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_path_CAT+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   case $CAT in
4629   [\\/]* | ?:[\\/]*)
4630   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4631   ;;
4632   *)
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638     for ac_exec_ext in '' $ac_executable_extensions; do
4639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645   done
4646 IFS=$as_save_IFS
4647 
4648   ;;
4649 esac
4650 fi
4651 CAT=$ac_cv_path_CAT
4652 if test -n "$CAT"; then
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4654 $as_echo "$CAT" >&6; }
4655 else
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659 
4660 
4661         if test "x$CAT" = x; then
4662           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4663         fi
4664       else
4665         # Otherwise we believe it is a complete path. Use it as it is.
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4667 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4669 $as_echo_n "checking for CAT... " >&6; }
4670         if test ! -x "$tool_specified"; then
4671           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4672 $as_echo "not found" >&6; }
4673           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4674         fi
4675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4676 $as_echo "$tool_specified" >&6; }
4677       fi
4678     fi
4679   fi
4680 
4681 
4682 
4683   if test "x$CAT" = x; then
4684     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4685   fi
4686 
4687 
4688 
4689 
4690 
4691   # Publish this variable in the help.
4692 
4693 
4694   if test "x$CHMOD" = x; then
4695     # The variable is not set by user, try to locate tool using the code snippet
4696     for ac_prog in chmod
4697 do
4698   # Extract the first word of "$ac_prog", so it can be a program name with args.
4699 set dummy $ac_prog; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if ${ac_cv_path_CHMOD+:} false; then :
4703   $as_echo_n "(cached) " >&6
4704 else
4705   case $CHMOD in
4706   [\\/]* | ?:[\\/]*)
4707   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4708   ;;
4709   *)
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715     for ac_exec_ext in '' $ac_executable_extensions; do
4716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722   done
4723 IFS=$as_save_IFS
4724 
4725   ;;
4726 esac
4727 fi
4728 CHMOD=$ac_cv_path_CHMOD
4729 if test -n "$CHMOD"; then
4730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4731 $as_echo "$CHMOD" >&6; }
4732 else
4733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736 
4737 
4738   test -n "$CHMOD" && break
4739 done
4740 
4741   else
4742     # The variable is set, but is it from the command line or the environment?
4743 
4744     # Try to remove the string !CHMOD! from our list.
4745     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4746     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4747       # If it failed, the variable was not from the command line. Ignore it,
4748       # but warn the user (except for BASH, which is always set by the calling BASH).
4749       if test "xCHMOD" != xBASH; then
4750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4751 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4752       fi
4753       # Try to locate tool using the code snippet
4754       for ac_prog in chmod
4755 do
4756   # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy $ac_prog; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_path_CHMOD+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   case $CHMOD in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780   done
4781 IFS=$as_save_IFS
4782 
4783   ;;
4784 esac
4785 fi
4786 CHMOD=$ac_cv_path_CHMOD
4787 if test -n "$CHMOD"; then
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4789 $as_echo "$CHMOD" >&6; }
4790 else
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794 
4795 
4796   test -n "$CHMOD" && break
4797 done
4798 
4799     else
4800       # If it succeeded, then it was overridden by the user. We will use it
4801       # for the tool.
4802 
4803       # First remove it from the list of overridden variables, so we can test
4804       # for unknown variables in the end.
4805       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4806 
4807       # Check if the provided tool contains a complete path.
4808       tool_specified="$CHMOD"
4809       tool_basename="${tool_specified##*/}"
4810       if test "x$tool_basename" = "x$tool_specified"; then
4811         # A command without a complete path is provided, search $PATH.
4812         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4813 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4814         # Extract the first word of "$tool_basename", so it can be a program name with args.
4815 set dummy $tool_basename; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_path_CHMOD+:} false; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   case $CHMOD in
4822   [\\/]* | ?:[\\/]*)
4823   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4824   ;;
4825   *)
4826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831     for ac_exec_ext in '' $ac_executable_extensions; do
4832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838   done
4839 IFS=$as_save_IFS
4840 
4841   ;;
4842 esac
4843 fi
4844 CHMOD=$ac_cv_path_CHMOD
4845 if test -n "$CHMOD"; then
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4847 $as_echo "$CHMOD" >&6; }
4848 else
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 fi
4852 
4853 
4854         if test "x$CHMOD" = x; then
4855           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4856         fi
4857       else
4858         # Otherwise we believe it is a complete path. Use it as it is.
4859         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
4860 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
4861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
4862 $as_echo_n "checking for CHMOD... " >&6; }
4863         if test ! -x "$tool_specified"; then
4864           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4865 $as_echo "not found" >&6; }
4866           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
4867         fi
4868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4869 $as_echo "$tool_specified" >&6; }
4870       fi
4871     fi
4872   fi
4873 
4874 
4875 
4876   if test "x$CHMOD" = x; then
4877     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
4878   fi
4879 
4880 
4881 
4882 
4883 
4884   # Publish this variable in the help.
4885 
4886 
4887   if test "x$CMP" = x; then
4888     # The variable is not set by user, try to locate tool using the code snippet
4889     for ac_prog in cmp
4890 do
4891   # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_path_CMP+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   case $CMP in
4899   [\\/]* | ?:[\\/]*)
4900   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4901   ;;
4902   *)
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915   done
4916 IFS=$as_save_IFS
4917 
4918   ;;
4919 esac
4920 fi
4921 CMP=$ac_cv_path_CMP
4922 if test -n "$CMP"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4924 $as_echo "$CMP" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929 
4930 
4931   test -n "$CMP" && break
4932 done
4933 
4934   else
4935     # The variable is set, but is it from the command line or the environment?
4936 
4937     # Try to remove the string !CMP! from our list.
4938     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
4939     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4940       # If it failed, the variable was not from the command line. Ignore it,
4941       # but warn the user (except for BASH, which is always set by the calling BASH).
4942       if test "xCMP" != xBASH; then
4943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
4944 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
4945       fi
4946       # Try to locate tool using the code snippet
4947       for ac_prog in cmp
4948 do
4949   # Extract the first word of "$ac_prog", so it can be a program name with args.
4950 set dummy $ac_prog; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_path_CMP+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   case $CMP in
4957   [\\/]* | ?:[\\/]*)
4958   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4959   ;;
4960   *)
4961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975 
4976   ;;
4977 esac
4978 fi
4979 CMP=$ac_cv_path_CMP
4980 if test -n "$CMP"; then
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4982 $as_echo "$CMP" >&6; }
4983 else
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 fi
4987 
4988 
4989   test -n "$CMP" && break
4990 done
4991 
4992     else
4993       # If it succeeded, then it was overridden by the user. We will use it
4994       # for the tool.
4995 
4996       # First remove it from the list of overridden variables, so we can test
4997       # for unknown variables in the end.
4998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4999 
5000       # Check if the provided tool contains a complete path.
5001       tool_specified="$CMP"
5002       tool_basename="${tool_specified##*/}"
5003       if test "x$tool_basename" = "x$tool_specified"; then
5004         # A command without a complete path is provided, search $PATH.
5005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5006 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5007         # Extract the first word of "$tool_basename", so it can be a program name with args.
5008 set dummy $tool_basename; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_path_CMP+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   case $CMP in
5015   [\\/]* | ?:[\\/]*)
5016   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5017   ;;
5018   *)
5019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031   done
5032 IFS=$as_save_IFS
5033 
5034   ;;
5035 esac
5036 fi
5037 CMP=$ac_cv_path_CMP
5038 if test -n "$CMP"; then
5039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5040 $as_echo "$CMP" >&6; }
5041 else
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045 
5046 
5047         if test "x$CMP" = x; then
5048           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5049         fi
5050       else
5051         # Otherwise we believe it is a complete path. Use it as it is.
5052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5053 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5055 $as_echo_n "checking for CMP... " >&6; }
5056         if test ! -x "$tool_specified"; then
5057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5058 $as_echo "not found" >&6; }
5059           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5060         fi
5061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5062 $as_echo "$tool_specified" >&6; }
5063       fi
5064     fi
5065   fi
5066 
5067 
5068 
5069   if test "x$CMP" = x; then
5070     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5071   fi
5072 
5073 
5074 
5075 
5076 
5077   # Publish this variable in the help.
5078 
5079 
5080   if test "x$COMM" = x; then
5081     # The variable is not set by user, try to locate tool using the code snippet
5082     for ac_prog in comm
5083 do
5084   # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_COMM+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   case $COMM in
5092   [\\/]* | ?:[\\/]*)
5093   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5094   ;;
5095   *)
5096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110 
5111   ;;
5112 esac
5113 fi
5114 COMM=$ac_cv_path_COMM
5115 if test -n "$COMM"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5117 $as_echo "$COMM" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122 
5123 
5124   test -n "$COMM" && break
5125 done
5126 
5127   else
5128     # The variable is set, but is it from the command line or the environment?
5129 
5130     # Try to remove the string !COMM! from our list.
5131     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5132     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5133       # If it failed, the variable was not from the command line. Ignore it,
5134       # but warn the user (except for BASH, which is always set by the calling BASH).
5135       if test "xCOMM" != xBASH; then
5136         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5137 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5138       fi
5139       # Try to locate tool using the code snippet
5140       for ac_prog in comm
5141 do
5142   # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_path_COMM+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   case $COMM in
5150   [\\/]* | ?:[\\/]*)
5151   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5152   ;;
5153   *)
5154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168 
5169   ;;
5170 esac
5171 fi
5172 COMM=$ac_cv_path_COMM
5173 if test -n "$COMM"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5175 $as_echo "$COMM" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180 
5181 
5182   test -n "$COMM" && break
5183 done
5184 
5185     else
5186       # If it succeeded, then it was overridden by the user. We will use it
5187       # for the tool.
5188 
5189       # First remove it from the list of overridden variables, so we can test
5190       # for unknown variables in the end.
5191       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5192 
5193       # Check if the provided tool contains a complete path.
5194       tool_specified="$COMM"
5195       tool_basename="${tool_specified##*/}"
5196       if test "x$tool_basename" = "x$tool_specified"; then
5197         # A command without a complete path is provided, search $PATH.
5198         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5199 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5200         # Extract the first word of "$tool_basename", so it can be a program name with args.
5201 set dummy $tool_basename; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_path_COMM+:} false; then :
5205   $as_echo_n "(cached) " >&6
5206 else
5207   case $COMM in
5208   [\\/]* | ?:[\\/]*)
5209   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5210   ;;
5211   *)
5212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217     for ac_exec_ext in '' $ac_executable_extensions; do
5218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221     break 2
5222   fi
5223 done
5224   done
5225 IFS=$as_save_IFS
5226 
5227   ;;
5228 esac
5229 fi
5230 COMM=$ac_cv_path_COMM
5231 if test -n "$COMM"; then
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5233 $as_echo "$COMM" >&6; }
5234 else
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238 
5239 
5240         if test "x$COMM" = x; then
5241           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5242         fi
5243       else
5244         # Otherwise we believe it is a complete path. Use it as it is.
5245         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5246 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5248 $as_echo_n "checking for COMM... " >&6; }
5249         if test ! -x "$tool_specified"; then
5250           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5251 $as_echo "not found" >&6; }
5252           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5253         fi
5254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5255 $as_echo "$tool_specified" >&6; }
5256       fi
5257     fi
5258   fi
5259 
5260 
5261 
5262   if test "x$COMM" = x; then
5263     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5264   fi
5265 
5266 
5267 
5268 
5269 
5270   # Publish this variable in the help.
5271 
5272 
5273   if test "x$CP" = x; then
5274     # The variable is not set by user, try to locate tool using the code snippet
5275     for ac_prog in cp
5276 do
5277   # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_path_CP+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   case $CP in
5285   [\\/]* | ?:[\\/]*)
5286   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5287   ;;
5288   *)
5289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294     for ac_exec_ext in '' $ac_executable_extensions; do
5295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301   done
5302 IFS=$as_save_IFS
5303 
5304   ;;
5305 esac
5306 fi
5307 CP=$ac_cv_path_CP
5308 if test -n "$CP"; then
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5310 $as_echo "$CP" >&6; }
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315 
5316 
5317   test -n "$CP" && break
5318 done
5319 
5320   else
5321     # The variable is set, but is it from the command line or the environment?
5322 
5323     # Try to remove the string !CP! from our list.
5324     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5325     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5326       # If it failed, the variable was not from the command line. Ignore it,
5327       # but warn the user (except for BASH, which is always set by the calling BASH).
5328       if test "xCP" != xBASH; then
5329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5330 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5331       fi
5332       # Try to locate tool using the code snippet
5333       for ac_prog in cp
5334 do
5335   # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_CP+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   case $CP in
5343   [\\/]* | ?:[\\/]*)
5344   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5345   ;;
5346   *)
5347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350   IFS=$as_save_IFS
5351   test -z "$as_dir" && as_dir=.
5352     for ac_exec_ext in '' $ac_executable_extensions; do
5353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356     break 2
5357   fi
5358 done
5359   done
5360 IFS=$as_save_IFS
5361 
5362   ;;
5363 esac
5364 fi
5365 CP=$ac_cv_path_CP
5366 if test -n "$CP"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5368 $as_echo "$CP" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373 
5374 
5375   test -n "$CP" && break
5376 done
5377 
5378     else
5379       # If it succeeded, then it was overridden by the user. We will use it
5380       # for the tool.
5381 
5382       # First remove it from the list of overridden variables, so we can test
5383       # for unknown variables in the end.
5384       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5385 
5386       # Check if the provided tool contains a complete path.
5387       tool_specified="$CP"
5388       tool_basename="${tool_specified##*/}"
5389       if test "x$tool_basename" = "x$tool_specified"; then
5390         # A command without a complete path is provided, search $PATH.
5391         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5392 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5393         # Extract the first word of "$tool_basename", so it can be a program name with args.
5394 set dummy $tool_basename; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_path_CP+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   case $CP in
5401   [\\/]* | ?:[\\/]*)
5402   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5403   ;;
5404   *)
5405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410     for ac_exec_ext in '' $ac_executable_extensions; do
5411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417   done
5418 IFS=$as_save_IFS
5419 
5420   ;;
5421 esac
5422 fi
5423 CP=$ac_cv_path_CP
5424 if test -n "$CP"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5426 $as_echo "$CP" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431 
5432 
5433         if test "x$CP" = x; then
5434           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5435         fi
5436       else
5437         # Otherwise we believe it is a complete path. Use it as it is.
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5439 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5441 $as_echo_n "checking for CP... " >&6; }
5442         if test ! -x "$tool_specified"; then
5443           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5444 $as_echo "not found" >&6; }
5445           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5446         fi
5447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5448 $as_echo "$tool_specified" >&6; }
5449       fi
5450     fi
5451   fi
5452 
5453 
5454 
5455   if test "x$CP" = x; then
5456     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5457   fi
5458 
5459 
5460 
5461 
5462 
5463   # Publish this variable in the help.
5464 
5465 
5466   if test "x$CPIO" = x; then
5467     # The variable is not set by user, try to locate tool using the code snippet
5468     for ac_prog in cpio
5469 do
5470   # Extract the first word of "$ac_prog", so it can be a program name with args.
5471 set dummy $ac_prog; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_path_CPIO+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   case $CPIO in
5478   [\\/]* | ?:[\\/]*)
5479   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5480   ;;
5481   *)
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_exec_ext in '' $ac_executable_extensions; do
5488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494   done
5495 IFS=$as_save_IFS
5496 
5497   ;;
5498 esac
5499 fi
5500 CPIO=$ac_cv_path_CPIO
5501 if test -n "$CPIO"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5503 $as_echo "$CPIO" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508 
5509 
5510   test -n "$CPIO" && break
5511 done
5512 
5513   else
5514     # The variable is set, but is it from the command line or the environment?
5515 
5516     # Try to remove the string !CPIO! from our list.
5517     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5518     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5519       # If it failed, the variable was not from the command line. Ignore it,
5520       # but warn the user (except for BASH, which is always set by the calling BASH).
5521       if test "xCPIO" != xBASH; then
5522         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5523 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5524       fi
5525       # Try to locate tool using the code snippet
5526       for ac_prog in cpio
5527 do
5528   # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_path_CPIO+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535   case $CPIO in
5536   [\\/]* | ?:[\\/]*)
5537   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5538   ;;
5539   *)
5540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543   IFS=$as_save_IFS
5544   test -z "$as_dir" && as_dir=.
5545     for ac_exec_ext in '' $ac_executable_extensions; do
5546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549     break 2
5550   fi
5551 done
5552   done
5553 IFS=$as_save_IFS
5554 
5555   ;;
5556 esac
5557 fi
5558 CPIO=$ac_cv_path_CPIO
5559 if test -n "$CPIO"; then
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5561 $as_echo "$CPIO" >&6; }
5562 else
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566 
5567 
5568   test -n "$CPIO" && break
5569 done
5570 
5571     else
5572       # If it succeeded, then it was overridden by the user. We will use it
5573       # for the tool.
5574 
5575       # First remove it from the list of overridden variables, so we can test
5576       # for unknown variables in the end.
5577       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5578 
5579       # Check if the provided tool contains a complete path.
5580       tool_specified="$CPIO"
5581       tool_basename="${tool_specified##*/}"
5582       if test "x$tool_basename" = "x$tool_specified"; then
5583         # A command without a complete path is provided, search $PATH.
5584         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5585 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5586         # Extract the first word of "$tool_basename", so it can be a program name with args.
5587 set dummy $tool_basename; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_path_CPIO+:} false; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593   case $CPIO in
5594   [\\/]* | ?:[\\/]*)
5595   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5596   ;;
5597   *)
5598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603     for ac_exec_ext in '' $ac_executable_extensions; do
5604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610   done
5611 IFS=$as_save_IFS
5612 
5613   ;;
5614 esac
5615 fi
5616 CPIO=$ac_cv_path_CPIO
5617 if test -n "$CPIO"; then
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5619 $as_echo "$CPIO" >&6; }
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624 
5625 
5626         if test "x$CPIO" = x; then
5627           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5628         fi
5629       else
5630         # Otherwise we believe it is a complete path. Use it as it is.
5631         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5632 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5634 $as_echo_n "checking for CPIO... " >&6; }
5635         if test ! -x "$tool_specified"; then
5636           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5637 $as_echo "not found" >&6; }
5638           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5639         fi
5640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5641 $as_echo "$tool_specified" >&6; }
5642       fi
5643     fi
5644   fi
5645 
5646 
5647 
5648   if test "x$CPIO" = x; then
5649     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5650   fi
5651 
5652 
5653 
5654 
5655 
5656   # Publish this variable in the help.
5657 
5658 
5659   if test "x$CUT" = x; then
5660     # The variable is not set by user, try to locate tool using the code snippet
5661     for ac_prog in cut
5662 do
5663   # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_path_CUT+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   case $CUT in
5671   [\\/]* | ?:[\\/]*)
5672   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5673   ;;
5674   *)
5675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680     for ac_exec_ext in '' $ac_executable_extensions; do
5681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687   done
5688 IFS=$as_save_IFS
5689 
5690   ;;
5691 esac
5692 fi
5693 CUT=$ac_cv_path_CUT
5694 if test -n "$CUT"; then
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5696 $as_echo "$CUT" >&6; }
5697 else
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701 
5702 
5703   test -n "$CUT" && break
5704 done
5705 
5706   else
5707     # The variable is set, but is it from the command line or the environment?
5708 
5709     # Try to remove the string !CUT! from our list.
5710     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5711     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5712       # If it failed, the variable was not from the command line. Ignore it,
5713       # but warn the user (except for BASH, which is always set by the calling BASH).
5714       if test "xCUT" != xBASH; then
5715         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5716 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5717       fi
5718       # Try to locate tool using the code snippet
5719       for ac_prog in cut
5720 do
5721   # Extract the first word of "$ac_prog", so it can be a program name with args.
5722 set dummy $ac_prog; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_path_CUT+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   case $CUT in
5729   [\\/]* | ?:[\\/]*)
5730   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5731   ;;
5732   *)
5733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747 
5748   ;;
5749 esac
5750 fi
5751 CUT=$ac_cv_path_CUT
5752 if test -n "$CUT"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5754 $as_echo "$CUT" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759 
5760 
5761   test -n "$CUT" && break
5762 done
5763 
5764     else
5765       # If it succeeded, then it was overridden by the user. We will use it
5766       # for the tool.
5767 
5768       # First remove it from the list of overridden variables, so we can test
5769       # for unknown variables in the end.
5770       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5771 
5772       # Check if the provided tool contains a complete path.
5773       tool_specified="$CUT"
5774       tool_basename="${tool_specified##*/}"
5775       if test "x$tool_basename" = "x$tool_specified"; then
5776         # A command without a complete path is provided, search $PATH.
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5778 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5779         # Extract the first word of "$tool_basename", so it can be a program name with args.
5780 set dummy $tool_basename; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if ${ac_cv_path_CUT+:} false; then :
5784   $as_echo_n "(cached) " >&6
5785 else
5786   case $CUT in
5787   [\\/]* | ?:[\\/]*)
5788   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5789   ;;
5790   *)
5791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796     for ac_exec_ext in '' $ac_executable_extensions; do
5797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803   done
5804 IFS=$as_save_IFS
5805 
5806   ;;
5807 esac
5808 fi
5809 CUT=$ac_cv_path_CUT
5810 if test -n "$CUT"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5812 $as_echo "$CUT" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817 
5818 
5819         if test "x$CUT" = x; then
5820           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5821         fi
5822       else
5823         # Otherwise we believe it is a complete path. Use it as it is.
5824         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5825 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5827 $as_echo_n "checking for CUT... " >&6; }
5828         if test ! -x "$tool_specified"; then
5829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5830 $as_echo "not found" >&6; }
5831           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5832         fi
5833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5834 $as_echo "$tool_specified" >&6; }
5835       fi
5836     fi
5837   fi
5838 
5839 
5840 
5841   if test "x$CUT" = x; then
5842     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5843   fi
5844 
5845 
5846 
5847 
5848 
5849   # Publish this variable in the help.
5850 
5851 
5852   if test "x$DATE" = x; then
5853     # The variable is not set by user, try to locate tool using the code snippet
5854     for ac_prog in date
5855 do
5856   # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_path_DATE+:} false; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   case $DATE in
5864   [\\/]* | ?:[\\/]*)
5865   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5866   ;;
5867   *)
5868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882 
5883   ;;
5884 esac
5885 fi
5886 DATE=$ac_cv_path_DATE
5887 if test -n "$DATE"; then
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5889 $as_echo "$DATE" >&6; }
5890 else
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894 
5895 
5896   test -n "$DATE" && break
5897 done
5898 
5899   else
5900     # The variable is set, but is it from the command line or the environment?
5901 
5902     # Try to remove the string !DATE! from our list.
5903     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5904     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5905       # If it failed, the variable was not from the command line. Ignore it,
5906       # but warn the user (except for BASH, which is always set by the calling BASH).
5907       if test "xDATE" != xBASH; then
5908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5909 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5910       fi
5911       # Try to locate tool using the code snippet
5912       for ac_prog in date
5913 do
5914   # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_path_DATE+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   case $DATE in
5922   [\\/]* | ?:[\\/]*)
5923   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5924   ;;
5925   *)
5926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done
5939 IFS=$as_save_IFS
5940 
5941   ;;
5942 esac
5943 fi
5944 DATE=$ac_cv_path_DATE
5945 if test -n "$DATE"; then
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5947 $as_echo "$DATE" >&6; }
5948 else
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952 
5953 
5954   test -n "$DATE" && break
5955 done
5956 
5957     else
5958       # If it succeeded, then it was overridden by the user. We will use it
5959       # for the tool.
5960 
5961       # First remove it from the list of overridden variables, so we can test
5962       # for unknown variables in the end.
5963       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5964 
5965       # Check if the provided tool contains a complete path.
5966       tool_specified="$DATE"
5967       tool_basename="${tool_specified##*/}"
5968       if test "x$tool_basename" = "x$tool_specified"; then
5969         # A command without a complete path is provided, search $PATH.
5970         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
5971 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
5972         # Extract the first word of "$tool_basename", so it can be a program name with args.
5973 set dummy $tool_basename; ac_word=$2
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975 $as_echo_n "checking for $ac_word... " >&6; }
5976 if ${ac_cv_path_DATE+:} false; then :
5977   $as_echo_n "(cached) " >&6
5978 else
5979   case $DATE in
5980   [\\/]* | ?:[\\/]*)
5981   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5982   ;;
5983   *)
5984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989     for ac_exec_ext in '' $ac_executable_extensions; do
5990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996   done
5997 IFS=$as_save_IFS
5998 
5999   ;;
6000 esac
6001 fi
6002 DATE=$ac_cv_path_DATE
6003 if test -n "$DATE"; then
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6005 $as_echo "$DATE" >&6; }
6006 else
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010 
6011 
6012         if test "x$DATE" = x; then
6013           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6014         fi
6015       else
6016         # Otherwise we believe it is a complete path. Use it as it is.
6017         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6018 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6020 $as_echo_n "checking for DATE... " >&6; }
6021         if test ! -x "$tool_specified"; then
6022           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6023 $as_echo "not found" >&6; }
6024           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6025         fi
6026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6027 $as_echo "$tool_specified" >&6; }
6028       fi
6029     fi
6030   fi
6031 
6032 
6033 
6034   if test "x$DATE" = x; then
6035     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6036   fi
6037 
6038 
6039 
6040 
6041 
6042   # Publish this variable in the help.
6043 
6044 
6045   if test "x$DIFF" = x; then
6046     # The variable is not set by user, try to locate tool using the code snippet
6047     for ac_prog in gdiff diff
6048 do
6049   # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_path_DIFF+:} false; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   case $DIFF in
6057   [\\/]* | ?:[\\/]*)
6058   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6059   ;;
6060   *)
6061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066     for ac_exec_ext in '' $ac_executable_extensions; do
6067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073   done
6074 IFS=$as_save_IFS
6075 
6076   ;;
6077 esac
6078 fi
6079 DIFF=$ac_cv_path_DIFF
6080 if test -n "$DIFF"; then
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6082 $as_echo "$DIFF" >&6; }
6083 else
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087 
6088 
6089   test -n "$DIFF" && break
6090 done
6091 
6092   else
6093     # The variable is set, but is it from the command line or the environment?
6094 
6095     # Try to remove the string !DIFF! from our list.
6096     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6097     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6098       # If it failed, the variable was not from the command line. Ignore it,
6099       # but warn the user (except for BASH, which is always set by the calling BASH).
6100       if test "xDIFF" != xBASH; then
6101         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6102 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6103       fi
6104       # Try to locate tool using the code snippet
6105       for ac_prog in gdiff diff
6106 do
6107   # Extract the first word of "$ac_prog", so it can be a program name with args.
6108 set dummy $ac_prog; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_path_DIFF+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   case $DIFF in
6115   [\\/]* | ?:[\\/]*)
6116   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6117   ;;
6118   *)
6119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133 
6134   ;;
6135 esac
6136 fi
6137 DIFF=$ac_cv_path_DIFF
6138 if test -n "$DIFF"; then
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6140 $as_echo "$DIFF" >&6; }
6141 else
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145 
6146 
6147   test -n "$DIFF" && break
6148 done
6149 
6150     else
6151       # If it succeeded, then it was overridden by the user. We will use it
6152       # for the tool.
6153 
6154       # First remove it from the list of overridden variables, so we can test
6155       # for unknown variables in the end.
6156       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6157 
6158       # Check if the provided tool contains a complete path.
6159       tool_specified="$DIFF"
6160       tool_basename="${tool_specified##*/}"
6161       if test "x$tool_basename" = "x$tool_specified"; then
6162         # A command without a complete path is provided, search $PATH.
6163         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6164 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6165         # Extract the first word of "$tool_basename", so it can be a program name with args.
6166 set dummy $tool_basename; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_path_DIFF+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   case $DIFF in
6173   [\\/]* | ?:[\\/]*)
6174   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6175   ;;
6176   *)
6177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191 
6192   ;;
6193 esac
6194 fi
6195 DIFF=$ac_cv_path_DIFF
6196 if test -n "$DIFF"; then
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6198 $as_echo "$DIFF" >&6; }
6199 else
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203 
6204 
6205         if test "x$DIFF" = x; then
6206           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6207         fi
6208       else
6209         # Otherwise we believe it is a complete path. Use it as it is.
6210         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6211 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6213 $as_echo_n "checking for DIFF... " >&6; }
6214         if test ! -x "$tool_specified"; then
6215           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6216 $as_echo "not found" >&6; }
6217           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6218         fi
6219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6220 $as_echo "$tool_specified" >&6; }
6221       fi
6222     fi
6223   fi
6224 
6225 
6226 
6227   if test "x$DIFF" = x; then
6228     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6229   fi
6230 
6231 
6232 
6233 
6234 
6235   # Publish this variable in the help.
6236 
6237 
6238   if test "x$DIRNAME" = x; then
6239     # The variable is not set by user, try to locate tool using the code snippet
6240     for ac_prog in dirname
6241 do
6242   # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_path_DIRNAME+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   case $DIRNAME in
6250   [\\/]* | ?:[\\/]*)
6251   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6252   ;;
6253   *)
6254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266   done
6267 IFS=$as_save_IFS
6268 
6269   ;;
6270 esac
6271 fi
6272 DIRNAME=$ac_cv_path_DIRNAME
6273 if test -n "$DIRNAME"; then
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6275 $as_echo "$DIRNAME" >&6; }
6276 else
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280 
6281 
6282   test -n "$DIRNAME" && break
6283 done
6284 
6285   else
6286     # The variable is set, but is it from the command line or the environment?
6287 
6288     # Try to remove the string !DIRNAME! from our list.
6289     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6290     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6291       # If it failed, the variable was not from the command line. Ignore it,
6292       # but warn the user (except for BASH, which is always set by the calling BASH).
6293       if test "xDIRNAME" != xBASH; then
6294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6295 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6296       fi
6297       # Try to locate tool using the code snippet
6298       for ac_prog in dirname
6299 do
6300   # Extract the first word of "$ac_prog", so it can be a program name with args.
6301 set dummy $ac_prog; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_path_DIRNAME+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   case $DIRNAME in
6308   [\\/]* | ?:[\\/]*)
6309   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6310   ;;
6311   *)
6312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324   done
6325 IFS=$as_save_IFS
6326 
6327   ;;
6328 esac
6329 fi
6330 DIRNAME=$ac_cv_path_DIRNAME
6331 if test -n "$DIRNAME"; then
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6333 $as_echo "$DIRNAME" >&6; }
6334 else
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6337 fi
6338 
6339 
6340   test -n "$DIRNAME" && break
6341 done
6342 
6343     else
6344       # If it succeeded, then it was overridden by the user. We will use it
6345       # for the tool.
6346 
6347       # First remove it from the list of overridden variables, so we can test
6348       # for unknown variables in the end.
6349       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6350 
6351       # Check if the provided tool contains a complete path.
6352       tool_specified="$DIRNAME"
6353       tool_basename="${tool_specified##*/}"
6354       if test "x$tool_basename" = "x$tool_specified"; then
6355         # A command without a complete path is provided, search $PATH.
6356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6357 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6358         # Extract the first word of "$tool_basename", so it can be a program name with args.
6359 set dummy $tool_basename; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if ${ac_cv_path_DIRNAME+:} false; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   case $DIRNAME in
6366   [\\/]* | ?:[\\/]*)
6367   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6368   ;;
6369   *)
6370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375     for ac_exec_ext in '' $ac_executable_extensions; do
6376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382   done
6383 IFS=$as_save_IFS
6384 
6385   ;;
6386 esac
6387 fi
6388 DIRNAME=$ac_cv_path_DIRNAME
6389 if test -n "$DIRNAME"; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6391 $as_echo "$DIRNAME" >&6; }
6392 else
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396 
6397 
6398         if test "x$DIRNAME" = x; then
6399           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6400         fi
6401       else
6402         # Otherwise we believe it is a complete path. Use it as it is.
6403         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6404 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6406 $as_echo_n "checking for DIRNAME... " >&6; }
6407         if test ! -x "$tool_specified"; then
6408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6409 $as_echo "not found" >&6; }
6410           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6411         fi
6412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6413 $as_echo "$tool_specified" >&6; }
6414       fi
6415     fi
6416   fi
6417 
6418 
6419 
6420   if test "x$DIRNAME" = x; then
6421     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6422   fi
6423 
6424 
6425 
6426 
6427 
6428   # Publish this variable in the help.
6429 
6430 
6431   if test "x$ECHO" = x; then
6432     # The variable is not set by user, try to locate tool using the code snippet
6433     for ac_prog in echo
6434 do
6435   # Extract the first word of "$ac_prog", so it can be a program name with args.
6436 set dummy $ac_prog; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_path_ECHO+:} false; then :
6440   $as_echo_n "(cached) " >&6
6441 else
6442   case $ECHO in
6443   [\\/]* | ?:[\\/]*)
6444   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6445   ;;
6446   *)
6447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452     for ac_exec_ext in '' $ac_executable_extensions; do
6453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459   done
6460 IFS=$as_save_IFS
6461 
6462   ;;
6463 esac
6464 fi
6465 ECHO=$ac_cv_path_ECHO
6466 if test -n "$ECHO"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6468 $as_echo "$ECHO" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473 
6474 
6475   test -n "$ECHO" && break
6476 done
6477 
6478   else
6479     # The variable is set, but is it from the command line or the environment?
6480 
6481     # Try to remove the string !ECHO! from our list.
6482     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6483     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6484       # If it failed, the variable was not from the command line. Ignore it,
6485       # but warn the user (except for BASH, which is always set by the calling BASH).
6486       if test "xECHO" != xBASH; then
6487         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6488 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6489       fi
6490       # Try to locate tool using the code snippet
6491       for ac_prog in echo
6492 do
6493   # Extract the first word of "$ac_prog", so it can be a program name with args.
6494 set dummy $ac_prog; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_path_ECHO+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   case $ECHO in
6501   [\\/]* | ?:[\\/]*)
6502   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6503   ;;
6504   *)
6505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517   done
6518 IFS=$as_save_IFS
6519 
6520   ;;
6521 esac
6522 fi
6523 ECHO=$ac_cv_path_ECHO
6524 if test -n "$ECHO"; then
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6526 $as_echo "$ECHO" >&6; }
6527 else
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531 
6532 
6533   test -n "$ECHO" && break
6534 done
6535 
6536     else
6537       # If it succeeded, then it was overridden by the user. We will use it
6538       # for the tool.
6539 
6540       # First remove it from the list of overridden variables, so we can test
6541       # for unknown variables in the end.
6542       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6543 
6544       # Check if the provided tool contains a complete path.
6545       tool_specified="$ECHO"
6546       tool_basename="${tool_specified##*/}"
6547       if test "x$tool_basename" = "x$tool_specified"; then
6548         # A command without a complete path is provided, search $PATH.
6549         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6550 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6551         # Extract the first word of "$tool_basename", so it can be a program name with args.
6552 set dummy $tool_basename; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_path_ECHO+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   case $ECHO in
6559   [\\/]* | ?:[\\/]*)
6560   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6561   ;;
6562   *)
6563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577 
6578   ;;
6579 esac
6580 fi
6581 ECHO=$ac_cv_path_ECHO
6582 if test -n "$ECHO"; then
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6584 $as_echo "$ECHO" >&6; }
6585 else
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589 
6590 
6591         if test "x$ECHO" = x; then
6592           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6593         fi
6594       else
6595         # Otherwise we believe it is a complete path. Use it as it is.
6596         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6597 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6599 $as_echo_n "checking for ECHO... " >&6; }
6600         if test ! -x "$tool_specified"; then
6601           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6602 $as_echo "not found" >&6; }
6603           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6604         fi
6605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6606 $as_echo "$tool_specified" >&6; }
6607       fi
6608     fi
6609   fi
6610 
6611 
6612 
6613   if test "x$ECHO" = x; then
6614     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6615   fi
6616 
6617 
6618 
6619 
6620 
6621   # Publish this variable in the help.
6622 
6623 
6624   if test "x$EXPR" = x; then
6625     # The variable is not set by user, try to locate tool using the code snippet
6626     for ac_prog in expr
6627 do
6628   # Extract the first word of "$ac_prog", so it can be a program name with args.
6629 set dummy $ac_prog; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_path_EXPR+:} false; then :
6633   $as_echo_n "(cached) " >&6
6634 else
6635   case $EXPR in
6636   [\\/]* | ?:[\\/]*)
6637   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6638   ;;
6639   *)
6640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645     for ac_exec_ext in '' $ac_executable_extensions; do
6646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652   done
6653 IFS=$as_save_IFS
6654 
6655   ;;
6656 esac
6657 fi
6658 EXPR=$ac_cv_path_EXPR
6659 if test -n "$EXPR"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6661 $as_echo "$EXPR" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666 
6667 
6668   test -n "$EXPR" && break
6669 done
6670 
6671   else
6672     # The variable is set, but is it from the command line or the environment?
6673 
6674     # Try to remove the string !EXPR! from our list.
6675     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6676     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6677       # If it failed, the variable was not from the command line. Ignore it,
6678       # but warn the user (except for BASH, which is always set by the calling BASH).
6679       if test "xEXPR" != xBASH; then
6680         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6681 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6682       fi
6683       # Try to locate tool using the code snippet
6684       for ac_prog in expr
6685 do
6686   # Extract the first word of "$ac_prog", so it can be a program name with args.
6687 set dummy $ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_path_EXPR+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   case $EXPR in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712 
6713   ;;
6714 esac
6715 fi
6716 EXPR=$ac_cv_path_EXPR
6717 if test -n "$EXPR"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6719 $as_echo "$EXPR" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724 
6725 
6726   test -n "$EXPR" && break
6727 done
6728 
6729     else
6730       # If it succeeded, then it was overridden by the user. We will use it
6731       # for the tool.
6732 
6733       # First remove it from the list of overridden variables, so we can test
6734       # for unknown variables in the end.
6735       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6736 
6737       # Check if the provided tool contains a complete path.
6738       tool_specified="$EXPR"
6739       tool_basename="${tool_specified##*/}"
6740       if test "x$tool_basename" = "x$tool_specified"; then
6741         # A command without a complete path is provided, search $PATH.
6742         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6743 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6744         # Extract the first word of "$tool_basename", so it can be a program name with args.
6745 set dummy $tool_basename; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_path_EXPR+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   case $EXPR in
6752   [\\/]* | ?:[\\/]*)
6753   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6754   ;;
6755   *)
6756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770 
6771   ;;
6772 esac
6773 fi
6774 EXPR=$ac_cv_path_EXPR
6775 if test -n "$EXPR"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6777 $as_echo "$EXPR" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782 
6783 
6784         if test "x$EXPR" = x; then
6785           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6786         fi
6787       else
6788         # Otherwise we believe it is a complete path. Use it as it is.
6789         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6790 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6792 $as_echo_n "checking for EXPR... " >&6; }
6793         if test ! -x "$tool_specified"; then
6794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6795 $as_echo "not found" >&6; }
6796           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6797         fi
6798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6799 $as_echo "$tool_specified" >&6; }
6800       fi
6801     fi
6802   fi
6803 
6804 
6805 
6806   if test "x$EXPR" = x; then
6807     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6808   fi
6809 
6810 
6811 
6812 
6813 
6814   # Publish this variable in the help.
6815 
6816 
6817   if test "x$FILE" = x; then
6818     # The variable is not set by user, try to locate tool using the code snippet
6819     for ac_prog in file
6820 do
6821   # Extract the first word of "$ac_prog", so it can be a program name with args.
6822 set dummy $ac_prog; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_path_FILE+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   case $FILE in
6829   [\\/]* | ?:[\\/]*)
6830   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6831   ;;
6832   *)
6833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847 
6848   ;;
6849 esac
6850 fi
6851 FILE=$ac_cv_path_FILE
6852 if test -n "$FILE"; then
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6854 $as_echo "$FILE" >&6; }
6855 else
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859 
6860 
6861   test -n "$FILE" && break
6862 done
6863 
6864   else
6865     # The variable is set, but is it from the command line or the environment?
6866 
6867     # Try to remove the string !FILE! from our list.
6868     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6869     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6870       # If it failed, the variable was not from the command line. Ignore it,
6871       # but warn the user (except for BASH, which is always set by the calling BASH).
6872       if test "xFILE" != xBASH; then
6873         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6874 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6875       fi
6876       # Try to locate tool using the code snippet
6877       for ac_prog in file
6878 do
6879   # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy $ac_prog; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_path_FILE+:} false; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   case $FILE in
6887   [\\/]* | ?:[\\/]*)
6888   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6889   ;;
6890   *)
6891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896     for ac_exec_ext in '' $ac_executable_extensions; do
6897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903   done
6904 IFS=$as_save_IFS
6905 
6906   ;;
6907 esac
6908 fi
6909 FILE=$ac_cv_path_FILE
6910 if test -n "$FILE"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6912 $as_echo "$FILE" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917 
6918 
6919   test -n "$FILE" && break
6920 done
6921 
6922     else
6923       # If it succeeded, then it was overridden by the user. We will use it
6924       # for the tool.
6925 
6926       # First remove it from the list of overridden variables, so we can test
6927       # for unknown variables in the end.
6928       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6929 
6930       # Check if the provided tool contains a complete path.
6931       tool_specified="$FILE"
6932       tool_basename="${tool_specified##*/}"
6933       if test "x$tool_basename" = "x$tool_specified"; then
6934         # A command without a complete path is provided, search $PATH.
6935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6936 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6937         # Extract the first word of "$tool_basename", so it can be a program name with args.
6938 set dummy $tool_basename; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_path_FILE+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   case $FILE in
6945   [\\/]* | ?:[\\/]*)
6946   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6947   ;;
6948   *)
6949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963 
6964   ;;
6965 esac
6966 fi
6967 FILE=$ac_cv_path_FILE
6968 if test -n "$FILE"; then
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6970 $as_echo "$FILE" >&6; }
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975 
6976 
6977         if test "x$FILE" = x; then
6978           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6979         fi
6980       else
6981         # Otherwise we believe it is a complete path. Use it as it is.
6982         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
6983 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
6984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
6985 $as_echo_n "checking for FILE... " >&6; }
6986         if test ! -x "$tool_specified"; then
6987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6988 $as_echo "not found" >&6; }
6989           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
6990         fi
6991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6992 $as_echo "$tool_specified" >&6; }
6993       fi
6994     fi
6995   fi
6996 
6997 
6998 
6999   if test "x$FILE" = x; then
7000     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7001   fi
7002 
7003 
7004 
7005 
7006 
7007   # Publish this variable in the help.
7008 
7009 
7010   if test "x$FIND" = x; then
7011     # The variable is not set by user, try to locate tool using the code snippet
7012     for ac_prog in find
7013 do
7014   # Extract the first word of "$ac_prog", so it can be a program name with args.
7015 set dummy $ac_prog; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_path_FIND+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021   case $FIND in
7022   [\\/]* | ?:[\\/]*)
7023   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7024   ;;
7025   *)
7026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031     for ac_exec_ext in '' $ac_executable_extensions; do
7032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035     break 2
7036   fi
7037 done
7038   done
7039 IFS=$as_save_IFS
7040 
7041   ;;
7042 esac
7043 fi
7044 FIND=$ac_cv_path_FIND
7045 if test -n "$FIND"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7047 $as_echo "$FIND" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052 
7053 
7054   test -n "$FIND" && break
7055 done
7056 
7057   else
7058     # The variable is set, but is it from the command line or the environment?
7059 
7060     # Try to remove the string !FIND! from our list.
7061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7063       # If it failed, the variable was not from the command line. Ignore it,
7064       # but warn the user (except for BASH, which is always set by the calling BASH).
7065       if test "xFIND" != xBASH; then
7066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7067 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7068       fi
7069       # Try to locate tool using the code snippet
7070       for ac_prog in find
7071 do
7072   # Extract the first word of "$ac_prog", so it can be a program name with args.
7073 set dummy $ac_prog; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_path_FIND+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   case $FIND in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089     for ac_exec_ext in '' $ac_executable_extensions; do
7090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096   done
7097 IFS=$as_save_IFS
7098 
7099   ;;
7100 esac
7101 fi
7102 FIND=$ac_cv_path_FIND
7103 if test -n "$FIND"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7105 $as_echo "$FIND" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110 
7111 
7112   test -n "$FIND" && break
7113 done
7114 
7115     else
7116       # If it succeeded, then it was overridden by the user. We will use it
7117       # for the tool.
7118 
7119       # First remove it from the list of overridden variables, so we can test
7120       # for unknown variables in the end.
7121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7122 
7123       # Check if the provided tool contains a complete path.
7124       tool_specified="$FIND"
7125       tool_basename="${tool_specified##*/}"
7126       if test "x$tool_basename" = "x$tool_specified"; then
7127         # A command without a complete path is provided, search $PATH.
7128         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7129 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7130         # Extract the first word of "$tool_basename", so it can be a program name with args.
7131 set dummy $tool_basename; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_path_FIND+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137   case $FIND in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7140   ;;
7141   *)
7142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147     for ac_exec_ext in '' $ac_executable_extensions; do
7148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154   done
7155 IFS=$as_save_IFS
7156 
7157   ;;
7158 esac
7159 fi
7160 FIND=$ac_cv_path_FIND
7161 if test -n "$FIND"; then
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7163 $as_echo "$FIND" >&6; }
7164 else
7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168 
7169 
7170         if test "x$FIND" = x; then
7171           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7172         fi
7173       else
7174         # Otherwise we believe it is a complete path. Use it as it is.
7175         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7176 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7178 $as_echo_n "checking for FIND... " >&6; }
7179         if test ! -x "$tool_specified"; then
7180           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7181 $as_echo "not found" >&6; }
7182           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7183         fi
7184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7185 $as_echo "$tool_specified" >&6; }
7186       fi
7187     fi
7188   fi
7189 
7190 
7191 
7192   if test "x$FIND" = x; then
7193     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7194   fi
7195 
7196 
7197 
7198 
7199 
7200   # Publish this variable in the help.
7201 
7202 
7203   if test "x$HEAD" = x; then
7204     # The variable is not set by user, try to locate tool using the code snippet
7205     for ac_prog in head
7206 do
7207   # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_path_HEAD+:} false; then :
7212   $as_echo_n "(cached) " >&6
7213 else
7214   case $HEAD in
7215   [\\/]* | ?:[\\/]*)
7216   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7217   ;;
7218   *)
7219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224     for ac_exec_ext in '' $ac_executable_extensions; do
7225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231   done
7232 IFS=$as_save_IFS
7233 
7234   ;;
7235 esac
7236 fi
7237 HEAD=$ac_cv_path_HEAD
7238 if test -n "$HEAD"; then
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7240 $as_echo "$HEAD" >&6; }
7241 else
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245 
7246 
7247   test -n "$HEAD" && break
7248 done
7249 
7250   else
7251     # The variable is set, but is it from the command line or the environment?
7252 
7253     # Try to remove the string !HEAD! from our list.
7254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7256       # If it failed, the variable was not from the command line. Ignore it,
7257       # but warn the user (except for BASH, which is always set by the calling BASH).
7258       if test "xHEAD" != xBASH; then
7259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7260 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7261       fi
7262       # Try to locate tool using the code snippet
7263       for ac_prog in head
7264 do
7265   # Extract the first word of "$ac_prog", so it can be a program name with args.
7266 set dummy $ac_prog; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_path_HEAD+:} false; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272   case $HEAD in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282     for ac_exec_ext in '' $ac_executable_extensions; do
7283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289   done
7290 IFS=$as_save_IFS
7291 
7292   ;;
7293 esac
7294 fi
7295 HEAD=$ac_cv_path_HEAD
7296 if test -n "$HEAD"; then
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7298 $as_echo "$HEAD" >&6; }
7299 else
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303 
7304 
7305   test -n "$HEAD" && break
7306 done
7307 
7308     else
7309       # If it succeeded, then it was overridden by the user. We will use it
7310       # for the tool.
7311 
7312       # First remove it from the list of overridden variables, so we can test
7313       # for unknown variables in the end.
7314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7315 
7316       # Check if the provided tool contains a complete path.
7317       tool_specified="$HEAD"
7318       tool_basename="${tool_specified##*/}"
7319       if test "x$tool_basename" = "x$tool_specified"; then
7320         # A command without a complete path is provided, search $PATH.
7321         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7322 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7323         # Extract the first word of "$tool_basename", so it can be a program name with args.
7324 set dummy $tool_basename; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_path_HEAD+:} false; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330   case $HEAD in
7331   [\\/]* | ?:[\\/]*)
7332   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7333   ;;
7334   *)
7335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349 
7350   ;;
7351 esac
7352 fi
7353 HEAD=$ac_cv_path_HEAD
7354 if test -n "$HEAD"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7356 $as_echo "$HEAD" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361 
7362 
7363         if test "x$HEAD" = x; then
7364           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7365         fi
7366       else
7367         # Otherwise we believe it is a complete path. Use it as it is.
7368         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7369 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7371 $as_echo_n "checking for HEAD... " >&6; }
7372         if test ! -x "$tool_specified"; then
7373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7374 $as_echo "not found" >&6; }
7375           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7376         fi
7377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7378 $as_echo "$tool_specified" >&6; }
7379       fi
7380     fi
7381   fi
7382 
7383 
7384 
7385   if test "x$HEAD" = x; then
7386     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7387   fi
7388 
7389 
7390 
7391 
7392 
7393   # Publish this variable in the help.
7394 
7395 
7396   if test "x$LN" = x; then
7397     # The variable is not set by user, try to locate tool using the code snippet
7398     for ac_prog in ln
7399 do
7400   # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if ${ac_cv_path_LN+:} false; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   case $LN in
7408   [\\/]* | ?:[\\/]*)
7409   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7410   ;;
7411   *)
7412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426 
7427   ;;
7428 esac
7429 fi
7430 LN=$ac_cv_path_LN
7431 if test -n "$LN"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7433 $as_echo "$LN" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438 
7439 
7440   test -n "$LN" && break
7441 done
7442 
7443   else
7444     # The variable is set, but is it from the command line or the environment?
7445 
7446     # Try to remove the string !LN! from our list.
7447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7449       # If it failed, the variable was not from the command line. Ignore it,
7450       # but warn the user (except for BASH, which is always set by the calling BASH).
7451       if test "xLN" != xBASH; then
7452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7453 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7454       fi
7455       # Try to locate tool using the code snippet
7456       for ac_prog in ln
7457 do
7458   # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_path_LN+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   case $LN in
7466   [\\/]* | ?:[\\/]*)
7467   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7468   ;;
7469   *)
7470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482   done
7483 IFS=$as_save_IFS
7484 
7485   ;;
7486 esac
7487 fi
7488 LN=$ac_cv_path_LN
7489 if test -n "$LN"; then
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7491 $as_echo "$LN" >&6; }
7492 else
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496 
7497 
7498   test -n "$LN" && break
7499 done
7500 
7501     else
7502       # If it succeeded, then it was overridden by the user. We will use it
7503       # for the tool.
7504 
7505       # First remove it from the list of overridden variables, so we can test
7506       # for unknown variables in the end.
7507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7508 
7509       # Check if the provided tool contains a complete path.
7510       tool_specified="$LN"
7511       tool_basename="${tool_specified##*/}"
7512       if test "x$tool_basename" = "x$tool_specified"; then
7513         # A command without a complete path is provided, search $PATH.
7514         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7515 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7516         # Extract the first word of "$tool_basename", so it can be a program name with args.
7517 set dummy $tool_basename; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_path_LN+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   case $LN in
7524   [\\/]* | ?:[\\/]*)
7525   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7526   ;;
7527   *)
7528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533     for ac_exec_ext in '' $ac_executable_extensions; do
7534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540   done
7541 IFS=$as_save_IFS
7542 
7543   ;;
7544 esac
7545 fi
7546 LN=$ac_cv_path_LN
7547 if test -n "$LN"; then
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7549 $as_echo "$LN" >&6; }
7550 else
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7553 fi
7554 
7555 
7556         if test "x$LN" = x; then
7557           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7558         fi
7559       else
7560         # Otherwise we believe it is a complete path. Use it as it is.
7561         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7562 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7564 $as_echo_n "checking for LN... " >&6; }
7565         if test ! -x "$tool_specified"; then
7566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7567 $as_echo "not found" >&6; }
7568           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7569         fi
7570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7571 $as_echo "$tool_specified" >&6; }
7572       fi
7573     fi
7574   fi
7575 
7576 
7577 
7578   if test "x$LN" = x; then
7579     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7580   fi
7581 
7582 
7583 
7584 
7585 
7586   # Publish this variable in the help.
7587 
7588 
7589   if test "x$LS" = x; then
7590     # The variable is not set by user, try to locate tool using the code snippet
7591     for ac_prog in ls
7592 do
7593   # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_path_LS+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   case $LS in
7601   [\\/]* | ?:[\\/]*)
7602   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7603   ;;
7604   *)
7605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610     for ac_exec_ext in '' $ac_executable_extensions; do
7611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617   done
7618 IFS=$as_save_IFS
7619 
7620   ;;
7621 esac
7622 fi
7623 LS=$ac_cv_path_LS
7624 if test -n "$LS"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7626 $as_echo "$LS" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631 
7632 
7633   test -n "$LS" && break
7634 done
7635 
7636   else
7637     # The variable is set, but is it from the command line or the environment?
7638 
7639     # Try to remove the string !LS! from our list.
7640     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7641     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7642       # If it failed, the variable was not from the command line. Ignore it,
7643       # but warn the user (except for BASH, which is always set by the calling BASH).
7644       if test "xLS" != xBASH; then
7645         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7646 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7647       fi
7648       # Try to locate tool using the code snippet
7649       for ac_prog in ls
7650 do
7651   # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_path_LS+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   case $LS in
7659   [\\/]* | ?:[\\/]*)
7660   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7661   ;;
7662   *)
7663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675   done
7676 IFS=$as_save_IFS
7677 
7678   ;;
7679 esac
7680 fi
7681 LS=$ac_cv_path_LS
7682 if test -n "$LS"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7684 $as_echo "$LS" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689 
7690 
7691   test -n "$LS" && break
7692 done
7693 
7694     else
7695       # If it succeeded, then it was overridden by the user. We will use it
7696       # for the tool.
7697 
7698       # First remove it from the list of overridden variables, so we can test
7699       # for unknown variables in the end.
7700       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7701 
7702       # Check if the provided tool contains a complete path.
7703       tool_specified="$LS"
7704       tool_basename="${tool_specified##*/}"
7705       if test "x$tool_basename" = "x$tool_specified"; then
7706         # A command without a complete path is provided, search $PATH.
7707         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7708 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7709         # Extract the first word of "$tool_basename", so it can be a program name with args.
7710 set dummy $tool_basename; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_path_LS+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   case $LS in
7717   [\\/]* | ?:[\\/]*)
7718   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7719   ;;
7720   *)
7721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724   IFS=$as_save_IFS
7725   test -z "$as_dir" && as_dir=.
7726     for ac_exec_ext in '' $ac_executable_extensions; do
7727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730     break 2
7731   fi
7732 done
7733   done
7734 IFS=$as_save_IFS
7735 
7736   ;;
7737 esac
7738 fi
7739 LS=$ac_cv_path_LS
7740 if test -n "$LS"; then
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7742 $as_echo "$LS" >&6; }
7743 else
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7746 fi
7747 
7748 
7749         if test "x$LS" = x; then
7750           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7751         fi
7752       else
7753         # Otherwise we believe it is a complete path. Use it as it is.
7754         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7755 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7757 $as_echo_n "checking for LS... " >&6; }
7758         if test ! -x "$tool_specified"; then
7759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7760 $as_echo "not found" >&6; }
7761           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7762         fi
7763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7764 $as_echo "$tool_specified" >&6; }
7765       fi
7766     fi
7767   fi
7768 
7769 
7770 
7771   if test "x$LS" = x; then
7772     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7773   fi
7774 
7775 
7776 
7777 
7778 
7779   # Publish this variable in the help.
7780 
7781 
7782   if test "x$MKDIR" = x; then
7783     # The variable is not set by user, try to locate tool using the code snippet
7784     for ac_prog in mkdir
7785 do
7786   # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_path_MKDIR+:} false; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793   case $MKDIR in
7794   [\\/]* | ?:[\\/]*)
7795   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7796   ;;
7797   *)
7798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803     for ac_exec_ext in '' $ac_executable_extensions; do
7804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810   done
7811 IFS=$as_save_IFS
7812 
7813   ;;
7814 esac
7815 fi
7816 MKDIR=$ac_cv_path_MKDIR
7817 if test -n "$MKDIR"; then
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7819 $as_echo "$MKDIR" >&6; }
7820 else
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824 
7825 
7826   test -n "$MKDIR" && break
7827 done
7828 
7829   else
7830     # The variable is set, but is it from the command line or the environment?
7831 
7832     # Try to remove the string !MKDIR! from our list.
7833     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7834     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7835       # If it failed, the variable was not from the command line. Ignore it,
7836       # but warn the user (except for BASH, which is always set by the calling BASH).
7837       if test "xMKDIR" != xBASH; then
7838         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7839 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7840       fi
7841       # Try to locate tool using the code snippet
7842       for ac_prog in mkdir
7843 do
7844   # Extract the first word of "$ac_prog", so it can be a program name with args.
7845 set dummy $ac_prog; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_path_MKDIR+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   case $MKDIR in
7852   [\\/]* | ?:[\\/]*)
7853   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7854   ;;
7855   *)
7856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859   IFS=$as_save_IFS
7860   test -z "$as_dir" && as_dir=.
7861     for ac_exec_ext in '' $ac_executable_extensions; do
7862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865     break 2
7866   fi
7867 done
7868   done
7869 IFS=$as_save_IFS
7870 
7871   ;;
7872 esac
7873 fi
7874 MKDIR=$ac_cv_path_MKDIR
7875 if test -n "$MKDIR"; then
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7877 $as_echo "$MKDIR" >&6; }
7878 else
7879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882 
7883 
7884   test -n "$MKDIR" && break
7885 done
7886 
7887     else
7888       # If it succeeded, then it was overridden by the user. We will use it
7889       # for the tool.
7890 
7891       # First remove it from the list of overridden variables, so we can test
7892       # for unknown variables in the end.
7893       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7894 
7895       # Check if the provided tool contains a complete path.
7896       tool_specified="$MKDIR"
7897       tool_basename="${tool_specified##*/}"
7898       if test "x$tool_basename" = "x$tool_specified"; then
7899         # A command without a complete path is provided, search $PATH.
7900         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7901 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7902         # Extract the first word of "$tool_basename", so it can be a program name with args.
7903 set dummy $tool_basename; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_path_MKDIR+:} false; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   case $MKDIR in
7910   [\\/]* | ?:[\\/]*)
7911   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7912   ;;
7913   *)
7914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917   IFS=$as_save_IFS
7918   test -z "$as_dir" && as_dir=.
7919     for ac_exec_ext in '' $ac_executable_extensions; do
7920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923     break 2
7924   fi
7925 done
7926   done
7927 IFS=$as_save_IFS
7928 
7929   ;;
7930 esac
7931 fi
7932 MKDIR=$ac_cv_path_MKDIR
7933 if test -n "$MKDIR"; then
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7935 $as_echo "$MKDIR" >&6; }
7936 else
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940 
7941 
7942         if test "x$MKDIR" = x; then
7943           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7944         fi
7945       else
7946         # Otherwise we believe it is a complete path. Use it as it is.
7947         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7948 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
7950 $as_echo_n "checking for MKDIR... " >&6; }
7951         if test ! -x "$tool_specified"; then
7952           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7953 $as_echo "not found" >&6; }
7954           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
7955         fi
7956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7957 $as_echo "$tool_specified" >&6; }
7958       fi
7959     fi
7960   fi
7961 
7962 
7963 
7964   if test "x$MKDIR" = x; then
7965     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
7966   fi
7967 
7968 
7969 
7970 
7971 
7972   # Publish this variable in the help.
7973 
7974 
7975   if test "x$MKTEMP" = x; then
7976     # The variable is not set by user, try to locate tool using the code snippet
7977     for ac_prog in mktemp
7978 do
7979   # Extract the first word of "$ac_prog", so it can be a program name with args.
7980 set dummy $ac_prog; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_path_MKTEMP+:} false; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   case $MKTEMP in
7987   [\\/]* | ?:[\\/]*)
7988   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
7989   ;;
7990   *)
7991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005 
8006   ;;
8007 esac
8008 fi
8009 MKTEMP=$ac_cv_path_MKTEMP
8010 if test -n "$MKTEMP"; then
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8012 $as_echo "$MKTEMP" >&6; }
8013 else
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017 
8018 
8019   test -n "$MKTEMP" && break
8020 done
8021 
8022   else
8023     # The variable is set, but is it from the command line or the environment?
8024 
8025     # Try to remove the string !MKTEMP! from our list.
8026     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8027     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8028       # If it failed, the variable was not from the command line. Ignore it,
8029       # but warn the user (except for BASH, which is always set by the calling BASH).
8030       if test "xMKTEMP" != xBASH; then
8031         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8032 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8033       fi
8034       # Try to locate tool using the code snippet
8035       for ac_prog in mktemp
8036 do
8037   # Extract the first word of "$ac_prog", so it can be a program name with args.
8038 set dummy $ac_prog; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_path_MKTEMP+:} false; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   case $MKTEMP in
8045   [\\/]* | ?:[\\/]*)
8046   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8047   ;;
8048   *)
8049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054     for ac_exec_ext in '' $ac_executable_extensions; do
8055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061   done
8062 IFS=$as_save_IFS
8063 
8064   ;;
8065 esac
8066 fi
8067 MKTEMP=$ac_cv_path_MKTEMP
8068 if test -n "$MKTEMP"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8070 $as_echo "$MKTEMP" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075 
8076 
8077   test -n "$MKTEMP" && break
8078 done
8079 
8080     else
8081       # If it succeeded, then it was overridden by the user. We will use it
8082       # for the tool.
8083 
8084       # First remove it from the list of overridden variables, so we can test
8085       # for unknown variables in the end.
8086       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8087 
8088       # Check if the provided tool contains a complete path.
8089       tool_specified="$MKTEMP"
8090       tool_basename="${tool_specified##*/}"
8091       if test "x$tool_basename" = "x$tool_specified"; then
8092         # A command without a complete path is provided, search $PATH.
8093         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8094 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8095         # Extract the first word of "$tool_basename", so it can be a program name with args.
8096 set dummy $tool_basename; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if ${ac_cv_path_MKTEMP+:} false; then :
8100   $as_echo_n "(cached) " >&6
8101 else
8102   case $MKTEMP in
8103   [\\/]* | ?:[\\/]*)
8104   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8105   ;;
8106   *)
8107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110   IFS=$as_save_IFS
8111   test -z "$as_dir" && as_dir=.
8112     for ac_exec_ext in '' $ac_executable_extensions; do
8113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116     break 2
8117   fi
8118 done
8119   done
8120 IFS=$as_save_IFS
8121 
8122   ;;
8123 esac
8124 fi
8125 MKTEMP=$ac_cv_path_MKTEMP
8126 if test -n "$MKTEMP"; then
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8128 $as_echo "$MKTEMP" >&6; }
8129 else
8130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133 
8134 
8135         if test "x$MKTEMP" = x; then
8136           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8137         fi
8138       else
8139         # Otherwise we believe it is a complete path. Use it as it is.
8140         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8141 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8143 $as_echo_n "checking for MKTEMP... " >&6; }
8144         if test ! -x "$tool_specified"; then
8145           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8146 $as_echo "not found" >&6; }
8147           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8148         fi
8149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8150 $as_echo "$tool_specified" >&6; }
8151       fi
8152     fi
8153   fi
8154 
8155 
8156 
8157   if test "x$MKTEMP" = x; then
8158     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8159   fi
8160 
8161 
8162 
8163 
8164 
8165   # Publish this variable in the help.
8166 
8167 
8168   if test "x$MV" = x; then
8169     # The variable is not set by user, try to locate tool using the code snippet
8170     for ac_prog in mv
8171 do
8172   # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_path_MV+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   case $MV in
8180   [\\/]* | ?:[\\/]*)
8181   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8182   ;;
8183   *)
8184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187   IFS=$as_save_IFS
8188   test -z "$as_dir" && as_dir=.
8189     for ac_exec_ext in '' $ac_executable_extensions; do
8190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193     break 2
8194   fi
8195 done
8196   done
8197 IFS=$as_save_IFS
8198 
8199   ;;
8200 esac
8201 fi
8202 MV=$ac_cv_path_MV
8203 if test -n "$MV"; then
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8205 $as_echo "$MV" >&6; }
8206 else
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210 
8211 
8212   test -n "$MV" && break
8213 done
8214 
8215   else
8216     # The variable is set, but is it from the command line or the environment?
8217 
8218     # Try to remove the string !MV! from our list.
8219     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8220     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8221       # If it failed, the variable was not from the command line. Ignore it,
8222       # but warn the user (except for BASH, which is always set by the calling BASH).
8223       if test "xMV" != xBASH; then
8224         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8225 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8226       fi
8227       # Try to locate tool using the code snippet
8228       for ac_prog in mv
8229 do
8230   # Extract the first word of "$ac_prog", so it can be a program name with args.
8231 set dummy $ac_prog; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_path_MV+:} false; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   case $MV in
8238   [\\/]* | ?:[\\/]*)
8239   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8240   ;;
8241   *)
8242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245   IFS=$as_save_IFS
8246   test -z "$as_dir" && as_dir=.
8247     for ac_exec_ext in '' $ac_executable_extensions; do
8248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251     break 2
8252   fi
8253 done
8254   done
8255 IFS=$as_save_IFS
8256 
8257   ;;
8258 esac
8259 fi
8260 MV=$ac_cv_path_MV
8261 if test -n "$MV"; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8263 $as_echo "$MV" >&6; }
8264 else
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268 
8269 
8270   test -n "$MV" && break
8271 done
8272 
8273     else
8274       # If it succeeded, then it was overridden by the user. We will use it
8275       # for the tool.
8276 
8277       # First remove it from the list of overridden variables, so we can test
8278       # for unknown variables in the end.
8279       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8280 
8281       # Check if the provided tool contains a complete path.
8282       tool_specified="$MV"
8283       tool_basename="${tool_specified##*/}"
8284       if test "x$tool_basename" = "x$tool_specified"; then
8285         # A command without a complete path is provided, search $PATH.
8286         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8287 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8288         # Extract the first word of "$tool_basename", so it can be a program name with args.
8289 set dummy $tool_basename; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_path_MV+:} false; then :
8293   $as_echo_n "(cached) " >&6
8294 else
8295   case $MV in
8296   [\\/]* | ?:[\\/]*)
8297   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8298   ;;
8299   *)
8300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303   IFS=$as_save_IFS
8304   test -z "$as_dir" && as_dir=.
8305     for ac_exec_ext in '' $ac_executable_extensions; do
8306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309     break 2
8310   fi
8311 done
8312   done
8313 IFS=$as_save_IFS
8314 
8315   ;;
8316 esac
8317 fi
8318 MV=$ac_cv_path_MV
8319 if test -n "$MV"; then
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8321 $as_echo "$MV" >&6; }
8322 else
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326 
8327 
8328         if test "x$MV" = x; then
8329           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8330         fi
8331       else
8332         # Otherwise we believe it is a complete path. Use it as it is.
8333         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8334 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8336 $as_echo_n "checking for MV... " >&6; }
8337         if test ! -x "$tool_specified"; then
8338           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8339 $as_echo "not found" >&6; }
8340           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8341         fi
8342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8343 $as_echo "$tool_specified" >&6; }
8344       fi
8345     fi
8346   fi
8347 
8348 
8349 
8350   if test "x$MV" = x; then
8351     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8352   fi
8353 
8354 
8355 
8356 
8357 
8358   # Publish this variable in the help.
8359 
8360 
8361   if test "x$NAWK" = x; then
8362     # The variable is not set by user, try to locate tool using the code snippet
8363     for ac_prog in nawk gawk awk
8364 do
8365   # Extract the first word of "$ac_prog", so it can be a program name with args.
8366 set dummy $ac_prog; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if ${ac_cv_path_NAWK+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   case $NAWK in
8373   [\\/]* | ?:[\\/]*)
8374   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8375   ;;
8376   *)
8377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380   IFS=$as_save_IFS
8381   test -z "$as_dir" && as_dir=.
8382     for ac_exec_ext in '' $ac_executable_extensions; do
8383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386     break 2
8387   fi
8388 done
8389   done
8390 IFS=$as_save_IFS
8391 
8392   ;;
8393 esac
8394 fi
8395 NAWK=$ac_cv_path_NAWK
8396 if test -n "$NAWK"; then
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8398 $as_echo "$NAWK" >&6; }
8399 else
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403 
8404 
8405   test -n "$NAWK" && break
8406 done
8407 
8408   else
8409     # The variable is set, but is it from the command line or the environment?
8410 
8411     # Try to remove the string !NAWK! from our list.
8412     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8413     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8414       # If it failed, the variable was not from the command line. Ignore it,
8415       # but warn the user (except for BASH, which is always set by the calling BASH).
8416       if test "xNAWK" != xBASH; then
8417         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8418 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8419       fi
8420       # Try to locate tool using the code snippet
8421       for ac_prog in nawk gawk awk
8422 do
8423   # Extract the first word of "$ac_prog", so it can be a program name with args.
8424 set dummy $ac_prog; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_path_NAWK+:} false; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   case $NAWK in
8431   [\\/]* | ?:[\\/]*)
8432   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8433   ;;
8434   *)
8435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449 
8450   ;;
8451 esac
8452 fi
8453 NAWK=$ac_cv_path_NAWK
8454 if test -n "$NAWK"; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8456 $as_echo "$NAWK" >&6; }
8457 else
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461 
8462 
8463   test -n "$NAWK" && break
8464 done
8465 
8466     else
8467       # If it succeeded, then it was overridden by the user. We will use it
8468       # for the tool.
8469 
8470       # First remove it from the list of overridden variables, so we can test
8471       # for unknown variables in the end.
8472       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8473 
8474       # Check if the provided tool contains a complete path.
8475       tool_specified="$NAWK"
8476       tool_basename="${tool_specified##*/}"
8477       if test "x$tool_basename" = "x$tool_specified"; then
8478         # A command without a complete path is provided, search $PATH.
8479         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8480 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8481         # Extract the first word of "$tool_basename", so it can be a program name with args.
8482 set dummy $tool_basename; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_path_NAWK+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   case $NAWK in
8489   [\\/]* | ?:[\\/]*)
8490   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8491   ;;
8492   *)
8493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507 
8508   ;;
8509 esac
8510 fi
8511 NAWK=$ac_cv_path_NAWK
8512 if test -n "$NAWK"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8514 $as_echo "$NAWK" >&6; }
8515 else
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519 
8520 
8521         if test "x$NAWK" = x; then
8522           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8523         fi
8524       else
8525         # Otherwise we believe it is a complete path. Use it as it is.
8526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8527 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8529 $as_echo_n "checking for NAWK... " >&6; }
8530         if test ! -x "$tool_specified"; then
8531           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8532 $as_echo "not found" >&6; }
8533           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8534         fi
8535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8536 $as_echo "$tool_specified" >&6; }
8537       fi
8538     fi
8539   fi
8540 
8541 
8542 
8543   if test "x$NAWK" = x; then
8544     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8545   fi
8546 
8547 
8548 
8549 
8550 
8551   # Publish this variable in the help.
8552 
8553 
8554   if test "x$PRINTF" = x; then
8555     # The variable is not set by user, try to locate tool using the code snippet
8556     for ac_prog in printf
8557 do
8558   # Extract the first word of "$ac_prog", so it can be a program name with args.
8559 set dummy $ac_prog; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_path_PRINTF+:} false; then :
8563   $as_echo_n "(cached) " >&6
8564 else
8565   case $PRINTF in
8566   [\\/]* | ?:[\\/]*)
8567   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8568   ;;
8569   *)
8570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573   IFS=$as_save_IFS
8574   test -z "$as_dir" && as_dir=.
8575     for ac_exec_ext in '' $ac_executable_extensions; do
8576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579     break 2
8580   fi
8581 done
8582   done
8583 IFS=$as_save_IFS
8584 
8585   ;;
8586 esac
8587 fi
8588 PRINTF=$ac_cv_path_PRINTF
8589 if test -n "$PRINTF"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8591 $as_echo "$PRINTF" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596 
8597 
8598   test -n "$PRINTF" && break
8599 done
8600 
8601   else
8602     # The variable is set, but is it from the command line or the environment?
8603 
8604     # Try to remove the string !PRINTF! from our list.
8605     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8606     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8607       # If it failed, the variable was not from the command line. Ignore it,
8608       # but warn the user (except for BASH, which is always set by the calling BASH).
8609       if test "xPRINTF" != xBASH; then
8610         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8611 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8612       fi
8613       # Try to locate tool using the code snippet
8614       for ac_prog in printf
8615 do
8616   # Extract the first word of "$ac_prog", so it can be a program name with args.
8617 set dummy $ac_prog; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if ${ac_cv_path_PRINTF+:} false; then :
8621   $as_echo_n "(cached) " >&6
8622 else
8623   case $PRINTF in
8624   [\\/]* | ?:[\\/]*)
8625   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8626   ;;
8627   *)
8628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631   IFS=$as_save_IFS
8632   test -z "$as_dir" && as_dir=.
8633     for ac_exec_ext in '' $ac_executable_extensions; do
8634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637     break 2
8638   fi
8639 done
8640   done
8641 IFS=$as_save_IFS
8642 
8643   ;;
8644 esac
8645 fi
8646 PRINTF=$ac_cv_path_PRINTF
8647 if test -n "$PRINTF"; then
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8649 $as_echo "$PRINTF" >&6; }
8650 else
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654 
8655 
8656   test -n "$PRINTF" && break
8657 done
8658 
8659     else
8660       # If it succeeded, then it was overridden by the user. We will use it
8661       # for the tool.
8662 
8663       # First remove it from the list of overridden variables, so we can test
8664       # for unknown variables in the end.
8665       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8666 
8667       # Check if the provided tool contains a complete path.
8668       tool_specified="$PRINTF"
8669       tool_basename="${tool_specified##*/}"
8670       if test "x$tool_basename" = "x$tool_specified"; then
8671         # A command without a complete path is provided, search $PATH.
8672         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8673 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8674         # Extract the first word of "$tool_basename", so it can be a program name with args.
8675 set dummy $tool_basename; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if ${ac_cv_path_PRINTF+:} false; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   case $PRINTF in
8682   [\\/]* | ?:[\\/]*)
8683   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8684   ;;
8685   *)
8686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691     for ac_exec_ext in '' $ac_executable_extensions; do
8692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698   done
8699 IFS=$as_save_IFS
8700 
8701   ;;
8702 esac
8703 fi
8704 PRINTF=$ac_cv_path_PRINTF
8705 if test -n "$PRINTF"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8707 $as_echo "$PRINTF" >&6; }
8708 else
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712 
8713 
8714         if test "x$PRINTF" = x; then
8715           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8716         fi
8717       else
8718         # Otherwise we believe it is a complete path. Use it as it is.
8719         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8720 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8722 $as_echo_n "checking for PRINTF... " >&6; }
8723         if test ! -x "$tool_specified"; then
8724           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8725 $as_echo "not found" >&6; }
8726           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8727         fi
8728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8729 $as_echo "$tool_specified" >&6; }
8730       fi
8731     fi
8732   fi
8733 
8734 
8735 
8736   if test "x$PRINTF" = x; then
8737     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8738   fi
8739 
8740 
8741 
8742 
8743 
8744   # Publish this variable in the help.
8745 
8746 
8747   if test "x$RM" = x; then
8748     # The variable is not set by user, try to locate tool using the code snippet
8749     for ac_prog in rm
8750 do
8751   # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if ${ac_cv_path_RM+:} false; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   case $RM in
8759   [\\/]* | ?:[\\/]*)
8760   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8761   ;;
8762   *)
8763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8765 do
8766   IFS=$as_save_IFS
8767   test -z "$as_dir" && as_dir=.
8768     for ac_exec_ext in '' $ac_executable_extensions; do
8769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8770     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772     break 2
8773   fi
8774 done
8775   done
8776 IFS=$as_save_IFS
8777 
8778   ;;
8779 esac
8780 fi
8781 RM=$ac_cv_path_RM
8782 if test -n "$RM"; then
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8784 $as_echo "$RM" >&6; }
8785 else
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789 
8790 
8791   test -n "$RM" && break
8792 done
8793 
8794   else
8795     # The variable is set, but is it from the command line or the environment?
8796 
8797     # Try to remove the string !RM! from our list.
8798     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8799     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8800       # If it failed, the variable was not from the command line. Ignore it,
8801       # but warn the user (except for BASH, which is always set by the calling BASH).
8802       if test "xRM" != xBASH; then
8803         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8804 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8805       fi
8806       # Try to locate tool using the code snippet
8807       for ac_prog in rm
8808 do
8809   # Extract the first word of "$ac_prog", so it can be a program name with args.
8810 set dummy $ac_prog; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if ${ac_cv_path_RM+:} false; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   case $RM in
8817   [\\/]* | ?:[\\/]*)
8818   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8819   ;;
8820   *)
8821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8823 do
8824   IFS=$as_save_IFS
8825   test -z "$as_dir" && as_dir=.
8826     for ac_exec_ext in '' $ac_executable_extensions; do
8827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830     break 2
8831   fi
8832 done
8833   done
8834 IFS=$as_save_IFS
8835 
8836   ;;
8837 esac
8838 fi
8839 RM=$ac_cv_path_RM
8840 if test -n "$RM"; then
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8842 $as_echo "$RM" >&6; }
8843 else
8844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8846 fi
8847 
8848 
8849   test -n "$RM" && break
8850 done
8851 
8852     else
8853       # If it succeeded, then it was overridden by the user. We will use it
8854       # for the tool.
8855 
8856       # First remove it from the list of overridden variables, so we can test
8857       # for unknown variables in the end.
8858       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8859 
8860       # Check if the provided tool contains a complete path.
8861       tool_specified="$RM"
8862       tool_basename="${tool_specified##*/}"
8863       if test "x$tool_basename" = "x$tool_specified"; then
8864         # A command without a complete path is provided, search $PATH.
8865         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8866 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8867         # Extract the first word of "$tool_basename", so it can be a program name with args.
8868 set dummy $tool_basename; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if ${ac_cv_path_RM+:} false; then :
8872   $as_echo_n "(cached) " >&6
8873 else
8874   case $RM in
8875   [\\/]* | ?:[\\/]*)
8876   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8877   ;;
8878   *)
8879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in $PATH
8881 do
8882   IFS=$as_save_IFS
8883   test -z "$as_dir" && as_dir=.
8884     for ac_exec_ext in '' $ac_executable_extensions; do
8885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888     break 2
8889   fi
8890 done
8891   done
8892 IFS=$as_save_IFS
8893 
8894   ;;
8895 esac
8896 fi
8897 RM=$ac_cv_path_RM
8898 if test -n "$RM"; then
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8900 $as_echo "$RM" >&6; }
8901 else
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8904 fi
8905 
8906 
8907         if test "x$RM" = x; then
8908           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8909         fi
8910       else
8911         # Otherwise we believe it is a complete path. Use it as it is.
8912         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8913 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8914         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8915 $as_echo_n "checking for RM... " >&6; }
8916         if test ! -x "$tool_specified"; then
8917           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8918 $as_echo "not found" >&6; }
8919           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8920         fi
8921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8922 $as_echo "$tool_specified" >&6; }
8923       fi
8924     fi
8925   fi
8926 
8927 
8928 
8929   if test "x$RM" = x; then
8930     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8931   fi
8932 
8933 
8934 
8935 
8936 
8937   # Publish this variable in the help.
8938 
8939 
8940   if test "x$SH" = x; then
8941     # The variable is not set by user, try to locate tool using the code snippet
8942     for ac_prog in sh
8943 do
8944   # Extract the first word of "$ac_prog", so it can be a program name with args.
8945 set dummy $ac_prog; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if ${ac_cv_path_SH+:} false; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   case $SH in
8952   [\\/]* | ?:[\\/]*)
8953   ac_cv_path_SH="$SH" # Let the user override the test with a path.
8954   ;;
8955   *)
8956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959   IFS=$as_save_IFS
8960   test -z "$as_dir" && as_dir=.
8961     for ac_exec_ext in '' $ac_executable_extensions; do
8962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8963     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
8964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965     break 2
8966   fi
8967 done
8968   done
8969 IFS=$as_save_IFS
8970 
8971   ;;
8972 esac
8973 fi
8974 SH=$ac_cv_path_SH
8975 if test -n "$SH"; then
8976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
8977 $as_echo "$SH" >&6; }
8978 else
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8981 fi
8982 
8983 
8984   test -n "$SH" && break
8985 done
8986 
8987   else
8988     # The variable is set, but is it from the command line or the environment?
8989 
8990     # Try to remove the string !SH! from our list.
8991     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
8992     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8993       # If it failed, the variable was not from the command line. Ignore it,
8994       # but warn the user (except for BASH, which is always set by the calling BASH).
8995       if test "xSH" != xBASH; then
8996         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
8997 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
8998       fi
8999       # Try to locate tool using the code snippet
9000       for ac_prog in sh
9001 do
9002   # Extract the first word of "$ac_prog", so it can be a program name with args.
9003 set dummy $ac_prog; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if ${ac_cv_path_SH+:} false; then :
9007   $as_echo_n "(cached) " >&6
9008 else
9009   case $SH in
9010   [\\/]* | ?:[\\/]*)
9011   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9012   ;;
9013   *)
9014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9016 do
9017   IFS=$as_save_IFS
9018   test -z "$as_dir" && as_dir=.
9019     for ac_exec_ext in '' $ac_executable_extensions; do
9020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023     break 2
9024   fi
9025 done
9026   done
9027 IFS=$as_save_IFS
9028 
9029   ;;
9030 esac
9031 fi
9032 SH=$ac_cv_path_SH
9033 if test -n "$SH"; then
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9035 $as_echo "$SH" >&6; }
9036 else
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9039 fi
9040 
9041 
9042   test -n "$SH" && break
9043 done
9044 
9045     else
9046       # If it succeeded, then it was overridden by the user. We will use it
9047       # for the tool.
9048 
9049       # First remove it from the list of overridden variables, so we can test
9050       # for unknown variables in the end.
9051       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9052 
9053       # Check if the provided tool contains a complete path.
9054       tool_specified="$SH"
9055       tool_basename="${tool_specified##*/}"
9056       if test "x$tool_basename" = "x$tool_specified"; then
9057         # A command without a complete path is provided, search $PATH.
9058         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9059 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9060         # Extract the first word of "$tool_basename", so it can be a program name with args.
9061 set dummy $tool_basename; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if ${ac_cv_path_SH+:} false; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067   case $SH in
9068   [\\/]* | ?:[\\/]*)
9069   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9070   ;;
9071   *)
9072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075   IFS=$as_save_IFS
9076   test -z "$as_dir" && as_dir=.
9077     for ac_exec_ext in '' $ac_executable_extensions; do
9078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081     break 2
9082   fi
9083 done
9084   done
9085 IFS=$as_save_IFS
9086 
9087   ;;
9088 esac
9089 fi
9090 SH=$ac_cv_path_SH
9091 if test -n "$SH"; then
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9093 $as_echo "$SH" >&6; }
9094 else
9095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9097 fi
9098 
9099 
9100         if test "x$SH" = x; then
9101           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9102         fi
9103       else
9104         # Otherwise we believe it is a complete path. Use it as it is.
9105         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9106 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9108 $as_echo_n "checking for SH... " >&6; }
9109         if test ! -x "$tool_specified"; then
9110           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9111 $as_echo "not found" >&6; }
9112           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9113         fi
9114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9115 $as_echo "$tool_specified" >&6; }
9116       fi
9117     fi
9118   fi
9119 
9120 
9121 
9122   if test "x$SH" = x; then
9123     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9124   fi
9125 
9126 
9127 
9128 
9129 
9130   # Publish this variable in the help.
9131 
9132 
9133   if test "x$SORT" = x; then
9134     # The variable is not set by user, try to locate tool using the code snippet
9135     for ac_prog in sort
9136 do
9137   # Extract the first word of "$ac_prog", so it can be a program name with args.
9138 set dummy $ac_prog; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_SORT+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   case $SORT in
9145   [\\/]* | ?:[\\/]*)
9146   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9147   ;;
9148   *)
9149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9151 do
9152   IFS=$as_save_IFS
9153   test -z "$as_dir" && as_dir=.
9154     for ac_exec_ext in '' $ac_executable_extensions; do
9155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9156     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158     break 2
9159   fi
9160 done
9161   done
9162 IFS=$as_save_IFS
9163 
9164   ;;
9165 esac
9166 fi
9167 SORT=$ac_cv_path_SORT
9168 if test -n "$SORT"; then
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9170 $as_echo "$SORT" >&6; }
9171 else
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175 
9176 
9177   test -n "$SORT" && break
9178 done
9179 
9180   else
9181     # The variable is set, but is it from the command line or the environment?
9182 
9183     # Try to remove the string !SORT! from our list.
9184     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9185     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9186       # If it failed, the variable was not from the command line. Ignore it,
9187       # but warn the user (except for BASH, which is always set by the calling BASH).
9188       if test "xSORT" != xBASH; then
9189         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9190 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9191       fi
9192       # Try to locate tool using the code snippet
9193       for ac_prog in sort
9194 do
9195   # Extract the first word of "$ac_prog", so it can be a program name with args.
9196 set dummy $ac_prog; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_path_SORT+:} false; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   case $SORT in
9203   [\\/]* | ?:[\\/]*)
9204   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9205   ;;
9206   *)
9207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9209 do
9210   IFS=$as_save_IFS
9211   test -z "$as_dir" && as_dir=.
9212     for ac_exec_ext in '' $ac_executable_extensions; do
9213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9214     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216     break 2
9217   fi
9218 done
9219   done
9220 IFS=$as_save_IFS
9221 
9222   ;;
9223 esac
9224 fi
9225 SORT=$ac_cv_path_SORT
9226 if test -n "$SORT"; then
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9228 $as_echo "$SORT" >&6; }
9229 else
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233 
9234 
9235   test -n "$SORT" && break
9236 done
9237 
9238     else
9239       # If it succeeded, then it was overridden by the user. We will use it
9240       # for the tool.
9241 
9242       # First remove it from the list of overridden variables, so we can test
9243       # for unknown variables in the end.
9244       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9245 
9246       # Check if the provided tool contains a complete path.
9247       tool_specified="$SORT"
9248       tool_basename="${tool_specified##*/}"
9249       if test "x$tool_basename" = "x$tool_specified"; then
9250         # A command without a complete path is provided, search $PATH.
9251         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9252 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9253         # Extract the first word of "$tool_basename", so it can be a program name with args.
9254 set dummy $tool_basename; ac_word=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if ${ac_cv_path_SORT+:} false; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260   case $SORT in
9261   [\\/]* | ?:[\\/]*)
9262   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9263   ;;
9264   *)
9265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 for as_dir in $PATH
9267 do
9268   IFS=$as_save_IFS
9269   test -z "$as_dir" && as_dir=.
9270     for ac_exec_ext in '' $ac_executable_extensions; do
9271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9274     break 2
9275   fi
9276 done
9277   done
9278 IFS=$as_save_IFS
9279 
9280   ;;
9281 esac
9282 fi
9283 SORT=$ac_cv_path_SORT
9284 if test -n "$SORT"; then
9285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9286 $as_echo "$SORT" >&6; }
9287 else
9288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 $as_echo "no" >&6; }
9290 fi
9291 
9292 
9293         if test "x$SORT" = x; then
9294           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9295         fi
9296       else
9297         # Otherwise we believe it is a complete path. Use it as it is.
9298         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9299 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9301 $as_echo_n "checking for SORT... " >&6; }
9302         if test ! -x "$tool_specified"; then
9303           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9304 $as_echo "not found" >&6; }
9305           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9306         fi
9307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9308 $as_echo "$tool_specified" >&6; }
9309       fi
9310     fi
9311   fi
9312 
9313 
9314 
9315   if test "x$SORT" = x; then
9316     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9317   fi
9318 
9319 
9320 
9321 
9322 
9323   # Publish this variable in the help.
9324 
9325 
9326   if test "x$TAIL" = x; then
9327     # The variable is not set by user, try to locate tool using the code snippet
9328     for ac_prog in tail
9329 do
9330   # Extract the first word of "$ac_prog", so it can be a program name with args.
9331 set dummy $ac_prog; ac_word=$2
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if ${ac_cv_path_TAIL+:} false; then :
9335   $as_echo_n "(cached) " >&6
9336 else
9337   case $TAIL in
9338   [\\/]* | ?:[\\/]*)
9339   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9340   ;;
9341   *)
9342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345   IFS=$as_save_IFS
9346   test -z "$as_dir" && as_dir=.
9347     for ac_exec_ext in '' $ac_executable_extensions; do
9348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351     break 2
9352   fi
9353 done
9354   done
9355 IFS=$as_save_IFS
9356 
9357   ;;
9358 esac
9359 fi
9360 TAIL=$ac_cv_path_TAIL
9361 if test -n "$TAIL"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9363 $as_echo "$TAIL" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368 
9369 
9370   test -n "$TAIL" && break
9371 done
9372 
9373   else
9374     # The variable is set, but is it from the command line or the environment?
9375 
9376     # Try to remove the string !TAIL! from our list.
9377     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9378     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9379       # If it failed, the variable was not from the command line. Ignore it,
9380       # but warn the user (except for BASH, which is always set by the calling BASH).
9381       if test "xTAIL" != xBASH; then
9382         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9383 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9384       fi
9385       # Try to locate tool using the code snippet
9386       for ac_prog in tail
9387 do
9388   # Extract the first word of "$ac_prog", so it can be a program name with args.
9389 set dummy $ac_prog; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if ${ac_cv_path_TAIL+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   case $TAIL in
9396   [\\/]* | ?:[\\/]*)
9397   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9398   ;;
9399   *)
9400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9402 do
9403   IFS=$as_save_IFS
9404   test -z "$as_dir" && as_dir=.
9405     for ac_exec_ext in '' $ac_executable_extensions; do
9406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9407     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409     break 2
9410   fi
9411 done
9412   done
9413 IFS=$as_save_IFS
9414 
9415   ;;
9416 esac
9417 fi
9418 TAIL=$ac_cv_path_TAIL
9419 if test -n "$TAIL"; then
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9421 $as_echo "$TAIL" >&6; }
9422 else
9423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9425 fi
9426 
9427 
9428   test -n "$TAIL" && break
9429 done
9430 
9431     else
9432       # If it succeeded, then it was overridden by the user. We will use it
9433       # for the tool.
9434 
9435       # First remove it from the list of overridden variables, so we can test
9436       # for unknown variables in the end.
9437       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9438 
9439       # Check if the provided tool contains a complete path.
9440       tool_specified="$TAIL"
9441       tool_basename="${tool_specified##*/}"
9442       if test "x$tool_basename" = "x$tool_specified"; then
9443         # A command without a complete path is provided, search $PATH.
9444         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9445 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9446         # Extract the first word of "$tool_basename", so it can be a program name with args.
9447 set dummy $tool_basename; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if ${ac_cv_path_TAIL+:} false; then :
9451   $as_echo_n "(cached) " >&6
9452 else
9453   case $TAIL in
9454   [\\/]* | ?:[\\/]*)
9455   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9456   ;;
9457   *)
9458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9460 do
9461   IFS=$as_save_IFS
9462   test -z "$as_dir" && as_dir=.
9463     for ac_exec_ext in '' $ac_executable_extensions; do
9464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9465     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467     break 2
9468   fi
9469 done
9470   done
9471 IFS=$as_save_IFS
9472 
9473   ;;
9474 esac
9475 fi
9476 TAIL=$ac_cv_path_TAIL
9477 if test -n "$TAIL"; then
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9479 $as_echo "$TAIL" >&6; }
9480 else
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484 
9485 
9486         if test "x$TAIL" = x; then
9487           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9488         fi
9489       else
9490         # Otherwise we believe it is a complete path. Use it as it is.
9491         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9492 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9494 $as_echo_n "checking for TAIL... " >&6; }
9495         if test ! -x "$tool_specified"; then
9496           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9497 $as_echo "not found" >&6; }
9498           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9499         fi
9500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9501 $as_echo "$tool_specified" >&6; }
9502       fi
9503     fi
9504   fi
9505 
9506 
9507 
9508   if test "x$TAIL" = x; then
9509     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9510   fi
9511 
9512 
9513 
9514 
9515 
9516   # Publish this variable in the help.
9517 
9518 
9519   if test "x$TAR" = x; then
9520     # The variable is not set by user, try to locate tool using the code snippet
9521     for ac_prog in tar
9522 do
9523   # Extract the first word of "$ac_prog", so it can be a program name with args.
9524 set dummy $ac_prog; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_path_TAR+:} false; then :
9528   $as_echo_n "(cached) " >&6
9529 else
9530   case $TAR in
9531   [\\/]* | ?:[\\/]*)
9532   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9533   ;;
9534   *)
9535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9537 do
9538   IFS=$as_save_IFS
9539   test -z "$as_dir" && as_dir=.
9540     for ac_exec_ext in '' $ac_executable_extensions; do
9541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544     break 2
9545   fi
9546 done
9547   done
9548 IFS=$as_save_IFS
9549 
9550   ;;
9551 esac
9552 fi
9553 TAR=$ac_cv_path_TAR
9554 if test -n "$TAR"; then
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9556 $as_echo "$TAR" >&6; }
9557 else
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 fi
9561 
9562 
9563   test -n "$TAR" && break
9564 done
9565 
9566   else
9567     # The variable is set, but is it from the command line or the environment?
9568 
9569     # Try to remove the string !TAR! from our list.
9570     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9571     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9572       # If it failed, the variable was not from the command line. Ignore it,
9573       # but warn the user (except for BASH, which is always set by the calling BASH).
9574       if test "xTAR" != xBASH; then
9575         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9576 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9577       fi
9578       # Try to locate tool using the code snippet
9579       for ac_prog in tar
9580 do
9581   # Extract the first word of "$ac_prog", so it can be a program name with args.
9582 set dummy $ac_prog; ac_word=$2
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9584 $as_echo_n "checking for $ac_word... " >&6; }
9585 if ${ac_cv_path_TAR+:} false; then :
9586   $as_echo_n "(cached) " >&6
9587 else
9588   case $TAR in
9589   [\\/]* | ?:[\\/]*)
9590   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9591   ;;
9592   *)
9593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9595 do
9596   IFS=$as_save_IFS
9597   test -z "$as_dir" && as_dir=.
9598     for ac_exec_ext in '' $ac_executable_extensions; do
9599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602     break 2
9603   fi
9604 done
9605   done
9606 IFS=$as_save_IFS
9607 
9608   ;;
9609 esac
9610 fi
9611 TAR=$ac_cv_path_TAR
9612 if test -n "$TAR"; then
9613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9614 $as_echo "$TAR" >&6; }
9615 else
9616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619 
9620 
9621   test -n "$TAR" && break
9622 done
9623 
9624     else
9625       # If it succeeded, then it was overridden by the user. We will use it
9626       # for the tool.
9627 
9628       # First remove it from the list of overridden variables, so we can test
9629       # for unknown variables in the end.
9630       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9631 
9632       # Check if the provided tool contains a complete path.
9633       tool_specified="$TAR"
9634       tool_basename="${tool_specified##*/}"
9635       if test "x$tool_basename" = "x$tool_specified"; then
9636         # A command without a complete path is provided, search $PATH.
9637         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9638 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9639         # Extract the first word of "$tool_basename", so it can be a program name with args.
9640 set dummy $tool_basename; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_TAR+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   case $TAR in
9647   [\\/]* | ?:[\\/]*)
9648   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9649   ;;
9650   *)
9651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654   IFS=$as_save_IFS
9655   test -z "$as_dir" && as_dir=.
9656     for ac_exec_ext in '' $ac_executable_extensions; do
9657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660     break 2
9661   fi
9662 done
9663   done
9664 IFS=$as_save_IFS
9665 
9666   ;;
9667 esac
9668 fi
9669 TAR=$ac_cv_path_TAR
9670 if test -n "$TAR"; then
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9672 $as_echo "$TAR" >&6; }
9673 else
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9676 fi
9677 
9678 
9679         if test "x$TAR" = x; then
9680           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9681         fi
9682       else
9683         # Otherwise we believe it is a complete path. Use it as it is.
9684         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9685 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9687 $as_echo_n "checking for TAR... " >&6; }
9688         if test ! -x "$tool_specified"; then
9689           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9690 $as_echo "not found" >&6; }
9691           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9692         fi
9693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9694 $as_echo "$tool_specified" >&6; }
9695       fi
9696     fi
9697   fi
9698 
9699 
9700 
9701   if test "x$TAR" = x; then
9702     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9703   fi
9704 
9705 
9706 
9707 
9708 
9709   # Publish this variable in the help.
9710 
9711 
9712   if test "x$TEE" = x; then
9713     # The variable is not set by user, try to locate tool using the code snippet
9714     for ac_prog in tee
9715 do
9716   # Extract the first word of "$ac_prog", so it can be a program name with args.
9717 set dummy $ac_prog; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_TEE+:} false; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   case $TEE in
9724   [\\/]* | ?:[\\/]*)
9725   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9726   ;;
9727   *)
9728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9730 do
9731   IFS=$as_save_IFS
9732   test -z "$as_dir" && as_dir=.
9733     for ac_exec_ext in '' $ac_executable_extensions; do
9734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737     break 2
9738   fi
9739 done
9740   done
9741 IFS=$as_save_IFS
9742 
9743   ;;
9744 esac
9745 fi
9746 TEE=$ac_cv_path_TEE
9747 if test -n "$TEE"; then
9748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9749 $as_echo "$TEE" >&6; }
9750 else
9751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9753 fi
9754 
9755 
9756   test -n "$TEE" && break
9757 done
9758 
9759   else
9760     # The variable is set, but is it from the command line or the environment?
9761 
9762     # Try to remove the string !TEE! from our list.
9763     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9764     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9765       # If it failed, the variable was not from the command line. Ignore it,
9766       # but warn the user (except for BASH, which is always set by the calling BASH).
9767       if test "xTEE" != xBASH; then
9768         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9769 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9770       fi
9771       # Try to locate tool using the code snippet
9772       for ac_prog in tee
9773 do
9774   # Extract the first word of "$ac_prog", so it can be a program name with args.
9775 set dummy $ac_prog; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_path_TEE+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   case $TEE in
9782   [\\/]* | ?:[\\/]*)
9783   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9784   ;;
9785   *)
9786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH
9788 do
9789   IFS=$as_save_IFS
9790   test -z "$as_dir" && as_dir=.
9791     for ac_exec_ext in '' $ac_executable_extensions; do
9792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9793     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795     break 2
9796   fi
9797 done
9798   done
9799 IFS=$as_save_IFS
9800 
9801   ;;
9802 esac
9803 fi
9804 TEE=$ac_cv_path_TEE
9805 if test -n "$TEE"; then
9806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9807 $as_echo "$TEE" >&6; }
9808 else
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9811 fi
9812 
9813 
9814   test -n "$TEE" && break
9815 done
9816 
9817     else
9818       # If it succeeded, then it was overridden by the user. We will use it
9819       # for the tool.
9820 
9821       # First remove it from the list of overridden variables, so we can test
9822       # for unknown variables in the end.
9823       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9824 
9825       # Check if the provided tool contains a complete path.
9826       tool_specified="$TEE"
9827       tool_basename="${tool_specified##*/}"
9828       if test "x$tool_basename" = "x$tool_specified"; then
9829         # A command without a complete path is provided, search $PATH.
9830         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9831 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9832         # Extract the first word of "$tool_basename", so it can be a program name with args.
9833 set dummy $tool_basename; ac_word=$2
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835 $as_echo_n "checking for $ac_word... " >&6; }
9836 if ${ac_cv_path_TEE+:} false; then :
9837   $as_echo_n "(cached) " >&6
9838 else
9839   case $TEE in
9840   [\\/]* | ?:[\\/]*)
9841   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9842   ;;
9843   *)
9844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847   IFS=$as_save_IFS
9848   test -z "$as_dir" && as_dir=.
9849     for ac_exec_ext in '' $ac_executable_extensions; do
9850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853     break 2
9854   fi
9855 done
9856   done
9857 IFS=$as_save_IFS
9858 
9859   ;;
9860 esac
9861 fi
9862 TEE=$ac_cv_path_TEE
9863 if test -n "$TEE"; then
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9865 $as_echo "$TEE" >&6; }
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9869 fi
9870 
9871 
9872         if test "x$TEE" = x; then
9873           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9874         fi
9875       else
9876         # Otherwise we believe it is a complete path. Use it as it is.
9877         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9878 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9880 $as_echo_n "checking for TEE... " >&6; }
9881         if test ! -x "$tool_specified"; then
9882           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9883 $as_echo "not found" >&6; }
9884           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9885         fi
9886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9887 $as_echo "$tool_specified" >&6; }
9888       fi
9889     fi
9890   fi
9891 
9892 
9893 
9894   if test "x$TEE" = x; then
9895     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9896   fi
9897 
9898 
9899 
9900 
9901 
9902   # Publish this variable in the help.
9903 
9904 
9905   if test "x$TOUCH" = x; then
9906     # The variable is not set by user, try to locate tool using the code snippet
9907     for ac_prog in touch
9908 do
9909   # Extract the first word of "$ac_prog", so it can be a program name with args.
9910 set dummy $ac_prog; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if ${ac_cv_path_TOUCH+:} false; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   case $TOUCH in
9917   [\\/]* | ?:[\\/]*)
9918   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9919   ;;
9920   *)
9921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924   IFS=$as_save_IFS
9925   test -z "$as_dir" && as_dir=.
9926     for ac_exec_ext in '' $ac_executable_extensions; do
9927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9928     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930     break 2
9931   fi
9932 done
9933   done
9934 IFS=$as_save_IFS
9935 
9936   ;;
9937 esac
9938 fi
9939 TOUCH=$ac_cv_path_TOUCH
9940 if test -n "$TOUCH"; then
9941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9942 $as_echo "$TOUCH" >&6; }
9943 else
9944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 fi
9947 
9948 
9949   test -n "$TOUCH" && break
9950 done
9951 
9952   else
9953     # The variable is set, but is it from the command line or the environment?
9954 
9955     # Try to remove the string !TOUCH! from our list.
9956     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
9957     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9958       # If it failed, the variable was not from the command line. Ignore it,
9959       # but warn the user (except for BASH, which is always set by the calling BASH).
9960       if test "xTOUCH" != xBASH; then
9961         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
9962 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
9963       fi
9964       # Try to locate tool using the code snippet
9965       for ac_prog in touch
9966 do
9967   # Extract the first word of "$ac_prog", so it can be a program name with args.
9968 set dummy $ac_prog; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if ${ac_cv_path_TOUCH+:} false; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974   case $TOUCH in
9975   [\\/]* | ?:[\\/]*)
9976   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9977   ;;
9978   *)
9979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9981 do
9982   IFS=$as_save_IFS
9983   test -z "$as_dir" && as_dir=.
9984     for ac_exec_ext in '' $ac_executable_extensions; do
9985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9986     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988     break 2
9989   fi
9990 done
9991   done
9992 IFS=$as_save_IFS
9993 
9994   ;;
9995 esac
9996 fi
9997 TOUCH=$ac_cv_path_TOUCH
9998 if test -n "$TOUCH"; then
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10000 $as_echo "$TOUCH" >&6; }
10001 else
10002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004 fi
10005 
10006 
10007   test -n "$TOUCH" && break
10008 done
10009 
10010     else
10011       # If it succeeded, then it was overridden by the user. We will use it
10012       # for the tool.
10013 
10014       # First remove it from the list of overridden variables, so we can test
10015       # for unknown variables in the end.
10016       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10017 
10018       # Check if the provided tool contains a complete path.
10019       tool_specified="$TOUCH"
10020       tool_basename="${tool_specified##*/}"
10021       if test "x$tool_basename" = "x$tool_specified"; then
10022         # A command without a complete path is provided, search $PATH.
10023         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10024 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10025         # Extract the first word of "$tool_basename", so it can be a program name with args.
10026 set dummy $tool_basename; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if ${ac_cv_path_TOUCH+:} false; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   case $TOUCH in
10033   [\\/]* | ?:[\\/]*)
10034   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10035   ;;
10036   *)
10037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10039 do
10040   IFS=$as_save_IFS
10041   test -z "$as_dir" && as_dir=.
10042     for ac_exec_ext in '' $ac_executable_extensions; do
10043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046     break 2
10047   fi
10048 done
10049   done
10050 IFS=$as_save_IFS
10051 
10052   ;;
10053 esac
10054 fi
10055 TOUCH=$ac_cv_path_TOUCH
10056 if test -n "$TOUCH"; then
10057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10058 $as_echo "$TOUCH" >&6; }
10059 else
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10062 fi
10063 
10064 
10065         if test "x$TOUCH" = x; then
10066           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10067         fi
10068       else
10069         # Otherwise we believe it is a complete path. Use it as it is.
10070         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10071 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10073 $as_echo_n "checking for TOUCH... " >&6; }
10074         if test ! -x "$tool_specified"; then
10075           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10076 $as_echo "not found" >&6; }
10077           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10078         fi
10079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10080 $as_echo "$tool_specified" >&6; }
10081       fi
10082     fi
10083   fi
10084 
10085 
10086 
10087   if test "x$TOUCH" = x; then
10088     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10089   fi
10090 
10091 
10092 
10093 
10094 
10095   # Publish this variable in the help.
10096 
10097 
10098   if test "x$TR" = x; then
10099     # The variable is not set by user, try to locate tool using the code snippet
10100     for ac_prog in tr
10101 do
10102   # Extract the first word of "$ac_prog", so it can be a program name with args.
10103 set dummy $ac_prog; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if ${ac_cv_path_TR+:} false; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   case $TR in
10110   [\\/]* | ?:[\\/]*)
10111   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10112   ;;
10113   *)
10114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10116 do
10117   IFS=$as_save_IFS
10118   test -z "$as_dir" && as_dir=.
10119     for ac_exec_ext in '' $ac_executable_extensions; do
10120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123     break 2
10124   fi
10125 done
10126   done
10127 IFS=$as_save_IFS
10128 
10129   ;;
10130 esac
10131 fi
10132 TR=$ac_cv_path_TR
10133 if test -n "$TR"; then
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10135 $as_echo "$TR" >&6; }
10136 else
10137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10139 fi
10140 
10141 
10142   test -n "$TR" && break
10143 done
10144 
10145   else
10146     # The variable is set, but is it from the command line or the environment?
10147 
10148     # Try to remove the string !TR! from our list.
10149     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10150     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10151       # If it failed, the variable was not from the command line. Ignore it,
10152       # but warn the user (except for BASH, which is always set by the calling BASH).
10153       if test "xTR" != xBASH; then
10154         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10155 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10156       fi
10157       # Try to locate tool using the code snippet
10158       for ac_prog in tr
10159 do
10160   # Extract the first word of "$ac_prog", so it can be a program name with args.
10161 set dummy $ac_prog; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if ${ac_cv_path_TR+:} false; then :
10165   $as_echo_n "(cached) " >&6
10166 else
10167   case $TR in
10168   [\\/]* | ?:[\\/]*)
10169   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10170   ;;
10171   *)
10172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10174 do
10175   IFS=$as_save_IFS
10176   test -z "$as_dir" && as_dir=.
10177     for ac_exec_ext in '' $ac_executable_extensions; do
10178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10179     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10181     break 2
10182   fi
10183 done
10184   done
10185 IFS=$as_save_IFS
10186 
10187   ;;
10188 esac
10189 fi
10190 TR=$ac_cv_path_TR
10191 if test -n "$TR"; then
10192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10193 $as_echo "$TR" >&6; }
10194 else
10195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10197 fi
10198 
10199 
10200   test -n "$TR" && break
10201 done
10202 
10203     else
10204       # If it succeeded, then it was overridden by the user. We will use it
10205       # for the tool.
10206 
10207       # First remove it from the list of overridden variables, so we can test
10208       # for unknown variables in the end.
10209       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10210 
10211       # Check if the provided tool contains a complete path.
10212       tool_specified="$TR"
10213       tool_basename="${tool_specified##*/}"
10214       if test "x$tool_basename" = "x$tool_specified"; then
10215         # A command without a complete path is provided, search $PATH.
10216         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10217 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10218         # Extract the first word of "$tool_basename", so it can be a program name with args.
10219 set dummy $tool_basename; ac_word=$2
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221 $as_echo_n "checking for $ac_word... " >&6; }
10222 if ${ac_cv_path_TR+:} false; then :
10223   $as_echo_n "(cached) " >&6
10224 else
10225   case $TR in
10226   [\\/]* | ?:[\\/]*)
10227   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10228   ;;
10229   *)
10230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233   IFS=$as_save_IFS
10234   test -z "$as_dir" && as_dir=.
10235     for ac_exec_ext in '' $ac_executable_extensions; do
10236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239     break 2
10240   fi
10241 done
10242   done
10243 IFS=$as_save_IFS
10244 
10245   ;;
10246 esac
10247 fi
10248 TR=$ac_cv_path_TR
10249 if test -n "$TR"; then
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10251 $as_echo "$TR" >&6; }
10252 else
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10255 fi
10256 
10257 
10258         if test "x$TR" = x; then
10259           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10260         fi
10261       else
10262         # Otherwise we believe it is a complete path. Use it as it is.
10263         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10264 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10266 $as_echo_n "checking for TR... " >&6; }
10267         if test ! -x "$tool_specified"; then
10268           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10269 $as_echo "not found" >&6; }
10270           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10271         fi
10272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10273 $as_echo "$tool_specified" >&6; }
10274       fi
10275     fi
10276   fi
10277 
10278 
10279 
10280   if test "x$TR" = x; then
10281     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10282   fi
10283 
10284 
10285 
10286 
10287 
10288   # Publish this variable in the help.
10289 
10290 
10291   if test "x$UNAME" = x; then
10292     # The variable is not set by user, try to locate tool using the code snippet
10293     for ac_prog in uname
10294 do
10295   # Extract the first word of "$ac_prog", so it can be a program name with args.
10296 set dummy $ac_prog; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_path_UNAME+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   case $UNAME in
10303   [\\/]* | ?:[\\/]*)
10304   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10305   ;;
10306   *)
10307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10309 do
10310   IFS=$as_save_IFS
10311   test -z "$as_dir" && as_dir=.
10312     for ac_exec_ext in '' $ac_executable_extensions; do
10313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316     break 2
10317   fi
10318 done
10319   done
10320 IFS=$as_save_IFS
10321 
10322   ;;
10323 esac
10324 fi
10325 UNAME=$ac_cv_path_UNAME
10326 if test -n "$UNAME"; then
10327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10328 $as_echo "$UNAME" >&6; }
10329 else
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10332 fi
10333 
10334 
10335   test -n "$UNAME" && break
10336 done
10337 
10338   else
10339     # The variable is set, but is it from the command line or the environment?
10340 
10341     # Try to remove the string !UNAME! from our list.
10342     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10343     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10344       # If it failed, the variable was not from the command line. Ignore it,
10345       # but warn the user (except for BASH, which is always set by the calling BASH).
10346       if test "xUNAME" != xBASH; then
10347         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10348 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10349       fi
10350       # Try to locate tool using the code snippet
10351       for ac_prog in uname
10352 do
10353   # Extract the first word of "$ac_prog", so it can be a program name with args.
10354 set dummy $ac_prog; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if ${ac_cv_path_UNAME+:} false; then :
10358   $as_echo_n "(cached) " >&6
10359 else
10360   case $UNAME in
10361   [\\/]* | ?:[\\/]*)
10362   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10363   ;;
10364   *)
10365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368   IFS=$as_save_IFS
10369   test -z "$as_dir" && as_dir=.
10370     for ac_exec_ext in '' $ac_executable_extensions; do
10371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374     break 2
10375   fi
10376 done
10377   done
10378 IFS=$as_save_IFS
10379 
10380   ;;
10381 esac
10382 fi
10383 UNAME=$ac_cv_path_UNAME
10384 if test -n "$UNAME"; then
10385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10386 $as_echo "$UNAME" >&6; }
10387 else
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10390 fi
10391 
10392 
10393   test -n "$UNAME" && break
10394 done
10395 
10396     else
10397       # If it succeeded, then it was overridden by the user. We will use it
10398       # for the tool.
10399 
10400       # First remove it from the list of overridden variables, so we can test
10401       # for unknown variables in the end.
10402       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10403 
10404       # Check if the provided tool contains a complete path.
10405       tool_specified="$UNAME"
10406       tool_basename="${tool_specified##*/}"
10407       if test "x$tool_basename" = "x$tool_specified"; then
10408         # A command without a complete path is provided, search $PATH.
10409         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10410 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10411         # Extract the first word of "$tool_basename", so it can be a program name with args.
10412 set dummy $tool_basename; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if ${ac_cv_path_UNAME+:} false; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   case $UNAME in
10419   [\\/]* | ?:[\\/]*)
10420   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10421   ;;
10422   *)
10423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in $PATH
10425 do
10426   IFS=$as_save_IFS
10427   test -z "$as_dir" && as_dir=.
10428     for ac_exec_ext in '' $ac_executable_extensions; do
10429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10430     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432     break 2
10433   fi
10434 done
10435   done
10436 IFS=$as_save_IFS
10437 
10438   ;;
10439 esac
10440 fi
10441 UNAME=$ac_cv_path_UNAME
10442 if test -n "$UNAME"; then
10443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10444 $as_echo "$UNAME" >&6; }
10445 else
10446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10448 fi
10449 
10450 
10451         if test "x$UNAME" = x; then
10452           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10453         fi
10454       else
10455         # Otherwise we believe it is a complete path. Use it as it is.
10456         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10457 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10459 $as_echo_n "checking for UNAME... " >&6; }
10460         if test ! -x "$tool_specified"; then
10461           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10462 $as_echo "not found" >&6; }
10463           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10464         fi
10465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10466 $as_echo "$tool_specified" >&6; }
10467       fi
10468     fi
10469   fi
10470 
10471 
10472 
10473   if test "x$UNAME" = x; then
10474     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10475   fi
10476 
10477 
10478 
10479 
10480 
10481   # Publish this variable in the help.
10482 
10483 
10484   if test "x$UNIQ" = x; then
10485     # The variable is not set by user, try to locate tool using the code snippet
10486     for ac_prog in uniq
10487 do
10488   # Extract the first word of "$ac_prog", so it can be a program name with args.
10489 set dummy $ac_prog; ac_word=$2
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491 $as_echo_n "checking for $ac_word... " >&6; }
10492 if ${ac_cv_path_UNIQ+:} false; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   case $UNIQ in
10496   [\\/]* | ?:[\\/]*)
10497   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10498   ;;
10499   *)
10500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10502 do
10503   IFS=$as_save_IFS
10504   test -z "$as_dir" && as_dir=.
10505     for ac_exec_ext in '' $ac_executable_extensions; do
10506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509     break 2
10510   fi
10511 done
10512   done
10513 IFS=$as_save_IFS
10514 
10515   ;;
10516 esac
10517 fi
10518 UNIQ=$ac_cv_path_UNIQ
10519 if test -n "$UNIQ"; then
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10521 $as_echo "$UNIQ" >&6; }
10522 else
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10525 fi
10526 
10527 
10528   test -n "$UNIQ" && break
10529 done
10530 
10531   else
10532     # The variable is set, but is it from the command line or the environment?
10533 
10534     # Try to remove the string !UNIQ! from our list.
10535     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10536     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10537       # If it failed, the variable was not from the command line. Ignore it,
10538       # but warn the user (except for BASH, which is always set by the calling BASH).
10539       if test "xUNIQ" != xBASH; then
10540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10541 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10542       fi
10543       # Try to locate tool using the code snippet
10544       for ac_prog in uniq
10545 do
10546   # Extract the first word of "$ac_prog", so it can be a program name with args.
10547 set dummy $ac_prog; ac_word=$2
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549 $as_echo_n "checking for $ac_word... " >&6; }
10550 if ${ac_cv_path_UNIQ+:} false; then :
10551   $as_echo_n "(cached) " >&6
10552 else
10553   case $UNIQ in
10554   [\\/]* | ?:[\\/]*)
10555   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10556   ;;
10557   *)
10558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   test -z "$as_dir" && as_dir=.
10563     for ac_exec_ext in '' $ac_executable_extensions; do
10564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10565     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567     break 2
10568   fi
10569 done
10570   done
10571 IFS=$as_save_IFS
10572 
10573   ;;
10574 esac
10575 fi
10576 UNIQ=$ac_cv_path_UNIQ
10577 if test -n "$UNIQ"; then
10578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10579 $as_echo "$UNIQ" >&6; }
10580 else
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10583 fi
10584 
10585 
10586   test -n "$UNIQ" && break
10587 done
10588 
10589     else
10590       # If it succeeded, then it was overridden by the user. We will use it
10591       # for the tool.
10592 
10593       # First remove it from the list of overridden variables, so we can test
10594       # for unknown variables in the end.
10595       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10596 
10597       # Check if the provided tool contains a complete path.
10598       tool_specified="$UNIQ"
10599       tool_basename="${tool_specified##*/}"
10600       if test "x$tool_basename" = "x$tool_specified"; then
10601         # A command without a complete path is provided, search $PATH.
10602         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10603 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10604         # Extract the first word of "$tool_basename", so it can be a program name with args.
10605 set dummy $tool_basename; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if ${ac_cv_path_UNIQ+:} false; then :
10609   $as_echo_n "(cached) " >&6
10610 else
10611   case $UNIQ in
10612   [\\/]* | ?:[\\/]*)
10613   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10614   ;;
10615   *)
10616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617 for as_dir in $PATH
10618 do
10619   IFS=$as_save_IFS
10620   test -z "$as_dir" && as_dir=.
10621     for ac_exec_ext in '' $ac_executable_extensions; do
10622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10623     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625     break 2
10626   fi
10627 done
10628   done
10629 IFS=$as_save_IFS
10630 
10631   ;;
10632 esac
10633 fi
10634 UNIQ=$ac_cv_path_UNIQ
10635 if test -n "$UNIQ"; then
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10637 $as_echo "$UNIQ" >&6; }
10638 else
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10641 fi
10642 
10643 
10644         if test "x$UNIQ" = x; then
10645           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10646         fi
10647       else
10648         # Otherwise we believe it is a complete path. Use it as it is.
10649         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10650 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10651         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10652 $as_echo_n "checking for UNIQ... " >&6; }
10653         if test ! -x "$tool_specified"; then
10654           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10655 $as_echo "not found" >&6; }
10656           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10657         fi
10658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10659 $as_echo "$tool_specified" >&6; }
10660       fi
10661     fi
10662   fi
10663 
10664 
10665 
10666   if test "x$UNIQ" = x; then
10667     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10668   fi
10669 
10670 
10671 
10672 
10673 
10674   # Publish this variable in the help.
10675 
10676 
10677   if test "x$WC" = x; then
10678     # The variable is not set by user, try to locate tool using the code snippet
10679     for ac_prog in wc
10680 do
10681   # Extract the first word of "$ac_prog", so it can be a program name with args.
10682 set dummy $ac_prog; ac_word=$2
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684 $as_echo_n "checking for $ac_word... " >&6; }
10685 if ${ac_cv_path_WC+:} false; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688   case $WC in
10689   [\\/]* | ?:[\\/]*)
10690   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10691   ;;
10692   *)
10693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10695 do
10696   IFS=$as_save_IFS
10697   test -z "$as_dir" && as_dir=.
10698     for ac_exec_ext in '' $ac_executable_extensions; do
10699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10700     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10702     break 2
10703   fi
10704 done
10705   done
10706 IFS=$as_save_IFS
10707 
10708   ;;
10709 esac
10710 fi
10711 WC=$ac_cv_path_WC
10712 if test -n "$WC"; then
10713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10714 $as_echo "$WC" >&6; }
10715 else
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10718 fi
10719 
10720 
10721   test -n "$WC" && break
10722 done
10723 
10724   else
10725     # The variable is set, but is it from the command line or the environment?
10726 
10727     # Try to remove the string !WC! from our list.
10728     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10729     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10730       # If it failed, the variable was not from the command line. Ignore it,
10731       # but warn the user (except for BASH, which is always set by the calling BASH).
10732       if test "xWC" != xBASH; then
10733         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10734 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10735       fi
10736       # Try to locate tool using the code snippet
10737       for ac_prog in wc
10738 do
10739   # Extract the first word of "$ac_prog", so it can be a program name with args.
10740 set dummy $ac_prog; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_path_WC+:} false; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746   case $WC in
10747   [\\/]* | ?:[\\/]*)
10748   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10749   ;;
10750   *)
10751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10753 do
10754   IFS=$as_save_IFS
10755   test -z "$as_dir" && as_dir=.
10756     for ac_exec_ext in '' $ac_executable_extensions; do
10757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760     break 2
10761   fi
10762 done
10763   done
10764 IFS=$as_save_IFS
10765 
10766   ;;
10767 esac
10768 fi
10769 WC=$ac_cv_path_WC
10770 if test -n "$WC"; then
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10772 $as_echo "$WC" >&6; }
10773 else
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10776 fi
10777 
10778 
10779   test -n "$WC" && break
10780 done
10781 
10782     else
10783       # If it succeeded, then it was overridden by the user. We will use it
10784       # for the tool.
10785 
10786       # First remove it from the list of overridden variables, so we can test
10787       # for unknown variables in the end.
10788       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10789 
10790       # Check if the provided tool contains a complete path.
10791       tool_specified="$WC"
10792       tool_basename="${tool_specified##*/}"
10793       if test "x$tool_basename" = "x$tool_specified"; then
10794         # A command without a complete path is provided, search $PATH.
10795         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10796 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10797         # Extract the first word of "$tool_basename", so it can be a program name with args.
10798 set dummy $tool_basename; ac_word=$2
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800 $as_echo_n "checking for $ac_word... " >&6; }
10801 if ${ac_cv_path_WC+:} false; then :
10802   $as_echo_n "(cached) " >&6
10803 else
10804   case $WC in
10805   [\\/]* | ?:[\\/]*)
10806   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10807   ;;
10808   *)
10809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10811 do
10812   IFS=$as_save_IFS
10813   test -z "$as_dir" && as_dir=.
10814     for ac_exec_ext in '' $ac_executable_extensions; do
10815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818     break 2
10819   fi
10820 done
10821   done
10822 IFS=$as_save_IFS
10823 
10824   ;;
10825 esac
10826 fi
10827 WC=$ac_cv_path_WC
10828 if test -n "$WC"; then
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10830 $as_echo "$WC" >&6; }
10831 else
10832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10834 fi
10835 
10836 
10837         if test "x$WC" = x; then
10838           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10839         fi
10840       else
10841         # Otherwise we believe it is a complete path. Use it as it is.
10842         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10843 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10845 $as_echo_n "checking for WC... " >&6; }
10846         if test ! -x "$tool_specified"; then
10847           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10848 $as_echo "not found" >&6; }
10849           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10850         fi
10851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10852 $as_echo "$tool_specified" >&6; }
10853       fi
10854     fi
10855   fi
10856 
10857 
10858 
10859   if test "x$WC" = x; then
10860     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10861   fi
10862 
10863 
10864 
10865 
10866 
10867   # Publish this variable in the help.
10868 
10869 
10870   if test "x$WHICH" = x; then
10871     # The variable is not set by user, try to locate tool using the code snippet
10872     for ac_prog in which
10873 do
10874   # Extract the first word of "$ac_prog", so it can be a program name with args.
10875 set dummy $ac_prog; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_path_WHICH+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   case $WHICH in
10882   [\\/]* | ?:[\\/]*)
10883   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10884   ;;
10885   *)
10886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10888 do
10889   IFS=$as_save_IFS
10890   test -z "$as_dir" && as_dir=.
10891     for ac_exec_ext in '' $ac_executable_extensions; do
10892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895     break 2
10896   fi
10897 done
10898   done
10899 IFS=$as_save_IFS
10900 
10901   ;;
10902 esac
10903 fi
10904 WHICH=$ac_cv_path_WHICH
10905 if test -n "$WHICH"; then
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10907 $as_echo "$WHICH" >&6; }
10908 else
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912 
10913 
10914   test -n "$WHICH" && break
10915 done
10916 
10917   else
10918     # The variable is set, but is it from the command line or the environment?
10919 
10920     # Try to remove the string !WHICH! from our list.
10921     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10922     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10923       # If it failed, the variable was not from the command line. Ignore it,
10924       # but warn the user (except for BASH, which is always set by the calling BASH).
10925       if test "xWHICH" != xBASH; then
10926         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10927 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10928       fi
10929       # Try to locate tool using the code snippet
10930       for ac_prog in which
10931 do
10932   # Extract the first word of "$ac_prog", so it can be a program name with args.
10933 set dummy $ac_prog; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_path_WHICH+:} false; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   case $WHICH in
10940   [\\/]* | ?:[\\/]*)
10941   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10942   ;;
10943   *)
10944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10946 do
10947   IFS=$as_save_IFS
10948   test -z "$as_dir" && as_dir=.
10949     for ac_exec_ext in '' $ac_executable_extensions; do
10950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10951     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953     break 2
10954   fi
10955 done
10956   done
10957 IFS=$as_save_IFS
10958 
10959   ;;
10960 esac
10961 fi
10962 WHICH=$ac_cv_path_WHICH
10963 if test -n "$WHICH"; then
10964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10965 $as_echo "$WHICH" >&6; }
10966 else
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 fi
10970 
10971 
10972   test -n "$WHICH" && break
10973 done
10974 
10975     else
10976       # If it succeeded, then it was overridden by the user. We will use it
10977       # for the tool.
10978 
10979       # First remove it from the list of overridden variables, so we can test
10980       # for unknown variables in the end.
10981       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10982 
10983       # Check if the provided tool contains a complete path.
10984       tool_specified="$WHICH"
10985       tool_basename="${tool_specified##*/}"
10986       if test "x$tool_basename" = "x$tool_specified"; then
10987         # A command without a complete path is provided, search $PATH.
10988         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
10989 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
10990         # Extract the first word of "$tool_basename", so it can be a program name with args.
10991 set dummy $tool_basename; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_path_WHICH+:} false; then :
10995   $as_echo_n "(cached) " >&6
10996 else
10997   case $WHICH in
10998   [\\/]* | ?:[\\/]*)
10999   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11000   ;;
11001   *)
11002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005   IFS=$as_save_IFS
11006   test -z "$as_dir" && as_dir=.
11007     for ac_exec_ext in '' $ac_executable_extensions; do
11008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011     break 2
11012   fi
11013 done
11014   done
11015 IFS=$as_save_IFS
11016 
11017   ;;
11018 esac
11019 fi
11020 WHICH=$ac_cv_path_WHICH
11021 if test -n "$WHICH"; then
11022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11023 $as_echo "$WHICH" >&6; }
11024 else
11025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11027 fi
11028 
11029 
11030         if test "x$WHICH" = x; then
11031           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11032         fi
11033       else
11034         # Otherwise we believe it is a complete path. Use it as it is.
11035         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11036 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11038 $as_echo_n "checking for WHICH... " >&6; }
11039         if test ! -x "$tool_specified"; then
11040           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11041 $as_echo "not found" >&6; }
11042           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11043         fi
11044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11045 $as_echo "$tool_specified" >&6; }
11046       fi
11047     fi
11048   fi
11049 
11050 
11051 
11052   if test "x$WHICH" = x; then
11053     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11054   fi
11055 
11056 
11057 
11058 
11059 
11060   # Publish this variable in the help.
11061 
11062 
11063   if test "x$XARGS" = x; then
11064     # The variable is not set by user, try to locate tool using the code snippet
11065     for ac_prog in xargs
11066 do
11067   # Extract the first word of "$ac_prog", so it can be a program name with args.
11068 set dummy $ac_prog; ac_word=$2
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070 $as_echo_n "checking for $ac_word... " >&6; }
11071 if ${ac_cv_path_XARGS+:} false; then :
11072   $as_echo_n "(cached) " >&6
11073 else
11074   case $XARGS in
11075   [\\/]* | ?:[\\/]*)
11076   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11077   ;;
11078   *)
11079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11081 do
11082   IFS=$as_save_IFS
11083   test -z "$as_dir" && as_dir=.
11084     for ac_exec_ext in '' $ac_executable_extensions; do
11085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088     break 2
11089   fi
11090 done
11091   done
11092 IFS=$as_save_IFS
11093 
11094   ;;
11095 esac
11096 fi
11097 XARGS=$ac_cv_path_XARGS
11098 if test -n "$XARGS"; then
11099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11100 $as_echo "$XARGS" >&6; }
11101 else
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105 
11106 
11107   test -n "$XARGS" && break
11108 done
11109 
11110   else
11111     # The variable is set, but is it from the command line or the environment?
11112 
11113     # Try to remove the string !XARGS! from our list.
11114     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11115     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11116       # If it failed, the variable was not from the command line. Ignore it,
11117       # but warn the user (except for BASH, which is always set by the calling BASH).
11118       if test "xXARGS" != xBASH; then
11119         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11120 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11121       fi
11122       # Try to locate tool using the code snippet
11123       for ac_prog in xargs
11124 do
11125   # Extract the first word of "$ac_prog", so it can be a program name with args.
11126 set dummy $ac_prog; ac_word=$2
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 $as_echo_n "checking for $ac_word... " >&6; }
11129 if ${ac_cv_path_XARGS+:} false; then :
11130   $as_echo_n "(cached) " >&6
11131 else
11132   case $XARGS in
11133   [\\/]* | ?:[\\/]*)
11134   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11135   ;;
11136   *)
11137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11139 do
11140   IFS=$as_save_IFS
11141   test -z "$as_dir" && as_dir=.
11142     for ac_exec_ext in '' $ac_executable_extensions; do
11143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11144     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146     break 2
11147   fi
11148 done
11149   done
11150 IFS=$as_save_IFS
11151 
11152   ;;
11153 esac
11154 fi
11155 XARGS=$ac_cv_path_XARGS
11156 if test -n "$XARGS"; then
11157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11158 $as_echo "$XARGS" >&6; }
11159 else
11160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162 fi
11163 
11164 
11165   test -n "$XARGS" && break
11166 done
11167 
11168     else
11169       # If it succeeded, then it was overridden by the user. We will use it
11170       # for the tool.
11171 
11172       # First remove it from the list of overridden variables, so we can test
11173       # for unknown variables in the end.
11174       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11175 
11176       # Check if the provided tool contains a complete path.
11177       tool_specified="$XARGS"
11178       tool_basename="${tool_specified##*/}"
11179       if test "x$tool_basename" = "x$tool_specified"; then
11180         # A command without a complete path is provided, search $PATH.
11181         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11182 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11183         # Extract the first word of "$tool_basename", so it can be a program name with args.
11184 set dummy $tool_basename; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if ${ac_cv_path_XARGS+:} false; then :
11188   $as_echo_n "(cached) " >&6
11189 else
11190   case $XARGS in
11191   [\\/]* | ?:[\\/]*)
11192   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11193   ;;
11194   *)
11195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11197 do
11198   IFS=$as_save_IFS
11199   test -z "$as_dir" && as_dir=.
11200     for ac_exec_ext in '' $ac_executable_extensions; do
11201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204     break 2
11205   fi
11206 done
11207   done
11208 IFS=$as_save_IFS
11209 
11210   ;;
11211 esac
11212 fi
11213 XARGS=$ac_cv_path_XARGS
11214 if test -n "$XARGS"; then
11215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11216 $as_echo "$XARGS" >&6; }
11217 else
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11220 fi
11221 
11222 
11223         if test "x$XARGS" = x; then
11224           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11225         fi
11226       else
11227         # Otherwise we believe it is a complete path. Use it as it is.
11228         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11229 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11231 $as_echo_n "checking for XARGS... " >&6; }
11232         if test ! -x "$tool_specified"; then
11233           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11234 $as_echo "not found" >&6; }
11235           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11236         fi
11237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11238 $as_echo "$tool_specified" >&6; }
11239       fi
11240     fi
11241   fi
11242 
11243 
11244 
11245   if test "x$XARGS" = x; then
11246     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11247   fi
11248 
11249 
11250 
11251   # Then required tools that require some special treatment.
11252 
11253 
11254   # Publish this variable in the help.
11255 
11256 
11257   if test "x$AWK" = x; then
11258     # The variable is not set by user, try to locate tool using the code snippet
11259     for ac_prog in gawk mawk nawk awk
11260 do
11261   # Extract the first word of "$ac_prog", so it can be a program name with args.
11262 set dummy $ac_prog; ac_word=$2
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264 $as_echo_n "checking for $ac_word... " >&6; }
11265 if ${ac_cv_prog_AWK+:} false; then :
11266   $as_echo_n "(cached) " >&6
11267 else
11268   if test -n "$AWK"; then
11269   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11270 else
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276     for ac_exec_ext in '' $ac_executable_extensions; do
11277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278     ac_cv_prog_AWK="$ac_prog"
11279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283   done
11284 IFS=$as_save_IFS
11285 
11286 fi
11287 fi
11288 AWK=$ac_cv_prog_AWK
11289 if test -n "$AWK"; then
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11291 $as_echo "$AWK" >&6; }
11292 else
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 fi
11296 
11297 
11298   test -n "$AWK" && break
11299 done
11300 
11301   else
11302     # The variable is set, but is it from the command line or the environment?
11303 
11304     # Try to remove the string !AWK! from our list.
11305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11307       # If it failed, the variable was not from the command line. Ignore it,
11308       # but warn the user (except for BASH, which is always set by the calling BASH).
11309       if test "xAWK" != xBASH; then
11310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11311 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11312       fi
11313       # Try to locate tool using the code snippet
11314       for ac_prog in gawk mawk nawk awk
11315 do
11316   # Extract the first word of "$ac_prog", so it can be a program name with args.
11317 set dummy $ac_prog; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_prog_AWK+:} false; then :
11321   $as_echo_n "(cached) " >&6
11322 else
11323   if test -n "$AWK"; then
11324   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329   IFS=$as_save_IFS
11330   test -z "$as_dir" && as_dir=.
11331     for ac_exec_ext in '' $ac_executable_extensions; do
11332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333     ac_cv_prog_AWK="$ac_prog"
11334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335     break 2
11336   fi
11337 done
11338   done
11339 IFS=$as_save_IFS
11340 
11341 fi
11342 fi
11343 AWK=$ac_cv_prog_AWK
11344 if test -n "$AWK"; then
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11346 $as_echo "$AWK" >&6; }
11347 else
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11350 fi
11351 
11352 
11353   test -n "$AWK" && break
11354 done
11355 
11356     else
11357       # If it succeeded, then it was overridden by the user. We will use it
11358       # for the tool.
11359 
11360       # First remove it from the list of overridden variables, so we can test
11361       # for unknown variables in the end.
11362       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11363 
11364       # Check if the provided tool contains a complete path.
11365       tool_specified="$AWK"
11366       tool_basename="${tool_specified##*/}"
11367       if test "x$tool_basename" = "x$tool_specified"; then
11368         # A command without a complete path is provided, search $PATH.
11369         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11370 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11371         # Extract the first word of "$tool_basename", so it can be a program name with args.
11372 set dummy $tool_basename; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_path_AWK+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   case $AWK in
11379   [\\/]* | ?:[\\/]*)
11380   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11381   ;;
11382   *)
11383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388     for ac_exec_ext in '' $ac_executable_extensions; do
11389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395   done
11396 IFS=$as_save_IFS
11397 
11398   ;;
11399 esac
11400 fi
11401 AWK=$ac_cv_path_AWK
11402 if test -n "$AWK"; then
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11404 $as_echo "$AWK" >&6; }
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11408 fi
11409 
11410 
11411         if test "x$AWK" = x; then
11412           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11413         fi
11414       else
11415         # Otherwise we believe it is a complete path. Use it as it is.
11416         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11417 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11419 $as_echo_n "checking for AWK... " >&6; }
11420         if test ! -x "$tool_specified"; then
11421           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11422 $as_echo "not found" >&6; }
11423           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11424         fi
11425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11426 $as_echo "$tool_specified" >&6; }
11427       fi
11428     fi
11429   fi
11430 
11431 
11432   if test "x$AWK" = x; then
11433     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11434   fi
11435 
11436 
11437 
11438 
11439   # Publish this variable in the help.
11440 
11441 
11442   if test "x$GREP" = x; then
11443     # The variable is not set by user, try to locate tool using the code snippet
11444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11445 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11446 if ${ac_cv_path_GREP+:} false; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   if test -z "$GREP"; then
11450   ac_path_GREP_found=false
11451   # Loop through the user's path and test for each of PROGNAME-LIST
11452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11454 do
11455   IFS=$as_save_IFS
11456   test -z "$as_dir" && as_dir=.
11457     for ac_prog in grep ggrep; do
11458     for ac_exec_ext in '' $ac_executable_extensions; do
11459       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11460       as_fn_executable_p "$ac_path_GREP" || continue
11461 # Check for GNU ac_path_GREP and select it if it is found.
11462   # Check for GNU $ac_path_GREP
11463 case `"$ac_path_GREP" --version 2>&1` in
11464 *GNU*)
11465   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11466 *)
11467   ac_count=0
11468   $as_echo_n 0123456789 >"conftest.in"
11469   while :
11470   do
11471     cat "conftest.in" "conftest.in" >"conftest.tmp"
11472     mv "conftest.tmp" "conftest.in"
11473     cp "conftest.in" "conftest.nl"
11474     $as_echo 'GREP' >> "conftest.nl"
11475     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11476     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11477     as_fn_arith $ac_count + 1 && ac_count=$as_val
11478     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11479       # Best one so far, save it but keep looking for a better one
11480       ac_cv_path_GREP="$ac_path_GREP"
11481       ac_path_GREP_max=$ac_count
11482     fi
11483     # 10*(2^10) chars as input seems more than enough
11484     test $ac_count -gt 10 && break
11485   done
11486   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11487 esac
11488 
11489       $ac_path_GREP_found && break 3
11490     done
11491   done
11492   done
11493 IFS=$as_save_IFS
11494   if test -z "$ac_cv_path_GREP"; then
11495     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11496   fi
11497 else
11498   ac_cv_path_GREP=$GREP
11499 fi
11500 
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11503 $as_echo "$ac_cv_path_GREP" >&6; }
11504  GREP="$ac_cv_path_GREP"
11505 
11506 
11507   else
11508     # The variable is set, but is it from the command line or the environment?
11509 
11510     # Try to remove the string !GREP! from our list.
11511     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11512     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11513       # If it failed, the variable was not from the command line. Ignore it,
11514       # but warn the user (except for BASH, which is always set by the calling BASH).
11515       if test "xGREP" != xBASH; then
11516         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11517 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11518       fi
11519       # Try to locate tool using the code snippet
11520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11521 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11522 if ${ac_cv_path_GREP+:} false; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525   if test -z "$GREP"; then
11526   ac_path_GREP_found=false
11527   # Loop through the user's path and test for each of PROGNAME-LIST
11528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11530 do
11531   IFS=$as_save_IFS
11532   test -z "$as_dir" && as_dir=.
11533     for ac_prog in grep ggrep; do
11534     for ac_exec_ext in '' $ac_executable_extensions; do
11535       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11536       as_fn_executable_p "$ac_path_GREP" || continue
11537 # Check for GNU ac_path_GREP and select it if it is found.
11538   # Check for GNU $ac_path_GREP
11539 case `"$ac_path_GREP" --version 2>&1` in
11540 *GNU*)
11541   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11542 *)
11543   ac_count=0
11544   $as_echo_n 0123456789 >"conftest.in"
11545   while :
11546   do
11547     cat "conftest.in" "conftest.in" >"conftest.tmp"
11548     mv "conftest.tmp" "conftest.in"
11549     cp "conftest.in" "conftest.nl"
11550     $as_echo 'GREP' >> "conftest.nl"
11551     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11552     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11553     as_fn_arith $ac_count + 1 && ac_count=$as_val
11554     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11555       # Best one so far, save it but keep looking for a better one
11556       ac_cv_path_GREP="$ac_path_GREP"
11557       ac_path_GREP_max=$ac_count
11558     fi
11559     # 10*(2^10) chars as input seems more than enough
11560     test $ac_count -gt 10 && break
11561   done
11562   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11563 esac
11564 
11565       $ac_path_GREP_found && break 3
11566     done
11567   done
11568   done
11569 IFS=$as_save_IFS
11570   if test -z "$ac_cv_path_GREP"; then
11571     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11572   fi
11573 else
11574   ac_cv_path_GREP=$GREP
11575 fi
11576 
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11579 $as_echo "$ac_cv_path_GREP" >&6; }
11580  GREP="$ac_cv_path_GREP"
11581 
11582 
11583     else
11584       # If it succeeded, then it was overridden by the user. We will use it
11585       # for the tool.
11586 
11587       # First remove it from the list of overridden variables, so we can test
11588       # for unknown variables in the end.
11589       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11590 
11591       # Check if the provided tool contains a complete path.
11592       tool_specified="$GREP"
11593       tool_basename="${tool_specified##*/}"
11594       if test "x$tool_basename" = "x$tool_specified"; then
11595         # A command without a complete path is provided, search $PATH.
11596         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11597 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11598         # Extract the first word of "$tool_basename", so it can be a program name with args.
11599 set dummy $tool_basename; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_path_GREP+:} false; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   case $GREP in
11606   [\\/]* | ?:[\\/]*)
11607   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11608   ;;
11609   *)
11610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11612 do
11613   IFS=$as_save_IFS
11614   test -z "$as_dir" && as_dir=.
11615     for ac_exec_ext in '' $ac_executable_extensions; do
11616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619     break 2
11620   fi
11621 done
11622   done
11623 IFS=$as_save_IFS
11624 
11625   ;;
11626 esac
11627 fi
11628 GREP=$ac_cv_path_GREP
11629 if test -n "$GREP"; then
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11631 $as_echo "$GREP" >&6; }
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635 fi
11636 
11637 
11638         if test "x$GREP" = x; then
11639           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11640         fi
11641       else
11642         # Otherwise we believe it is a complete path. Use it as it is.
11643         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11644 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11646 $as_echo_n "checking for GREP... " >&6; }
11647         if test ! -x "$tool_specified"; then
11648           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11649 $as_echo "not found" >&6; }
11650           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11651         fi
11652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11653 $as_echo "$tool_specified" >&6; }
11654       fi
11655     fi
11656   fi
11657 
11658 
11659   if test "x$GREP" = x; then
11660     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11661   fi
11662 
11663 
11664 
11665 
11666   # Publish this variable in the help.
11667 
11668 
11669   if test "x$EGREP" = x; then
11670     # The variable is not set by user, try to locate tool using the code snippet
11671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11672 $as_echo_n "checking for egrep... " >&6; }
11673 if ${ac_cv_path_EGREP+:} false; then :
11674   $as_echo_n "(cached) " >&6
11675 else
11676   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11677    then ac_cv_path_EGREP="$GREP -E"
11678    else
11679      if test -z "$EGREP"; then
11680   ac_path_EGREP_found=false
11681   # Loop through the user's path and test for each of PROGNAME-LIST
11682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11684 do
11685   IFS=$as_save_IFS
11686   test -z "$as_dir" && as_dir=.
11687     for ac_prog in egrep; do
11688     for ac_exec_ext in '' $ac_executable_extensions; do
11689       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11690       as_fn_executable_p "$ac_path_EGREP" || continue
11691 # Check for GNU ac_path_EGREP and select it if it is found.
11692   # Check for GNU $ac_path_EGREP
11693 case `"$ac_path_EGREP" --version 2>&1` in
11694 *GNU*)
11695   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11696 *)
11697   ac_count=0
11698   $as_echo_n 0123456789 >"conftest.in"
11699   while :
11700   do
11701     cat "conftest.in" "conftest.in" >"conftest.tmp"
11702     mv "conftest.tmp" "conftest.in"
11703     cp "conftest.in" "conftest.nl"
11704     $as_echo 'EGREP' >> "conftest.nl"
11705     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11707     as_fn_arith $ac_count + 1 && ac_count=$as_val
11708     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11709       # Best one so far, save it but keep looking for a better one
11710       ac_cv_path_EGREP="$ac_path_EGREP"
11711       ac_path_EGREP_max=$ac_count
11712     fi
11713     # 10*(2^10) chars as input seems more than enough
11714     test $ac_count -gt 10 && break
11715   done
11716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11717 esac
11718 
11719       $ac_path_EGREP_found && break 3
11720     done
11721   done
11722   done
11723 IFS=$as_save_IFS
11724   if test -z "$ac_cv_path_EGREP"; then
11725     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11726   fi
11727 else
11728   ac_cv_path_EGREP=$EGREP
11729 fi
11730 
11731    fi
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11734 $as_echo "$ac_cv_path_EGREP" >&6; }
11735  EGREP="$ac_cv_path_EGREP"
11736 
11737 
11738   else
11739     # The variable is set, but is it from the command line or the environment?
11740 
11741     # Try to remove the string !EGREP! from our list.
11742     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11743     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11744       # If it failed, the variable was not from the command line. Ignore it,
11745       # but warn the user (except for BASH, which is always set by the calling BASH).
11746       if test "xEGREP" != xBASH; then
11747         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11748 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11749       fi
11750       # Try to locate tool using the code snippet
11751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11752 $as_echo_n "checking for egrep... " >&6; }
11753 if ${ac_cv_path_EGREP+:} false; then :
11754   $as_echo_n "(cached) " >&6
11755 else
11756   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11757    then ac_cv_path_EGREP="$GREP -E"
11758    else
11759      if test -z "$EGREP"; then
11760   ac_path_EGREP_found=false
11761   # Loop through the user's path and test for each of PROGNAME-LIST
11762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11764 do
11765   IFS=$as_save_IFS
11766   test -z "$as_dir" && as_dir=.
11767     for ac_prog in egrep; do
11768     for ac_exec_ext in '' $ac_executable_extensions; do
11769       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11770       as_fn_executable_p "$ac_path_EGREP" || continue
11771 # Check for GNU ac_path_EGREP and select it if it is found.
11772   # Check for GNU $ac_path_EGREP
11773 case `"$ac_path_EGREP" --version 2>&1` in
11774 *GNU*)
11775   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11776 *)
11777   ac_count=0
11778   $as_echo_n 0123456789 >"conftest.in"
11779   while :
11780   do
11781     cat "conftest.in" "conftest.in" >"conftest.tmp"
11782     mv "conftest.tmp" "conftest.in"
11783     cp "conftest.in" "conftest.nl"
11784     $as_echo 'EGREP' >> "conftest.nl"
11785     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11787     as_fn_arith $ac_count + 1 && ac_count=$as_val
11788     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11789       # Best one so far, save it but keep looking for a better one
11790       ac_cv_path_EGREP="$ac_path_EGREP"
11791       ac_path_EGREP_max=$ac_count
11792     fi
11793     # 10*(2^10) chars as input seems more than enough
11794     test $ac_count -gt 10 && break
11795   done
11796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11797 esac
11798 
11799       $ac_path_EGREP_found && break 3
11800     done
11801   done
11802   done
11803 IFS=$as_save_IFS
11804   if test -z "$ac_cv_path_EGREP"; then
11805     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11806   fi
11807 else
11808   ac_cv_path_EGREP=$EGREP
11809 fi
11810 
11811    fi
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11814 $as_echo "$ac_cv_path_EGREP" >&6; }
11815  EGREP="$ac_cv_path_EGREP"
11816 
11817 
11818     else
11819       # If it succeeded, then it was overridden by the user. We will use it
11820       # for the tool.
11821 
11822       # First remove it from the list of overridden variables, so we can test
11823       # for unknown variables in the end.
11824       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11825 
11826       # Check if the provided tool contains a complete path.
11827       tool_specified="$EGREP"
11828       tool_basename="${tool_specified##*/}"
11829       if test "x$tool_basename" = "x$tool_specified"; then
11830         # A command without a complete path is provided, search $PATH.
11831         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11832 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11833         # Extract the first word of "$tool_basename", so it can be a program name with args.
11834 set dummy $tool_basename; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_path_EGREP+:} false; then :
11838   $as_echo_n "(cached) " >&6
11839 else
11840   case $EGREP in
11841   [\\/]* | ?:[\\/]*)
11842   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11843   ;;
11844   *)
11845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848   IFS=$as_save_IFS
11849   test -z "$as_dir" && as_dir=.
11850     for ac_exec_ext in '' $ac_executable_extensions; do
11851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854     break 2
11855   fi
11856 done
11857   done
11858 IFS=$as_save_IFS
11859 
11860   ;;
11861 esac
11862 fi
11863 EGREP=$ac_cv_path_EGREP
11864 if test -n "$EGREP"; then
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11866 $as_echo "$EGREP" >&6; }
11867 else
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 fi
11871 
11872 
11873         if test "x$EGREP" = x; then
11874           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11875         fi
11876       else
11877         # Otherwise we believe it is a complete path. Use it as it is.
11878         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11879 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11881 $as_echo_n "checking for EGREP... " >&6; }
11882         if test ! -x "$tool_specified"; then
11883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11884 $as_echo "not found" >&6; }
11885           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11886         fi
11887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11888 $as_echo "$tool_specified" >&6; }
11889       fi
11890     fi
11891   fi
11892 
11893 
11894   if test "x$EGREP" = x; then
11895     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11896   fi
11897 
11898 
11899 
11900 
11901   # Publish this variable in the help.
11902 
11903 
11904   if test "x$FGREP" = x; then
11905     # The variable is not set by user, try to locate tool using the code snippet
11906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11907 $as_echo_n "checking for fgrep... " >&6; }
11908 if ${ac_cv_path_FGREP+:} false; then :
11909   $as_echo_n "(cached) " >&6
11910 else
11911   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11912    then ac_cv_path_FGREP="$GREP -F"
11913    else
11914      if test -z "$FGREP"; then
11915   ac_path_FGREP_found=false
11916   # Loop through the user's path and test for each of PROGNAME-LIST
11917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11919 do
11920   IFS=$as_save_IFS
11921   test -z "$as_dir" && as_dir=.
11922     for ac_prog in fgrep; do
11923     for ac_exec_ext in '' $ac_executable_extensions; do
11924       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11925       as_fn_executable_p "$ac_path_FGREP" || continue
11926 # Check for GNU ac_path_FGREP and select it if it is found.
11927   # Check for GNU $ac_path_FGREP
11928 case `"$ac_path_FGREP" --version 2>&1` in
11929 *GNU*)
11930   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11931 *)
11932   ac_count=0
11933   $as_echo_n 0123456789 >"conftest.in"
11934   while :
11935   do
11936     cat "conftest.in" "conftest.in" >"conftest.tmp"
11937     mv "conftest.tmp" "conftest.in"
11938     cp "conftest.in" "conftest.nl"
11939     $as_echo 'FGREP' >> "conftest.nl"
11940     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11941     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11942     as_fn_arith $ac_count + 1 && ac_count=$as_val
11943     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11944       # Best one so far, save it but keep looking for a better one
11945       ac_cv_path_FGREP="$ac_path_FGREP"
11946       ac_path_FGREP_max=$ac_count
11947     fi
11948     # 10*(2^10) chars as input seems more than enough
11949     test $ac_count -gt 10 && break
11950   done
11951   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11952 esac
11953 
11954       $ac_path_FGREP_found && break 3
11955     done
11956   done
11957   done
11958 IFS=$as_save_IFS
11959   if test -z "$ac_cv_path_FGREP"; then
11960     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11961   fi
11962 else
11963   ac_cv_path_FGREP=$FGREP
11964 fi
11965 
11966    fi
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11969 $as_echo "$ac_cv_path_FGREP" >&6; }
11970  FGREP="$ac_cv_path_FGREP"
11971 
11972 
11973   else
11974     # The variable is set, but is it from the command line or the environment?
11975 
11976     # Try to remove the string !FGREP! from our list.
11977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
11978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11979       # If it failed, the variable was not from the command line. Ignore it,
11980       # but warn the user (except for BASH, which is always set by the calling BASH).
11981       if test "xFGREP" != xBASH; then
11982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
11983 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
11984       fi
11985       # Try to locate tool using the code snippet
11986       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11987 $as_echo_n "checking for fgrep... " >&6; }
11988 if ${ac_cv_path_FGREP+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11992    then ac_cv_path_FGREP="$GREP -F"
11993    else
11994      if test -z "$FGREP"; then
11995   ac_path_FGREP_found=false
11996   # Loop through the user's path and test for each of PROGNAME-LIST
11997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11999 do
12000   IFS=$as_save_IFS
12001   test -z "$as_dir" && as_dir=.
12002     for ac_prog in fgrep; do
12003     for ac_exec_ext in '' $ac_executable_extensions; do
12004       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12005       as_fn_executable_p "$ac_path_FGREP" || continue
12006 # Check for GNU ac_path_FGREP and select it if it is found.
12007   # Check for GNU $ac_path_FGREP
12008 case `"$ac_path_FGREP" --version 2>&1` in
12009 *GNU*)
12010   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12011 *)
12012   ac_count=0
12013   $as_echo_n 0123456789 >"conftest.in"
12014   while :
12015   do
12016     cat "conftest.in" "conftest.in" >"conftest.tmp"
12017     mv "conftest.tmp" "conftest.in"
12018     cp "conftest.in" "conftest.nl"
12019     $as_echo 'FGREP' >> "conftest.nl"
12020     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12022     as_fn_arith $ac_count + 1 && ac_count=$as_val
12023     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12024       # Best one so far, save it but keep looking for a better one
12025       ac_cv_path_FGREP="$ac_path_FGREP"
12026       ac_path_FGREP_max=$ac_count
12027     fi
12028     # 10*(2^10) chars as input seems more than enough
12029     test $ac_count -gt 10 && break
12030   done
12031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12032 esac
12033 
12034       $ac_path_FGREP_found && break 3
12035     done
12036   done
12037   done
12038 IFS=$as_save_IFS
12039   if test -z "$ac_cv_path_FGREP"; then
12040     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12041   fi
12042 else
12043   ac_cv_path_FGREP=$FGREP
12044 fi
12045 
12046    fi
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12049 $as_echo "$ac_cv_path_FGREP" >&6; }
12050  FGREP="$ac_cv_path_FGREP"
12051 
12052 
12053     else
12054       # If it succeeded, then it was overridden by the user. We will use it
12055       # for the tool.
12056 
12057       # First remove it from the list of overridden variables, so we can test
12058       # for unknown variables in the end.
12059       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12060 
12061       # Check if the provided tool contains a complete path.
12062       tool_specified="$FGREP"
12063       tool_basename="${tool_specified##*/}"
12064       if test "x$tool_basename" = "x$tool_specified"; then
12065         # A command without a complete path is provided, search $PATH.
12066         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12067 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12068         # Extract the first word of "$tool_basename", so it can be a program name with args.
12069 set dummy $tool_basename; ac_word=$2
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071 $as_echo_n "checking for $ac_word... " >&6; }
12072 if ${ac_cv_path_FGREP+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075   case $FGREP in
12076   [\\/]* | ?:[\\/]*)
12077   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12078   ;;
12079   *)
12080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085     for ac_exec_ext in '' $ac_executable_extensions; do
12086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089     break 2
12090   fi
12091 done
12092   done
12093 IFS=$as_save_IFS
12094 
12095   ;;
12096 esac
12097 fi
12098 FGREP=$ac_cv_path_FGREP
12099 if test -n "$FGREP"; then
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12101 $as_echo "$FGREP" >&6; }
12102 else
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106 
12107 
12108         if test "x$FGREP" = x; then
12109           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12110         fi
12111       else
12112         # Otherwise we believe it is a complete path. Use it as it is.
12113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12114 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12116 $as_echo_n "checking for FGREP... " >&6; }
12117         if test ! -x "$tool_specified"; then
12118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12119 $as_echo "not found" >&6; }
12120           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12121         fi
12122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12123 $as_echo "$tool_specified" >&6; }
12124       fi
12125     fi
12126   fi
12127 
12128 
12129   if test "x$FGREP" = x; then
12130     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12131   fi
12132 
12133 
12134 
12135 
12136   # Publish this variable in the help.
12137 
12138 
12139   if test "x$SED" = x; then
12140     # The variable is not set by user, try to locate tool using the code snippet
12141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12142 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12143 if ${ac_cv_path_SED+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12147      for ac_i in 1 2 3 4 5 6 7; do
12148        ac_script="$ac_script$as_nl$ac_script"
12149      done
12150      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12151      { ac_script=; unset ac_script;}
12152      if test -z "$SED"; then
12153   ac_path_SED_found=false
12154   # Loop through the user's path and test for each of PROGNAME-LIST
12155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158   IFS=$as_save_IFS
12159   test -z "$as_dir" && as_dir=.
12160     for ac_prog in sed gsed; do
12161     for ac_exec_ext in '' $ac_executable_extensions; do
12162       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12163       as_fn_executable_p "$ac_path_SED" || continue
12164 # Check for GNU ac_path_SED and select it if it is found.
12165   # Check for GNU $ac_path_SED
12166 case `"$ac_path_SED" --version 2>&1` in
12167 *GNU*)
12168   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12169 *)
12170   ac_count=0
12171   $as_echo_n 0123456789 >"conftest.in"
12172   while :
12173   do
12174     cat "conftest.in" "conftest.in" >"conftest.tmp"
12175     mv "conftest.tmp" "conftest.in"
12176     cp "conftest.in" "conftest.nl"
12177     $as_echo '' >> "conftest.nl"
12178     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12179     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12180     as_fn_arith $ac_count + 1 && ac_count=$as_val
12181     if test $ac_count -gt ${ac_path_SED_max-0}; then
12182       # Best one so far, save it but keep looking for a better one
12183       ac_cv_path_SED="$ac_path_SED"
12184       ac_path_SED_max=$ac_count
12185     fi
12186     # 10*(2^10) chars as input seems more than enough
12187     test $ac_count -gt 10 && break
12188   done
12189   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12190 esac
12191 
12192       $ac_path_SED_found && break 3
12193     done
12194   done
12195   done
12196 IFS=$as_save_IFS
12197   if test -z "$ac_cv_path_SED"; then
12198     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12199   fi
12200 else
12201   ac_cv_path_SED=$SED
12202 fi
12203 
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12206 $as_echo "$ac_cv_path_SED" >&6; }
12207  SED="$ac_cv_path_SED"
12208   rm -f conftest.sed
12209 
12210   else
12211     # The variable is set, but is it from the command line or the environment?
12212 
12213     # Try to remove the string !SED! from our list.
12214     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12215     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12216       # If it failed, the variable was not from the command line. Ignore it,
12217       # but warn the user (except for BASH, which is always set by the calling BASH).
12218       if test "xSED" != xBASH; then
12219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12220 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12221       fi
12222       # Try to locate tool using the code snippet
12223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12224 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12225 if ${ac_cv_path_SED+:} false; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12229      for ac_i in 1 2 3 4 5 6 7; do
12230        ac_script="$ac_script$as_nl$ac_script"
12231      done
12232      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12233      { ac_script=; unset ac_script;}
12234      if test -z "$SED"; then
12235   ac_path_SED_found=false
12236   # Loop through the user's path and test for each of PROGNAME-LIST
12237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240   IFS=$as_save_IFS
12241   test -z "$as_dir" && as_dir=.
12242     for ac_prog in sed gsed; do
12243     for ac_exec_ext in '' $ac_executable_extensions; do
12244       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12245       as_fn_executable_p "$ac_path_SED" || continue
12246 # Check for GNU ac_path_SED and select it if it is found.
12247   # Check for GNU $ac_path_SED
12248 case `"$ac_path_SED" --version 2>&1` in
12249 *GNU*)
12250   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12251 *)
12252   ac_count=0
12253   $as_echo_n 0123456789 >"conftest.in"
12254   while :
12255   do
12256     cat "conftest.in" "conftest.in" >"conftest.tmp"
12257     mv "conftest.tmp" "conftest.in"
12258     cp "conftest.in" "conftest.nl"
12259     $as_echo '' >> "conftest.nl"
12260     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12261     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12262     as_fn_arith $ac_count + 1 && ac_count=$as_val
12263     if test $ac_count -gt ${ac_path_SED_max-0}; then
12264       # Best one so far, save it but keep looking for a better one
12265       ac_cv_path_SED="$ac_path_SED"
12266       ac_path_SED_max=$ac_count
12267     fi
12268     # 10*(2^10) chars as input seems more than enough
12269     test $ac_count -gt 10 && break
12270   done
12271   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12272 esac
12273 
12274       $ac_path_SED_found && break 3
12275     done
12276   done
12277   done
12278 IFS=$as_save_IFS
12279   if test -z "$ac_cv_path_SED"; then
12280     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12281   fi
12282 else
12283   ac_cv_path_SED=$SED
12284 fi
12285 
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12288 $as_echo "$ac_cv_path_SED" >&6; }
12289  SED="$ac_cv_path_SED"
12290   rm -f conftest.sed
12291 
12292     else
12293       # If it succeeded, then it was overridden by the user. We will use it
12294       # for the tool.
12295 
12296       # First remove it from the list of overridden variables, so we can test
12297       # for unknown variables in the end.
12298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12299 
12300       # Check if the provided tool contains a complete path.
12301       tool_specified="$SED"
12302       tool_basename="${tool_specified##*/}"
12303       if test "x$tool_basename" = "x$tool_specified"; then
12304         # A command without a complete path is provided, search $PATH.
12305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12306 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12307         # Extract the first word of "$tool_basename", so it can be a program name with args.
12308 set dummy $tool_basename; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if ${ac_cv_path_SED+:} false; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   case $SED in
12315   [\\/]* | ?:[\\/]*)
12316   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12317   ;;
12318   *)
12319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12321 do
12322   IFS=$as_save_IFS
12323   test -z "$as_dir" && as_dir=.
12324     for ac_exec_ext in '' $ac_executable_extensions; do
12325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12326     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328     break 2
12329   fi
12330 done
12331   done
12332 IFS=$as_save_IFS
12333 
12334   ;;
12335 esac
12336 fi
12337 SED=$ac_cv_path_SED
12338 if test -n "$SED"; then
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12340 $as_echo "$SED" >&6; }
12341 else
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345 
12346 
12347         if test "x$SED" = x; then
12348           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12349         fi
12350       else
12351         # Otherwise we believe it is a complete path. Use it as it is.
12352         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12353 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12355 $as_echo_n "checking for SED... " >&6; }
12356         if test ! -x "$tool_specified"; then
12357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12358 $as_echo "not found" >&6; }
12359           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12360         fi
12361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12362 $as_echo "$tool_specified" >&6; }
12363       fi
12364     fi
12365   fi
12366 
12367 
12368   if test "x$SED" = x; then
12369     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12370   fi
12371 
12372 
12373 
12374   # Always force rm.
12375   RM="$RM -f"
12376 
12377   # pwd behaves differently on various platforms and some don't support the -L flag.
12378   # Always use the bash builtin pwd to get uniform behavior.
12379   THEPWDCMD=pwd
12380 
12381   # These are not required on all platforms
12382 
12383 
12384   # Publish this variable in the help.
12385 
12386 
12387   if test "x$CYGPATH" = x; then
12388     # The variable is not set by user, try to locate tool using the code snippet
12389     for ac_prog in cygpath
12390 do
12391   # Extract the first word of "$ac_prog", so it can be a program name with args.
12392 set dummy $ac_prog; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if ${ac_cv_path_CYGPATH+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   case $CYGPATH in
12399   [\\/]* | ?:[\\/]*)
12400   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12401   ;;
12402   *)
12403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406   IFS=$as_save_IFS
12407   test -z "$as_dir" && as_dir=.
12408     for ac_exec_ext in '' $ac_executable_extensions; do
12409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412     break 2
12413   fi
12414 done
12415   done
12416 IFS=$as_save_IFS
12417 
12418   ;;
12419 esac
12420 fi
12421 CYGPATH=$ac_cv_path_CYGPATH
12422 if test -n "$CYGPATH"; then
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12424 $as_echo "$CYGPATH" >&6; }
12425 else
12426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429 
12430 
12431   test -n "$CYGPATH" && break
12432 done
12433 
12434   else
12435     # The variable is set, but is it from the command line or the environment?
12436 
12437     # Try to remove the string !CYGPATH! from our list.
12438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12440       # If it failed, the variable was not from the command line. Ignore it,
12441       # but warn the user (except for BASH, which is always set by the calling BASH).
12442       if test "xCYGPATH" != xBASH; then
12443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12444 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12445       fi
12446       # Try to locate tool using the code snippet
12447       for ac_prog in cygpath
12448 do
12449   # Extract the first word of "$ac_prog", so it can be a program name with args.
12450 set dummy $ac_prog; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if ${ac_cv_path_CYGPATH+:} false; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   case $CYGPATH in
12457   [\\/]* | ?:[\\/]*)
12458   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12459   ;;
12460   *)
12461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12463 do
12464   IFS=$as_save_IFS
12465   test -z "$as_dir" && as_dir=.
12466     for ac_exec_ext in '' $ac_executable_extensions; do
12467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12468     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470     break 2
12471   fi
12472 done
12473   done
12474 IFS=$as_save_IFS
12475 
12476   ;;
12477 esac
12478 fi
12479 CYGPATH=$ac_cv_path_CYGPATH
12480 if test -n "$CYGPATH"; then
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12482 $as_echo "$CYGPATH" >&6; }
12483 else
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486 fi
12487 
12488 
12489   test -n "$CYGPATH" && break
12490 done
12491 
12492     else
12493       # If it succeeded, then it was overridden by the user. We will use it
12494       # for the tool.
12495 
12496       # First remove it from the list of overridden variables, so we can test
12497       # for unknown variables in the end.
12498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12499 
12500       # Check if the provided tool contains a complete path.
12501       tool_specified="$CYGPATH"
12502       tool_basename="${tool_specified##*/}"
12503       if test "x$tool_basename" = "x$tool_specified"; then
12504         # A command without a complete path is provided, search $PATH.
12505         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12506 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12507         # Extract the first word of "$tool_basename", so it can be a program name with args.
12508 set dummy $tool_basename; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if ${ac_cv_path_CYGPATH+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   case $CYGPATH in
12515   [\\/]* | ?:[\\/]*)
12516   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12517   ;;
12518   *)
12519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12521 do
12522   IFS=$as_save_IFS
12523   test -z "$as_dir" && as_dir=.
12524     for ac_exec_ext in '' $ac_executable_extensions; do
12525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12526     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528     break 2
12529   fi
12530 done
12531   done
12532 IFS=$as_save_IFS
12533 
12534   ;;
12535 esac
12536 fi
12537 CYGPATH=$ac_cv_path_CYGPATH
12538 if test -n "$CYGPATH"; then
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12540 $as_echo "$CYGPATH" >&6; }
12541 else
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12544 fi
12545 
12546 
12547         if test "x$CYGPATH" = x; then
12548           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12549         fi
12550       else
12551         # Otherwise we believe it is a complete path. Use it as it is.
12552         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12553 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12555 $as_echo_n "checking for CYGPATH... " >&6; }
12556         if test ! -x "$tool_specified"; then
12557           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12558 $as_echo "not found" >&6; }
12559           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12560         fi
12561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12562 $as_echo "$tool_specified" >&6; }
12563       fi
12564     fi
12565   fi
12566 
12567 
12568 
12569 
12570   # Publish this variable in the help.
12571 
12572 
12573   if test "x$READLINK" = x; then
12574     # The variable is not set by user, try to locate tool using the code snippet
12575     for ac_prog in greadlink readlink
12576 do
12577   # Extract the first word of "$ac_prog", so it can be a program name with args.
12578 set dummy $ac_prog; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_READLINK+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   case $READLINK in
12585   [\\/]* | ?:[\\/]*)
12586   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12587   ;;
12588   *)
12589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12591 do
12592   IFS=$as_save_IFS
12593   test -z "$as_dir" && as_dir=.
12594     for ac_exec_ext in '' $ac_executable_extensions; do
12595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598     break 2
12599   fi
12600 done
12601   done
12602 IFS=$as_save_IFS
12603 
12604   ;;
12605 esac
12606 fi
12607 READLINK=$ac_cv_path_READLINK
12608 if test -n "$READLINK"; then
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12610 $as_echo "$READLINK" >&6; }
12611 else
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615 
12616 
12617   test -n "$READLINK" && break
12618 done
12619 
12620   else
12621     # The variable is set, but is it from the command line or the environment?
12622 
12623     # Try to remove the string !READLINK! from our list.
12624     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12625     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12626       # If it failed, the variable was not from the command line. Ignore it,
12627       # but warn the user (except for BASH, which is always set by the calling BASH).
12628       if test "xREADLINK" != xBASH; then
12629         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12630 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12631       fi
12632       # Try to locate tool using the code snippet
12633       for ac_prog in greadlink readlink
12634 do
12635   # Extract the first word of "$ac_prog", so it can be a program name with args.
12636 set dummy $ac_prog; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_path_READLINK+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   case $READLINK in
12643   [\\/]* | ?:[\\/]*)
12644   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12645   ;;
12646   *)
12647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12649 do
12650   IFS=$as_save_IFS
12651   test -z "$as_dir" && as_dir=.
12652     for ac_exec_ext in '' $ac_executable_extensions; do
12653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656     break 2
12657   fi
12658 done
12659   done
12660 IFS=$as_save_IFS
12661 
12662   ;;
12663 esac
12664 fi
12665 READLINK=$ac_cv_path_READLINK
12666 if test -n "$READLINK"; then
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12668 $as_echo "$READLINK" >&6; }
12669 else
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 fi
12673 
12674 
12675   test -n "$READLINK" && break
12676 done
12677 
12678     else
12679       # If it succeeded, then it was overridden by the user. We will use it
12680       # for the tool.
12681 
12682       # First remove it from the list of overridden variables, so we can test
12683       # for unknown variables in the end.
12684       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12685 
12686       # Check if the provided tool contains a complete path.
12687       tool_specified="$READLINK"
12688       tool_basename="${tool_specified##*/}"
12689       if test "x$tool_basename" = "x$tool_specified"; then
12690         # A command without a complete path is provided, search $PATH.
12691         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12692 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12693         # Extract the first word of "$tool_basename", so it can be a program name with args.
12694 set dummy $tool_basename; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if ${ac_cv_path_READLINK+:} false; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   case $READLINK in
12701   [\\/]* | ?:[\\/]*)
12702   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12703   ;;
12704   *)
12705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12707 do
12708   IFS=$as_save_IFS
12709   test -z "$as_dir" && as_dir=.
12710     for ac_exec_ext in '' $ac_executable_extensions; do
12711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714     break 2
12715   fi
12716 done
12717   done
12718 IFS=$as_save_IFS
12719 
12720   ;;
12721 esac
12722 fi
12723 READLINK=$ac_cv_path_READLINK
12724 if test -n "$READLINK"; then
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12726 $as_echo "$READLINK" >&6; }
12727 else
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731 
12732 
12733         if test "x$READLINK" = x; then
12734           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12735         fi
12736       else
12737         # Otherwise we believe it is a complete path. Use it as it is.
12738         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12739 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12741 $as_echo_n "checking for READLINK... " >&6; }
12742         if test ! -x "$tool_specified"; then
12743           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12744 $as_echo "not found" >&6; }
12745           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12746         fi
12747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12748 $as_echo "$tool_specified" >&6; }
12749       fi
12750     fi
12751   fi
12752 
12753 
12754 
12755 
12756   # Publish this variable in the help.
12757 
12758 
12759   if test "x$DF" = x; then
12760     # The variable is not set by user, try to locate tool using the code snippet
12761     for ac_prog in df
12762 do
12763   # Extract the first word of "$ac_prog", so it can be a program name with args.
12764 set dummy $ac_prog; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if ${ac_cv_path_DF+:} false; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   case $DF in
12771   [\\/]* | ?:[\\/]*)
12772   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12773   ;;
12774   *)
12775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12777 do
12778   IFS=$as_save_IFS
12779   test -z "$as_dir" && as_dir=.
12780     for ac_exec_ext in '' $ac_executable_extensions; do
12781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12782     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784     break 2
12785   fi
12786 done
12787   done
12788 IFS=$as_save_IFS
12789 
12790   ;;
12791 esac
12792 fi
12793 DF=$ac_cv_path_DF
12794 if test -n "$DF"; then
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12796 $as_echo "$DF" >&6; }
12797 else
12798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800 fi
12801 
12802 
12803   test -n "$DF" && break
12804 done
12805 
12806   else
12807     # The variable is set, but is it from the command line or the environment?
12808 
12809     # Try to remove the string !DF! from our list.
12810     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12811     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12812       # If it failed, the variable was not from the command line. Ignore it,
12813       # but warn the user (except for BASH, which is always set by the calling BASH).
12814       if test "xDF" != xBASH; then
12815         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12816 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12817       fi
12818       # Try to locate tool using the code snippet
12819       for ac_prog in df
12820 do
12821   # Extract the first word of "$ac_prog", so it can be a program name with args.
12822 set dummy $ac_prog; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if ${ac_cv_path_DF+:} false; then :
12826   $as_echo_n "(cached) " >&6
12827 else
12828   case $DF in
12829   [\\/]* | ?:[\\/]*)
12830   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12831   ;;
12832   *)
12833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836   IFS=$as_save_IFS
12837   test -z "$as_dir" && as_dir=.
12838     for ac_exec_ext in '' $ac_executable_extensions; do
12839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12840     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842     break 2
12843   fi
12844 done
12845   done
12846 IFS=$as_save_IFS
12847 
12848   ;;
12849 esac
12850 fi
12851 DF=$ac_cv_path_DF
12852 if test -n "$DF"; then
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12854 $as_echo "$DF" >&6; }
12855 else
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12858 fi
12859 
12860 
12861   test -n "$DF" && break
12862 done
12863 
12864     else
12865       # If it succeeded, then it was overridden by the user. We will use it
12866       # for the tool.
12867 
12868       # First remove it from the list of overridden variables, so we can test
12869       # for unknown variables in the end.
12870       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12871 
12872       # Check if the provided tool contains a complete path.
12873       tool_specified="$DF"
12874       tool_basename="${tool_specified##*/}"
12875       if test "x$tool_basename" = "x$tool_specified"; then
12876         # A command without a complete path is provided, search $PATH.
12877         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12878 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12879         # Extract the first word of "$tool_basename", so it can be a program name with args.
12880 set dummy $tool_basename; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_path_DF+:} false; then :
12884   $as_echo_n "(cached) " >&6
12885 else
12886   case $DF in
12887   [\\/]* | ?:[\\/]*)
12888   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12889   ;;
12890   *)
12891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894   IFS=$as_save_IFS
12895   test -z "$as_dir" && as_dir=.
12896     for ac_exec_ext in '' $ac_executable_extensions; do
12897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12898     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900     break 2
12901   fi
12902 done
12903   done
12904 IFS=$as_save_IFS
12905 
12906   ;;
12907 esac
12908 fi
12909 DF=$ac_cv_path_DF
12910 if test -n "$DF"; then
12911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12912 $as_echo "$DF" >&6; }
12913 else
12914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916 fi
12917 
12918 
12919         if test "x$DF" = x; then
12920           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12921         fi
12922       else
12923         # Otherwise we believe it is a complete path. Use it as it is.
12924         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12925 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12926         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12927 $as_echo_n "checking for DF... " >&6; }
12928         if test ! -x "$tool_specified"; then
12929           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12930 $as_echo "not found" >&6; }
12931           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12932         fi
12933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12934 $as_echo "$tool_specified" >&6; }
12935       fi
12936     fi
12937   fi
12938 
12939 
12940 
12941 
12942   # Publish this variable in the help.
12943 
12944 
12945   if test "x$SETFILE" = x; then
12946     # The variable is not set by user, try to locate tool using the code snippet
12947     for ac_prog in SetFile
12948 do
12949   # Extract the first word of "$ac_prog", so it can be a program name with args.
12950 set dummy $ac_prog; ac_word=$2
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 $as_echo_n "checking for $ac_word... " >&6; }
12953 if ${ac_cv_path_SETFILE+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   case $SETFILE in
12957   [\\/]* | ?:[\\/]*)
12958   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
12959   ;;
12960   *)
12961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12963 do
12964   IFS=$as_save_IFS
12965   test -z "$as_dir" && as_dir=.
12966     for ac_exec_ext in '' $ac_executable_extensions; do
12967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
12969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970     break 2
12971   fi
12972 done
12973   done
12974 IFS=$as_save_IFS
12975 
12976   ;;
12977 esac
12978 fi
12979 SETFILE=$ac_cv_path_SETFILE
12980 if test -n "$SETFILE"; then
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
12982 $as_echo "$SETFILE" >&6; }
12983 else
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987 
12988 
12989   test -n "$SETFILE" && break
12990 done
12991 
12992   else
12993     # The variable is set, but is it from the command line or the environment?
12994 
12995     # Try to remove the string !SETFILE! from our list.
12996     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
12997     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12998       # If it failed, the variable was not from the command line. Ignore it,
12999       # but warn the user (except for BASH, which is always set by the calling BASH).
13000       if test "xSETFILE" != xBASH; then
13001         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13002 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13003       fi
13004       # Try to locate tool using the code snippet
13005       for ac_prog in SetFile
13006 do
13007   # Extract the first word of "$ac_prog", so it can be a program name with args.
13008 set dummy $ac_prog; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if ${ac_cv_path_SETFILE+:} false; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   case $SETFILE in
13015   [\\/]* | ?:[\\/]*)
13016   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13017   ;;
13018   *)
13019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13021 do
13022   IFS=$as_save_IFS
13023   test -z "$as_dir" && as_dir=.
13024     for ac_exec_ext in '' $ac_executable_extensions; do
13025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028     break 2
13029   fi
13030 done
13031   done
13032 IFS=$as_save_IFS
13033 
13034   ;;
13035 esac
13036 fi
13037 SETFILE=$ac_cv_path_SETFILE
13038 if test -n "$SETFILE"; then
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13040 $as_echo "$SETFILE" >&6; }
13041 else
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 fi
13045 
13046 
13047   test -n "$SETFILE" && break
13048 done
13049 
13050     else
13051       # If it succeeded, then it was overridden by the user. We will use it
13052       # for the tool.
13053 
13054       # First remove it from the list of overridden variables, so we can test
13055       # for unknown variables in the end.
13056       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13057 
13058       # Check if the provided tool contains a complete path.
13059       tool_specified="$SETFILE"
13060       tool_basename="${tool_specified##*/}"
13061       if test "x$tool_basename" = "x$tool_specified"; then
13062         # A command without a complete path is provided, search $PATH.
13063         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13064 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13065         # Extract the first word of "$tool_basename", so it can be a program name with args.
13066 set dummy $tool_basename; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if ${ac_cv_path_SETFILE+:} false; then :
13070   $as_echo_n "(cached) " >&6
13071 else
13072   case $SETFILE in
13073   [\\/]* | ?:[\\/]*)
13074   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13075   ;;
13076   *)
13077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13079 do
13080   IFS=$as_save_IFS
13081   test -z "$as_dir" && as_dir=.
13082     for ac_exec_ext in '' $ac_executable_extensions; do
13083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086     break 2
13087   fi
13088 done
13089   done
13090 IFS=$as_save_IFS
13091 
13092   ;;
13093 esac
13094 fi
13095 SETFILE=$ac_cv_path_SETFILE
13096 if test -n "$SETFILE"; then
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13098 $as_echo "$SETFILE" >&6; }
13099 else
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102 fi
13103 
13104 
13105         if test "x$SETFILE" = x; then
13106           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13107         fi
13108       else
13109         # Otherwise we believe it is a complete path. Use it as it is.
13110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13111 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13113 $as_echo_n "checking for SETFILE... " >&6; }
13114         if test ! -x "$tool_specified"; then
13115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13116 $as_echo "not found" >&6; }
13117           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13118         fi
13119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13120 $as_echo "$tool_specified" >&6; }
13121       fi
13122     fi
13123   fi
13124 
13125 
13126 
13127 
13128 # Now we can determine OpenJDK build and target platforms. This is required to
13129 # have early on.
13130 # Make sure we can run config.sub.
13131 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13132   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13133 
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13135 $as_echo_n "checking build system type... " >&6; }
13136 if ${ac_cv_build+:} false; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   ac_build_alias=$build_alias
13140 test "x$ac_build_alias" = x &&
13141   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13142 test "x$ac_build_alias" = x &&
13143   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13145   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13146 
13147 fi
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13149 $as_echo "$ac_cv_build" >&6; }
13150 case $ac_cv_build in
13151 *-*-*) ;;
13152 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13153 esac
13154 build=$ac_cv_build
13155 ac_save_IFS=$IFS; IFS='-'
13156 set x $ac_cv_build
13157 shift
13158 build_cpu=$1
13159 build_vendor=$2
13160 shift; shift
13161 # Remember, the first character of IFS is used to create $*,
13162 # except with old shells:
13163 build_os=$*
13164 IFS=$ac_save_IFS
13165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13166 
13167 
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13169 $as_echo_n "checking host system type... " >&6; }
13170 if ${ac_cv_host+:} false; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   if test "x$host_alias" = x; then
13174   ac_cv_host=$ac_cv_build
13175 else
13176   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13177     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13178 fi
13179 
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13182 $as_echo "$ac_cv_host" >&6; }
13183 case $ac_cv_host in
13184 *-*-*) ;;
13185 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13186 esac
13187 host=$ac_cv_host
13188 ac_save_IFS=$IFS; IFS='-'
13189 set x $ac_cv_host
13190 shift
13191 host_cpu=$1
13192 host_vendor=$2
13193 shift; shift
13194 # Remember, the first character of IFS is used to create $*,
13195 # except with old shells:
13196 host_os=$*
13197 IFS=$ac_save_IFS
13198 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13199 
13200 
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13202 $as_echo_n "checking target system type... " >&6; }
13203 if ${ac_cv_target+:} false; then :
13204   $as_echo_n "(cached) " >&6
13205 else
13206   if test "x$target_alias" = x; then
13207   ac_cv_target=$ac_cv_host
13208 else
13209   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13210     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13211 fi
13212 
13213 fi
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13215 $as_echo "$ac_cv_target" >&6; }
13216 case $ac_cv_target in
13217 *-*-*) ;;
13218 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13219 esac
13220 target=$ac_cv_target
13221 ac_save_IFS=$IFS; IFS='-'
13222 set x $ac_cv_target
13223 shift
13224 target_cpu=$1
13225 target_vendor=$2
13226 shift; shift
13227 # Remember, the first character of IFS is used to create $*,
13228 # except with old shells:
13229 target_os=$*
13230 IFS=$ac_save_IFS
13231 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13232 
13233 
13234 # The aliases save the names the user supplied, while $host etc.
13235 # will get canonicalized.
13236 test -n "$target_alias" &&
13237   test "$program_prefix$program_suffix$program_transform_name" = \
13238     NONENONEs,x,x, &&
13239   program_prefix=${target_alias}-
13240 
13241   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13242   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13243   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13244   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13245   # to use the configure naming style.
13246 
13247 
13248 
13249 
13250 
13251   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13252   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13253   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13254   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13255   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13256   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13257 
13258 
13259 
13260   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13261 
13262   case "$build_os" in
13263     *linux*)
13264       VAR_OS=linux
13265       VAR_OS_API=posix
13266       VAR_OS_ENV=linux
13267       ;;
13268     *solaris*)
13269       VAR_OS=solaris
13270       VAR_OS_API=posix
13271       VAR_OS_ENV=solaris
13272       ;;
13273     *darwin*)
13274       VAR_OS=macosx
13275       VAR_OS_API=posix
13276       VAR_OS_ENV=macosx
13277       ;;
13278     *bsd*)
13279       VAR_OS=bsd
13280       VAR_OS_API=posix
13281       VAR_OS_ENV=bsd
13282       ;;
13283     *cygwin*)
13284       VAR_OS=windows
13285       VAR_OS_API=winapi
13286       VAR_OS_ENV=windows.cygwin
13287       ;;
13288     *mingw*)
13289       VAR_OS=windows
13290       VAR_OS_API=winapi
13291       VAR_OS_ENV=windows.msys
13292       ;;
13293     *aix*)
13294       VAR_OS=aix
13295       VAR_OS_API=posix
13296       VAR_OS_ENV=aix
13297       ;;
13298     *)
13299       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13300       ;;
13301   esac
13302 
13303 
13304   # First argument is the cpu name from the trip/quad
13305   case "$build_cpu" in
13306     x86_64)
13307       VAR_CPU=x86_64
13308       VAR_CPU_ARCH=x86
13309       VAR_CPU_BITS=64
13310       VAR_CPU_ENDIAN=little
13311       ;;
13312     i?86)
13313       VAR_CPU=x86
13314       VAR_CPU_ARCH=x86
13315       VAR_CPU_BITS=32
13316       VAR_CPU_ENDIAN=little
13317       ;;
13318     arm*)
13319       VAR_CPU=arm
13320       VAR_CPU_ARCH=arm
13321       VAR_CPU_BITS=32
13322       VAR_CPU_ENDIAN=little
13323       ;;
13324     aarch64)
13325       VAR_CPU=aarch64
13326       VAR_CPU_ARCH=aarch64
13327       VAR_CPU_BITS=64
13328       VAR_CPU_ENDIAN=little
13329       ;;
13330     powerpc)
13331       VAR_CPU=ppc
13332       VAR_CPU_ARCH=ppc
13333       VAR_CPU_BITS=32
13334       VAR_CPU_ENDIAN=big
13335       ;;
13336     powerpc64)
13337       VAR_CPU=ppc64
13338       VAR_CPU_ARCH=ppc
13339       VAR_CPU_BITS=64
13340       VAR_CPU_ENDIAN=big
13341       ;;
13342     powerpc64le)
13343       VAR_CPU=ppc64
13344       VAR_CPU_ARCH=ppc
13345       VAR_CPU_BITS=64
13346       VAR_CPU_ENDIAN=little
13347       ;;
13348     s390)
13349       VAR_CPU=s390
13350       VAR_CPU_ARCH=s390
13351       VAR_CPU_BITS=32
13352       VAR_CPU_ENDIAN=big
13353       ;;
13354     s390x)
13355       VAR_CPU=s390x
13356       VAR_CPU_ARCH=s390
13357       VAR_CPU_BITS=64
13358       VAR_CPU_ENDIAN=big
13359       ;;
13360     sparc)
13361       VAR_CPU=sparc
13362       VAR_CPU_ARCH=sparc
13363       VAR_CPU_BITS=32
13364       VAR_CPU_ENDIAN=big
13365       ;;
13366     sparcv9|sparc64)
13367       VAR_CPU=sparcv9
13368       VAR_CPU_ARCH=sparc
13369       VAR_CPU_BITS=64
13370       VAR_CPU_ENDIAN=big
13371       ;;
13372     *)
13373       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13374       ;;
13375   esac
13376 
13377   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13378   OPENJDK_BUILD_OS="$VAR_OS"
13379   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13380   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13381   OPENJDK_BUILD_CPU="$VAR_CPU"
13382   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13383   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13384   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13385 
13386 
13387 
13388 
13389 
13390 
13391 
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13393 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13395 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13396 
13397   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13398 
13399   case "$host_os" in
13400     *linux*)
13401       VAR_OS=linux
13402       VAR_OS_API=posix
13403       VAR_OS_ENV=linux
13404       ;;
13405     *solaris*)
13406       VAR_OS=solaris
13407       VAR_OS_API=posix
13408       VAR_OS_ENV=solaris
13409       ;;
13410     *darwin*)
13411       VAR_OS=macosx
13412       VAR_OS_API=posix
13413       VAR_OS_ENV=macosx
13414       ;;
13415     *bsd*)
13416       VAR_OS=bsd
13417       VAR_OS_API=posix
13418       VAR_OS_ENV=bsd
13419       ;;
13420     *cygwin*)
13421       VAR_OS=windows
13422       VAR_OS_API=winapi
13423       VAR_OS_ENV=windows.cygwin
13424       ;;
13425     *mingw*)
13426       VAR_OS=windows
13427       VAR_OS_API=winapi
13428       VAR_OS_ENV=windows.msys
13429       ;;
13430     *aix*)
13431       VAR_OS=aix
13432       VAR_OS_API=posix
13433       VAR_OS_ENV=aix
13434       ;;
13435     *)
13436       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13437       ;;
13438   esac
13439 
13440 
13441   # First argument is the cpu name from the trip/quad
13442   case "$host_cpu" in
13443     x86_64)
13444       VAR_CPU=x86_64
13445       VAR_CPU_ARCH=x86
13446       VAR_CPU_BITS=64
13447       VAR_CPU_ENDIAN=little
13448       ;;
13449     i?86)
13450       VAR_CPU=x86
13451       VAR_CPU_ARCH=x86
13452       VAR_CPU_BITS=32
13453       VAR_CPU_ENDIAN=little
13454       ;;
13455     arm*)
13456       VAR_CPU=arm
13457       VAR_CPU_ARCH=arm
13458       VAR_CPU_BITS=32
13459       VAR_CPU_ENDIAN=little
13460       ;;
13461     aarch64)
13462       VAR_CPU=aarch64
13463       VAR_CPU_ARCH=aarch64
13464       VAR_CPU_BITS=64
13465       VAR_CPU_ENDIAN=little
13466       ;;
13467     powerpc)
13468       VAR_CPU=ppc
13469       VAR_CPU_ARCH=ppc
13470       VAR_CPU_BITS=32
13471       VAR_CPU_ENDIAN=big
13472       ;;
13473     powerpc64)
13474       VAR_CPU=ppc64
13475       VAR_CPU_ARCH=ppc
13476       VAR_CPU_BITS=64
13477       VAR_CPU_ENDIAN=big
13478       ;;
13479     powerpc64le)
13480       VAR_CPU=ppc64
13481       VAR_CPU_ARCH=ppc
13482       VAR_CPU_BITS=64
13483       VAR_CPU_ENDIAN=little
13484       ;;
13485     s390)
13486       VAR_CPU=s390
13487       VAR_CPU_ARCH=s390
13488       VAR_CPU_BITS=32
13489       VAR_CPU_ENDIAN=big
13490       ;;
13491     s390x)
13492       VAR_CPU=s390x
13493       VAR_CPU_ARCH=s390
13494       VAR_CPU_BITS=64
13495       VAR_CPU_ENDIAN=big
13496       ;;
13497     sparc)
13498       VAR_CPU=sparc
13499       VAR_CPU_ARCH=sparc
13500       VAR_CPU_BITS=32
13501       VAR_CPU_ENDIAN=big
13502       ;;
13503     sparcv9|sparc64)
13504       VAR_CPU=sparcv9
13505       VAR_CPU_ARCH=sparc
13506       VAR_CPU_BITS=64
13507       VAR_CPU_ENDIAN=big
13508       ;;
13509     *)
13510       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13511       ;;
13512   esac
13513 
13514   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13515   OPENJDK_TARGET_OS="$VAR_OS"
13516   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13517   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13518   OPENJDK_TARGET_CPU="$VAR_CPU"
13519   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13520   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13521   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13522 
13523 
13524 
13525 
13526 
13527 
13528 
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13530 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13532 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13533 
13534 
13535 
13536 # Check whether --with-target-bits was given.
13537 if test "${with_target_bits+set}" = set; then :
13538   withval=$with_target_bits;
13539 fi
13540 
13541 
13542   # We have three types of compiles:
13543   # native  == normal compilation, target system == build system
13544   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13545   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13546   #
13547   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13548     # We're doing a proper cross-compilation
13549     COMPILE_TYPE="cross"
13550   else
13551     COMPILE_TYPE="native"
13552   fi
13553 
13554   if test "x$with_target_bits" != x; then
13555     if test "x$COMPILE_TYPE" = "xcross"; then
13556       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13557     fi
13558 
13559     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13560       # A reduced build is requested
13561       COMPILE_TYPE="reduced"
13562       OPENJDK_TARGET_CPU_BITS=32
13563       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13564         OPENJDK_TARGET_CPU=x86
13565       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13566         OPENJDK_TARGET_CPU=sparc
13567       else
13568         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13569       fi
13570     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13571       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
13572     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13573       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13574 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13575     else
13576       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13577     fi
13578   fi
13579 
13580 
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13582 $as_echo_n "checking compilation type... " >&6; }
13583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13584 $as_echo "$COMPILE_TYPE" >&6; }
13585 
13586 
13587   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13588     REQUIRED_OS_NAME=SunOS
13589     REQUIRED_OS_VERSION=5.10
13590   fi
13591   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13592     REQUIRED_OS_NAME=Linux
13593     REQUIRED_OS_VERSION=2.6
13594   fi
13595   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13596     REQUIRED_OS_NAME=Windows
13597     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13598       REQUIRED_OS_VERSION=5.2
13599     else
13600       REQUIRED_OS_VERSION=5.1
13601     fi
13602   fi
13603   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13604     REQUIRED_OS_NAME=Darwin
13605     REQUIRED_OS_VERSION=11.2
13606   fi
13607 
13608 
13609 
13610 
13611 
13612   # Also store the legacy naming of the cpu.
13613   # Ie i586 and amd64 instead of x86 and x86_64
13614   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13615   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13616     OPENJDK_TARGET_CPU_LEGACY="i586"
13617   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13618     # On all platforms except MacOSX replace x86_64 with amd64.
13619     OPENJDK_TARGET_CPU_LEGACY="amd64"
13620   fi
13621 
13622 
13623   # And the second legacy naming of the cpu.
13624   # Ie i386 and amd64 instead of x86 and x86_64.
13625   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13626   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13627     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13628   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13629     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13630   fi
13631 
13632 
13633   # This is the name of the cpu (but using i386 and amd64 instead of
13634   # x86 and x86_64, respectively), preceeded by a /, to be used when
13635   # locating libraries. On macosx, it's empty, though.
13636   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13637   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13638     OPENJDK_TARGET_CPU_LIBDIR=""
13639   fi
13640 
13641 
13642   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13643   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13644   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13645   OPENJDK_TARGET_CPU_ISADIR=""
13646   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13647     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13648       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13649     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13650       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13651     fi
13652   fi
13653 
13654 
13655   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13656   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13657   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13658     # On linux only, we replace x86 with i386.
13659     OPENJDK_TARGET_CPU_OSARCH="i386"
13660   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13661     # On all platforms except macosx, we replace x86_64 with amd64.
13662     OPENJDK_TARGET_CPU_OSARCH="amd64"
13663   fi
13664 
13665 
13666   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13667   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13668     OPENJDK_TARGET_CPU_JLI="i386"
13669   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13670     # On all platforms except macosx, we replace x86_64 with amd64.
13671     OPENJDK_TARGET_CPU_JLI="amd64"
13672   fi
13673   # Now setup the -D flags for building libjli.
13674   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13675   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13676     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13677       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13678     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13679       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13680     fi
13681   fi
13682 
13683 
13684   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13685   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13686     OPENJDK_TARGET_OS_API_DIR="solaris"
13687   fi
13688   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13689     OPENJDK_TARGET_OS_API_DIR="windows"
13690   fi
13691 
13692 
13693   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13694       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13695   else
13696       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13697   fi
13698 
13699 
13700   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13701     A_LP64="LP64:="
13702     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13703     # unpack200.exe
13704     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13705       ADD_LP64="-D_LP64=1"
13706     fi
13707   fi
13708   LP64=$A_LP64
13709 
13710 
13711   if test "x$COMPILE_TYPE" = "xcross"; then
13712     # FIXME: ... or should this include reduced builds..?
13713     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13714   else
13715     DEFINE_CROSS_COMPILE_ARCH=""
13716   fi
13717 
13718 
13719   # ZERO_ARCHDEF is used to enable architecture-specific code
13720   case "${OPENJDK_TARGET_CPU}" in
13721     ppc)     ZERO_ARCHDEF=PPC32 ;;
13722     ppc64)   ZERO_ARCHDEF=PPC64 ;;
13723     s390*)   ZERO_ARCHDEF=S390  ;;
13724     sparc*)  ZERO_ARCHDEF=SPARC ;;
13725     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13726     x86)     ZERO_ARCHDEF=IA32  ;;
13727     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13728   esac
13729 
13730 
13731 
13732 
13733 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13734 
13735   # Locate the directory of this script.
13736   SCRIPT="$0"
13737   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
13738 
13739   # Where is the source? It is located two levels above the configure script.
13740   CURDIR="$PWD"
13741   cd "$AUTOCONF_DIR/../.."
13742   SRC_ROOT="`$THEPWDCMD -L`"
13743 
13744   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13745     PATH_SEP=";"
13746 
13747   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13748   if test $SRC_ROOT_LENGTH -gt 100; then
13749     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13750   fi
13751 
13752   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13754 $as_echo_n "checking cygwin release... " >&6; }
13755     CYGWIN_VERSION=`$UNAME -r`
13756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13757 $as_echo "$CYGWIN_VERSION" >&6; }
13758     WINDOWS_ENV_VENDOR='cygwin'
13759     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13760 
13761     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
13762     if test "x$CYGWIN_VERSION_OLD" != x; then
13763       { $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
13764 $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;}
13765       as_fn_error $? "Cannot continue" "$LINENO" 5
13766     fi
13767     if test "x$CYGPATH" = x; then
13768       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13769     fi
13770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13771 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13772     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13773     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13774     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13775     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13777 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13778     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13779     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13780     if test "x$test_cygdrive_prefix" = x; then
13781       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13782     fi
13783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13785 $as_echo_n "checking msys release... " >&6; }
13786     MSYS_VERSION=`$UNAME -r`
13787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13788 $as_echo "$MSYS_VERSION" >&6; }
13789 
13790     WINDOWS_ENV_VENDOR='msys'
13791     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13792 
13793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13794 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13795     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13796     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13797 
13798   windows_path="$MSYS_ROOT_PATH"
13799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13800     unix_path=`$CYGPATH -u "$windows_path"`
13801     MSYS_ROOT_PATH="$unix_path"
13802   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13803     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13804     MSYS_ROOT_PATH="$unix_path"
13805   fi
13806 
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13808 $as_echo "$MSYS_ROOT_PATH" >&6; }
13809     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13810   else
13811     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13812   fi
13813 
13814   # Test if windows or unix (cygwin/msys) find is first in path.
13815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13816 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13817   FIND_BINARY_OUTPUT=`find --version 2>&1`
13818   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13820 $as_echo "unix style" >&6; }
13821   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13823 $as_echo "Windows" >&6; }
13824     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13825 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13826     { $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
13827 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13828     as_fn_error $? "Cannot continue" "$LINENO" 5
13829   else
13830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13831 $as_echo "unknown" >&6; }
13832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13833 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13834   fi
13835 
13836   else
13837     PATH_SEP=":"
13838   fi
13839 
13840 
13841 
13842   cd "$CURDIR"
13843 
13844 
13845   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13846 
13847   # Input might be given as Windows format, start by converting to
13848   # unix format.
13849   path="$SRC_ROOT"
13850   new_path=`$CYGPATH -u "$path"`
13851 
13852   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13853   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13854   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13855   # "foo.exe" is OK but "foo" is an error.
13856   #
13857   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13858   # It is also a way to make sure we got the proper file name for the real test later on.
13859   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13860   if test "x$test_shortpath" = x; then
13861     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13862 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13863     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
13864   fi
13865 
13866   # Call helper function which possibly converts this using DOS-style short mode.
13867   # If so, the updated path is stored in $new_path.
13868 
13869   input_path="$new_path"
13870   # Check if we need to convert this using DOS-style short mode. If the path
13871   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13872   # take no chances and rewrite it.
13873   # Note: m4 eats our [], so we need to use [ and ] instead.
13874   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13875   if test "x$has_forbidden_chars" != x; then
13876     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13877     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13878     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13879     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13880       # Going to short mode and back again did indeed matter. Since short mode is
13881       # case insensitive, let's make it lowercase to improve readability.
13882       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13883       # Now convert it back to Unix-stile (cygpath)
13884       input_path=`$CYGPATH -u "$shortmode_path"`
13885       new_path="$input_path"
13886     fi
13887   fi
13888 
13889   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13890   if test "x$test_cygdrive_prefix" = x; then
13891     # As a simple fix, exclude /usr/bin since it's not a real path.
13892     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13893       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13894       # a path prefixed by /cygdrive for fixpath to work.
13895       new_path="$CYGWIN_ROOT_PATH$input_path"
13896     fi
13897   fi
13898 
13899 
13900   if test "x$path" != "x$new_path"; then
13901     SRC_ROOT="$new_path"
13902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13903 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13904   fi
13905 
13906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13907 
13908   path="$SRC_ROOT"
13909   has_colon=`$ECHO $path | $GREP ^.:`
13910   new_path="$path"
13911   if test "x$has_colon" = x; then
13912     # Not in mixed or Windows style, start by that.
13913     new_path=`cmd //c echo $path`
13914   fi
13915 
13916 
13917   input_path="$new_path"
13918   # Check if we need to convert this using DOS-style short mode. If the path
13919   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13920   # take no chances and rewrite it.
13921   # Note: m4 eats our [], so we need to use [ and ] instead.
13922   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13923   if test "x$has_forbidden_chars" != x; then
13924     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13925     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13926   fi
13927 
13928 
13929   windows_path="$new_path"
13930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13931     unix_path=`$CYGPATH -u "$windows_path"`
13932     new_path="$unix_path"
13933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13935     new_path="$unix_path"
13936   fi
13937 
13938   if test "x$path" != "x$new_path"; then
13939     SRC_ROOT="$new_path"
13940     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13941 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13942   fi
13943 
13944   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13945   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13946 
13947   else
13948     # We're on a posix platform. Hooray! :)
13949     path="$SRC_ROOT"
13950     has_space=`$ECHO "$path" | $GREP " "`
13951     if test "x$has_space" != x; then
13952       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13953 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13954       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13955     fi
13956 
13957     # Use eval to expand a potential ~
13958     eval path="$path"
13959     if test ! -f "$path" && test ! -d "$path"; then
13960       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
13961     fi
13962 
13963     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
13964   fi
13965 
13966 
13967   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13968 
13969   # Input might be given as Windows format, start by converting to
13970   # unix format.
13971   path="$CURDIR"
13972   new_path=`$CYGPATH -u "$path"`
13973 
13974   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13975   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13976   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13977   # "foo.exe" is OK but "foo" is an error.
13978   #
13979   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13980   # It is also a way to make sure we got the proper file name for the real test later on.
13981   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13982   if test "x$test_shortpath" = x; then
13983     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
13984 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
13985     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
13986   fi
13987 
13988   # Call helper function which possibly converts this using DOS-style short mode.
13989   # If so, the updated path is stored in $new_path.
13990 
13991   input_path="$new_path"
13992   # Check if we need to convert this using DOS-style short mode. If the path
13993   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13994   # take no chances and rewrite it.
13995   # Note: m4 eats our [], so we need to use [ and ] instead.
13996   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13997   if test "x$has_forbidden_chars" != x; then
13998     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13999     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14000     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14001     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14002       # Going to short mode and back again did indeed matter. Since short mode is
14003       # case insensitive, let's make it lowercase to improve readability.
14004       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14005       # Now convert it back to Unix-stile (cygpath)
14006       input_path=`$CYGPATH -u "$shortmode_path"`
14007       new_path="$input_path"
14008     fi
14009   fi
14010 
14011   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14012   if test "x$test_cygdrive_prefix" = x; then
14013     # As a simple fix, exclude /usr/bin since it's not a real path.
14014     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14015       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14016       # a path prefixed by /cygdrive for fixpath to work.
14017       new_path="$CYGWIN_ROOT_PATH$input_path"
14018     fi
14019   fi
14020 
14021 
14022   if test "x$path" != "x$new_path"; then
14023     CURDIR="$new_path"
14024     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14025 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14026   fi
14027 
14028   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14029 
14030   path="$CURDIR"
14031   has_colon=`$ECHO $path | $GREP ^.:`
14032   new_path="$path"
14033   if test "x$has_colon" = x; then
14034     # Not in mixed or Windows style, start by that.
14035     new_path=`cmd //c echo $path`
14036   fi
14037 
14038 
14039   input_path="$new_path"
14040   # Check if we need to convert this using DOS-style short mode. If the path
14041   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14042   # take no chances and rewrite it.
14043   # Note: m4 eats our [], so we need to use [ and ] instead.
14044   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14045   if test "x$has_forbidden_chars" != x; then
14046     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14047     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14048   fi
14049 
14050 
14051   windows_path="$new_path"
14052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14053     unix_path=`$CYGPATH -u "$windows_path"`
14054     new_path="$unix_path"
14055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14056     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14057     new_path="$unix_path"
14058   fi
14059 
14060   if test "x$path" != "x$new_path"; then
14061     CURDIR="$new_path"
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14063 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14064   fi
14065 
14066   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14067   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14068 
14069   else
14070     # We're on a posix platform. Hooray! :)
14071     path="$CURDIR"
14072     has_space=`$ECHO "$path" | $GREP " "`
14073     if test "x$has_space" != x; then
14074       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14075 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14076       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14077     fi
14078 
14079     # Use eval to expand a potential ~
14080     eval path="$path"
14081     if test ! -f "$path" && test ! -d "$path"; then
14082       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14083     fi
14084 
14085     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14086   fi
14087 
14088 
14089   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14090     # Add extra search paths on solaris for utilities like ar and as etc...
14091     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14092   fi
14093 
14094   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14095   # is not correct.
14096 
14097 # Check whether --with-sys-root was given.
14098 if test "${with_sys_root+set}" = set; then :
14099   withval=$with_sys_root;
14100 fi
14101 
14102 
14103   if test "x$with_sys_root" != x; then
14104     SYS_ROOT=$with_sys_root
14105   else
14106     SYS_ROOT=/
14107   fi
14108 
14109 
14110 
14111 # Check whether --with-tools-dir was given.
14112 if test "${with_tools_dir+set}" = set; then :
14113   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14114 
14115 fi
14116 
14117 
14118   # Xcode version will be validated later
14119 
14120 # Check whether --with-xcode-path was given.
14121 if test "${with_xcode_path+set}" = set; then :
14122   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
14123 
14124 fi
14125 
14126 
14127 
14128 # Check whether --with-devkit was given.
14129 if test "${with_devkit+set}" = set; then :
14130   withval=$with_devkit;
14131         if test "x$with_sys_root" != x; then
14132           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14133         fi
14134 
14135   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14136 
14137   # Input might be given as Windows format, start by converting to
14138   # unix format.
14139   path="$with_devkit"
14140   new_path=`$CYGPATH -u "$path"`
14141 
14142   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14143   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14144   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14145   # "foo.exe" is OK but "foo" is an error.
14146   #
14147   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14148   # It is also a way to make sure we got the proper file name for the real test later on.
14149   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14150   if test "x$test_shortpath" = x; then
14151     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14152 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14153     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14154   fi
14155 
14156   # Call helper function which possibly converts this using DOS-style short mode.
14157   # If so, the updated path is stored in $new_path.
14158 
14159   input_path="$new_path"
14160   # Check if we need to convert this using DOS-style short mode. If the path
14161   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14162   # take no chances and rewrite it.
14163   # Note: m4 eats our [], so we need to use [ and ] instead.
14164   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14165   if test "x$has_forbidden_chars" != x; then
14166     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14167     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14168     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14169     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14170       # Going to short mode and back again did indeed matter. Since short mode is
14171       # case insensitive, let's make it lowercase to improve readability.
14172       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14173       # Now convert it back to Unix-stile (cygpath)
14174       input_path=`$CYGPATH -u "$shortmode_path"`
14175       new_path="$input_path"
14176     fi
14177   fi
14178 
14179   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14180   if test "x$test_cygdrive_prefix" = x; then
14181     # As a simple fix, exclude /usr/bin since it's not a real path.
14182     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14183       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14184       # a path prefixed by /cygdrive for fixpath to work.
14185       new_path="$CYGWIN_ROOT_PATH$input_path"
14186     fi
14187   fi
14188 
14189 
14190   if test "x$path" != "x$new_path"; then
14191     with_devkit="$new_path"
14192     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14193 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14194   fi
14195 
14196   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14197 
14198   path="$with_devkit"
14199   has_colon=`$ECHO $path | $GREP ^.:`
14200   new_path="$path"
14201   if test "x$has_colon" = x; then
14202     # Not in mixed or Windows style, start by that.
14203     new_path=`cmd //c echo $path`
14204   fi
14205 
14206 
14207   input_path="$new_path"
14208   # Check if we need to convert this using DOS-style short mode. If the path
14209   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14210   # take no chances and rewrite it.
14211   # Note: m4 eats our [], so we need to use [ and ] instead.
14212   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14213   if test "x$has_forbidden_chars" != x; then
14214     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14215     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14216   fi
14217 
14218 
14219   windows_path="$new_path"
14220   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14221     unix_path=`$CYGPATH -u "$windows_path"`
14222     new_path="$unix_path"
14223   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14224     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14225     new_path="$unix_path"
14226   fi
14227 
14228   if test "x$path" != "x$new_path"; then
14229     with_devkit="$new_path"
14230     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14231 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14232   fi
14233 
14234   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14235   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14236 
14237   else
14238     # We're on a posix platform. Hooray! :)
14239     path="$with_devkit"
14240     has_space=`$ECHO "$path" | $GREP " "`
14241     if test "x$has_space" != x; then
14242       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14243 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14244       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14245     fi
14246 
14247     # Use eval to expand a potential ~
14248     eval path="$path"
14249     if test ! -f "$path" && test ! -d "$path"; then
14250       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14251     fi
14252 
14253     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14254   fi
14255 
14256 
14257   if test "x$TOOLS_DIR" = x; then
14258     TOOLS_DIR="$with_devkit/bin"
14259   else
14260     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14261   fi
14262 
14263         if test -d "$with_devkit/$host_alias/libc"; then
14264           SYS_ROOT=$with_devkit/$host_alias/libc
14265         elif test -d "$with_devkit/$host/sys-root"; then
14266           SYS_ROOT=$with_devkit/$host/sys-root
14267         fi
14268 
14269 fi
14270 
14271 
14272 
14273   # Setup default logging of stdout and stderr to build.log in the output root.
14274   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14275   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14276   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14277 
14278 
14279 
14280 
14281 
14282 # Check if it's a pure open build or if custom sources are to be used.
14283 
14284   # Check whether --enable-openjdk-only was given.
14285 if test "${enable_openjdk_only+set}" = set; then :
14286   enableval=$enable_openjdk_only;
14287 else
14288   enable_openjdk_only="no"
14289 fi
14290 
14291 
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14293 $as_echo_n "checking for presence of closed sources... " >&6; }
14294   if test -d "$SRC_ROOT/jdk/src/closed"; then
14295     CLOSED_SOURCE_PRESENT=yes
14296   else
14297     CLOSED_SOURCE_PRESENT=no
14298   fi
14299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14300 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14301 
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14303 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14304   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14306 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14307 
14308   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14309     OPENJDK=true
14310     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14311       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14312 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14313     fi
14314   else
14315     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14316       OPENJDK=true
14317     else
14318       OPENJDK=false
14319     fi
14320   fi
14321 
14322   if test "x$OPENJDK" = "xtrue"; then
14323     SET_OPENJDK="OPENJDK=true"
14324   fi
14325 
14326 
14327 
14328 
14329 # These are needed to be able to create a configuration name (and thus the output directory)
14330 
14331   ###############################################################################
14332   #
14333   # Check which variant of the JDK that we want to build.
14334   # Currently we have:
14335   #    normal:   standard edition
14336   # but the custom make system may add other variants
14337   #
14338   # Effectively the JDK variant gives a name to a specific set of
14339   # modules to compile into the JDK. In the future, these modules
14340   # might even be Jigsaw modules.
14341   #
14342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14343 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14344 
14345 # Check whether --with-jdk-variant was given.
14346 if test "${with_jdk_variant+set}" = set; then :
14347   withval=$with_jdk_variant;
14348 fi
14349 
14350 
14351   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14352     JDK_VARIANT="normal"
14353   else
14354     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14355   fi
14356 
14357 
14358 
14359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14360 $as_echo "$JDK_VARIANT" >&6; }
14361 
14362 
14363 ###############################################################################
14364 #
14365 # Check which interpreter of the JVM we want to build.
14366 # Currently we have:
14367 #    template: Template interpreter (the default)
14368 #    cpp     : C++ interpreter
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14370 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14371 
14372 # Check whether --with-jvm-interpreter was given.
14373 if test "${with_jvm_interpreter+set}" = set; then :
14374   withval=$with_jvm_interpreter;
14375 fi
14376 
14377 
14378 if test "x$with_jvm_interpreter" = x; then
14379      with_jvm_interpreter="template"
14380 fi
14381 
14382 JVM_INTERPRETER="$with_jvm_interpreter"
14383 
14384 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14385    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14386 fi
14387 
14388 
14389 
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14391 $as_echo "$with_jvm_interpreter" >&6; }
14392 
14393 
14394 
14395   ###############################################################################
14396   #
14397   # Check which variants of the JVM that we want to build.
14398   # Currently we have:
14399   #    server: normal interpreter and a tiered C1/C2 compiler
14400   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14401   #    minimal1: reduced form of client with optional VM services and features stripped out
14402   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14403   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14404   #    zero: no machine code interpreter, no compiler
14405   #    zeroshark: zero interpreter and shark/llvm compiler backend
14406 #    core: interpreter only, no compiler (only works on some platforms)
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14408 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14409 
14410 # Check whether --with-jvm-variants was given.
14411 if test "${with_jvm_variants+set}" = set; then :
14412   withval=$with_jvm_variants;
14413 fi
14414 
14415 
14416   if test "x$with_jvm_variants" = x; then
14417     with_jvm_variants="server"
14418   fi
14419 
14420   JVM_VARIANTS=",$with_jvm_variants,"
14421   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,//'`
14422 
14423   if test "x$TEST_VARIANTS" != "x,"; then
14424      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14425   fi
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14427 $as_echo "$with_jvm_variants" >&6; }
14428 
14429   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14430   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14431   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14432   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14433   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14434   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14435   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14436 
14437   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14438     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14439       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14440     fi
14441   fi
14442   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14443     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14444       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14445     fi
14446   fi
14447   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14448     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14449       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14450     fi
14451   fi
14452 
14453   # Replace the commas with AND for use in the build directory name.
14454   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14455   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/'`
14456   if test "x$COUNT_VARIANTS" != "x,1"; then
14457     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14458   else
14459     BUILDING_MULTIPLE_JVM_VARIANTS=no
14460   fi
14461 
14462 
14463 
14464 
14465 
14466 
14467 
14468 
14469 
14470 
14471   INCLUDE_SA=true
14472   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14473     INCLUDE_SA=false
14474   fi
14475   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14476     INCLUDE_SA=false
14477   fi
14478   if test "x$VAR_CPU" = xppc64 ; then
14479     INCLUDE_SA=false
14480   fi
14481   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14482     INCLUDE_SA=false
14483   fi
14484 
14485 
14486   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14487     MACOSX_UNIVERSAL="false"
14488   fi
14489 
14490 
14491 
14492 
14493   ###############################################################################
14494   #
14495   # Set the debug level
14496   #    release: no debug information, all optimizations, no asserts.
14497   #    fastdebug: debug information (-g), all optimizations, all asserts
14498   #    slowdebug: debug information (-g), no optimizations, all asserts
14499   #
14500   DEBUG_LEVEL="release"
14501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14502 $as_echo_n "checking which debug level to use... " >&6; }
14503   # Check whether --enable-debug was given.
14504 if test "${enable_debug+set}" = set; then :
14505   enableval=$enable_debug;
14506         ENABLE_DEBUG="${enableval}"
14507         DEBUG_LEVEL="fastdebug"
14508 
14509 else
14510   ENABLE_DEBUG="no"
14511 fi
14512 
14513 
14514 
14515 # Check whether --with-debug-level was given.
14516 if test "${with_debug_level+set}" = set; then :
14517   withval=$with_debug_level;
14518         DEBUG_LEVEL="${withval}"
14519         if test "x$ENABLE_DEBUG" = xyes; then
14520           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14521         fi
14522 
14523 fi
14524 
14525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14526 $as_echo "$DEBUG_LEVEL" >&6; }
14527 
14528   if test "x$DEBUG_LEVEL" != xrelease && \
14529       test "x$DEBUG_LEVEL" != xfastdebug && \
14530       test "x$DEBUG_LEVEL" != xslowdebug; then
14531     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14532   fi
14533 
14534 
14535   ###############################################################################
14536   #
14537   # Setup legacy vars/targets and new vars to deal with different debug levels.
14538   #
14539 
14540   case $DEBUG_LEVEL in
14541     release )
14542       VARIANT="OPT"
14543       FASTDEBUG="false"
14544       DEBUG_CLASSFILES="false"
14545       BUILD_VARIANT_RELEASE=""
14546       HOTSPOT_DEBUG_LEVEL="product"
14547       HOTSPOT_EXPORT="product"
14548       ;;
14549     fastdebug )
14550       VARIANT="DBG"
14551       FASTDEBUG="true"
14552       DEBUG_CLASSFILES="true"
14553       BUILD_VARIANT_RELEASE="-fastdebug"
14554       HOTSPOT_DEBUG_LEVEL="fastdebug"
14555       HOTSPOT_EXPORT="fastdebug"
14556       ;;
14557     slowdebug )
14558       VARIANT="DBG"
14559       FASTDEBUG="false"
14560       DEBUG_CLASSFILES="true"
14561       BUILD_VARIANT_RELEASE="-debug"
14562       HOTSPOT_DEBUG_LEVEL="jvmg"
14563       HOTSPOT_EXPORT="debug"
14564       ;;
14565   esac
14566 
14567   #####
14568   # Generate the legacy makefile targets for hotspot.
14569   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14570   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14571   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14572   # But until then ...
14573   HOTSPOT_TARGET=""
14574 
14575   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14576     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14577   fi
14578 
14579   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14580     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14581   fi
14582 
14583   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14584     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14585   fi
14586 
14587   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14588     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14589   fi
14590 
14591   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14592     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14593   fi
14594 
14595   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14596     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14597   fi
14598 
14599   if test "x$JVM_VARIANT_CORE" = xtrue; then
14600     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14601   fi
14602 
14603   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14604 
14605   # On Macosx universal binaries are produced, but they only contain
14606   # 64 bit intel. This invalidates control of which jvms are built
14607   # from configure, but only server is valid anyway. Fix this
14608   # when hotspot makefiles are rewritten.
14609   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14610     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14611   fi
14612 
14613   #####
14614 
14615 
14616 
14617 
14618 
14619 
14620 
14621 
14622 # With basic setup done, call the custom early hook.
14623 
14624 
14625 # To properly create a configuration name, we need to have the OpenJDK target
14626 # and options (variants and debug level) parsed.
14627 
14628 
14629 
14630 # Check whether --with-conf-name was given.
14631 if test "${with_conf_name+set}" = set; then :
14632   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14633 fi
14634 
14635 
14636   # Test from where we are running configure, in or outside of src root.
14637   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14638       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14639       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14640     # We are running configure from the src root.
14641     # Create a default ./build/target-variant-debuglevel output root.
14642     if test "x${CONF_NAME}" = x; then
14643       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14644     fi
14645     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14646     $MKDIR -p "$OUTPUT_ROOT"
14647     if test ! -d "$OUTPUT_ROOT"; then
14648       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14649     fi
14650   else
14651     # We are running configure from outside of the src dir.
14652     # Then use the current directory as output dir!
14653     # If configuration is situated in normal build directory, just use the build
14654     # directory name as configuration name, otherwise use the complete path.
14655     if test "x${CONF_NAME}" = x; then
14656       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14657     fi
14658     OUTPUT_ROOT="$CURDIR"
14659 
14660     # WARNING: This might be a bad thing to do. You need to be sure you want to
14661     # have a configuration in this directory. Do some sanity checks!
14662 
14663     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14664       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14665       # other files
14666       files_present=`$LS $OUTPUT_ROOT`
14667       # Configure has already touched config.log and confdefs.h in the current dir when this check
14668       # is performed.
14669       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14670       | $TR -d '\n'`
14671       if test "x$filtered_files" != x; then
14672         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14673 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14674         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14675 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14676         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14677 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14678         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14679 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14680         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14681 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14682         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14683 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14684         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14685 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14686         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14687       fi
14688     fi
14689   fi
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14691 $as_echo_n "checking what configuration name to use... " >&6; }
14692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14693 $as_echo "$CONF_NAME" >&6; }
14694 
14695 
14696   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14697 
14698   # Input might be given as Windows format, start by converting to
14699   # unix format.
14700   path="$OUTPUT_ROOT"
14701   new_path=`$CYGPATH -u "$path"`
14702 
14703   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14704   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14705   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14706   # "foo.exe" is OK but "foo" is an error.
14707   #
14708   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14709   # It is also a way to make sure we got the proper file name for the real test later on.
14710   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14711   if test "x$test_shortpath" = x; then
14712     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14713 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14714     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14715   fi
14716 
14717   # Call helper function which possibly converts this using DOS-style short mode.
14718   # If so, the updated path is stored in $new_path.
14719 
14720   input_path="$new_path"
14721   # Check if we need to convert this using DOS-style short mode. If the path
14722   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14723   # take no chances and rewrite it.
14724   # Note: m4 eats our [], so we need to use [ and ] instead.
14725   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14726   if test "x$has_forbidden_chars" != x; then
14727     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14728     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14729     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14730     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14731       # Going to short mode and back again did indeed matter. Since short mode is
14732       # case insensitive, let's make it lowercase to improve readability.
14733       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14734       # Now convert it back to Unix-stile (cygpath)
14735       input_path=`$CYGPATH -u "$shortmode_path"`
14736       new_path="$input_path"
14737     fi
14738   fi
14739 
14740   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14741   if test "x$test_cygdrive_prefix" = x; then
14742     # As a simple fix, exclude /usr/bin since it's not a real path.
14743     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14744       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14745       # a path prefixed by /cygdrive for fixpath to work.
14746       new_path="$CYGWIN_ROOT_PATH$input_path"
14747     fi
14748   fi
14749 
14750 
14751   if test "x$path" != "x$new_path"; then
14752     OUTPUT_ROOT="$new_path"
14753     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14754 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14755   fi
14756 
14757   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14758 
14759   path="$OUTPUT_ROOT"
14760   has_colon=`$ECHO $path | $GREP ^.:`
14761   new_path="$path"
14762   if test "x$has_colon" = x; then
14763     # Not in mixed or Windows style, start by that.
14764     new_path=`cmd //c echo $path`
14765   fi
14766 
14767 
14768   input_path="$new_path"
14769   # Check if we need to convert this using DOS-style short mode. If the path
14770   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14771   # take no chances and rewrite it.
14772   # Note: m4 eats our [], so we need to use [ and ] instead.
14773   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14774   if test "x$has_forbidden_chars" != x; then
14775     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14776     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14777   fi
14778 
14779 
14780   windows_path="$new_path"
14781   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14782     unix_path=`$CYGPATH -u "$windows_path"`
14783     new_path="$unix_path"
14784   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14785     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14786     new_path="$unix_path"
14787   fi
14788 
14789   if test "x$path" != "x$new_path"; then
14790     OUTPUT_ROOT="$new_path"
14791     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14792 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14793   fi
14794 
14795   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14796   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14797 
14798   else
14799     # We're on a posix platform. Hooray! :)
14800     path="$OUTPUT_ROOT"
14801     has_space=`$ECHO "$path" | $GREP " "`
14802     if test "x$has_space" != x; then
14803       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14804 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14805       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14806     fi
14807 
14808     # Use eval to expand a potential ~
14809     eval path="$path"
14810     if test ! -f "$path" && test ! -d "$path"; then
14811       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14812     fi
14813 
14814     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14815   fi
14816 
14817 
14818   SPEC=$OUTPUT_ROOT/spec.gmk
14819 
14820   CONF_NAME=$CONF_NAME
14821 
14822   OUTPUT_ROOT=$OUTPUT_ROOT
14823 
14824 
14825   # Most of the probed defines are put into config.h
14826   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14827 
14828   # The spec.gmk file contains all variables for the make system.
14829   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14830 
14831   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14832   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14833 
14834   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14835   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14836 
14837   # The compare.sh is used to compare the build output to other builds.
14838   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14839 
14840   # Spec.sh is currently used by compare-objects.sh
14841   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14842 
14843   # The generated Makefile knows where the spec.gmk is and where the source is.
14844   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14845   # which will look for generated configurations
14846   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14847 
14848 
14849   # Save the arguments given to us
14850   echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
14851 
14852 
14853 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
14854 
14855   for ac_prog in apt-get yum port pkgutil pkgadd
14856 do
14857   # Extract the first word of "$ac_prog", so it can be a program name with args.
14858 set dummy $ac_prog; ac_word=$2
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14860 $as_echo_n "checking for $ac_word... " >&6; }
14861 if ${ac_cv_prog_PKGHANDLER+:} false; then :
14862   $as_echo_n "(cached) " >&6
14863 else
14864   if test -n "$PKGHANDLER"; then
14865   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14869 do
14870   IFS=$as_save_IFS
14871   test -z "$as_dir" && as_dir=.
14872     for ac_exec_ext in '' $ac_executable_extensions; do
14873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14874     ac_cv_prog_PKGHANDLER="$ac_prog"
14875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14876     break 2
14877   fi
14878 done
14879   done
14880 IFS=$as_save_IFS
14881 
14882 fi
14883 fi
14884 PKGHANDLER=$ac_cv_prog_PKGHANDLER
14885 if test -n "$PKGHANDLER"; then
14886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
14887 $as_echo "$PKGHANDLER" >&6; }
14888 else
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 fi
14892 
14893 
14894   test -n "$PKGHANDLER" && break
14895 done
14896 
14897 
14898 
14899 # Setup tools that requires more complex handling, or that is not needed by the configure script.
14900 
14901 
14902   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
14903   if test "x$MAKE" != x; then
14904     # User has supplied a make, test it.
14905     if test ! -f "$MAKE"; then
14906       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
14907     fi
14908 
14909   MAKE_CANDIDATE=""$MAKE""
14910   DESCRIPTION="user supplied MAKE=$MAKE"
14911   if test "x$MAKE_CANDIDATE" != x; then
14912     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
14913 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
14914     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
14915     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
14916     if test "x$IS_GNU_MAKE" = x; then
14917       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
14918 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
14919     else
14920       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
14921       if test "x$IS_MODERN_MAKE" = x; then
14922         { $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
14923 $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;}
14924       else
14925         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14926           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14927             MAKE_EXPECTED_ENV='cygwin'
14928           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14929             MAKE_EXPECTED_ENV='msys'
14930           else
14931             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
14932           fi
14933           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
14934           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
14935         else
14936           # Not relevant for non-Windows
14937           IS_MAKE_CORRECT_ENV=true
14938         fi
14939         if test "x$IS_MAKE_CORRECT_ENV" = x; then
14940           { $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
14941 $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;}
14942         else
14943           FOUND_MAKE=$MAKE_CANDIDATE
14944 
14945   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14946 
14947   # First separate the path from the arguments. This will split at the first
14948   # space.
14949   complete="$FOUND_MAKE"
14950   path="${complete%% *}"
14951   tmp="$complete EOL"
14952   arguments="${tmp#* }"
14953 
14954   # Input might be given as Windows format, start by converting to
14955   # unix format.
14956   new_path=`$CYGPATH -u "$path"`
14957 
14958   # Now try to locate executable using which
14959   new_path=`$WHICH "$new_path" 2> /dev/null`
14960   # bat and cmd files are not always considered executable in cygwin causing which
14961   # to not find them
14962   if test "x$new_path" = x \
14963       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14964       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14965     new_path=`$CYGPATH -u "$path"`
14966   fi
14967   if test "x$new_path" = x; then
14968     # Oops. Which didn't find the executable.
14969     # The splitting of arguments from the executable at a space might have been incorrect,
14970     # since paths with space are more likely in Windows. Give it another try with the whole
14971     # argument.
14972     path="$complete"
14973     arguments="EOL"
14974     new_path=`$CYGPATH -u "$path"`
14975     new_path=`$WHICH "$new_path" 2> /dev/null`
14976     # bat and cmd files are not always considered executable in cygwin causing which
14977     # to not find them
14978     if test "x$new_path" = x \
14979         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14980         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14981       new_path=`$CYGPATH -u "$path"`
14982     fi
14983     if test "x$new_path" = x; then
14984       # It's still not found. Now this is an unrecoverable error.
14985       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
14986 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
14987       has_space=`$ECHO "$complete" | $GREP " "`
14988       if test "x$has_space" != x; then
14989         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
14990 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
14991       fi
14992       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14993     fi
14994   fi
14995 
14996   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14997   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14998   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14999   # "foo.exe" is OK but "foo" is an error.
15000   #
15001   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15002   # It is also a way to make sure we got the proper file name for the real test later on.
15003   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15004   if test "x$test_shortpath" = x; then
15005     # Short path failed, file does not exist as specified.
15006     # Try adding .exe or .cmd
15007     if test -f "${new_path}.exe"; then
15008       input_to_shortpath="${new_path}.exe"
15009     elif test -f "${new_path}.cmd"; then
15010       input_to_shortpath="${new_path}.cmd"
15011     else
15012       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15013 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15014       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15015 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15016       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15017     fi
15018   else
15019     input_to_shortpath="$new_path"
15020   fi
15021 
15022   # Call helper function which possibly converts this using DOS-style short mode.
15023   # If so, the updated path is stored in $new_path.
15024   new_path="$input_to_shortpath"
15025 
15026   input_path="$input_to_shortpath"
15027   # Check if we need to convert this using DOS-style short mode. If the path
15028   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15029   # take no chances and rewrite it.
15030   # Note: m4 eats our [], so we need to use [ and ] instead.
15031   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15032   if test "x$has_forbidden_chars" != x; then
15033     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15034     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15035     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15036     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15037       # Going to short mode and back again did indeed matter. Since short mode is
15038       # case insensitive, let's make it lowercase to improve readability.
15039       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15040       # Now convert it back to Unix-stile (cygpath)
15041       input_path=`$CYGPATH -u "$shortmode_path"`
15042       new_path="$input_path"
15043     fi
15044   fi
15045 
15046   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15047   if test "x$test_cygdrive_prefix" = x; then
15048     # As a simple fix, exclude /usr/bin since it's not a real path.
15049     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15050       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15051       # a path prefixed by /cygdrive for fixpath to work.
15052       new_path="$CYGWIN_ROOT_PATH$input_path"
15053     fi
15054   fi
15055 
15056   # remove trailing .exe if any
15057   new_path="${new_path/%.exe/}"
15058 
15059   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15060 
15061   # First separate the path from the arguments. This will split at the first
15062   # space.
15063   complete="$FOUND_MAKE"
15064   path="${complete%% *}"
15065   tmp="$complete EOL"
15066   arguments="${tmp#* }"
15067 
15068   # Input might be given as Windows format, start by converting to
15069   # unix format.
15070   new_path="$path"
15071 
15072   windows_path="$new_path"
15073   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15074     unix_path=`$CYGPATH -u "$windows_path"`
15075     new_path="$unix_path"
15076   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15077     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15078     new_path="$unix_path"
15079   fi
15080 
15081 
15082   # Now try to locate executable using which
15083   new_path=`$WHICH "$new_path" 2> /dev/null`
15084 
15085   if test "x$new_path" = x; then
15086     # Oops. Which didn't find the executable.
15087     # The splitting of arguments from the executable at a space might have been incorrect,
15088     # since paths with space are more likely in Windows. Give it another try with the whole
15089     # argument.
15090     path="$complete"
15091     arguments="EOL"
15092     new_path="$path"
15093 
15094   windows_path="$new_path"
15095   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15096     unix_path=`$CYGPATH -u "$windows_path"`
15097     new_path="$unix_path"
15098   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15099     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15100     new_path="$unix_path"
15101   fi
15102 
15103 
15104     new_path=`$WHICH "$new_path" 2> /dev/null`
15105 
15106     if test "x$new_path" = x; then
15107       # It's still not found. Now this is an unrecoverable error.
15108       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15109 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15110       has_space=`$ECHO "$complete" | $GREP " "`
15111       if test "x$has_space" != x; then
15112         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15113 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15114       fi
15115       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15116     fi
15117   fi
15118 
15119   # Now new_path has a complete unix path to the binary
15120   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15121     # Keep paths in /bin as-is, but remove trailing .exe if any
15122     new_path="${new_path/%.exe/}"
15123     # Do not save /bin paths to all_fixpath_prefixes!
15124   else
15125     # Not in mixed or Windows style, start by that.
15126     new_path=`cmd //c echo $new_path`
15127 
15128   input_path="$new_path"
15129   # Check if we need to convert this using DOS-style short mode. If the path
15130   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15131   # take no chances and rewrite it.
15132   # Note: m4 eats our [], so we need to use [ and ] instead.
15133   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15134   if test "x$has_forbidden_chars" != x; then
15135     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15136     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15137   fi
15138 
15139     # Output is in $new_path
15140 
15141   windows_path="$new_path"
15142   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15143     unix_path=`$CYGPATH -u "$windows_path"`
15144     new_path="$unix_path"
15145   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15146     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15147     new_path="$unix_path"
15148   fi
15149 
15150     # remove trailing .exe if any
15151     new_path="${new_path/%.exe/}"
15152 
15153     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15154     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15155   fi
15156 
15157   else
15158     # We're on a posix platform. Hooray! :)
15159     # First separate the path from the arguments. This will split at the first
15160     # space.
15161     complete="$FOUND_MAKE"
15162     path="${complete%% *}"
15163     tmp="$complete EOL"
15164     arguments="${tmp#* }"
15165 
15166     # Cannot rely on the command "which" here since it doesn't always work.
15167     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15168     if test -z "$is_absolute_path"; then
15169       # Path to executable is not absolute. Find it.
15170       IFS_save="$IFS"
15171       IFS=:
15172       for p in $PATH; do
15173         if test -f "$p/$path" && test -x "$p/$path"; then
15174           new_path="$p/$path"
15175           break
15176         fi
15177       done
15178       IFS="$IFS_save"
15179     else
15180       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15181 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15182       new_path="$path"
15183     fi
15184 
15185     if test "x$new_path" = x; then
15186       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15187 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15188       has_space=`$ECHO "$complete" | $GREP " "`
15189       if test "x$has_space" != x; then
15190         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15191 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15192       fi
15193       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15194     fi
15195   fi
15196 
15197   # Now join together the path and the arguments once again
15198   if test "x$arguments" != xEOL; then
15199     new_complete="$new_path ${arguments% *}"
15200   else
15201     new_complete="$new_path"
15202   fi
15203 
15204   if test "x$complete" != "x$new_complete"; then
15205     FOUND_MAKE="$new_complete"
15206     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15207 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15208   fi
15209 
15210         fi
15211       fi
15212     fi
15213   fi
15214 
15215     if test "x$FOUND_MAKE" = x; then
15216       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15217     fi
15218   else
15219     # Try our hardest to locate a correct version of GNU make
15220     for ac_prog in gmake
15221 do
15222   # Extract the first word of "$ac_prog", so it can be a program name with args.
15223 set dummy $ac_prog; ac_word=$2
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15225 $as_echo_n "checking for $ac_word... " >&6; }
15226 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15227   $as_echo_n "(cached) " >&6
15228 else
15229   case $CHECK_GMAKE in
15230   [\\/]* | ?:[\\/]*)
15231   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15232   ;;
15233   *)
15234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15235 for as_dir in $PATH
15236 do
15237   IFS=$as_save_IFS
15238   test -z "$as_dir" && as_dir=.
15239     for ac_exec_ext in '' $ac_executable_extensions; do
15240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15241     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15243     break 2
15244   fi
15245 done
15246   done
15247 IFS=$as_save_IFS
15248 
15249   ;;
15250 esac
15251 fi
15252 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15253 if test -n "$CHECK_GMAKE"; then
15254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15255 $as_echo "$CHECK_GMAKE" >&6; }
15256 else
15257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258 $as_echo "no" >&6; }
15259 fi
15260 
15261 
15262   test -n "$CHECK_GMAKE" && break
15263 done
15264 
15265 
15266   MAKE_CANDIDATE=""$CHECK_GMAKE""
15267   DESCRIPTION="gmake in PATH"
15268   if test "x$MAKE_CANDIDATE" != x; then
15269     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15270 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15271     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15272     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15273     if test "x$IS_GNU_MAKE" = x; then
15274       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15275 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15276     else
15277       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15278       if test "x$IS_MODERN_MAKE" = x; then
15279         { $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
15280 $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;}
15281       else
15282         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15283           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15284             MAKE_EXPECTED_ENV='cygwin'
15285           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15286             MAKE_EXPECTED_ENV='msys'
15287           else
15288             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15289           fi
15290           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15291           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15292         else
15293           # Not relevant for non-Windows
15294           IS_MAKE_CORRECT_ENV=true
15295         fi
15296         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15297           { $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
15298 $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;}
15299         else
15300           FOUND_MAKE=$MAKE_CANDIDATE
15301 
15302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15303 
15304   # First separate the path from the arguments. This will split at the first
15305   # space.
15306   complete="$FOUND_MAKE"
15307   path="${complete%% *}"
15308   tmp="$complete EOL"
15309   arguments="${tmp#* }"
15310 
15311   # Input might be given as Windows format, start by converting to
15312   # unix format.
15313   new_path=`$CYGPATH -u "$path"`
15314 
15315   # Now try to locate executable using which
15316   new_path=`$WHICH "$new_path" 2> /dev/null`
15317   # bat and cmd files are not always considered executable in cygwin causing which
15318   # to not find them
15319   if test "x$new_path" = x \
15320       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15321       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15322     new_path=`$CYGPATH -u "$path"`
15323   fi
15324   if test "x$new_path" = x; then
15325     # Oops. Which didn't find the executable.
15326     # The splitting of arguments from the executable at a space might have been incorrect,
15327     # since paths with space are more likely in Windows. Give it another try with the whole
15328     # argument.
15329     path="$complete"
15330     arguments="EOL"
15331     new_path=`$CYGPATH -u "$path"`
15332     new_path=`$WHICH "$new_path" 2> /dev/null`
15333     # bat and cmd files are not always considered executable in cygwin causing which
15334     # to not find them
15335     if test "x$new_path" = x \
15336         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15337         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15338       new_path=`$CYGPATH -u "$path"`
15339     fi
15340     if test "x$new_path" = x; then
15341       # It's still not found. Now this is an unrecoverable error.
15342       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15343 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15344       has_space=`$ECHO "$complete" | $GREP " "`
15345       if test "x$has_space" != x; then
15346         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15347 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15348       fi
15349       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15350     fi
15351   fi
15352 
15353   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15354   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15355   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15356   # "foo.exe" is OK but "foo" is an error.
15357   #
15358   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15359   # It is also a way to make sure we got the proper file name for the real test later on.
15360   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15361   if test "x$test_shortpath" = x; then
15362     # Short path failed, file does not exist as specified.
15363     # Try adding .exe or .cmd
15364     if test -f "${new_path}.exe"; then
15365       input_to_shortpath="${new_path}.exe"
15366     elif test -f "${new_path}.cmd"; then
15367       input_to_shortpath="${new_path}.cmd"
15368     else
15369       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15370 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15371       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15372 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15373       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15374     fi
15375   else
15376     input_to_shortpath="$new_path"
15377   fi
15378 
15379   # Call helper function which possibly converts this using DOS-style short mode.
15380   # If so, the updated path is stored in $new_path.
15381   new_path="$input_to_shortpath"
15382 
15383   input_path="$input_to_shortpath"
15384   # Check if we need to convert this using DOS-style short mode. If the path
15385   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15386   # take no chances and rewrite it.
15387   # Note: m4 eats our [], so we need to use [ and ] instead.
15388   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15389   if test "x$has_forbidden_chars" != x; then
15390     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15391     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15392     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15393     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15394       # Going to short mode and back again did indeed matter. Since short mode is
15395       # case insensitive, let's make it lowercase to improve readability.
15396       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15397       # Now convert it back to Unix-stile (cygpath)
15398       input_path=`$CYGPATH -u "$shortmode_path"`
15399       new_path="$input_path"
15400     fi
15401   fi
15402 
15403   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15404   if test "x$test_cygdrive_prefix" = x; then
15405     # As a simple fix, exclude /usr/bin since it's not a real path.
15406     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15407       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15408       # a path prefixed by /cygdrive for fixpath to work.
15409       new_path="$CYGWIN_ROOT_PATH$input_path"
15410     fi
15411   fi
15412 
15413   # remove trailing .exe if any
15414   new_path="${new_path/%.exe/}"
15415 
15416   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15417 
15418   # First separate the path from the arguments. This will split at the first
15419   # space.
15420   complete="$FOUND_MAKE"
15421   path="${complete%% *}"
15422   tmp="$complete EOL"
15423   arguments="${tmp#* }"
15424 
15425   # Input might be given as Windows format, start by converting to
15426   # unix format.
15427   new_path="$path"
15428 
15429   windows_path="$new_path"
15430   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15431     unix_path=`$CYGPATH -u "$windows_path"`
15432     new_path="$unix_path"
15433   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15434     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15435     new_path="$unix_path"
15436   fi
15437 
15438 
15439   # Now try to locate executable using which
15440   new_path=`$WHICH "$new_path" 2> /dev/null`
15441 
15442   if test "x$new_path" = x; then
15443     # Oops. Which didn't find the executable.
15444     # The splitting of arguments from the executable at a space might have been incorrect,
15445     # since paths with space are more likely in Windows. Give it another try with the whole
15446     # argument.
15447     path="$complete"
15448     arguments="EOL"
15449     new_path="$path"
15450 
15451   windows_path="$new_path"
15452   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15453     unix_path=`$CYGPATH -u "$windows_path"`
15454     new_path="$unix_path"
15455   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15456     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15457     new_path="$unix_path"
15458   fi
15459 
15460 
15461     new_path=`$WHICH "$new_path" 2> /dev/null`
15462 
15463     if test "x$new_path" = x; then
15464       # It's still not found. Now this is an unrecoverable error.
15465       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15466 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15467       has_space=`$ECHO "$complete" | $GREP " "`
15468       if test "x$has_space" != x; then
15469         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15470 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15471       fi
15472       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15473     fi
15474   fi
15475 
15476   # Now new_path has a complete unix path to the binary
15477   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15478     # Keep paths in /bin as-is, but remove trailing .exe if any
15479     new_path="${new_path/%.exe/}"
15480     # Do not save /bin paths to all_fixpath_prefixes!
15481   else
15482     # Not in mixed or Windows style, start by that.
15483     new_path=`cmd //c echo $new_path`
15484 
15485   input_path="$new_path"
15486   # Check if we need to convert this using DOS-style short mode. If the path
15487   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15488   # take no chances and rewrite it.
15489   # Note: m4 eats our [], so we need to use [ and ] instead.
15490   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15491   if test "x$has_forbidden_chars" != x; then
15492     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15493     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15494   fi
15495 
15496     # Output is in $new_path
15497 
15498   windows_path="$new_path"
15499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15500     unix_path=`$CYGPATH -u "$windows_path"`
15501     new_path="$unix_path"
15502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15503     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15504     new_path="$unix_path"
15505   fi
15506 
15507     # remove trailing .exe if any
15508     new_path="${new_path/%.exe/}"
15509 
15510     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15511     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15512   fi
15513 
15514   else
15515     # We're on a posix platform. Hooray! :)
15516     # First separate the path from the arguments. This will split at the first
15517     # space.
15518     complete="$FOUND_MAKE"
15519     path="${complete%% *}"
15520     tmp="$complete EOL"
15521     arguments="${tmp#* }"
15522 
15523     # Cannot rely on the command "which" here since it doesn't always work.
15524     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15525     if test -z "$is_absolute_path"; then
15526       # Path to executable is not absolute. Find it.
15527       IFS_save="$IFS"
15528       IFS=:
15529       for p in $PATH; do
15530         if test -f "$p/$path" && test -x "$p/$path"; then
15531           new_path="$p/$path"
15532           break
15533         fi
15534       done
15535       IFS="$IFS_save"
15536     else
15537       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15538 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15539       new_path="$path"
15540     fi
15541 
15542     if test "x$new_path" = x; then
15543       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15544 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15545       has_space=`$ECHO "$complete" | $GREP " "`
15546       if test "x$has_space" != x; then
15547         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15548 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15549       fi
15550       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15551     fi
15552   fi
15553 
15554   # Now join together the path and the arguments once again
15555   if test "x$arguments" != xEOL; then
15556     new_complete="$new_path ${arguments% *}"
15557   else
15558     new_complete="$new_path"
15559   fi
15560 
15561   if test "x$complete" != "x$new_complete"; then
15562     FOUND_MAKE="$new_complete"
15563     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15564 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15565   fi
15566 
15567         fi
15568       fi
15569     fi
15570   fi
15571 
15572 
15573     if test "x$FOUND_MAKE" = x; then
15574       for ac_prog in make
15575 do
15576   # Extract the first word of "$ac_prog", so it can be a program name with args.
15577 set dummy $ac_prog; ac_word=$2
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579 $as_echo_n "checking for $ac_word... " >&6; }
15580 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15581   $as_echo_n "(cached) " >&6
15582 else
15583   case $CHECK_MAKE in
15584   [\\/]* | ?:[\\/]*)
15585   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15586   ;;
15587   *)
15588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15590 do
15591   IFS=$as_save_IFS
15592   test -z "$as_dir" && as_dir=.
15593     for ac_exec_ext in '' $ac_executable_extensions; do
15594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15597     break 2
15598   fi
15599 done
15600   done
15601 IFS=$as_save_IFS
15602 
15603   ;;
15604 esac
15605 fi
15606 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15607 if test -n "$CHECK_MAKE"; then
15608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15609 $as_echo "$CHECK_MAKE" >&6; }
15610 else
15611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15613 fi
15614 
15615 
15616   test -n "$CHECK_MAKE" && break
15617 done
15618 
15619 
15620   MAKE_CANDIDATE=""$CHECK_MAKE""
15621   DESCRIPTION="make in PATH"
15622   if test "x$MAKE_CANDIDATE" != x; then
15623     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15624 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15625     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15626     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15627     if test "x$IS_GNU_MAKE" = x; then
15628       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15629 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15630     else
15631       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15632       if test "x$IS_MODERN_MAKE" = x; then
15633         { $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
15634 $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;}
15635       else
15636         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15637           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15638             MAKE_EXPECTED_ENV='cygwin'
15639           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15640             MAKE_EXPECTED_ENV='msys'
15641           else
15642             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15643           fi
15644           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15645           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15646         else
15647           # Not relevant for non-Windows
15648           IS_MAKE_CORRECT_ENV=true
15649         fi
15650         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15651           { $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
15652 $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;}
15653         else
15654           FOUND_MAKE=$MAKE_CANDIDATE
15655 
15656   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15657 
15658   # First separate the path from the arguments. This will split at the first
15659   # space.
15660   complete="$FOUND_MAKE"
15661   path="${complete%% *}"
15662   tmp="$complete EOL"
15663   arguments="${tmp#* }"
15664 
15665   # Input might be given as Windows format, start by converting to
15666   # unix format.
15667   new_path=`$CYGPATH -u "$path"`
15668 
15669   # Now try to locate executable using which
15670   new_path=`$WHICH "$new_path" 2> /dev/null`
15671   # bat and cmd files are not always considered executable in cygwin causing which
15672   # to not find them
15673   if test "x$new_path" = x \
15674       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15675       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15676     new_path=`$CYGPATH -u "$path"`
15677   fi
15678   if test "x$new_path" = x; then
15679     # Oops. Which didn't find the executable.
15680     # The splitting of arguments from the executable at a space might have been incorrect,
15681     # since paths with space are more likely in Windows. Give it another try with the whole
15682     # argument.
15683     path="$complete"
15684     arguments="EOL"
15685     new_path=`$CYGPATH -u "$path"`
15686     new_path=`$WHICH "$new_path" 2> /dev/null`
15687     # bat and cmd files are not always considered executable in cygwin causing which
15688     # to not find them
15689     if test "x$new_path" = x \
15690         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15691         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15692       new_path=`$CYGPATH -u "$path"`
15693     fi
15694     if test "x$new_path" = x; then
15695       # It's still not found. Now this is an unrecoverable error.
15696       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15698       has_space=`$ECHO "$complete" | $GREP " "`
15699       if test "x$has_space" != x; then
15700         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15702       fi
15703       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15704     fi
15705   fi
15706 
15707   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15708   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15709   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15710   # "foo.exe" is OK but "foo" is an error.
15711   #
15712   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15713   # It is also a way to make sure we got the proper file name for the real test later on.
15714   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15715   if test "x$test_shortpath" = x; then
15716     # Short path failed, file does not exist as specified.
15717     # Try adding .exe or .cmd
15718     if test -f "${new_path}.exe"; then
15719       input_to_shortpath="${new_path}.exe"
15720     elif test -f "${new_path}.cmd"; then
15721       input_to_shortpath="${new_path}.cmd"
15722     else
15723       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15724 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15725       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15726 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15727       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15728     fi
15729   else
15730     input_to_shortpath="$new_path"
15731   fi
15732 
15733   # Call helper function which possibly converts this using DOS-style short mode.
15734   # If so, the updated path is stored in $new_path.
15735   new_path="$input_to_shortpath"
15736 
15737   input_path="$input_to_shortpath"
15738   # Check if we need to convert this using DOS-style short mode. If the path
15739   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15740   # take no chances and rewrite it.
15741   # Note: m4 eats our [], so we need to use [ and ] instead.
15742   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15743   if test "x$has_forbidden_chars" != x; then
15744     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15745     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15746     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15747     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15748       # Going to short mode and back again did indeed matter. Since short mode is
15749       # case insensitive, let's make it lowercase to improve readability.
15750       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15751       # Now convert it back to Unix-stile (cygpath)
15752       input_path=`$CYGPATH -u "$shortmode_path"`
15753       new_path="$input_path"
15754     fi
15755   fi
15756 
15757   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15758   if test "x$test_cygdrive_prefix" = x; then
15759     # As a simple fix, exclude /usr/bin since it's not a real path.
15760     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15761       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15762       # a path prefixed by /cygdrive for fixpath to work.
15763       new_path="$CYGWIN_ROOT_PATH$input_path"
15764     fi
15765   fi
15766 
15767   # remove trailing .exe if any
15768   new_path="${new_path/%.exe/}"
15769 
15770   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15771 
15772   # First separate the path from the arguments. This will split at the first
15773   # space.
15774   complete="$FOUND_MAKE"
15775   path="${complete%% *}"
15776   tmp="$complete EOL"
15777   arguments="${tmp#* }"
15778 
15779   # Input might be given as Windows format, start by converting to
15780   # unix format.
15781   new_path="$path"
15782 
15783   windows_path="$new_path"
15784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15785     unix_path=`$CYGPATH -u "$windows_path"`
15786     new_path="$unix_path"
15787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15788     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15789     new_path="$unix_path"
15790   fi
15791 
15792 
15793   # Now try to locate executable using which
15794   new_path=`$WHICH "$new_path" 2> /dev/null`
15795 
15796   if test "x$new_path" = x; then
15797     # Oops. Which didn't find the executable.
15798     # The splitting of arguments from the executable at a space might have been incorrect,
15799     # since paths with space are more likely in Windows. Give it another try with the whole
15800     # argument.
15801     path="$complete"
15802     arguments="EOL"
15803     new_path="$path"
15804 
15805   windows_path="$new_path"
15806   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15807     unix_path=`$CYGPATH -u "$windows_path"`
15808     new_path="$unix_path"
15809   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15810     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15811     new_path="$unix_path"
15812   fi
15813 
15814 
15815     new_path=`$WHICH "$new_path" 2> /dev/null`
15816 
15817     if test "x$new_path" = x; then
15818       # It's still not found. Now this is an unrecoverable error.
15819       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15820 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15821       has_space=`$ECHO "$complete" | $GREP " "`
15822       if test "x$has_space" != x; then
15823         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15824 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15825       fi
15826       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15827     fi
15828   fi
15829 
15830   # Now new_path has a complete unix path to the binary
15831   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15832     # Keep paths in /bin as-is, but remove trailing .exe if any
15833     new_path="${new_path/%.exe/}"
15834     # Do not save /bin paths to all_fixpath_prefixes!
15835   else
15836     # Not in mixed or Windows style, start by that.
15837     new_path=`cmd //c echo $new_path`
15838 
15839   input_path="$new_path"
15840   # Check if we need to convert this using DOS-style short mode. If the path
15841   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15842   # take no chances and rewrite it.
15843   # Note: m4 eats our [], so we need to use [ and ] instead.
15844   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15845   if test "x$has_forbidden_chars" != x; then
15846     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15847     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15848   fi
15849 
15850     # Output is in $new_path
15851 
15852   windows_path="$new_path"
15853   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15854     unix_path=`$CYGPATH -u "$windows_path"`
15855     new_path="$unix_path"
15856   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15857     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15858     new_path="$unix_path"
15859   fi
15860 
15861     # remove trailing .exe if any
15862     new_path="${new_path/%.exe/}"
15863 
15864     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15865     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15866   fi
15867 
15868   else
15869     # We're on a posix platform. Hooray! :)
15870     # First separate the path from the arguments. This will split at the first
15871     # space.
15872     complete="$FOUND_MAKE"
15873     path="${complete%% *}"
15874     tmp="$complete EOL"
15875     arguments="${tmp#* }"
15876 
15877     # Cannot rely on the command "which" here since it doesn't always work.
15878     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15879     if test -z "$is_absolute_path"; then
15880       # Path to executable is not absolute. Find it.
15881       IFS_save="$IFS"
15882       IFS=:
15883       for p in $PATH; do
15884         if test -f "$p/$path" && test -x "$p/$path"; then
15885           new_path="$p/$path"
15886           break
15887         fi
15888       done
15889       IFS="$IFS_save"
15890     else
15891       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15892 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15893       new_path="$path"
15894     fi
15895 
15896     if test "x$new_path" = x; then
15897       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15898 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15899       has_space=`$ECHO "$complete" | $GREP " "`
15900       if test "x$has_space" != x; then
15901         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15902 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15903       fi
15904       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15905     fi
15906   fi
15907 
15908   # Now join together the path and the arguments once again
15909   if test "x$arguments" != xEOL; then
15910     new_complete="$new_path ${arguments% *}"
15911   else
15912     new_complete="$new_path"
15913   fi
15914 
15915   if test "x$complete" != "x$new_complete"; then
15916     FOUND_MAKE="$new_complete"
15917     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15918 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15919   fi
15920 
15921         fi
15922       fi
15923     fi
15924   fi
15925 
15926     fi
15927 
15928     if test "x$FOUND_MAKE" = x; then
15929       if test "x$TOOLS_DIR" != x; then
15930         # We have a tools-dir, check that as well before giving up.
15931         OLD_PATH=$PATH
15932         PATH=$TOOLS_DIR:$PATH
15933         for ac_prog in gmake
15934 do
15935   # Extract the first word of "$ac_prog", so it can be a program name with args.
15936 set dummy $ac_prog; ac_word=$2
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15938 $as_echo_n "checking for $ac_word... " >&6; }
15939 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942   case $CHECK_TOOLSDIR_GMAKE in
15943   [\\/]* | ?:[\\/]*)
15944   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
15945   ;;
15946   *)
15947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15948 for as_dir in $PATH
15949 do
15950   IFS=$as_save_IFS
15951   test -z "$as_dir" && as_dir=.
15952     for ac_exec_ext in '' $ac_executable_extensions; do
15953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15954     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15956     break 2
15957   fi
15958 done
15959   done
15960 IFS=$as_save_IFS
15961 
15962   ;;
15963 esac
15964 fi
15965 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
15966 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
15967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
15968 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
15969 else
15970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15972 fi
15973 
15974 
15975   test -n "$CHECK_TOOLSDIR_GMAKE" && break
15976 done
15977 
15978 
15979   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
15980   DESCRIPTION="gmake in tools-dir"
15981   if test "x$MAKE_CANDIDATE" != x; then
15982     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15983 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15984     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15985     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15986     if test "x$IS_GNU_MAKE" = x; then
15987       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15988 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15989     else
15990       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15991       if test "x$IS_MODERN_MAKE" = x; then
15992         { $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
15993 $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;}
15994       else
15995         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15996           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15997             MAKE_EXPECTED_ENV='cygwin'
15998           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15999             MAKE_EXPECTED_ENV='msys'
16000           else
16001             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16002           fi
16003           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16004           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16005         else
16006           # Not relevant for non-Windows
16007           IS_MAKE_CORRECT_ENV=true
16008         fi
16009         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16010           { $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
16011 $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;}
16012         else
16013           FOUND_MAKE=$MAKE_CANDIDATE
16014 
16015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16016 
16017   # First separate the path from the arguments. This will split at the first
16018   # space.
16019   complete="$FOUND_MAKE"
16020   path="${complete%% *}"
16021   tmp="$complete EOL"
16022   arguments="${tmp#* }"
16023 
16024   # Input might be given as Windows format, start by converting to
16025   # unix format.
16026   new_path=`$CYGPATH -u "$path"`
16027 
16028   # Now try to locate executable using which
16029   new_path=`$WHICH "$new_path" 2> /dev/null`
16030   # bat and cmd files are not always considered executable in cygwin causing which
16031   # to not find them
16032   if test "x$new_path" = x \
16033       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16034       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16035     new_path=`$CYGPATH -u "$path"`
16036   fi
16037   if test "x$new_path" = x; then
16038     # Oops. Which didn't find the executable.
16039     # The splitting of arguments from the executable at a space might have been incorrect,
16040     # since paths with space are more likely in Windows. Give it another try with the whole
16041     # argument.
16042     path="$complete"
16043     arguments="EOL"
16044     new_path=`$CYGPATH -u "$path"`
16045     new_path=`$WHICH "$new_path" 2> /dev/null`
16046     # bat and cmd files are not always considered executable in cygwin causing which
16047     # to not find them
16048     if test "x$new_path" = x \
16049         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16050         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16051       new_path=`$CYGPATH -u "$path"`
16052     fi
16053     if test "x$new_path" = x; then
16054       # It's still not found. Now this is an unrecoverable error.
16055       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16056 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16057       has_space=`$ECHO "$complete" | $GREP " "`
16058       if test "x$has_space" != x; then
16059         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16060 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16061       fi
16062       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16063     fi
16064   fi
16065 
16066   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16067   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16068   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16069   # "foo.exe" is OK but "foo" is an error.
16070   #
16071   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16072   # It is also a way to make sure we got the proper file name for the real test later on.
16073   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16074   if test "x$test_shortpath" = x; then
16075     # Short path failed, file does not exist as specified.
16076     # Try adding .exe or .cmd
16077     if test -f "${new_path}.exe"; then
16078       input_to_shortpath="${new_path}.exe"
16079     elif test -f "${new_path}.cmd"; then
16080       input_to_shortpath="${new_path}.cmd"
16081     else
16082       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16083 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16084       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16085 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16086       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16087     fi
16088   else
16089     input_to_shortpath="$new_path"
16090   fi
16091 
16092   # Call helper function which possibly converts this using DOS-style short mode.
16093   # If so, the updated path is stored in $new_path.
16094   new_path="$input_to_shortpath"
16095 
16096   input_path="$input_to_shortpath"
16097   # Check if we need to convert this using DOS-style short mode. If the path
16098   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16099   # take no chances and rewrite it.
16100   # Note: m4 eats our [], so we need to use [ and ] instead.
16101   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16102   if test "x$has_forbidden_chars" != x; then
16103     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16104     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16105     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16106     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16107       # Going to short mode and back again did indeed matter. Since short mode is
16108       # case insensitive, let's make it lowercase to improve readability.
16109       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16110       # Now convert it back to Unix-stile (cygpath)
16111       input_path=`$CYGPATH -u "$shortmode_path"`
16112       new_path="$input_path"
16113     fi
16114   fi
16115 
16116   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16117   if test "x$test_cygdrive_prefix" = x; then
16118     # As a simple fix, exclude /usr/bin since it's not a real path.
16119     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16120       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16121       # a path prefixed by /cygdrive for fixpath to work.
16122       new_path="$CYGWIN_ROOT_PATH$input_path"
16123     fi
16124   fi
16125 
16126   # remove trailing .exe if any
16127   new_path="${new_path/%.exe/}"
16128 
16129   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16130 
16131   # First separate the path from the arguments. This will split at the first
16132   # space.
16133   complete="$FOUND_MAKE"
16134   path="${complete%% *}"
16135   tmp="$complete EOL"
16136   arguments="${tmp#* }"
16137 
16138   # Input might be given as Windows format, start by converting to
16139   # unix format.
16140   new_path="$path"
16141 
16142   windows_path="$new_path"
16143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16144     unix_path=`$CYGPATH -u "$windows_path"`
16145     new_path="$unix_path"
16146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16147     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16148     new_path="$unix_path"
16149   fi
16150 
16151 
16152   # Now try to locate executable using which
16153   new_path=`$WHICH "$new_path" 2> /dev/null`
16154 
16155   if test "x$new_path" = x; then
16156     # Oops. Which didn't find the executable.
16157     # The splitting of arguments from the executable at a space might have been incorrect,
16158     # since paths with space are more likely in Windows. Give it another try with the whole
16159     # argument.
16160     path="$complete"
16161     arguments="EOL"
16162     new_path="$path"
16163 
16164   windows_path="$new_path"
16165   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16166     unix_path=`$CYGPATH -u "$windows_path"`
16167     new_path="$unix_path"
16168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16169     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16170     new_path="$unix_path"
16171   fi
16172 
16173 
16174     new_path=`$WHICH "$new_path" 2> /dev/null`
16175 
16176     if test "x$new_path" = x; then
16177       # It's still not found. Now this is an unrecoverable error.
16178       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16179 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16180       has_space=`$ECHO "$complete" | $GREP " "`
16181       if test "x$has_space" != x; then
16182         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16183 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16184       fi
16185       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16186     fi
16187   fi
16188 
16189   # Now new_path has a complete unix path to the binary
16190   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16191     # Keep paths in /bin as-is, but remove trailing .exe if any
16192     new_path="${new_path/%.exe/}"
16193     # Do not save /bin paths to all_fixpath_prefixes!
16194   else
16195     # Not in mixed or Windows style, start by that.
16196     new_path=`cmd //c echo $new_path`
16197 
16198   input_path="$new_path"
16199   # Check if we need to convert this using DOS-style short mode. If the path
16200   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16201   # take no chances and rewrite it.
16202   # Note: m4 eats our [], so we need to use [ and ] instead.
16203   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16204   if test "x$has_forbidden_chars" != x; then
16205     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16206     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16207   fi
16208 
16209     # Output is in $new_path
16210 
16211   windows_path="$new_path"
16212   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16213     unix_path=`$CYGPATH -u "$windows_path"`
16214     new_path="$unix_path"
16215   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16216     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16217     new_path="$unix_path"
16218   fi
16219 
16220     # remove trailing .exe if any
16221     new_path="${new_path/%.exe/}"
16222 
16223     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16224     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16225   fi
16226 
16227   else
16228     # We're on a posix platform. Hooray! :)
16229     # First separate the path from the arguments. This will split at the first
16230     # space.
16231     complete="$FOUND_MAKE"
16232     path="${complete%% *}"
16233     tmp="$complete EOL"
16234     arguments="${tmp#* }"
16235 
16236     # Cannot rely on the command "which" here since it doesn't always work.
16237     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16238     if test -z "$is_absolute_path"; then
16239       # Path to executable is not absolute. Find it.
16240       IFS_save="$IFS"
16241       IFS=:
16242       for p in $PATH; do
16243         if test -f "$p/$path" && test -x "$p/$path"; then
16244           new_path="$p/$path"
16245           break
16246         fi
16247       done
16248       IFS="$IFS_save"
16249     else
16250       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16251 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16252       new_path="$path"
16253     fi
16254 
16255     if test "x$new_path" = x; then
16256       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16257 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16258       has_space=`$ECHO "$complete" | $GREP " "`
16259       if test "x$has_space" != x; then
16260         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16261 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16262       fi
16263       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16264     fi
16265   fi
16266 
16267   # Now join together the path and the arguments once again
16268   if test "x$arguments" != xEOL; then
16269     new_complete="$new_path ${arguments% *}"
16270   else
16271     new_complete="$new_path"
16272   fi
16273 
16274   if test "x$complete" != "x$new_complete"; then
16275     FOUND_MAKE="$new_complete"
16276     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16277 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16278   fi
16279 
16280         fi
16281       fi
16282     fi
16283   fi
16284 
16285         if test "x$FOUND_MAKE" = x; then
16286           for ac_prog in make
16287 do
16288   # Extract the first word of "$ac_prog", so it can be a program name with args.
16289 set dummy $ac_prog; ac_word=$2
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16291 $as_echo_n "checking for $ac_word... " >&6; }
16292 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16293   $as_echo_n "(cached) " >&6
16294 else
16295   case $CHECK_TOOLSDIR_MAKE in
16296   [\\/]* | ?:[\\/]*)
16297   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16298   ;;
16299   *)
16300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16302 do
16303   IFS=$as_save_IFS
16304   test -z "$as_dir" && as_dir=.
16305     for ac_exec_ext in '' $ac_executable_extensions; do
16306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16307     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16309     break 2
16310   fi
16311 done
16312   done
16313 IFS=$as_save_IFS
16314 
16315   ;;
16316 esac
16317 fi
16318 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16319 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16321 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16322 else
16323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325 fi
16326 
16327 
16328   test -n "$CHECK_TOOLSDIR_MAKE" && break
16329 done
16330 
16331 
16332   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16333   DESCRIPTION="make in tools-dir"
16334   if test "x$MAKE_CANDIDATE" != x; then
16335     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16336 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16337     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16338     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16339     if test "x$IS_GNU_MAKE" = x; then
16340       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16341 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16342     else
16343       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16344       if test "x$IS_MODERN_MAKE" = x; then
16345         { $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
16346 $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;}
16347       else
16348         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16349           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16350             MAKE_EXPECTED_ENV='cygwin'
16351           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16352             MAKE_EXPECTED_ENV='msys'
16353           else
16354             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16355           fi
16356           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16357           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16358         else
16359           # Not relevant for non-Windows
16360           IS_MAKE_CORRECT_ENV=true
16361         fi
16362         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16363           { $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
16364 $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;}
16365         else
16366           FOUND_MAKE=$MAKE_CANDIDATE
16367 
16368   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16369 
16370   # First separate the path from the arguments. This will split at the first
16371   # space.
16372   complete="$FOUND_MAKE"
16373   path="${complete%% *}"
16374   tmp="$complete EOL"
16375   arguments="${tmp#* }"
16376 
16377   # Input might be given as Windows format, start by converting to
16378   # unix format.
16379   new_path=`$CYGPATH -u "$path"`
16380 
16381   # Now try to locate executable using which
16382   new_path=`$WHICH "$new_path" 2> /dev/null`
16383   # bat and cmd files are not always considered executable in cygwin causing which
16384   # to not find them
16385   if test "x$new_path" = x \
16386       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16387       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16388     new_path=`$CYGPATH -u "$path"`
16389   fi
16390   if test "x$new_path" = x; then
16391     # Oops. Which didn't find the executable.
16392     # The splitting of arguments from the executable at a space might have been incorrect,
16393     # since paths with space are more likely in Windows. Give it another try with the whole
16394     # argument.
16395     path="$complete"
16396     arguments="EOL"
16397     new_path=`$CYGPATH -u "$path"`
16398     new_path=`$WHICH "$new_path" 2> /dev/null`
16399     # bat and cmd files are not always considered executable in cygwin causing which
16400     # to not find them
16401     if test "x$new_path" = x \
16402         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16403         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16404       new_path=`$CYGPATH -u "$path"`
16405     fi
16406     if test "x$new_path" = x; then
16407       # It's still not found. Now this is an unrecoverable error.
16408       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16409 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16410       has_space=`$ECHO "$complete" | $GREP " "`
16411       if test "x$has_space" != x; then
16412         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16413 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16414       fi
16415       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16416     fi
16417   fi
16418 
16419   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16420   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16421   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16422   # "foo.exe" is OK but "foo" is an error.
16423   #
16424   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16425   # It is also a way to make sure we got the proper file name for the real test later on.
16426   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16427   if test "x$test_shortpath" = x; then
16428     # Short path failed, file does not exist as specified.
16429     # Try adding .exe or .cmd
16430     if test -f "${new_path}.exe"; then
16431       input_to_shortpath="${new_path}.exe"
16432     elif test -f "${new_path}.cmd"; then
16433       input_to_shortpath="${new_path}.cmd"
16434     else
16435       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16436 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16437       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16438 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16439       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16440     fi
16441   else
16442     input_to_shortpath="$new_path"
16443   fi
16444 
16445   # Call helper function which possibly converts this using DOS-style short mode.
16446   # If so, the updated path is stored in $new_path.
16447   new_path="$input_to_shortpath"
16448 
16449   input_path="$input_to_shortpath"
16450   # Check if we need to convert this using DOS-style short mode. If the path
16451   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16452   # take no chances and rewrite it.
16453   # Note: m4 eats our [], so we need to use [ and ] instead.
16454   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16455   if test "x$has_forbidden_chars" != x; then
16456     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16457     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16458     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16459     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16460       # Going to short mode and back again did indeed matter. Since short mode is
16461       # case insensitive, let's make it lowercase to improve readability.
16462       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16463       # Now convert it back to Unix-stile (cygpath)
16464       input_path=`$CYGPATH -u "$shortmode_path"`
16465       new_path="$input_path"
16466     fi
16467   fi
16468 
16469   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16470   if test "x$test_cygdrive_prefix" = x; then
16471     # As a simple fix, exclude /usr/bin since it's not a real path.
16472     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16473       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16474       # a path prefixed by /cygdrive for fixpath to work.
16475       new_path="$CYGWIN_ROOT_PATH$input_path"
16476     fi
16477   fi
16478 
16479   # remove trailing .exe if any
16480   new_path="${new_path/%.exe/}"
16481 
16482   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16483 
16484   # First separate the path from the arguments. This will split at the first
16485   # space.
16486   complete="$FOUND_MAKE"
16487   path="${complete%% *}"
16488   tmp="$complete EOL"
16489   arguments="${tmp#* }"
16490 
16491   # Input might be given as Windows format, start by converting to
16492   # unix format.
16493   new_path="$path"
16494 
16495   windows_path="$new_path"
16496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16497     unix_path=`$CYGPATH -u "$windows_path"`
16498     new_path="$unix_path"
16499   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16500     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16501     new_path="$unix_path"
16502   fi
16503 
16504 
16505   # Now try to locate executable using which
16506   new_path=`$WHICH "$new_path" 2> /dev/null`
16507 
16508   if test "x$new_path" = x; then
16509     # Oops. Which didn't find the executable.
16510     # The splitting of arguments from the executable at a space might have been incorrect,
16511     # since paths with space are more likely in Windows. Give it another try with the whole
16512     # argument.
16513     path="$complete"
16514     arguments="EOL"
16515     new_path="$path"
16516 
16517   windows_path="$new_path"
16518   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16519     unix_path=`$CYGPATH -u "$windows_path"`
16520     new_path="$unix_path"
16521   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16522     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16523     new_path="$unix_path"
16524   fi
16525 
16526 
16527     new_path=`$WHICH "$new_path" 2> /dev/null`
16528 
16529     if test "x$new_path" = x; then
16530       # It's still not found. Now this is an unrecoverable error.
16531       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16532 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16533       has_space=`$ECHO "$complete" | $GREP " "`
16534       if test "x$has_space" != x; then
16535         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16536 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16537       fi
16538       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16539     fi
16540   fi
16541 
16542   # Now new_path has a complete unix path to the binary
16543   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16544     # Keep paths in /bin as-is, but remove trailing .exe if any
16545     new_path="${new_path/%.exe/}"
16546     # Do not save /bin paths to all_fixpath_prefixes!
16547   else
16548     # Not in mixed or Windows style, start by that.
16549     new_path=`cmd //c echo $new_path`
16550 
16551   input_path="$new_path"
16552   # Check if we need to convert this using DOS-style short mode. If the path
16553   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16554   # take no chances and rewrite it.
16555   # Note: m4 eats our [], so we need to use [ and ] instead.
16556   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16557   if test "x$has_forbidden_chars" != x; then
16558     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16559     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16560   fi
16561 
16562     # Output is in $new_path
16563 
16564   windows_path="$new_path"
16565   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16566     unix_path=`$CYGPATH -u "$windows_path"`
16567     new_path="$unix_path"
16568   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16569     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16570     new_path="$unix_path"
16571   fi
16572 
16573     # remove trailing .exe if any
16574     new_path="${new_path/%.exe/}"
16575 
16576     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16577     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16578   fi
16579 
16580   else
16581     # We're on a posix platform. Hooray! :)
16582     # First separate the path from the arguments. This will split at the first
16583     # space.
16584     complete="$FOUND_MAKE"
16585     path="${complete%% *}"
16586     tmp="$complete EOL"
16587     arguments="${tmp#* }"
16588 
16589     # Cannot rely on the command "which" here since it doesn't always work.
16590     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16591     if test -z "$is_absolute_path"; then
16592       # Path to executable is not absolute. Find it.
16593       IFS_save="$IFS"
16594       IFS=:
16595       for p in $PATH; do
16596         if test -f "$p/$path" && test -x "$p/$path"; then
16597           new_path="$p/$path"
16598           break
16599         fi
16600       done
16601       IFS="$IFS_save"
16602     else
16603       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16604 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16605       new_path="$path"
16606     fi
16607 
16608     if test "x$new_path" = x; then
16609       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16610 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16611       has_space=`$ECHO "$complete" | $GREP " "`
16612       if test "x$has_space" != x; then
16613         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16614 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16615       fi
16616       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16617     fi
16618   fi
16619 
16620   # Now join together the path and the arguments once again
16621   if test "x$arguments" != xEOL; then
16622     new_complete="$new_path ${arguments% *}"
16623   else
16624     new_complete="$new_path"
16625   fi
16626 
16627   if test "x$complete" != "x$new_complete"; then
16628     FOUND_MAKE="$new_complete"
16629     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16630 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16631   fi
16632 
16633         fi
16634       fi
16635     fi
16636   fi
16637 
16638         fi
16639         PATH=$OLD_PATH
16640       fi
16641     fi
16642 
16643     if test "x$FOUND_MAKE" = x; then
16644       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
16645     fi
16646   fi
16647 
16648   MAKE=$FOUND_MAKE
16649 
16650   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16651 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16652 
16653 
16654 
16655   # Test if find supports -delete
16656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16657 $as_echo_n "checking if find supports -delete... " >&6; }
16658   FIND_DELETE="-delete"
16659 
16660   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16661 
16662   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16663 
16664   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16665   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16666     # No, it does not.
16667     rm $DELETEDIR/TestIfFindSupportsDelete
16668     FIND_DELETE="-exec rm \{\} \+"
16669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16671   else
16672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16673 $as_echo "yes" >&6; }
16674   fi
16675   rmdir $DELETEDIR
16676 
16677 
16678 
16679   # These tools might not be installed by default,
16680   # need hint on how to install them.
16681 
16682 
16683 
16684   # Publish this variable in the help.
16685 
16686 
16687   if test "x$UNZIP" = x; then
16688     # The variable is not set by user, try to locate tool using the code snippet
16689     for ac_prog in unzip
16690 do
16691   # Extract the first word of "$ac_prog", so it can be a program name with args.
16692 set dummy $ac_prog; ac_word=$2
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694 $as_echo_n "checking for $ac_word... " >&6; }
16695 if ${ac_cv_path_UNZIP+:} false; then :
16696   $as_echo_n "(cached) " >&6
16697 else
16698   case $UNZIP in
16699   [\\/]* | ?:[\\/]*)
16700   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16701   ;;
16702   *)
16703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16704 for as_dir in $PATH
16705 do
16706   IFS=$as_save_IFS
16707   test -z "$as_dir" && as_dir=.
16708     for ac_exec_ext in '' $ac_executable_extensions; do
16709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16710     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16712     break 2
16713   fi
16714 done
16715   done
16716 IFS=$as_save_IFS
16717 
16718   ;;
16719 esac
16720 fi
16721 UNZIP=$ac_cv_path_UNZIP
16722 if test -n "$UNZIP"; then
16723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16724 $as_echo "$UNZIP" >&6; }
16725 else
16726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16727 $as_echo "no" >&6; }
16728 fi
16729 
16730 
16731   test -n "$UNZIP" && break
16732 done
16733 
16734   else
16735     # The variable is set, but is it from the command line or the environment?
16736 
16737     # Try to remove the string !UNZIP! from our list.
16738     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16739     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16740       # If it failed, the variable was not from the command line. Ignore it,
16741       # but warn the user (except for BASH, which is always set by the calling BASH).
16742       if test "xUNZIP" != xBASH; then
16743         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16744 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16745       fi
16746       # Try to locate tool using the code snippet
16747       for ac_prog in unzip
16748 do
16749   # Extract the first word of "$ac_prog", so it can be a program name with args.
16750 set dummy $ac_prog; ac_word=$2
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16752 $as_echo_n "checking for $ac_word... " >&6; }
16753 if ${ac_cv_path_UNZIP+:} false; then :
16754   $as_echo_n "(cached) " >&6
16755 else
16756   case $UNZIP in
16757   [\\/]* | ?:[\\/]*)
16758   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16759   ;;
16760   *)
16761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16762 for as_dir in $PATH
16763 do
16764   IFS=$as_save_IFS
16765   test -z "$as_dir" && as_dir=.
16766     for ac_exec_ext in '' $ac_executable_extensions; do
16767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16768     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16770     break 2
16771   fi
16772 done
16773   done
16774 IFS=$as_save_IFS
16775 
16776   ;;
16777 esac
16778 fi
16779 UNZIP=$ac_cv_path_UNZIP
16780 if test -n "$UNZIP"; then
16781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16782 $as_echo "$UNZIP" >&6; }
16783 else
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785 $as_echo "no" >&6; }
16786 fi
16787 
16788 
16789   test -n "$UNZIP" && break
16790 done
16791 
16792     else
16793       # If it succeeded, then it was overridden by the user. We will use it
16794       # for the tool.
16795 
16796       # First remove it from the list of overridden variables, so we can test
16797       # for unknown variables in the end.
16798       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16799 
16800       # Check if the provided tool contains a complete path.
16801       tool_specified="$UNZIP"
16802       tool_basename="${tool_specified##*/}"
16803       if test "x$tool_basename" = "x$tool_specified"; then
16804         # A command without a complete path is provided, search $PATH.
16805         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16806 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16807         # Extract the first word of "$tool_basename", so it can be a program name with args.
16808 set dummy $tool_basename; ac_word=$2
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16810 $as_echo_n "checking for $ac_word... " >&6; }
16811 if ${ac_cv_path_UNZIP+:} false; then :
16812   $as_echo_n "(cached) " >&6
16813 else
16814   case $UNZIP in
16815   [\\/]* | ?:[\\/]*)
16816   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16817   ;;
16818   *)
16819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16821 do
16822   IFS=$as_save_IFS
16823   test -z "$as_dir" && as_dir=.
16824     for ac_exec_ext in '' $ac_executable_extensions; do
16825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828     break 2
16829   fi
16830 done
16831   done
16832 IFS=$as_save_IFS
16833 
16834   ;;
16835 esac
16836 fi
16837 UNZIP=$ac_cv_path_UNZIP
16838 if test -n "$UNZIP"; then
16839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16840 $as_echo "$UNZIP" >&6; }
16841 else
16842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 $as_echo "no" >&6; }
16844 fi
16845 
16846 
16847         if test "x$UNZIP" = x; then
16848           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16849         fi
16850       else
16851         # Otherwise we believe it is a complete path. Use it as it is.
16852         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16853 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16854         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16855 $as_echo_n "checking for UNZIP... " >&6; }
16856         if test ! -x "$tool_specified"; then
16857           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16858 $as_echo "not found" >&6; }
16859           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
16860         fi
16861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
16862 $as_echo "$tool_specified" >&6; }
16863       fi
16864     fi
16865   fi
16866 
16867 
16868 
16869   if test "x$UNZIP" = x; then
16870     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
16871   fi
16872 
16873 
16874 
16875 
16876 
16877   # Publish this variable in the help.
16878 
16879 
16880   if test "x$ZIP" = x; then
16881     # The variable is not set by user, try to locate tool using the code snippet
16882     for ac_prog in zip
16883 do
16884   # Extract the first word of "$ac_prog", so it can be a program name with args.
16885 set dummy $ac_prog; ac_word=$2
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16887 $as_echo_n "checking for $ac_word... " >&6; }
16888 if ${ac_cv_path_ZIP+:} false; then :
16889   $as_echo_n "(cached) " >&6
16890 else
16891   case $ZIP in
16892   [\\/]* | ?:[\\/]*)
16893   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16894   ;;
16895   *)
16896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16897 for as_dir in $PATH
16898 do
16899   IFS=$as_save_IFS
16900   test -z "$as_dir" && as_dir=.
16901     for ac_exec_ext in '' $ac_executable_extensions; do
16902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16903     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16905     break 2
16906   fi
16907 done
16908   done
16909 IFS=$as_save_IFS
16910 
16911   ;;
16912 esac
16913 fi
16914 ZIP=$ac_cv_path_ZIP
16915 if test -n "$ZIP"; then
16916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16917 $as_echo "$ZIP" >&6; }
16918 else
16919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16920 $as_echo "no" >&6; }
16921 fi
16922 
16923 
16924   test -n "$ZIP" && break
16925 done
16926 
16927   else
16928     # The variable is set, but is it from the command line or the environment?
16929 
16930     # Try to remove the string !ZIP! from our list.
16931     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
16932     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16933       # If it failed, the variable was not from the command line. Ignore it,
16934       # but warn the user (except for BASH, which is always set by the calling BASH).
16935       if test "xZIP" != xBASH; then
16936         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
16937 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
16938       fi
16939       # Try to locate tool using the code snippet
16940       for ac_prog in zip
16941 do
16942   # Extract the first word of "$ac_prog", so it can be a program name with args.
16943 set dummy $ac_prog; ac_word=$2
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16945 $as_echo_n "checking for $ac_word... " >&6; }
16946 if ${ac_cv_path_ZIP+:} false; then :
16947   $as_echo_n "(cached) " >&6
16948 else
16949   case $ZIP in
16950   [\\/]* | ?:[\\/]*)
16951   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16952   ;;
16953   *)
16954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16955 for as_dir in $PATH
16956 do
16957   IFS=$as_save_IFS
16958   test -z "$as_dir" && as_dir=.
16959     for ac_exec_ext in '' $ac_executable_extensions; do
16960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16961     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16963     break 2
16964   fi
16965 done
16966   done
16967 IFS=$as_save_IFS
16968 
16969   ;;
16970 esac
16971 fi
16972 ZIP=$ac_cv_path_ZIP
16973 if test -n "$ZIP"; then
16974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16975 $as_echo "$ZIP" >&6; }
16976 else
16977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978 $as_echo "no" >&6; }
16979 fi
16980 
16981 
16982   test -n "$ZIP" && break
16983 done
16984 
16985     else
16986       # If it succeeded, then it was overridden by the user. We will use it
16987       # for the tool.
16988 
16989       # First remove it from the list of overridden variables, so we can test
16990       # for unknown variables in the end.
16991       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16992 
16993       # Check if the provided tool contains a complete path.
16994       tool_specified="$ZIP"
16995       tool_basename="${tool_specified##*/}"
16996       if test "x$tool_basename" = "x$tool_specified"; then
16997         # A command without a complete path is provided, search $PATH.
16998         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
16999 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17000         # Extract the first word of "$tool_basename", so it can be a program name with args.
17001 set dummy $tool_basename; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_path_ZIP+:} false; then :
17005   $as_echo_n "(cached) " >&6
17006 else
17007   case $ZIP in
17008   [\\/]* | ?:[\\/]*)
17009   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17010   ;;
17011   *)
17012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $PATH
17014 do
17015   IFS=$as_save_IFS
17016   test -z "$as_dir" && as_dir=.
17017     for ac_exec_ext in '' $ac_executable_extensions; do
17018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17019     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17021     break 2
17022   fi
17023 done
17024   done
17025 IFS=$as_save_IFS
17026 
17027   ;;
17028 esac
17029 fi
17030 ZIP=$ac_cv_path_ZIP
17031 if test -n "$ZIP"; then
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17033 $as_echo "$ZIP" >&6; }
17034 else
17035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038 
17039 
17040         if test "x$ZIP" = x; then
17041           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17042         fi
17043       else
17044         # Otherwise we believe it is a complete path. Use it as it is.
17045         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17046 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17047         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17048 $as_echo_n "checking for ZIP... " >&6; }
17049         if test ! -x "$tool_specified"; then
17050           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17051 $as_echo "not found" >&6; }
17052           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17053         fi
17054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17055 $as_echo "$tool_specified" >&6; }
17056       fi
17057     fi
17058   fi
17059 
17060 
17061 
17062   if test "x$ZIP" = x; then
17063     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17064   fi
17065 
17066 
17067 
17068   # Non-required basic tools
17069 
17070 
17071 
17072   # Publish this variable in the help.
17073 
17074 
17075   if test "x$LDD" = x; then
17076     # The variable is not set by user, try to locate tool using the code snippet
17077     for ac_prog in ldd
17078 do
17079   # Extract the first word of "$ac_prog", so it can be a program name with args.
17080 set dummy $ac_prog; ac_word=$2
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17082 $as_echo_n "checking for $ac_word... " >&6; }
17083 if ${ac_cv_path_LDD+:} false; then :
17084   $as_echo_n "(cached) " >&6
17085 else
17086   case $LDD in
17087   [\\/]* | ?:[\\/]*)
17088   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17089   ;;
17090   *)
17091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17093 do
17094   IFS=$as_save_IFS
17095   test -z "$as_dir" && as_dir=.
17096     for ac_exec_ext in '' $ac_executable_extensions; do
17097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17098     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17100     break 2
17101   fi
17102 done
17103   done
17104 IFS=$as_save_IFS
17105 
17106   ;;
17107 esac
17108 fi
17109 LDD=$ac_cv_path_LDD
17110 if test -n "$LDD"; then
17111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17112 $as_echo "$LDD" >&6; }
17113 else
17114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17115 $as_echo "no" >&6; }
17116 fi
17117 
17118 
17119   test -n "$LDD" && break
17120 done
17121 
17122   else
17123     # The variable is set, but is it from the command line or the environment?
17124 
17125     # Try to remove the string !LDD! from our list.
17126     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17127     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17128       # If it failed, the variable was not from the command line. Ignore it,
17129       # but warn the user (except for BASH, which is always set by the calling BASH).
17130       if test "xLDD" != xBASH; then
17131         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17132 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17133       fi
17134       # Try to locate tool using the code snippet
17135       for ac_prog in ldd
17136 do
17137   # Extract the first word of "$ac_prog", so it can be a program name with args.
17138 set dummy $ac_prog; ac_word=$2
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17140 $as_echo_n "checking for $ac_word... " >&6; }
17141 if ${ac_cv_path_LDD+:} false; then :
17142   $as_echo_n "(cached) " >&6
17143 else
17144   case $LDD in
17145   [\\/]* | ?:[\\/]*)
17146   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17147   ;;
17148   *)
17149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17150 for as_dir in $PATH
17151 do
17152   IFS=$as_save_IFS
17153   test -z "$as_dir" && as_dir=.
17154     for ac_exec_ext in '' $ac_executable_extensions; do
17155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17156     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17158     break 2
17159   fi
17160 done
17161   done
17162 IFS=$as_save_IFS
17163 
17164   ;;
17165 esac
17166 fi
17167 LDD=$ac_cv_path_LDD
17168 if test -n "$LDD"; then
17169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17170 $as_echo "$LDD" >&6; }
17171 else
17172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17173 $as_echo "no" >&6; }
17174 fi
17175 
17176 
17177   test -n "$LDD" && break
17178 done
17179 
17180     else
17181       # If it succeeded, then it was overridden by the user. We will use it
17182       # for the tool.
17183 
17184       # First remove it from the list of overridden variables, so we can test
17185       # for unknown variables in the end.
17186       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17187 
17188       # Check if the provided tool contains a complete path.
17189       tool_specified="$LDD"
17190       tool_basename="${tool_specified##*/}"
17191       if test "x$tool_basename" = "x$tool_specified"; then
17192         # A command without a complete path is provided, search $PATH.
17193         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17194 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17195         # Extract the first word of "$tool_basename", so it can be a program name with args.
17196 set dummy $tool_basename; ac_word=$2
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198 $as_echo_n "checking for $ac_word... " >&6; }
17199 if ${ac_cv_path_LDD+:} false; then :
17200   $as_echo_n "(cached) " >&6
17201 else
17202   case $LDD in
17203   [\\/]* | ?:[\\/]*)
17204   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17205   ;;
17206   *)
17207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17208 for as_dir in $PATH
17209 do
17210   IFS=$as_save_IFS
17211   test -z "$as_dir" && as_dir=.
17212     for ac_exec_ext in '' $ac_executable_extensions; do
17213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17214     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17216     break 2
17217   fi
17218 done
17219   done
17220 IFS=$as_save_IFS
17221 
17222   ;;
17223 esac
17224 fi
17225 LDD=$ac_cv_path_LDD
17226 if test -n "$LDD"; then
17227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17228 $as_echo "$LDD" >&6; }
17229 else
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231 $as_echo "no" >&6; }
17232 fi
17233 
17234 
17235         if test "x$LDD" = x; then
17236           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17237         fi
17238       else
17239         # Otherwise we believe it is a complete path. Use it as it is.
17240         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17241 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17243 $as_echo_n "checking for LDD... " >&6; }
17244         if test ! -x "$tool_specified"; then
17245           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17246 $as_echo "not found" >&6; }
17247           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17248         fi
17249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17250 $as_echo "$tool_specified" >&6; }
17251       fi
17252     fi
17253   fi
17254 
17255 
17256   if test "x$LDD" = "x"; then
17257     # List shared lib dependencies is used for
17258     # debug output and checking for forbidden dependencies.
17259     # We can build without it.
17260     LDD="true"
17261   fi
17262 
17263 
17264   # Publish this variable in the help.
17265 
17266 
17267   if test "x$READELF" = x; then
17268     # The variable is not set by user, try to locate tool using the code snippet
17269     for ac_prog in readelf greadelf
17270 do
17271   # Extract the first word of "$ac_prog", so it can be a program name with args.
17272 set dummy $ac_prog; ac_word=$2
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17274 $as_echo_n "checking for $ac_word... " >&6; }
17275 if ${ac_cv_path_READELF+:} false; then :
17276   $as_echo_n "(cached) " >&6
17277 else
17278   case $READELF in
17279   [\\/]* | ?:[\\/]*)
17280   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17281   ;;
17282   *)
17283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17284 for as_dir in $PATH
17285 do
17286   IFS=$as_save_IFS
17287   test -z "$as_dir" && as_dir=.
17288     for ac_exec_ext in '' $ac_executable_extensions; do
17289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17290     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17292     break 2
17293   fi
17294 done
17295   done
17296 IFS=$as_save_IFS
17297 
17298   ;;
17299 esac
17300 fi
17301 READELF=$ac_cv_path_READELF
17302 if test -n "$READELF"; then
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17304 $as_echo "$READELF" >&6; }
17305 else
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17308 fi
17309 
17310 
17311   test -n "$READELF" && break
17312 done
17313 
17314   else
17315     # The variable is set, but is it from the command line or the environment?
17316 
17317     # Try to remove the string !READELF! from our list.
17318     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17319     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17320       # If it failed, the variable was not from the command line. Ignore it,
17321       # but warn the user (except for BASH, which is always set by the calling BASH).
17322       if test "xREADELF" != xBASH; then
17323         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17324 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17325       fi
17326       # Try to locate tool using the code snippet
17327       for ac_prog in readelf greadelf
17328 do
17329   # Extract the first word of "$ac_prog", so it can be a program name with args.
17330 set dummy $ac_prog; ac_word=$2
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 $as_echo_n "checking for $ac_word... " >&6; }
17333 if ${ac_cv_path_READELF+:} false; then :
17334   $as_echo_n "(cached) " >&6
17335 else
17336   case $READELF in
17337   [\\/]* | ?:[\\/]*)
17338   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17339   ;;
17340   *)
17341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 for as_dir in $PATH
17343 do
17344   IFS=$as_save_IFS
17345   test -z "$as_dir" && as_dir=.
17346     for ac_exec_ext in '' $ac_executable_extensions; do
17347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17348     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17350     break 2
17351   fi
17352 done
17353   done
17354 IFS=$as_save_IFS
17355 
17356   ;;
17357 esac
17358 fi
17359 READELF=$ac_cv_path_READELF
17360 if test -n "$READELF"; then
17361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17362 $as_echo "$READELF" >&6; }
17363 else
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17366 fi
17367 
17368 
17369   test -n "$READELF" && break
17370 done
17371 
17372     else
17373       # If it succeeded, then it was overridden by the user. We will use it
17374       # for the tool.
17375 
17376       # First remove it from the list of overridden variables, so we can test
17377       # for unknown variables in the end.
17378       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17379 
17380       # Check if the provided tool contains a complete path.
17381       tool_specified="$READELF"
17382       tool_basename="${tool_specified##*/}"
17383       if test "x$tool_basename" = "x$tool_specified"; then
17384         # A command without a complete path is provided, search $PATH.
17385         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17386 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17387         # Extract the first word of "$tool_basename", so it can be a program name with args.
17388 set dummy $tool_basename; ac_word=$2
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17390 $as_echo_n "checking for $ac_word... " >&6; }
17391 if ${ac_cv_path_READELF+:} false; then :
17392   $as_echo_n "(cached) " >&6
17393 else
17394   case $READELF in
17395   [\\/]* | ?:[\\/]*)
17396   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17397   ;;
17398   *)
17399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17400 for as_dir in $PATH
17401 do
17402   IFS=$as_save_IFS
17403   test -z "$as_dir" && as_dir=.
17404     for ac_exec_ext in '' $ac_executable_extensions; do
17405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17406     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17408     break 2
17409   fi
17410 done
17411   done
17412 IFS=$as_save_IFS
17413 
17414   ;;
17415 esac
17416 fi
17417 READELF=$ac_cv_path_READELF
17418 if test -n "$READELF"; then
17419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17420 $as_echo "$READELF" >&6; }
17421 else
17422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17423 $as_echo "no" >&6; }
17424 fi
17425 
17426 
17427         if test "x$READELF" = x; then
17428           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17429         fi
17430       else
17431         # Otherwise we believe it is a complete path. Use it as it is.
17432         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17433 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17435 $as_echo_n "checking for READELF... " >&6; }
17436         if test ! -x "$tool_specified"; then
17437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17438 $as_echo "not found" >&6; }
17439           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17440         fi
17441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17442 $as_echo "$tool_specified" >&6; }
17443       fi
17444     fi
17445   fi
17446 
17447 
17448 
17449 
17450   # Publish this variable in the help.
17451 
17452 
17453   if test "x$HG" = x; then
17454     # The variable is not set by user, try to locate tool using the code snippet
17455     for ac_prog in hg
17456 do
17457   # Extract the first word of "$ac_prog", so it can be a program name with args.
17458 set dummy $ac_prog; ac_word=$2
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17460 $as_echo_n "checking for $ac_word... " >&6; }
17461 if ${ac_cv_path_HG+:} false; then :
17462   $as_echo_n "(cached) " >&6
17463 else
17464   case $HG in
17465   [\\/]* | ?:[\\/]*)
17466   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17467   ;;
17468   *)
17469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17470 for as_dir in $PATH
17471 do
17472   IFS=$as_save_IFS
17473   test -z "$as_dir" && as_dir=.
17474     for ac_exec_ext in '' $ac_executable_extensions; do
17475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17476     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17478     break 2
17479   fi
17480 done
17481   done
17482 IFS=$as_save_IFS
17483 
17484   ;;
17485 esac
17486 fi
17487 HG=$ac_cv_path_HG
17488 if test -n "$HG"; then
17489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17490 $as_echo "$HG" >&6; }
17491 else
17492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17493 $as_echo "no" >&6; }
17494 fi
17495 
17496 
17497   test -n "$HG" && break
17498 done
17499 
17500   else
17501     # The variable is set, but is it from the command line or the environment?
17502 
17503     # Try to remove the string !HG! from our list.
17504     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17505     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17506       # If it failed, the variable was not from the command line. Ignore it,
17507       # but warn the user (except for BASH, which is always set by the calling BASH).
17508       if test "xHG" != xBASH; then
17509         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17510 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17511       fi
17512       # Try to locate tool using the code snippet
17513       for ac_prog in hg
17514 do
17515   # Extract the first word of "$ac_prog", so it can be a program name with args.
17516 set dummy $ac_prog; ac_word=$2
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17518 $as_echo_n "checking for $ac_word... " >&6; }
17519 if ${ac_cv_path_HG+:} false; then :
17520   $as_echo_n "(cached) " >&6
17521 else
17522   case $HG in
17523   [\\/]* | ?:[\\/]*)
17524   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17525   ;;
17526   *)
17527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17528 for as_dir in $PATH
17529 do
17530   IFS=$as_save_IFS
17531   test -z "$as_dir" && as_dir=.
17532     for ac_exec_ext in '' $ac_executable_extensions; do
17533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17534     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17536     break 2
17537   fi
17538 done
17539   done
17540 IFS=$as_save_IFS
17541 
17542   ;;
17543 esac
17544 fi
17545 HG=$ac_cv_path_HG
17546 if test -n "$HG"; then
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17548 $as_echo "$HG" >&6; }
17549 else
17550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17551 $as_echo "no" >&6; }
17552 fi
17553 
17554 
17555   test -n "$HG" && break
17556 done
17557 
17558     else
17559       # If it succeeded, then it was overridden by the user. We will use it
17560       # for the tool.
17561 
17562       # First remove it from the list of overridden variables, so we can test
17563       # for unknown variables in the end.
17564       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17565 
17566       # Check if the provided tool contains a complete path.
17567       tool_specified="$HG"
17568       tool_basename="${tool_specified##*/}"
17569       if test "x$tool_basename" = "x$tool_specified"; then
17570         # A command without a complete path is provided, search $PATH.
17571         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17572 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17573         # Extract the first word of "$tool_basename", so it can be a program name with args.
17574 set dummy $tool_basename; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_path_HG+:} false; then :
17578   $as_echo_n "(cached) " >&6
17579 else
17580   case $HG in
17581   [\\/]* | ?:[\\/]*)
17582   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17583   ;;
17584   *)
17585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17587 do
17588   IFS=$as_save_IFS
17589   test -z "$as_dir" && as_dir=.
17590     for ac_exec_ext in '' $ac_executable_extensions; do
17591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17592     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17594     break 2
17595   fi
17596 done
17597   done
17598 IFS=$as_save_IFS
17599 
17600   ;;
17601 esac
17602 fi
17603 HG=$ac_cv_path_HG
17604 if test -n "$HG"; then
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17606 $as_echo "$HG" >&6; }
17607 else
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17610 fi
17611 
17612 
17613         if test "x$HG" = x; then
17614           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17615         fi
17616       else
17617         # Otherwise we believe it is a complete path. Use it as it is.
17618         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17619 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17621 $as_echo_n "checking for HG... " >&6; }
17622         if test ! -x "$tool_specified"; then
17623           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17624 $as_echo "not found" >&6; }
17625           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17626         fi
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17628 $as_echo "$tool_specified" >&6; }
17629       fi
17630     fi
17631   fi
17632 
17633 
17634 
17635 
17636   # Publish this variable in the help.
17637 
17638 
17639   if test "x$STAT" = x; then
17640     # The variable is not set by user, try to locate tool using the code snippet
17641     for ac_prog in stat
17642 do
17643   # Extract the first word of "$ac_prog", so it can be a program name with args.
17644 set dummy $ac_prog; ac_word=$2
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17646 $as_echo_n "checking for $ac_word... " >&6; }
17647 if ${ac_cv_path_STAT+:} false; then :
17648   $as_echo_n "(cached) " >&6
17649 else
17650   case $STAT in
17651   [\\/]* | ?:[\\/]*)
17652   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17653   ;;
17654   *)
17655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17656 for as_dir in $PATH
17657 do
17658   IFS=$as_save_IFS
17659   test -z "$as_dir" && as_dir=.
17660     for ac_exec_ext in '' $ac_executable_extensions; do
17661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17662     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17664     break 2
17665   fi
17666 done
17667   done
17668 IFS=$as_save_IFS
17669 
17670   ;;
17671 esac
17672 fi
17673 STAT=$ac_cv_path_STAT
17674 if test -n "$STAT"; then
17675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17676 $as_echo "$STAT" >&6; }
17677 else
17678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679 $as_echo "no" >&6; }
17680 fi
17681 
17682 
17683   test -n "$STAT" && break
17684 done
17685 
17686   else
17687     # The variable is set, but is it from the command line or the environment?
17688 
17689     # Try to remove the string !STAT! from our list.
17690     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
17691     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17692       # If it failed, the variable was not from the command line. Ignore it,
17693       # but warn the user (except for BASH, which is always set by the calling BASH).
17694       if test "xSTAT" != xBASH; then
17695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
17696 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
17697       fi
17698       # Try to locate tool using the code snippet
17699       for ac_prog in stat
17700 do
17701   # Extract the first word of "$ac_prog", so it can be a program name with args.
17702 set dummy $ac_prog; ac_word=$2
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17704 $as_echo_n "checking for $ac_word... " >&6; }
17705 if ${ac_cv_path_STAT+:} false; then :
17706   $as_echo_n "(cached) " >&6
17707 else
17708   case $STAT in
17709   [\\/]* | ?:[\\/]*)
17710   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17711   ;;
17712   *)
17713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17714 for as_dir in $PATH
17715 do
17716   IFS=$as_save_IFS
17717   test -z "$as_dir" && as_dir=.
17718     for ac_exec_ext in '' $ac_executable_extensions; do
17719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17720     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17722     break 2
17723   fi
17724 done
17725   done
17726 IFS=$as_save_IFS
17727 
17728   ;;
17729 esac
17730 fi
17731 STAT=$ac_cv_path_STAT
17732 if test -n "$STAT"; then
17733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17734 $as_echo "$STAT" >&6; }
17735 else
17736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17737 $as_echo "no" >&6; }
17738 fi
17739 
17740 
17741   test -n "$STAT" && break
17742 done
17743 
17744     else
17745       # If it succeeded, then it was overridden by the user. We will use it
17746       # for the tool.
17747 
17748       # First remove it from the list of overridden variables, so we can test
17749       # for unknown variables in the end.
17750       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17751 
17752       # Check if the provided tool contains a complete path.
17753       tool_specified="$STAT"
17754       tool_basename="${tool_specified##*/}"
17755       if test "x$tool_basename" = "x$tool_specified"; then
17756         # A command without a complete path is provided, search $PATH.
17757         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
17758 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
17759         # Extract the first word of "$tool_basename", so it can be a program name with args.
17760 set dummy $tool_basename; ac_word=$2
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17762 $as_echo_n "checking for $ac_word... " >&6; }
17763 if ${ac_cv_path_STAT+:} false; then :
17764   $as_echo_n "(cached) " >&6
17765 else
17766   case $STAT in
17767   [\\/]* | ?:[\\/]*)
17768   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17769   ;;
17770   *)
17771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772 for as_dir in $PATH
17773 do
17774   IFS=$as_save_IFS
17775   test -z "$as_dir" && as_dir=.
17776     for ac_exec_ext in '' $ac_executable_extensions; do
17777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17778     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17780     break 2
17781   fi
17782 done
17783   done
17784 IFS=$as_save_IFS
17785 
17786   ;;
17787 esac
17788 fi
17789 STAT=$ac_cv_path_STAT
17790 if test -n "$STAT"; then
17791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17792 $as_echo "$STAT" >&6; }
17793 else
17794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17795 $as_echo "no" >&6; }
17796 fi
17797 
17798 
17799         if test "x$STAT" = x; then
17800           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17801         fi
17802       else
17803         # Otherwise we believe it is a complete path. Use it as it is.
17804         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
17805 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
17806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
17807 $as_echo_n "checking for STAT... " >&6; }
17808         if test ! -x "$tool_specified"; then
17809           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17810 $as_echo "not found" >&6; }
17811           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
17812         fi
17813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17814 $as_echo "$tool_specified" >&6; }
17815       fi
17816     fi
17817   fi
17818 
17819 
17820 
17821 
17822   # Publish this variable in the help.
17823 
17824 
17825   if test "x$TIME" = x; then
17826     # The variable is not set by user, try to locate tool using the code snippet
17827     for ac_prog in time
17828 do
17829   # Extract the first word of "$ac_prog", so it can be a program name with args.
17830 set dummy $ac_prog; ac_word=$2
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17832 $as_echo_n "checking for $ac_word... " >&6; }
17833 if ${ac_cv_path_TIME+:} false; then :
17834   $as_echo_n "(cached) " >&6
17835 else
17836   case $TIME in
17837   [\\/]* | ?:[\\/]*)
17838   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
17839   ;;
17840   *)
17841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17842 for as_dir in $PATH
17843 do
17844   IFS=$as_save_IFS
17845   test -z "$as_dir" && as_dir=.
17846     for ac_exec_ext in '' $ac_executable_extensions; do
17847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17848     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
17849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17850     break 2
17851   fi
17852 done
17853   done
17854 IFS=$as_save_IFS
17855 
17856   ;;
17857 esac
17858 fi
17859 TIME=$ac_cv_path_TIME
17860 if test -n "$TIME"; then
17861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
17862 $as_echo "$TIME" >&6; }
17863 else
17864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17866 fi
17867 
17868 
17869   test -n "$TIME" && break
17870 done
17871 
17872   else
17873     # The variable is set, but is it from the command line or the environment?
17874 
17875     # Try to remove the string !TIME! from our list.
17876     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
17877     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17878       # If it failed, the variable was not from the command line. Ignore it,
17879       # but warn the user (except for BASH, which is always set by the calling BASH).
17880       if test "xTIME" != xBASH; then
17881         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
17882 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
17883       fi
17884       # Try to locate tool using the code snippet
17885       for ac_prog in time
17886 do
17887   # Extract the first word of "$ac_prog", so it can be a program name with args.
17888 set dummy $ac_prog; ac_word=$2
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17890 $as_echo_n "checking for $ac_word... " >&6; }
17891 if ${ac_cv_path_TIME+:} false; then :
17892   $as_echo_n "(cached) " >&6
17893 else
17894   case $TIME in
17895   [\\/]* | ?:[\\/]*)
17896   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
17897   ;;
17898   *)
17899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17900 for as_dir in $PATH
17901 do
17902   IFS=$as_save_IFS
17903   test -z "$as_dir" && as_dir=.
17904     for ac_exec_ext in '' $ac_executable_extensions; do
17905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17906     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
17907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17908     break 2
17909   fi
17910 done
17911   done
17912 IFS=$as_save_IFS
17913 
17914   ;;
17915 esac
17916 fi
17917 TIME=$ac_cv_path_TIME
17918 if test -n "$TIME"; then
17919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
17920 $as_echo "$TIME" >&6; }
17921 else
17922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 $as_echo "no" >&6; }
17924 fi
17925 
17926 
17927   test -n "$TIME" && break
17928 done
17929 
17930     else
17931       # If it succeeded, then it was overridden by the user. We will use it
17932       # for the tool.
17933 
17934       # First remove it from the list of overridden variables, so we can test
17935       # for unknown variables in the end.
17936       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17937 
17938       # Check if the provided tool contains a complete path.
17939       tool_specified="$TIME"
17940       tool_basename="${tool_specified##*/}"
17941       if test "x$tool_basename" = "x$tool_specified"; then
17942         # A command without a complete path is provided, search $PATH.
17943         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
17944 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
17945         # Extract the first word of "$tool_basename", so it can be a program name with args.
17946 set dummy $tool_basename; ac_word=$2
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17948 $as_echo_n "checking for $ac_word... " >&6; }
17949 if ${ac_cv_path_TIME+:} false; then :
17950   $as_echo_n "(cached) " >&6
17951 else
17952   case $TIME in
17953   [\\/]* | ?:[\\/]*)
17954   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
17955   ;;
17956   *)
17957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958 for as_dir in $PATH
17959 do
17960   IFS=$as_save_IFS
17961   test -z "$as_dir" && as_dir=.
17962     for ac_exec_ext in '' $ac_executable_extensions; do
17963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17964     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
17965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17966     break 2
17967   fi
17968 done
17969   done
17970 IFS=$as_save_IFS
17971 
17972   ;;
17973 esac
17974 fi
17975 TIME=$ac_cv_path_TIME
17976 if test -n "$TIME"; then
17977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
17978 $as_echo "$TIME" >&6; }
17979 else
17980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981 $as_echo "no" >&6; }
17982 fi
17983 
17984 
17985         if test "x$TIME" = x; then
17986           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17987         fi
17988       else
17989         # Otherwise we believe it is a complete path. Use it as it is.
17990         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
17991 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
17992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
17993 $as_echo_n "checking for TIME... " >&6; }
17994         if test ! -x "$tool_specified"; then
17995           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17996 $as_echo "not found" >&6; }
17997           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
17998         fi
17999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18000 $as_echo "$tool_specified" >&6; }
18001       fi
18002     fi
18003   fi
18004 
18005 
18006   # Check if it's GNU time
18007   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18008   if test "x$IS_GNU_TIME" != x; then
18009     IS_GNU_TIME=yes
18010   else
18011     IS_GNU_TIME=no
18012   fi
18013 
18014 
18015   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18016 
18017 
18018 
18019   # Publish this variable in the help.
18020 
18021 
18022   if test "x$COMM" = x; then
18023     # The variable is not set by user, try to locate tool using the code snippet
18024     for ac_prog in comm
18025 do
18026   # Extract the first word of "$ac_prog", so it can be a program name with args.
18027 set dummy $ac_prog; ac_word=$2
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18029 $as_echo_n "checking for $ac_word... " >&6; }
18030 if ${ac_cv_path_COMM+:} false; then :
18031   $as_echo_n "(cached) " >&6
18032 else
18033   case $COMM in
18034   [\\/]* | ?:[\\/]*)
18035   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18036   ;;
18037   *)
18038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18039 for as_dir in $PATH
18040 do
18041   IFS=$as_save_IFS
18042   test -z "$as_dir" && as_dir=.
18043     for ac_exec_ext in '' $ac_executable_extensions; do
18044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18045     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18047     break 2
18048   fi
18049 done
18050   done
18051 IFS=$as_save_IFS
18052 
18053   ;;
18054 esac
18055 fi
18056 COMM=$ac_cv_path_COMM
18057 if test -n "$COMM"; then
18058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18059 $as_echo "$COMM" >&6; }
18060 else
18061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062 $as_echo "no" >&6; }
18063 fi
18064 
18065 
18066   test -n "$COMM" && break
18067 done
18068 
18069   else
18070     # The variable is set, but is it from the command line or the environment?
18071 
18072     # Try to remove the string !COMM! from our list.
18073     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18074     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18075       # If it failed, the variable was not from the command line. Ignore it,
18076       # but warn the user (except for BASH, which is always set by the calling BASH).
18077       if test "xCOMM" != xBASH; then
18078         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18079 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18080       fi
18081       # Try to locate tool using the code snippet
18082       for ac_prog in comm
18083 do
18084   # Extract the first word of "$ac_prog", so it can be a program name with args.
18085 set dummy $ac_prog; ac_word=$2
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18087 $as_echo_n "checking for $ac_word... " >&6; }
18088 if ${ac_cv_path_COMM+:} false; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   case $COMM in
18092   [\\/]* | ?:[\\/]*)
18093   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18094   ;;
18095   *)
18096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18098 do
18099   IFS=$as_save_IFS
18100   test -z "$as_dir" && as_dir=.
18101     for ac_exec_ext in '' $ac_executable_extensions; do
18102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18105     break 2
18106   fi
18107 done
18108   done
18109 IFS=$as_save_IFS
18110 
18111   ;;
18112 esac
18113 fi
18114 COMM=$ac_cv_path_COMM
18115 if test -n "$COMM"; then
18116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18117 $as_echo "$COMM" >&6; }
18118 else
18119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18120 $as_echo "no" >&6; }
18121 fi
18122 
18123 
18124   test -n "$COMM" && break
18125 done
18126 
18127     else
18128       # If it succeeded, then it was overridden by the user. We will use it
18129       # for the tool.
18130 
18131       # First remove it from the list of overridden variables, so we can test
18132       # for unknown variables in the end.
18133       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18134 
18135       # Check if the provided tool contains a complete path.
18136       tool_specified="$COMM"
18137       tool_basename="${tool_specified##*/}"
18138       if test "x$tool_basename" = "x$tool_specified"; then
18139         # A command without a complete path is provided, search $PATH.
18140         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18141 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18142         # Extract the first word of "$tool_basename", so it can be a program name with args.
18143 set dummy $tool_basename; ac_word=$2
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18145 $as_echo_n "checking for $ac_word... " >&6; }
18146 if ${ac_cv_path_COMM+:} false; then :
18147   $as_echo_n "(cached) " >&6
18148 else
18149   case $COMM in
18150   [\\/]* | ?:[\\/]*)
18151   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18152   ;;
18153   *)
18154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18155 for as_dir in $PATH
18156 do
18157   IFS=$as_save_IFS
18158   test -z "$as_dir" && as_dir=.
18159     for ac_exec_ext in '' $ac_executable_extensions; do
18160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18161     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18163     break 2
18164   fi
18165 done
18166   done
18167 IFS=$as_save_IFS
18168 
18169   ;;
18170 esac
18171 fi
18172 COMM=$ac_cv_path_COMM
18173 if test -n "$COMM"; then
18174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18175 $as_echo "$COMM" >&6; }
18176 else
18177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 $as_echo "no" >&6; }
18179 fi
18180 
18181 
18182         if test "x$COMM" = x; then
18183           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18184         fi
18185       else
18186         # Otherwise we believe it is a complete path. Use it as it is.
18187         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18188 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18189         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18190 $as_echo_n "checking for COMM... " >&6; }
18191         if test ! -x "$tool_specified"; then
18192           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18193 $as_echo "not found" >&6; }
18194           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18195         fi
18196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18197 $as_echo "$tool_specified" >&6; }
18198       fi
18199     fi
18200   fi
18201 
18202 
18203 
18204   if test "x$COMM" = x; then
18205     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18206   fi
18207 
18208 
18209   fi
18210 
18211   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18212 
18213 
18214 
18215   # Publish this variable in the help.
18216 
18217 
18218   if test "x$DSYMUTIL" = x; then
18219     # The variable is not set by user, try to locate tool using the code snippet
18220     for ac_prog in dsymutil
18221 do
18222   # Extract the first word of "$ac_prog", so it can be a program name with args.
18223 set dummy $ac_prog; ac_word=$2
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18225 $as_echo_n "checking for $ac_word... " >&6; }
18226 if ${ac_cv_path_DSYMUTIL+:} false; then :
18227   $as_echo_n "(cached) " >&6
18228 else
18229   case $DSYMUTIL in
18230   [\\/]* | ?:[\\/]*)
18231   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18232   ;;
18233   *)
18234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18235 for as_dir in $PATH
18236 do
18237   IFS=$as_save_IFS
18238   test -z "$as_dir" && as_dir=.
18239     for ac_exec_ext in '' $ac_executable_extensions; do
18240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18241     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18243     break 2
18244   fi
18245 done
18246   done
18247 IFS=$as_save_IFS
18248 
18249   ;;
18250 esac
18251 fi
18252 DSYMUTIL=$ac_cv_path_DSYMUTIL
18253 if test -n "$DSYMUTIL"; then
18254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18255 $as_echo "$DSYMUTIL" >&6; }
18256 else
18257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18258 $as_echo "no" >&6; }
18259 fi
18260 
18261 
18262   test -n "$DSYMUTIL" && break
18263 done
18264 
18265   else
18266     # The variable is set, but is it from the command line or the environment?
18267 
18268     # Try to remove the string !DSYMUTIL! from our list.
18269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18271       # If it failed, the variable was not from the command line. Ignore it,
18272       # but warn the user (except for BASH, which is always set by the calling BASH).
18273       if test "xDSYMUTIL" != xBASH; then
18274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18275 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18276       fi
18277       # Try to locate tool using the code snippet
18278       for ac_prog in dsymutil
18279 do
18280   # Extract the first word of "$ac_prog", so it can be a program name with args.
18281 set dummy $ac_prog; ac_word=$2
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18283 $as_echo_n "checking for $ac_word... " >&6; }
18284 if ${ac_cv_path_DSYMUTIL+:} false; then :
18285   $as_echo_n "(cached) " >&6
18286 else
18287   case $DSYMUTIL in
18288   [\\/]* | ?:[\\/]*)
18289   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18290   ;;
18291   *)
18292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18293 for as_dir in $PATH
18294 do
18295   IFS=$as_save_IFS
18296   test -z "$as_dir" && as_dir=.
18297     for ac_exec_ext in '' $ac_executable_extensions; do
18298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18299     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18301     break 2
18302   fi
18303 done
18304   done
18305 IFS=$as_save_IFS
18306 
18307   ;;
18308 esac
18309 fi
18310 DSYMUTIL=$ac_cv_path_DSYMUTIL
18311 if test -n "$DSYMUTIL"; then
18312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18313 $as_echo "$DSYMUTIL" >&6; }
18314 else
18315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18316 $as_echo "no" >&6; }
18317 fi
18318 
18319 
18320   test -n "$DSYMUTIL" && break
18321 done
18322 
18323     else
18324       # If it succeeded, then it was overridden by the user. We will use it
18325       # for the tool.
18326 
18327       # First remove it from the list of overridden variables, so we can test
18328       # for unknown variables in the end.
18329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18330 
18331       # Check if the provided tool contains a complete path.
18332       tool_specified="$DSYMUTIL"
18333       tool_basename="${tool_specified##*/}"
18334       if test "x$tool_basename" = "x$tool_specified"; then
18335         # A command without a complete path is provided, search $PATH.
18336         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18337 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18338         # Extract the first word of "$tool_basename", so it can be a program name with args.
18339 set dummy $tool_basename; ac_word=$2
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18341 $as_echo_n "checking for $ac_word... " >&6; }
18342 if ${ac_cv_path_DSYMUTIL+:} false; then :
18343   $as_echo_n "(cached) " >&6
18344 else
18345   case $DSYMUTIL in
18346   [\\/]* | ?:[\\/]*)
18347   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18348   ;;
18349   *)
18350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18351 for as_dir in $PATH
18352 do
18353   IFS=$as_save_IFS
18354   test -z "$as_dir" && as_dir=.
18355     for ac_exec_ext in '' $ac_executable_extensions; do
18356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18357     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18359     break 2
18360   fi
18361 done
18362   done
18363 IFS=$as_save_IFS
18364 
18365   ;;
18366 esac
18367 fi
18368 DSYMUTIL=$ac_cv_path_DSYMUTIL
18369 if test -n "$DSYMUTIL"; then
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18371 $as_echo "$DSYMUTIL" >&6; }
18372 else
18373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374 $as_echo "no" >&6; }
18375 fi
18376 
18377 
18378         if test "x$DSYMUTIL" = x; then
18379           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18380         fi
18381       else
18382         # Otherwise we believe it is a complete path. Use it as it is.
18383         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18384 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18386 $as_echo_n "checking for DSYMUTIL... " >&6; }
18387         if test ! -x "$tool_specified"; then
18388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18389 $as_echo "not found" >&6; }
18390           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18391         fi
18392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18393 $as_echo "$tool_specified" >&6; }
18394       fi
18395     fi
18396   fi
18397 
18398 
18399 
18400   if test "x$DSYMUTIL" = x; then
18401     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18402   fi
18403 
18404 
18405 
18406 
18407 
18408   # Publish this variable in the help.
18409 
18410 
18411   if test "x$XATTR" = x; then
18412     # The variable is not set by user, try to locate tool using the code snippet
18413     for ac_prog in xattr
18414 do
18415   # Extract the first word of "$ac_prog", so it can be a program name with args.
18416 set dummy $ac_prog; ac_word=$2
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18418 $as_echo_n "checking for $ac_word... " >&6; }
18419 if ${ac_cv_path_XATTR+:} false; then :
18420   $as_echo_n "(cached) " >&6
18421 else
18422   case $XATTR in
18423   [\\/]* | ?:[\\/]*)
18424   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18425   ;;
18426   *)
18427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18428 for as_dir in $PATH
18429 do
18430   IFS=$as_save_IFS
18431   test -z "$as_dir" && as_dir=.
18432     for ac_exec_ext in '' $ac_executable_extensions; do
18433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18434     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18436     break 2
18437   fi
18438 done
18439   done
18440 IFS=$as_save_IFS
18441 
18442   ;;
18443 esac
18444 fi
18445 XATTR=$ac_cv_path_XATTR
18446 if test -n "$XATTR"; then
18447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18448 $as_echo "$XATTR" >&6; }
18449 else
18450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451 $as_echo "no" >&6; }
18452 fi
18453 
18454 
18455   test -n "$XATTR" && break
18456 done
18457 
18458   else
18459     # The variable is set, but is it from the command line or the environment?
18460 
18461     # Try to remove the string !XATTR! from our list.
18462     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18463     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18464       # If it failed, the variable was not from the command line. Ignore it,
18465       # but warn the user (except for BASH, which is always set by the calling BASH).
18466       if test "xXATTR" != xBASH; then
18467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18468 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18469       fi
18470       # Try to locate tool using the code snippet
18471       for ac_prog in xattr
18472 do
18473   # Extract the first word of "$ac_prog", so it can be a program name with args.
18474 set dummy $ac_prog; ac_word=$2
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18476 $as_echo_n "checking for $ac_word... " >&6; }
18477 if ${ac_cv_path_XATTR+:} false; then :
18478   $as_echo_n "(cached) " >&6
18479 else
18480   case $XATTR in
18481   [\\/]* | ?:[\\/]*)
18482   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18483   ;;
18484   *)
18485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486 for as_dir in $PATH
18487 do
18488   IFS=$as_save_IFS
18489   test -z "$as_dir" && as_dir=.
18490     for ac_exec_ext in '' $ac_executable_extensions; do
18491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18492     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18494     break 2
18495   fi
18496 done
18497   done
18498 IFS=$as_save_IFS
18499 
18500   ;;
18501 esac
18502 fi
18503 XATTR=$ac_cv_path_XATTR
18504 if test -n "$XATTR"; then
18505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18506 $as_echo "$XATTR" >&6; }
18507 else
18508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510 fi
18511 
18512 
18513   test -n "$XATTR" && break
18514 done
18515 
18516     else
18517       # If it succeeded, then it was overridden by the user. We will use it
18518       # for the tool.
18519 
18520       # First remove it from the list of overridden variables, so we can test
18521       # for unknown variables in the end.
18522       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18523 
18524       # Check if the provided tool contains a complete path.
18525       tool_specified="$XATTR"
18526       tool_basename="${tool_specified##*/}"
18527       if test "x$tool_basename" = "x$tool_specified"; then
18528         # A command without a complete path is provided, search $PATH.
18529         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18530 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18531         # Extract the first word of "$tool_basename", so it can be a program name with args.
18532 set dummy $tool_basename; ac_word=$2
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18534 $as_echo_n "checking for $ac_word... " >&6; }
18535 if ${ac_cv_path_XATTR+:} false; then :
18536   $as_echo_n "(cached) " >&6
18537 else
18538   case $XATTR in
18539   [\\/]* | ?:[\\/]*)
18540   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18541   ;;
18542   *)
18543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544 for as_dir in $PATH
18545 do
18546   IFS=$as_save_IFS
18547   test -z "$as_dir" && as_dir=.
18548     for ac_exec_ext in '' $ac_executable_extensions; do
18549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18550     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18552     break 2
18553   fi
18554 done
18555   done
18556 IFS=$as_save_IFS
18557 
18558   ;;
18559 esac
18560 fi
18561 XATTR=$ac_cv_path_XATTR
18562 if test -n "$XATTR"; then
18563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18564 $as_echo "$XATTR" >&6; }
18565 else
18566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18568 fi
18569 
18570 
18571         if test "x$XATTR" = x; then
18572           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18573         fi
18574       else
18575         # Otherwise we believe it is a complete path. Use it as it is.
18576         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18577 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18579 $as_echo_n "checking for XATTR... " >&6; }
18580         if test ! -x "$tool_specified"; then
18581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18582 $as_echo "not found" >&6; }
18583           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18584         fi
18585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18586 $as_echo "$tool_specified" >&6; }
18587       fi
18588     fi
18589   fi
18590 
18591 
18592 
18593   if test "x$XATTR" = x; then
18594     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18595   fi
18596 
18597 
18598 
18599 
18600   # Publish this variable in the help.
18601 
18602 
18603   if test "x$CODESIGN" = x; then
18604     # The variable is not set by user, try to locate tool using the code snippet
18605     for ac_prog in codesign
18606 do
18607   # Extract the first word of "$ac_prog", so it can be a program name with args.
18608 set dummy $ac_prog; ac_word=$2
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18610 $as_echo_n "checking for $ac_word... " >&6; }
18611 if ${ac_cv_path_CODESIGN+:} false; then :
18612   $as_echo_n "(cached) " >&6
18613 else
18614   case $CODESIGN in
18615   [\\/]* | ?:[\\/]*)
18616   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18617   ;;
18618   *)
18619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in $PATH
18621 do
18622   IFS=$as_save_IFS
18623   test -z "$as_dir" && as_dir=.
18624     for ac_exec_ext in '' $ac_executable_extensions; do
18625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18626     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18628     break 2
18629   fi
18630 done
18631   done
18632 IFS=$as_save_IFS
18633 
18634   ;;
18635 esac
18636 fi
18637 CODESIGN=$ac_cv_path_CODESIGN
18638 if test -n "$CODESIGN"; then
18639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18640 $as_echo "$CODESIGN" >&6; }
18641 else
18642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643 $as_echo "no" >&6; }
18644 fi
18645 
18646 
18647   test -n "$CODESIGN" && break
18648 done
18649 
18650   else
18651     # The variable is set, but is it from the command line or the environment?
18652 
18653     # Try to remove the string !CODESIGN! from our list.
18654     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18655     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18656       # If it failed, the variable was not from the command line. Ignore it,
18657       # but warn the user (except for BASH, which is always set by the calling BASH).
18658       if test "xCODESIGN" != xBASH; then
18659         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18660 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18661       fi
18662       # Try to locate tool using the code snippet
18663       for ac_prog in codesign
18664 do
18665   # Extract the first word of "$ac_prog", so it can be a program name with args.
18666 set dummy $ac_prog; ac_word=$2
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18668 $as_echo_n "checking for $ac_word... " >&6; }
18669 if ${ac_cv_path_CODESIGN+:} false; then :
18670   $as_echo_n "(cached) " >&6
18671 else
18672   case $CODESIGN in
18673   [\\/]* | ?:[\\/]*)
18674   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18675   ;;
18676   *)
18677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678 for as_dir in $PATH
18679 do
18680   IFS=$as_save_IFS
18681   test -z "$as_dir" && as_dir=.
18682     for ac_exec_ext in '' $ac_executable_extensions; do
18683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18684     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18686     break 2
18687   fi
18688 done
18689   done
18690 IFS=$as_save_IFS
18691 
18692   ;;
18693 esac
18694 fi
18695 CODESIGN=$ac_cv_path_CODESIGN
18696 if test -n "$CODESIGN"; then
18697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18698 $as_echo "$CODESIGN" >&6; }
18699 else
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18701 $as_echo "no" >&6; }
18702 fi
18703 
18704 
18705   test -n "$CODESIGN" && break
18706 done
18707 
18708     else
18709       # If it succeeded, then it was overridden by the user. We will use it
18710       # for the tool.
18711 
18712       # First remove it from the list of overridden variables, so we can test
18713       # for unknown variables in the end.
18714       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18715 
18716       # Check if the provided tool contains a complete path.
18717       tool_specified="$CODESIGN"
18718       tool_basename="${tool_specified##*/}"
18719       if test "x$tool_basename" = "x$tool_specified"; then
18720         # A command without a complete path is provided, search $PATH.
18721         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
18722 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
18723         # Extract the first word of "$tool_basename", so it can be a program name with args.
18724 set dummy $tool_basename; ac_word=$2
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18726 $as_echo_n "checking for $ac_word... " >&6; }
18727 if ${ac_cv_path_CODESIGN+:} false; then :
18728   $as_echo_n "(cached) " >&6
18729 else
18730   case $CODESIGN in
18731   [\\/]* | ?:[\\/]*)
18732   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18733   ;;
18734   *)
18735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18736 for as_dir in $PATH
18737 do
18738   IFS=$as_save_IFS
18739   test -z "$as_dir" && as_dir=.
18740     for ac_exec_ext in '' $ac_executable_extensions; do
18741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18742     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18744     break 2
18745   fi
18746 done
18747   done
18748 IFS=$as_save_IFS
18749 
18750   ;;
18751 esac
18752 fi
18753 CODESIGN=$ac_cv_path_CODESIGN
18754 if test -n "$CODESIGN"; then
18755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18756 $as_echo "$CODESIGN" >&6; }
18757 else
18758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18759 $as_echo "no" >&6; }
18760 fi
18761 
18762 
18763         if test "x$CODESIGN" = x; then
18764           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18765         fi
18766       else
18767         # Otherwise we believe it is a complete path. Use it as it is.
18768         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
18769 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
18771 $as_echo_n "checking for CODESIGN... " >&6; }
18772         if test ! -x "$tool_specified"; then
18773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18774 $as_echo "not found" >&6; }
18775           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
18776         fi
18777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18778 $as_echo "$tool_specified" >&6; }
18779       fi
18780     fi
18781   fi
18782 
18783 
18784     if test "x$CODESIGN" != "x"; then
18785       # Verify that the openjdk_codesign certificate is present
18786       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
18787 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
18788       rm -f codesign-testfile
18789       touch codesign-testfile
18790       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
18791       rm -f codesign-testfile
18792       if test "x$CODESIGN" = x; then
18793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18795       else
18796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18797 $as_echo "yes" >&6; }
18798       fi
18799     fi
18800   fi
18801 
18802 
18803 # Check if pkg-config is available.
18804 
18805 
18806 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18807         if test -n "$ac_tool_prefix"; then
18808   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18809 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18811 $as_echo_n "checking for $ac_word... " >&6; }
18812 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18813   $as_echo_n "(cached) " >&6
18814 else
18815   case $PKG_CONFIG in
18816   [\\/]* | ?:[\\/]*)
18817   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18818   ;;
18819   *)
18820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18821 for as_dir in $PATH
18822 do
18823   IFS=$as_save_IFS
18824   test -z "$as_dir" && as_dir=.
18825     for ac_exec_ext in '' $ac_executable_extensions; do
18826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18827     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18829     break 2
18830   fi
18831 done
18832   done
18833 IFS=$as_save_IFS
18834 
18835   ;;
18836 esac
18837 fi
18838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18839 if test -n "$PKG_CONFIG"; then
18840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18841 $as_echo "$PKG_CONFIG" >&6; }
18842 else
18843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18844 $as_echo "no" >&6; }
18845 fi
18846 
18847 
18848 fi
18849 if test -z "$ac_cv_path_PKG_CONFIG"; then
18850   ac_pt_PKG_CONFIG=$PKG_CONFIG
18851   # Extract the first word of "pkg-config", so it can be a program name with args.
18852 set dummy pkg-config; ac_word=$2
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854 $as_echo_n "checking for $ac_word... " >&6; }
18855 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18856   $as_echo_n "(cached) " >&6
18857 else
18858   case $ac_pt_PKG_CONFIG in
18859   [\\/]* | ?:[\\/]*)
18860   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18861   ;;
18862   *)
18863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18864 for as_dir in $PATH
18865 do
18866   IFS=$as_save_IFS
18867   test -z "$as_dir" && as_dir=.
18868     for ac_exec_ext in '' $ac_executable_extensions; do
18869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18870     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18872     break 2
18873   fi
18874 done
18875   done
18876 IFS=$as_save_IFS
18877 
18878   ;;
18879 esac
18880 fi
18881 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18882 if test -n "$ac_pt_PKG_CONFIG"; then
18883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18884 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18885 else
18886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18887 $as_echo "no" >&6; }
18888 fi
18889 
18890   if test "x$ac_pt_PKG_CONFIG" = x; then
18891     PKG_CONFIG=""
18892   else
18893     case $cross_compiling:$ac_tool_warned in
18894 yes:)
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18897 ac_tool_warned=yes ;;
18898 esac
18899     PKG_CONFIG=$ac_pt_PKG_CONFIG
18900   fi
18901 else
18902   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18903 fi
18904 
18905 fi
18906 if test -n "$PKG_CONFIG"; then
18907         _pkg_min_version=0.9.0
18908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18909 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18910         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18911                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18912 $as_echo "yes" >&6; }
18913         else
18914                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915 $as_echo "no" >&6; }
18916                 PKG_CONFIG=""
18917         fi
18918 
18919 fi
18920 
18921 # After basic tools have been setup, we can check build os specific details.
18922 
18923   ###############################################################################
18924 
18925   # Note that this is the build platform OS version!
18926 
18927   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
18928   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
18929   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
18930   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
18931 
18932 
18933 
18934 
18935 
18936 # Setup builddeps, for automatic downloading of tools we need.
18937 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
18938 # boot-jdk setup, but we need to have basic tools setup first.
18939 
18940 
18941 # Check whether --with-builddeps-conf was given.
18942 if test "${with_builddeps_conf+set}" = set; then :
18943   withval=$with_builddeps_conf;
18944 fi
18945 
18946 
18947 
18948 # Check whether --with-builddeps-server was given.
18949 if test "${with_builddeps_server+set}" = set; then :
18950   withval=$with_builddeps_server;
18951 fi
18952 
18953 
18954 
18955 # Check whether --with-builddeps-dir was given.
18956 if test "${with_builddeps_dir+set}" = set; then :
18957   withval=$with_builddeps_dir;
18958 else
18959   with_builddeps_dir=/localhome/builddeps
18960 fi
18961 
18962 
18963 
18964 # Check whether --with-builddeps-group was given.
18965 if test "${with_builddeps_group+set}" = set; then :
18966   withval=$with_builddeps_group;
18967 fi
18968 
18969 
18970 
18971 
18972   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
18973     if test "x$with_builddeps_conf" != x; then
18974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
18975 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
18976       builddepsfile=$with_builddeps_conf
18977       if test -s $builddepsfile; then
18978         . $builddepsfile
18979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
18980 $as_echo "loaded!" >&6; }
18981       else
18982         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
18983       fi
18984     else
18985       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
18986 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
18987       builddepsfile=`mktemp`
18988       touch $builddepsfile
18989       # Put all found confs into a single file.
18990       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
18991       # Source the file to acquire the variables
18992       if test -s $builddepsfile; then
18993         . $builddepsfile
18994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
18995 $as_echo "found at least one!" >&6; }
18996       else
18997         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
18998       fi
18999     fi
19000     # Create build and target names that use _ instead of "-" and ".".
19001     # This is necessary to use them in variable names.
19002     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19003     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19004     # Extract rewrite information for build and target
19005     eval rewritten_build=\${REWRITE_${build_var}}
19006     if test "x$rewritten_build" = x; then
19007       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19008       echo Build stays the same $rewritten_build
19009     else
19010       echo Rewriting build for builddeps into $rewritten_build
19011     fi
19012     eval rewritten_target=\${REWRITE_${target_var}}
19013     if test "x$rewritten_target" = x; then
19014       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19015       echo Target stays the same $rewritten_target
19016     else
19017       echo Rewriting target for builddeps into $rewritten_target
19018     fi
19019     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19020     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19021   fi
19022   for ac_prog in 7z unzip
19023 do
19024   # Extract the first word of "$ac_prog", so it can be a program name with args.
19025 set dummy $ac_prog; ac_word=$2
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19027 $as_echo_n "checking for $ac_word... " >&6; }
19028 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19029   $as_echo_n "(cached) " >&6
19030 else
19031   if test -n "$BDEPS_UNZIP"; then
19032   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19033 else
19034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $PATH
19036 do
19037   IFS=$as_save_IFS
19038   test -z "$as_dir" && as_dir=.
19039     for ac_exec_ext in '' $ac_executable_extensions; do
19040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19041     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19043     break 2
19044   fi
19045 done
19046   done
19047 IFS=$as_save_IFS
19048 
19049 fi
19050 fi
19051 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19052 if test -n "$BDEPS_UNZIP"; then
19053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19054 $as_echo "$BDEPS_UNZIP" >&6; }
19055 else
19056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19057 $as_echo "no" >&6; }
19058 fi
19059 
19060 
19061   test -n "$BDEPS_UNZIP" && break
19062 done
19063 
19064   if test "x$BDEPS_UNZIP" = x7z; then
19065     BDEPS_UNZIP="7z x"
19066   fi
19067 
19068   for ac_prog in wget lftp ftp
19069 do
19070   # Extract the first word of "$ac_prog", so it can be a program name with args.
19071 set dummy $ac_prog; ac_word=$2
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19073 $as_echo_n "checking for $ac_word... " >&6; }
19074 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19075   $as_echo_n "(cached) " >&6
19076 else
19077   if test -n "$BDEPS_FTP"; then
19078   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19079 else
19080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19081 for as_dir in $PATH
19082 do
19083   IFS=$as_save_IFS
19084   test -z "$as_dir" && as_dir=.
19085     for ac_exec_ext in '' $ac_executable_extensions; do
19086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19087     ac_cv_prog_BDEPS_FTP="$ac_prog"
19088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19089     break 2
19090   fi
19091 done
19092   done
19093 IFS=$as_save_IFS
19094 
19095 fi
19096 fi
19097 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19098 if test -n "$BDEPS_FTP"; then
19099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19100 $as_echo "$BDEPS_FTP" >&6; }
19101 else
19102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19104 fi
19105 
19106 
19107   test -n "$BDEPS_FTP" && break
19108 done
19109 
19110 
19111 
19112 ###############################################################################
19113 #
19114 # Determine OpenJDK variants, options and version numbers.
19115 #
19116 ###############################################################################
19117 
19118 # We need build & target for this.
19119 
19120 
19121   ###############################################################################
19122   #
19123   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19124   # We always build headless support.
19125   #
19126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19127 $as_echo_n "checking headful support... " >&6; }
19128   # Check whether --enable-headful was given.
19129 if test "${enable_headful+set}" = set; then :
19130   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19131 else
19132   SUPPORT_HEADFUL=yes
19133 fi
19134 
19135 
19136   SUPPORT_HEADLESS=yes
19137   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19138 
19139   if test "x$SUPPORT_HEADFUL" = xyes; then
19140     # We are building both headful and headless.
19141     headful_msg="include support for both headful and headless"
19142   fi
19143 
19144   if test "x$SUPPORT_HEADFUL" = xno; then
19145     # Thus we are building headless only.
19146     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19147     headful_msg="headless only"
19148   fi
19149 
19150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19151 $as_echo "$headful_msg" >&6; }
19152 
19153 
19154 
19155 
19156 
19157   # Control wether Hotspot runs Queens test after build.
19158   # Check whether --enable-hotspot-test-in-build was given.
19159 if test "${enable_hotspot_test_in_build+set}" = set; then :
19160   enableval=$enable_hotspot_test_in_build;
19161 else
19162   enable_hotspot_test_in_build=no
19163 fi
19164 
19165   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19166     TEST_IN_BUILD=true
19167   else
19168     TEST_IN_BUILD=false
19169   fi
19170 
19171 
19172   ###############################################################################
19173   #
19174   # Choose cacerts source file
19175   #
19176 
19177 # Check whether --with-cacerts-file was given.
19178 if test "${with_cacerts_file+set}" = set; then :
19179   withval=$with_cacerts_file;
19180 fi
19181 
19182   if test "x$with_cacerts_file" != x; then
19183     CACERTS_FILE=$with_cacerts_file
19184   else
19185     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19186   fi
19187 
19188 
19189   ###############################################################################
19190   #
19191   # Enable or disable unlimited crypto
19192   #
19193   # Check whether --enable-unlimited-crypto was given.
19194 if test "${enable_unlimited_crypto+set}" = set; then :
19195   enableval=$enable_unlimited_crypto;
19196 else
19197   enable_unlimited_crypto=no
19198 fi
19199 
19200   if test "x$enable_unlimited_crypto" = "xyes"; then
19201     UNLIMITED_CRYPTO=true
19202   else
19203     UNLIMITED_CRYPTO=false
19204   fi
19205 
19206 
19207   ###############################################################################
19208   #
19209   # Enable or disable the elliptic curve crypto implementation
19210   #
19211 
19212 
19213   ###############################################################################
19214   #
19215   # Compress jars
19216   #
19217   COMPRESS_JARS=false
19218 
19219 
19220 
19221 
19222   # Source the version numbers
19223   . $AUTOCONF_DIR/version-numbers
19224 
19225   # Get the settings from parameters
19226 
19227 # Check whether --with-milestone was given.
19228 if test "${with_milestone+set}" = set; then :
19229   withval=$with_milestone;
19230 fi
19231 
19232   if test "x$with_milestone" = xyes; then
19233     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19234   elif test "x$with_milestone" != x; then
19235     MILESTONE="$with_milestone"
19236   fi
19237   if test "x$MILESTONE" = x; then
19238     MILESTONE=internal
19239   fi
19240 
19241 
19242 # Check whether --with-update-version was given.
19243 if test "${with_update_version+set}" = set; then :
19244   withval=$with_update_version;
19245 fi
19246 
19247   if test "x$with_update_version" = xyes; then
19248     as_fn_error $? "Update version must have a value" "$LINENO" 5
19249   elif test "x$with_update_version" != x; then
19250     JDK_UPDATE_VERSION="$with_update_version"
19251     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19252     # to a bug in expr (which reduces it to just X). To work around this, we
19253     # always add a 0 to one digit update versions.
19254     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19255       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19256     fi
19257   fi
19258 
19259 
19260 # Check whether --with-user-release-suffix was given.
19261 if test "${with_user_release_suffix+set}" = set; then :
19262   withval=$with_user_release_suffix;
19263 fi
19264 
19265   if test "x$with_user_release_suffix" = xyes; then
19266     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19267   elif test "x$with_user_release_suffix" != x; then
19268     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19269   fi
19270 
19271 
19272 # Check whether --with-build-number was given.
19273 if test "${with_build_number+set}" = set; then :
19274   withval=$with_build_number;
19275 fi
19276 
19277   if test "x$with_build_number" = xyes; then
19278     as_fn_error $? "Build number must have a value" "$LINENO" 5
19279   elif test "x$with_build_number" != x; then
19280     JDK_BUILD_NUMBER="$with_build_number"
19281   fi
19282   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19283   if test "x$JDK_BUILD_NUMBER" = x; then
19284     JDK_BUILD_NUMBER=b00
19285     if test "x$USER_RELEASE_SUFFIX" = x; then
19286       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19287       # Avoid [:alnum:] since it depends on the locale.
19288       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19289       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19290     fi
19291   fi
19292 
19293   # Now set the JDK version, milestone, build number etc.
19294 
19295 
19296 
19297 
19298 
19299 
19300 
19301 
19302 
19303 
19304 
19305 
19306 
19307 
19308 
19309 
19310 # Check whether --with-copyright-year was given.
19311 if test "${with_copyright_year+set}" = set; then :
19312   withval=$with_copyright_year;
19313 fi
19314 
19315   if test "x$with_copyright_year" = xyes; then
19316     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19317   elif test "x$with_copyright_year" != x; then
19318     COPYRIGHT_YEAR="$with_copyright_year"
19319   else
19320     COPYRIGHT_YEAR=`date +'%Y'`
19321   fi
19322 
19323 
19324   if test "x$JDK_UPDATE_VERSION" != x; then
19325     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19326   else
19327     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19328   fi
19329 
19330 
19331   # The cooked update version used to encode trailing letters in the update
19332   # version into a trailing number. That is no longer needed, but need to
19333   # keep the format in 8u for compatibility.
19334   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19335 
19336 
19337   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19338 
19339 
19340 
19341 ###############################################################################
19342 #
19343 # Setup BootJDK, used to bootstrap the build.
19344 #
19345 ###############################################################################
19346 
19347 
19348   BOOT_JDK_FOUND=no
19349 
19350 # Check whether --with-boot-jdk was given.
19351 if test "${with_boot_jdk+set}" = set; then :
19352   withval=$with_boot_jdk;
19353 fi
19354 
19355 
19356   # We look for the Boot JDK through various means, going from more certain to
19357   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19358   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19359   # must check if this is indeed valid; otherwise we'll continue looking.
19360 
19361   # Test: Is bootjdk explicitely set by command line arguments?
19362 
19363   if test "x$BOOT_JDK_FOUND" = xno; then
19364     # Now execute the test
19365 
19366   if test "x$with_boot_jdk" != x; then
19367     BOOT_JDK=$with_boot_jdk
19368     BOOT_JDK_FOUND=maybe
19369     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19370 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19371   fi
19372 
19373 
19374     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19375     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19376       # Do we have a bin/java?
19377       if test ! -x "$BOOT_JDK/bin/java"; then
19378         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19380         BOOT_JDK_FOUND=no
19381       else
19382         # Do we have a bin/javac?
19383         if test ! -x "$BOOT_JDK/bin/javac"; then
19384           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19385 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19386           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19387 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19388           BOOT_JDK_FOUND=no
19389         else
19390           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19391           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19392             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19394             BOOT_JDK_FOUND=no
19395           else
19396             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19397             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19398 
19399             # Extra M4 quote needed to protect [] in grep expression.
19400             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
19401             if test "x$FOUND_VERSION_78" = x; then
19402               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19404               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
19405 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
19406               BOOT_JDK_FOUND=no
19407             else
19408               # We're done! :-)
19409               BOOT_JDK_FOUND=yes
19410 
19411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19412 
19413   # Input might be given as Windows format, start by converting to
19414   # unix format.
19415   path="$BOOT_JDK"
19416   new_path=`$CYGPATH -u "$path"`
19417 
19418   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19419   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19420   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19421   # "foo.exe" is OK but "foo" is an error.
19422   #
19423   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19424   # It is also a way to make sure we got the proper file name for the real test later on.
19425   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19426   if test "x$test_shortpath" = x; then
19427     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19429     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19430   fi
19431 
19432   # Call helper function which possibly converts this using DOS-style short mode.
19433   # If so, the updated path is stored in $new_path.
19434 
19435   input_path="$new_path"
19436   # Check if we need to convert this using DOS-style short mode. If the path
19437   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19438   # take no chances and rewrite it.
19439   # Note: m4 eats our [], so we need to use [ and ] instead.
19440   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19441   if test "x$has_forbidden_chars" != x; then
19442     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19443     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19444     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19445     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19446       # Going to short mode and back again did indeed matter. Since short mode is
19447       # case insensitive, let's make it lowercase to improve readability.
19448       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19449       # Now convert it back to Unix-stile (cygpath)
19450       input_path=`$CYGPATH -u "$shortmode_path"`
19451       new_path="$input_path"
19452     fi
19453   fi
19454 
19455   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19456   if test "x$test_cygdrive_prefix" = x; then
19457     # As a simple fix, exclude /usr/bin since it's not a real path.
19458     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19459       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19460       # a path prefixed by /cygdrive for fixpath to work.
19461       new_path="$CYGWIN_ROOT_PATH$input_path"
19462     fi
19463   fi
19464 
19465 
19466   if test "x$path" != "x$new_path"; then
19467     BOOT_JDK="$new_path"
19468     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19469 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19470   fi
19471 
19472   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19473 
19474   path="$BOOT_JDK"
19475   has_colon=`$ECHO $path | $GREP ^.:`
19476   new_path="$path"
19477   if test "x$has_colon" = x; then
19478     # Not in mixed or Windows style, start by that.
19479     new_path=`cmd //c echo $path`
19480   fi
19481 
19482 
19483   input_path="$new_path"
19484   # Check if we need to convert this using DOS-style short mode. If the path
19485   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19486   # take no chances and rewrite it.
19487   # Note: m4 eats our [], so we need to use [ and ] instead.
19488   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19489   if test "x$has_forbidden_chars" != x; then
19490     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19491     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19492   fi
19493 
19494 
19495   windows_path="$new_path"
19496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19497     unix_path=`$CYGPATH -u "$windows_path"`
19498     new_path="$unix_path"
19499   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19500     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19501     new_path="$unix_path"
19502   fi
19503 
19504   if test "x$path" != "x$new_path"; then
19505     BOOT_JDK="$new_path"
19506     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19507 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19508   fi
19509 
19510   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19511   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19512 
19513   else
19514     # We're on a posix platform. Hooray! :)
19515     path="$BOOT_JDK"
19516     has_space=`$ECHO "$path" | $GREP " "`
19517     if test "x$has_space" != x; then
19518       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19519 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19520       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19521     fi
19522 
19523     # Use eval to expand a potential ~
19524     eval path="$path"
19525     if test ! -f "$path" && test ! -d "$path"; then
19526       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19527     fi
19528 
19529     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19530   fi
19531 
19532               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19533 $as_echo_n "checking for Boot JDK... " >&6; }
19534               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19535 $as_echo "$BOOT_JDK" >&6; }
19536               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19537 $as_echo_n "checking Boot JDK version... " >&6; }
19538               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19539               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19540 $as_echo "$BOOT_JDK_VERSION" >&6; }
19541             fi # end check jdk version
19542           fi # end check rt.jar
19543         fi # end check javac
19544       fi # end check java
19545     fi # end check boot jdk found
19546   fi
19547 
19548   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19549     # Having specified an argument which is incorrect will produce an instant failure;
19550     # we should not go on looking
19551     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19552   fi
19553 
19554   # Test: Is bootjdk available from builddeps?
19555 
19556   if test "x$BOOT_JDK_FOUND" = xno; then
19557     # Now execute the test
19558 
19559 
19560 
19561   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19562     # Source the builddeps file again, to make sure it uses the latest variables!
19563     . $builddepsfile
19564     # Look for a target and build machine specific resource!
19565     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19566     if test "x$resource" = x; then
19567       # Ok, lets instead look for a target specific resource
19568       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19569     fi
19570     if test "x$resource" = x; then
19571       # Ok, lets instead look for a build specific resource
19572       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19573     fi
19574     if test "x$resource" = x; then
19575       # Ok, lets instead look for a generic resource
19576       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19577       resource=${builddep_bootjdk}
19578     fi
19579     if test "x$resource" != x; then
19580       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19581 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19582       # If the resource in the builddeps.conf file is an existing directory,
19583       # for example /java/linux/cups
19584       if test -d ${resource}; then
19585         depdir=${resource}
19586       else
19587 
19588   # bootjdk is for example mymodule
19589   # $resource is for example libs/general/libmymod_1_2_3.zip
19590   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19591   # $with_builddeps_dir is for example /localhome/builddeps
19592   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19593   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19594   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19595   filename=`basename $resource`
19596   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19597   filebase=${filename%%.*}
19598   extension=${filename#*.}
19599   installdir=$with_builddeps_dir/$filebase
19600   if test ! -f $installdir/$filename.unpacked; then
19601     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19602 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19603     if test ! -d $installdir; then
19604       mkdir -p $installdir
19605     fi
19606     if test ! -d $installdir; then
19607       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19608     fi
19609     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19610     touch $tmpfile
19611     if test ! -f $tmpfile; then
19612       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19613     fi
19614 
19615   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19616   # $tmpfile is the local file name for the downloaded file.
19617   VALID_TOOL=no
19618   if test "x$BDEPS_FTP" = xwget; then
19619     VALID_TOOL=yes
19620     wget -O $tmpfile $with_builddeps_server/$resource
19621   fi
19622   if test "x$BDEPS_FTP" = xlftp; then
19623     VALID_TOOL=yes
19624     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19625   fi
19626   if test "x$BDEPS_FTP" = xftp; then
19627     VALID_TOOL=yes
19628     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19629     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19630     FTPUSERPWD=${FTPSERVER%%@*}
19631     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19632       FTPUSER=${userpwd%%:*}
19633       FTPPWD=${userpwd#*@}
19634       FTPSERVER=${FTPSERVER#*@}
19635     else
19636       FTPUSER=ftp
19637       FTPPWD=ftp
19638     fi
19639     # the "pass" command does not work on some
19640     # ftp clients (read ftp.exe) but if it works,
19641     # passive mode is better!
19642     ( \
19643         echo "user $FTPUSER $FTPPWD"        ; \
19644         echo "pass"                         ; \
19645         echo "bin"                          ; \
19646         echo "get $FTPPATH $tmpfile"              ; \
19647     ) | ftp -in $FTPSERVER
19648   fi
19649   if test "x$VALID_TOOL" != xyes; then
19650     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19651   fi
19652 
19653     mv $tmpfile $installdir/$filename
19654     if test ! -s $installdir/$filename; then
19655       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19656     fi
19657     case "$extension" in
19658       zip)  echo "Unzipping $installdir/$filename..."
19659         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19660         ;;
19661       tar.gz) echo "Untaring $installdir/$filename..."
19662         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19663         ;;
19664       tgz) echo "Untaring $installdir/$filename..."
19665         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19666         ;;
19667       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19668         ;;
19669     esac
19670   fi
19671   if test -f $installdir/$filename.unpacked; then
19672     depdir=$installdir
19673   fi
19674 
19675       fi
19676       # Source the builddeps file again, because in the previous command, the depdir
19677       # was updated to point at the current build dependency install directory.
19678       . $builddepsfile
19679       # Now extract variables from the builddeps.conf files.
19680       theroot=${builddep_bootjdk_ROOT}
19681       thecflags=${builddep_bootjdk_CFLAGS}
19682       thelibs=${builddep_bootjdk_LIBS}
19683       if test "x$depdir" = x; then
19684         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
19685       fi
19686       BOOT_JDK=$depdir
19687       if test "x$theroot" != x; then
19688         BOOT_JDK="$theroot"
19689       fi
19690       if test "x$thecflags" != x; then
19691         BOOT_JDK_CFLAGS="$thecflags"
19692       fi
19693       if test "x$thelibs" != x; then
19694         BOOT_JDK_LIBS="$thelibs"
19695       fi
19696       BOOT_JDK_FOUND=maybe
19697       else BOOT_JDK_FOUND=no
19698 
19699     fi
19700     else BOOT_JDK_FOUND=no
19701 
19702   fi
19703 
19704 
19705 
19706     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19707     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19708       # Do we have a bin/java?
19709       if test ! -x "$BOOT_JDK/bin/java"; then
19710         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19711 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19712         BOOT_JDK_FOUND=no
19713       else
19714         # Do we have a bin/javac?
19715         if test ! -x "$BOOT_JDK/bin/javac"; then
19716           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19718           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19719 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19720           BOOT_JDK_FOUND=no
19721         else
19722           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19723           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19724             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19726             BOOT_JDK_FOUND=no
19727           else
19728             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19729             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19730 
19731             # Extra M4 quote needed to protect [] in grep expression.
19732             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
19733             if test "x$FOUND_VERSION_78" = x; then
19734               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19736               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
19737 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
19738               BOOT_JDK_FOUND=no
19739             else
19740               # We're done! :-)
19741               BOOT_JDK_FOUND=yes
19742 
19743   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19744 
19745   # Input might be given as Windows format, start by converting to
19746   # unix format.
19747   path="$BOOT_JDK"
19748   new_path=`$CYGPATH -u "$path"`
19749 
19750   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19751   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19752   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19753   # "foo.exe" is OK but "foo" is an error.
19754   #
19755   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19756   # It is also a way to make sure we got the proper file name for the real test later on.
19757   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19758   if test "x$test_shortpath" = x; then
19759     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19761     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19762   fi
19763 
19764   # Call helper function which possibly converts this using DOS-style short mode.
19765   # If so, the updated path is stored in $new_path.
19766 
19767   input_path="$new_path"
19768   # Check if we need to convert this using DOS-style short mode. If the path
19769   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19770   # take no chances and rewrite it.
19771   # Note: m4 eats our [], so we need to use [ and ] instead.
19772   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19773   if test "x$has_forbidden_chars" != x; then
19774     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19775     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19776     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19777     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19778       # Going to short mode and back again did indeed matter. Since short mode is
19779       # case insensitive, let's make it lowercase to improve readability.
19780       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19781       # Now convert it back to Unix-stile (cygpath)
19782       input_path=`$CYGPATH -u "$shortmode_path"`
19783       new_path="$input_path"
19784     fi
19785   fi
19786 
19787   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19788   if test "x$test_cygdrive_prefix" = x; then
19789     # As a simple fix, exclude /usr/bin since it's not a real path.
19790     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19791       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19792       # a path prefixed by /cygdrive for fixpath to work.
19793       new_path="$CYGWIN_ROOT_PATH$input_path"
19794     fi
19795   fi
19796 
19797 
19798   if test "x$path" != "x$new_path"; then
19799     BOOT_JDK="$new_path"
19800     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19801 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19802   fi
19803 
19804   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19805 
19806   path="$BOOT_JDK"
19807   has_colon=`$ECHO $path | $GREP ^.:`
19808   new_path="$path"
19809   if test "x$has_colon" = x; then
19810     # Not in mixed or Windows style, start by that.
19811     new_path=`cmd //c echo $path`
19812   fi
19813 
19814 
19815   input_path="$new_path"
19816   # Check if we need to convert this using DOS-style short mode. If the path
19817   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19818   # take no chances and rewrite it.
19819   # Note: m4 eats our [], so we need to use [ and ] instead.
19820   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19821   if test "x$has_forbidden_chars" != x; then
19822     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19823     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19824   fi
19825 
19826 
19827   windows_path="$new_path"
19828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19829     unix_path=`$CYGPATH -u "$windows_path"`
19830     new_path="$unix_path"
19831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19832     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19833     new_path="$unix_path"
19834   fi
19835 
19836   if test "x$path" != "x$new_path"; then
19837     BOOT_JDK="$new_path"
19838     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19839 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19840   fi
19841 
19842   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19843   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19844 
19845   else
19846     # We're on a posix platform. Hooray! :)
19847     path="$BOOT_JDK"
19848     has_space=`$ECHO "$path" | $GREP " "`
19849     if test "x$has_space" != x; then
19850       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19851 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19852       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19853     fi
19854 
19855     # Use eval to expand a potential ~
19856     eval path="$path"
19857     if test ! -f "$path" && test ! -d "$path"; then
19858       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19859     fi
19860 
19861     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19862   fi
19863 
19864               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19865 $as_echo_n "checking for Boot JDK... " >&6; }
19866               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19867 $as_echo "$BOOT_JDK" >&6; }
19868               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19869 $as_echo_n "checking Boot JDK version... " >&6; }
19870               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19871               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19872 $as_echo "$BOOT_JDK_VERSION" >&6; }
19873             fi # end check jdk version
19874           fi # end check rt.jar
19875         fi # end check javac
19876       fi # end check java
19877     fi # end check boot jdk found
19878   fi
19879 
19880 
19881   # Test: Is $JAVA_HOME set?
19882 
19883   if test "x$BOOT_JDK_FOUND" = xno; then
19884     # Now execute the test
19885 
19886   if test "x$JAVA_HOME" != x; then
19887     JAVA_HOME_PROCESSED="$JAVA_HOME"
19888 
19889   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19890 
19891   # Input might be given as Windows format, start by converting to
19892   # unix format.
19893   path="$JAVA_HOME_PROCESSED"
19894   new_path=`$CYGPATH -u "$path"`
19895 
19896   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19897   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19898   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19899   # "foo.exe" is OK but "foo" is an error.
19900   #
19901   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19902   # It is also a way to make sure we got the proper file name for the real test later on.
19903   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19904   if test "x$test_shortpath" = x; then
19905     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
19906 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
19907     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
19908   fi
19909 
19910   # Call helper function which possibly converts this using DOS-style short mode.
19911   # If so, the updated path is stored in $new_path.
19912 
19913   input_path="$new_path"
19914   # Check if we need to convert this using DOS-style short mode. If the path
19915   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19916   # take no chances and rewrite it.
19917   # Note: m4 eats our [], so we need to use [ and ] instead.
19918   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19919   if test "x$has_forbidden_chars" != x; then
19920     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19921     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19922     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19923     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19924       # Going to short mode and back again did indeed matter. Since short mode is
19925       # case insensitive, let's make it lowercase to improve readability.
19926       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19927       # Now convert it back to Unix-stile (cygpath)
19928       input_path=`$CYGPATH -u "$shortmode_path"`
19929       new_path="$input_path"
19930     fi
19931   fi
19932 
19933   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19934   if test "x$test_cygdrive_prefix" = x; then
19935     # As a simple fix, exclude /usr/bin since it's not a real path.
19936     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19937       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19938       # a path prefixed by /cygdrive for fixpath to work.
19939       new_path="$CYGWIN_ROOT_PATH$input_path"
19940     fi
19941   fi
19942 
19943 
19944   if test "x$path" != "x$new_path"; then
19945     JAVA_HOME_PROCESSED="$new_path"
19946     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
19947 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
19948   fi
19949 
19950   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19951 
19952   path="$JAVA_HOME_PROCESSED"
19953   has_colon=`$ECHO $path | $GREP ^.:`
19954   new_path="$path"
19955   if test "x$has_colon" = x; then
19956     # Not in mixed or Windows style, start by that.
19957     new_path=`cmd //c echo $path`
19958   fi
19959 
19960 
19961   input_path="$new_path"
19962   # Check if we need to convert this using DOS-style short mode. If the path
19963   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19964   # take no chances and rewrite it.
19965   # Note: m4 eats our [], so we need to use [ and ] instead.
19966   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19967   if test "x$has_forbidden_chars" != x; then
19968     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19969     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19970   fi
19971 
19972 
19973   windows_path="$new_path"
19974   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19975     unix_path=`$CYGPATH -u "$windows_path"`
19976     new_path="$unix_path"
19977   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19978     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19979     new_path="$unix_path"
19980   fi
19981 
19982   if test "x$path" != "x$new_path"; then
19983     JAVA_HOME_PROCESSED="$new_path"
19984     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
19985 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
19986   fi
19987 
19988   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19989   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19990 
19991   else
19992     # We're on a posix platform. Hooray! :)
19993     path="$JAVA_HOME_PROCESSED"
19994     has_space=`$ECHO "$path" | $GREP " "`
19995     if test "x$has_space" != x; then
19996       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
19997 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
19998       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19999     fi
20000 
20001     # Use eval to expand a potential ~
20002     eval path="$path"
20003     if test ! -f "$path" && test ! -d "$path"; then
20004       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20005     fi
20006 
20007     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20008   fi
20009 
20010     if test ! -d "$JAVA_HOME_PROCESSED"; then
20011       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20012 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20013     else
20014       # Aha, the user has set a JAVA_HOME
20015       # let us use that as the Boot JDK.
20016       BOOT_JDK="$JAVA_HOME_PROCESSED"
20017       BOOT_JDK_FOUND=maybe
20018       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20019 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20020     fi
20021   fi
20022 
20023 
20024     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20025     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20026       # Do we have a bin/java?
20027       if test ! -x "$BOOT_JDK/bin/java"; then
20028         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20030         BOOT_JDK_FOUND=no
20031       else
20032         # Do we have a bin/javac?
20033         if test ! -x "$BOOT_JDK/bin/javac"; then
20034           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20036           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20037 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20038           BOOT_JDK_FOUND=no
20039         else
20040           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20041           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20042             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20044             BOOT_JDK_FOUND=no
20045           else
20046             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20047             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20048 
20049             # Extra M4 quote needed to protect [] in grep expression.
20050             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20051             if test "x$FOUND_VERSION_78" = x; then
20052               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20054               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20055 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20056               BOOT_JDK_FOUND=no
20057             else
20058               # We're done! :-)
20059               BOOT_JDK_FOUND=yes
20060 
20061   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20062 
20063   # Input might be given as Windows format, start by converting to
20064   # unix format.
20065   path="$BOOT_JDK"
20066   new_path=`$CYGPATH -u "$path"`
20067 
20068   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20069   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20070   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20071   # "foo.exe" is OK but "foo" is an error.
20072   #
20073   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20074   # It is also a way to make sure we got the proper file name for the real test later on.
20075   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20076   if test "x$test_shortpath" = x; then
20077     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20078 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20079     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20080   fi
20081 
20082   # Call helper function which possibly converts this using DOS-style short mode.
20083   # If so, the updated path is stored in $new_path.
20084 
20085   input_path="$new_path"
20086   # Check if we need to convert this using DOS-style short mode. If the path
20087   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20088   # take no chances and rewrite it.
20089   # Note: m4 eats our [], so we need to use [ and ] instead.
20090   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20091   if test "x$has_forbidden_chars" != x; then
20092     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20093     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20094     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20095     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20096       # Going to short mode and back again did indeed matter. Since short mode is
20097       # case insensitive, let's make it lowercase to improve readability.
20098       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20099       # Now convert it back to Unix-stile (cygpath)
20100       input_path=`$CYGPATH -u "$shortmode_path"`
20101       new_path="$input_path"
20102     fi
20103   fi
20104 
20105   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20106   if test "x$test_cygdrive_prefix" = x; then
20107     # As a simple fix, exclude /usr/bin since it's not a real path.
20108     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20109       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20110       # a path prefixed by /cygdrive for fixpath to work.
20111       new_path="$CYGWIN_ROOT_PATH$input_path"
20112     fi
20113   fi
20114 
20115 
20116   if test "x$path" != "x$new_path"; then
20117     BOOT_JDK="$new_path"
20118     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20119 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20120   fi
20121 
20122   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20123 
20124   path="$BOOT_JDK"
20125   has_colon=`$ECHO $path | $GREP ^.:`
20126   new_path="$path"
20127   if test "x$has_colon" = x; then
20128     # Not in mixed or Windows style, start by that.
20129     new_path=`cmd //c echo $path`
20130   fi
20131 
20132 
20133   input_path="$new_path"
20134   # Check if we need to convert this using DOS-style short mode. If the path
20135   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20136   # take no chances and rewrite it.
20137   # Note: m4 eats our [], so we need to use [ and ] instead.
20138   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20139   if test "x$has_forbidden_chars" != x; then
20140     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20141     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20142   fi
20143 
20144 
20145   windows_path="$new_path"
20146   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20147     unix_path=`$CYGPATH -u "$windows_path"`
20148     new_path="$unix_path"
20149   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20150     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20151     new_path="$unix_path"
20152   fi
20153 
20154   if test "x$path" != "x$new_path"; then
20155     BOOT_JDK="$new_path"
20156     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20157 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20158   fi
20159 
20160   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20161   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20162 
20163   else
20164     # We're on a posix platform. Hooray! :)
20165     path="$BOOT_JDK"
20166     has_space=`$ECHO "$path" | $GREP " "`
20167     if test "x$has_space" != x; then
20168       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20169 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20170       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20171     fi
20172 
20173     # Use eval to expand a potential ~
20174     eval path="$path"
20175     if test ! -f "$path" && test ! -d "$path"; then
20176       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20177     fi
20178 
20179     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20180   fi
20181 
20182               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20183 $as_echo_n "checking for Boot JDK... " >&6; }
20184               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20185 $as_echo "$BOOT_JDK" >&6; }
20186               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20187 $as_echo_n "checking Boot JDK version... " >&6; }
20188               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20189               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20190 $as_echo "$BOOT_JDK_VERSION" >&6; }
20191             fi # end check jdk version
20192           fi # end check rt.jar
20193         fi # end check javac
20194       fi # end check java
20195     fi # end check boot jdk found
20196   fi
20197 
20198 
20199   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20200 
20201   if test "x$BOOT_JDK_FOUND" = xno; then
20202     # Now execute the test
20203 
20204   if test -x /usr/libexec/java_home; then
20205     BOOT_JDK=`/usr/libexec/java_home`
20206     BOOT_JDK_FOUND=maybe
20207     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20208 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20209   fi
20210 
20211 
20212     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20213     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20214       # Do we have a bin/java?
20215       if test ! -x "$BOOT_JDK/bin/java"; then
20216         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20218         BOOT_JDK_FOUND=no
20219       else
20220         # Do we have a bin/javac?
20221         if test ! -x "$BOOT_JDK/bin/javac"; then
20222           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20224           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20225 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20226           BOOT_JDK_FOUND=no
20227         else
20228           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20229           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20230             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20232             BOOT_JDK_FOUND=no
20233           else
20234             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20235             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20236 
20237             # Extra M4 quote needed to protect [] in grep expression.
20238             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20239             if test "x$FOUND_VERSION_78" = x; then
20240               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20242               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20243 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20244               BOOT_JDK_FOUND=no
20245             else
20246               # We're done! :-)
20247               BOOT_JDK_FOUND=yes
20248 
20249   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20250 
20251   # Input might be given as Windows format, start by converting to
20252   # unix format.
20253   path="$BOOT_JDK"
20254   new_path=`$CYGPATH -u "$path"`
20255 
20256   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20257   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20258   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20259   # "foo.exe" is OK but "foo" is an error.
20260   #
20261   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20262   # It is also a way to make sure we got the proper file name for the real test later on.
20263   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20264   if test "x$test_shortpath" = x; then
20265     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20267     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20268   fi
20269 
20270   # Call helper function which possibly converts this using DOS-style short mode.
20271   # If so, the updated path is stored in $new_path.
20272 
20273   input_path="$new_path"
20274   # Check if we need to convert this using DOS-style short mode. If the path
20275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20276   # take no chances and rewrite it.
20277   # Note: m4 eats our [], so we need to use [ and ] instead.
20278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20279   if test "x$has_forbidden_chars" != x; then
20280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20284       # Going to short mode and back again did indeed matter. Since short mode is
20285       # case insensitive, let's make it lowercase to improve readability.
20286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20287       # Now convert it back to Unix-stile (cygpath)
20288       input_path=`$CYGPATH -u "$shortmode_path"`
20289       new_path="$input_path"
20290     fi
20291   fi
20292 
20293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20294   if test "x$test_cygdrive_prefix" = x; then
20295     # As a simple fix, exclude /usr/bin since it's not a real path.
20296     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20298       # a path prefixed by /cygdrive for fixpath to work.
20299       new_path="$CYGWIN_ROOT_PATH$input_path"
20300     fi
20301   fi
20302 
20303 
20304   if test "x$path" != "x$new_path"; then
20305     BOOT_JDK="$new_path"
20306     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20308   fi
20309 
20310   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20311 
20312   path="$BOOT_JDK"
20313   has_colon=`$ECHO $path | $GREP ^.:`
20314   new_path="$path"
20315   if test "x$has_colon" = x; then
20316     # Not in mixed or Windows style, start by that.
20317     new_path=`cmd //c echo $path`
20318   fi
20319 
20320 
20321   input_path="$new_path"
20322   # Check if we need to convert this using DOS-style short mode. If the path
20323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20324   # take no chances and rewrite it.
20325   # Note: m4 eats our [], so we need to use [ and ] instead.
20326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20327   if test "x$has_forbidden_chars" != x; then
20328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20329     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20330   fi
20331 
20332 
20333   windows_path="$new_path"
20334   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20335     unix_path=`$CYGPATH -u "$windows_path"`
20336     new_path="$unix_path"
20337   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20338     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20339     new_path="$unix_path"
20340   fi
20341 
20342   if test "x$path" != "x$new_path"; then
20343     BOOT_JDK="$new_path"
20344     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20345 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20346   fi
20347 
20348   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20349   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20350 
20351   else
20352     # We're on a posix platform. Hooray! :)
20353     path="$BOOT_JDK"
20354     has_space=`$ECHO "$path" | $GREP " "`
20355     if test "x$has_space" != x; then
20356       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20358       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20359     fi
20360 
20361     # Use eval to expand a potential ~
20362     eval path="$path"
20363     if test ! -f "$path" && test ! -d "$path"; then
20364       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20365     fi
20366 
20367     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20368   fi
20369 
20370               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20371 $as_echo_n "checking for Boot JDK... " >&6; }
20372               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20373 $as_echo "$BOOT_JDK" >&6; }
20374               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20375 $as_echo_n "checking Boot JDK version... " >&6; }
20376               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20377               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20378 $as_echo "$BOOT_JDK_VERSION" >&6; }
20379             fi # end check jdk version
20380           fi # end check rt.jar
20381         fi # end check javac
20382       fi # end check java
20383     fi # end check boot jdk found
20384   fi
20385 
20386 
20387   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
20388 
20389   if test "x$BOOT_JDK_FOUND" = xno; then
20390     # Now execute the test
20391 
20392   # Extract the first word of "javac", so it can be a program name with args.
20393 set dummy javac; ac_word=$2
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20395 $as_echo_n "checking for $ac_word... " >&6; }
20396 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
20397   $as_echo_n "(cached) " >&6
20398 else
20399   case $JAVAC_CHECK in
20400   [\\/]* | ?:[\\/]*)
20401   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
20402   ;;
20403   *)
20404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20405 for as_dir in $PATH
20406 do
20407   IFS=$as_save_IFS
20408   test -z "$as_dir" && as_dir=.
20409     for ac_exec_ext in '' $ac_executable_extensions; do
20410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20411     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20413     break 2
20414   fi
20415 done
20416   done
20417 IFS=$as_save_IFS
20418 
20419   ;;
20420 esac
20421 fi
20422 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
20423 if test -n "$JAVAC_CHECK"; then
20424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
20425 $as_echo "$JAVAC_CHECK" >&6; }
20426 else
20427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20428 $as_echo "no" >&6; }
20429 fi
20430 
20431 
20432   # Extract the first word of "java", so it can be a program name with args.
20433 set dummy java; ac_word=$2
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20435 $as_echo_n "checking for $ac_word... " >&6; }
20436 if ${ac_cv_path_JAVA_CHECK+:} false; then :
20437   $as_echo_n "(cached) " >&6
20438 else
20439   case $JAVA_CHECK in
20440   [\\/]* | ?:[\\/]*)
20441   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
20442   ;;
20443   *)
20444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20445 for as_dir in $PATH
20446 do
20447   IFS=$as_save_IFS
20448   test -z "$as_dir" && as_dir=.
20449     for ac_exec_ext in '' $ac_executable_extensions; do
20450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20451     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
20452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20453     break 2
20454   fi
20455 done
20456   done
20457 IFS=$as_save_IFS
20458 
20459   ;;
20460 esac
20461 fi
20462 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
20463 if test -n "$JAVA_CHECK"; then
20464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
20465 $as_echo "$JAVA_CHECK" >&6; }
20466 else
20467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20469 fi
20470 
20471 
20472   BINARY="$JAVAC_CHECK"
20473   if test "x$JAVAC_CHECK" = x; then
20474     BINARY="$JAVA_CHECK"
20475   fi
20476   if test "x$BINARY" != x; then
20477     # So there is a java(c) binary, it might be part of a JDK.
20478     # Lets find the JDK/JRE directory by following symbolic links.
20479     # Linux/GNU systems often have links from /usr/bin/java to
20480     # /etc/alternatives/java to the real JDK binary.
20481 
20482   if test "x$OPENJDK_BUILD_OS" != xwindows; then
20483     # Follow a chain of symbolic links. Use readlink
20484     # where it exists, else fall back to horribly
20485     # complicated shell code.
20486     if test "x$READLINK_TESTED" != yes; then
20487       # On MacOSX there is a readlink tool with a different
20488       # purpose than the GNU readlink tool. Check the found readlink.
20489       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
20490       if test "x$ISGNU" = x; then
20491         # A readlink that we do not know how to use.
20492         # Are there other non-GNU readlinks out there?
20493         READLINK_TESTED=yes
20494         READLINK=
20495       fi
20496     fi
20497 
20498     if test "x$READLINK" != x; then
20499       BINARY=`$READLINK -f $BINARY`
20500     else
20501       # Save the current directory for restoring afterwards
20502       STARTDIR=$PWD
20503       COUNTER=0
20504       sym_link_dir=`$DIRNAME $BINARY`
20505       sym_link_file=`$BASENAME $BINARY`
20506       cd $sym_link_dir
20507       # Use -P flag to resolve symlinks in directories.
20508       cd `$THEPWDCMD -P`
20509       sym_link_dir=`$THEPWDCMD -P`
20510       # Resolve file symlinks
20511       while test $COUNTER -lt 20; do
20512         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
20513         if test "x$ISLINK" == x; then
20514           # This is not a symbolic link! We are done!
20515           break
20516         fi
20517         # Again resolve directory symlinks since the target of the just found
20518         # link could be in a different directory
20519         cd `$DIRNAME $ISLINK`
20520         sym_link_dir=`$THEPWDCMD -P`
20521         sym_link_file=`$BASENAME $ISLINK`
20522         let COUNTER=COUNTER+1
20523       done
20524       cd $STARTDIR
20525       BINARY=$sym_link_dir/$sym_link_file
20526     fi
20527   fi
20528 
20529     BOOT_JDK=`dirname "$BINARY"`
20530     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
20531     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
20532       # Looks like we found ourselves an JDK
20533       BOOT_JDK_FOUND=maybe
20534       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
20535 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
20536     fi
20537   fi
20538 
20539 
20540     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20541     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20542       # Do we have a bin/java?
20543       if test ! -x "$BOOT_JDK/bin/java"; then
20544         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20545 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20546         BOOT_JDK_FOUND=no
20547       else
20548         # Do we have a bin/javac?
20549         if test ! -x "$BOOT_JDK/bin/javac"; then
20550           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20551 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20552           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20553 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20554           BOOT_JDK_FOUND=no
20555         else
20556           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20557           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20558             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20559 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20560             BOOT_JDK_FOUND=no
20561           else
20562             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20563             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20564 
20565             # Extra M4 quote needed to protect [] in grep expression.
20566             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20567             if test "x$FOUND_VERSION_78" = x; then
20568               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20569 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20570               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20571 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20572               BOOT_JDK_FOUND=no
20573             else
20574               # We're done! :-)
20575               BOOT_JDK_FOUND=yes
20576 
20577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20578 
20579   # Input might be given as Windows format, start by converting to
20580   # unix format.
20581   path="$BOOT_JDK"
20582   new_path=`$CYGPATH -u "$path"`
20583 
20584   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20585   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20586   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20587   # "foo.exe" is OK but "foo" is an error.
20588   #
20589   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20590   # It is also a way to make sure we got the proper file name for the real test later on.
20591   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20592   if test "x$test_shortpath" = x; then
20593     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20594 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20595     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20596   fi
20597 
20598   # Call helper function which possibly converts this using DOS-style short mode.
20599   # If so, the updated path is stored in $new_path.
20600 
20601   input_path="$new_path"
20602   # Check if we need to convert this using DOS-style short mode. If the path
20603   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20604   # take no chances and rewrite it.
20605   # Note: m4 eats our [], so we need to use [ and ] instead.
20606   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20607   if test "x$has_forbidden_chars" != x; then
20608     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20609     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20610     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20611     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20612       # Going to short mode and back again did indeed matter. Since short mode is
20613       # case insensitive, let's make it lowercase to improve readability.
20614       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20615       # Now convert it back to Unix-stile (cygpath)
20616       input_path=`$CYGPATH -u "$shortmode_path"`
20617       new_path="$input_path"
20618     fi
20619   fi
20620 
20621   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20622   if test "x$test_cygdrive_prefix" = x; then
20623     # As a simple fix, exclude /usr/bin since it's not a real path.
20624     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20625       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20626       # a path prefixed by /cygdrive for fixpath to work.
20627       new_path="$CYGWIN_ROOT_PATH$input_path"
20628     fi
20629   fi
20630 
20631 
20632   if test "x$path" != "x$new_path"; then
20633     BOOT_JDK="$new_path"
20634     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20635 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20636   fi
20637 
20638   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20639 
20640   path="$BOOT_JDK"
20641   has_colon=`$ECHO $path | $GREP ^.:`
20642   new_path="$path"
20643   if test "x$has_colon" = x; then
20644     # Not in mixed or Windows style, start by that.
20645     new_path=`cmd //c echo $path`
20646   fi
20647 
20648 
20649   input_path="$new_path"
20650   # Check if we need to convert this using DOS-style short mode. If the path
20651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20652   # take no chances and rewrite it.
20653   # Note: m4 eats our [], so we need to use [ and ] instead.
20654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20655   if test "x$has_forbidden_chars" != x; then
20656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20657     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20658   fi
20659 
20660 
20661   windows_path="$new_path"
20662   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20663     unix_path=`$CYGPATH -u "$windows_path"`
20664     new_path="$unix_path"
20665   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20666     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20667     new_path="$unix_path"
20668   fi
20669 
20670   if test "x$path" != "x$new_path"; then
20671     BOOT_JDK="$new_path"
20672     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20673 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20674   fi
20675 
20676   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20677   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20678 
20679   else
20680     # We're on a posix platform. Hooray! :)
20681     path="$BOOT_JDK"
20682     has_space=`$ECHO "$path" | $GREP " "`
20683     if test "x$has_space" != x; then
20684       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20685 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20686       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20687     fi
20688 
20689     # Use eval to expand a potential ~
20690     eval path="$path"
20691     if test ! -f "$path" && test ! -d "$path"; then
20692       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20693     fi
20694 
20695     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20696   fi
20697 
20698               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20699 $as_echo_n "checking for Boot JDK... " >&6; }
20700               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20701 $as_echo "$BOOT_JDK" >&6; }
20702               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20703 $as_echo_n "checking Boot JDK version... " >&6; }
20704               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20705               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20706 $as_echo "$BOOT_JDK_VERSION" >&6; }
20707             fi # end check jdk version
20708           fi # end check rt.jar
20709         fi # end check javac
20710       fi # end check java
20711     fi # end check boot jdk found
20712   fi
20713 
20714 
20715   # Test: Is there a JDK installed in default, well-known locations?
20716 
20717   if test "x$BOOT_JDK_FOUND" = xno; then
20718     # Now execute the test
20719 
20720   if test "x$OPENJDK_TARGET_OS" = xwindows; then
20721 
20722   if test "x$BOOT_JDK_FOUND" = xno; then
20723     # Now execute the test
20724 
20725   if test "x$ProgramW6432" != x; then
20726     VIRTUAL_DIR="$ProgramW6432/Java"
20727 
20728   windows_path="$VIRTUAL_DIR"
20729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20730     unix_path=`$CYGPATH -u "$windows_path"`
20731     VIRTUAL_DIR="$unix_path"
20732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20734     VIRTUAL_DIR="$unix_path"
20735   fi
20736 
20737 
20738   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
20739   BOOT_JDK_SUFFIX=""
20740   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
20741   if test "x$ALL_JDKS_FOUND" != x; then
20742     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
20743 
20744   if test "x$BOOT_JDK_FOUND" = xno; then
20745     # Now execute the test
20746 
20747         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
20748         if test -d "$BOOT_JDK"; then
20749           BOOT_JDK_FOUND=maybe
20750           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
20751 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
20752         fi
20753 
20754 
20755     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20756     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20757       # Do we have a bin/java?
20758       if test ! -x "$BOOT_JDK/bin/java"; then
20759         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20761         BOOT_JDK_FOUND=no
20762       else
20763         # Do we have a bin/javac?
20764         if test ! -x "$BOOT_JDK/bin/javac"; then
20765           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20767           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20768 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20769           BOOT_JDK_FOUND=no
20770         else
20771           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20772           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20773             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20775             BOOT_JDK_FOUND=no
20776           else
20777             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20778             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20779 
20780             # Extra M4 quote needed to protect [] in grep expression.
20781             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20782             if test "x$FOUND_VERSION_78" = x; then
20783               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20785               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20786 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20787               BOOT_JDK_FOUND=no
20788             else
20789               # We're done! :-)
20790               BOOT_JDK_FOUND=yes
20791 
20792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20793 
20794   # Input might be given as Windows format, start by converting to
20795   # unix format.
20796   path="$BOOT_JDK"
20797   new_path=`$CYGPATH -u "$path"`
20798 
20799   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20800   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20801   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20802   # "foo.exe" is OK but "foo" is an error.
20803   #
20804   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20805   # It is also a way to make sure we got the proper file name for the real test later on.
20806   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20807   if test "x$test_shortpath" = x; then
20808     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20809 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20810     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20811   fi
20812 
20813   # Call helper function which possibly converts this using DOS-style short mode.
20814   # If so, the updated path is stored in $new_path.
20815 
20816   input_path="$new_path"
20817   # Check if we need to convert this using DOS-style short mode. If the path
20818   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20819   # take no chances and rewrite it.
20820   # Note: m4 eats our [], so we need to use [ and ] instead.
20821   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20822   if test "x$has_forbidden_chars" != x; then
20823     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20824     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20825     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20826     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20827       # Going to short mode and back again did indeed matter. Since short mode is
20828       # case insensitive, let's make it lowercase to improve readability.
20829       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20830       # Now convert it back to Unix-stile (cygpath)
20831       input_path=`$CYGPATH -u "$shortmode_path"`
20832       new_path="$input_path"
20833     fi
20834   fi
20835 
20836   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20837   if test "x$test_cygdrive_prefix" = x; then
20838     # As a simple fix, exclude /usr/bin since it's not a real path.
20839     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20840       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20841       # a path prefixed by /cygdrive for fixpath to work.
20842       new_path="$CYGWIN_ROOT_PATH$input_path"
20843     fi
20844   fi
20845 
20846 
20847   if test "x$path" != "x$new_path"; then
20848     BOOT_JDK="$new_path"
20849     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20850 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20851   fi
20852 
20853   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20854 
20855   path="$BOOT_JDK"
20856   has_colon=`$ECHO $path | $GREP ^.:`
20857   new_path="$path"
20858   if test "x$has_colon" = x; then
20859     # Not in mixed or Windows style, start by that.
20860     new_path=`cmd //c echo $path`
20861   fi
20862 
20863 
20864   input_path="$new_path"
20865   # Check if we need to convert this using DOS-style short mode. If the path
20866   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20867   # take no chances and rewrite it.
20868   # Note: m4 eats our [], so we need to use [ and ] instead.
20869   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20870   if test "x$has_forbidden_chars" != x; then
20871     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20872     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20873   fi
20874 
20875 
20876   windows_path="$new_path"
20877   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20878     unix_path=`$CYGPATH -u "$windows_path"`
20879     new_path="$unix_path"
20880   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20881     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20882     new_path="$unix_path"
20883   fi
20884 
20885   if test "x$path" != "x$new_path"; then
20886     BOOT_JDK="$new_path"
20887     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20889   fi
20890 
20891   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20892   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20893 
20894   else
20895     # We're on a posix platform. Hooray! :)
20896     path="$BOOT_JDK"
20897     has_space=`$ECHO "$path" | $GREP " "`
20898     if test "x$has_space" != x; then
20899       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20901       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20902     fi
20903 
20904     # Use eval to expand a potential ~
20905     eval path="$path"
20906     if test ! -f "$path" && test ! -d "$path"; then
20907       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20908     fi
20909 
20910     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20911   fi
20912 
20913               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20914 $as_echo_n "checking for Boot JDK... " >&6; }
20915               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20916 $as_echo "$BOOT_JDK" >&6; }
20917               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20918 $as_echo_n "checking Boot JDK version... " >&6; }
20919               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20920               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20921 $as_echo "$BOOT_JDK_VERSION" >&6; }
20922             fi # end check jdk version
20923           fi # end check rt.jar
20924         fi # end check javac
20925       fi # end check java
20926     fi # end check boot jdk found
20927   fi
20928 
20929     done
20930   fi
20931 
20932   fi
20933 
20934 
20935     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20936     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20937       # Do we have a bin/java?
20938       if test ! -x "$BOOT_JDK/bin/java"; then
20939         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20941         BOOT_JDK_FOUND=no
20942       else
20943         # Do we have a bin/javac?
20944         if test ! -x "$BOOT_JDK/bin/javac"; then
20945           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20947           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20948 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20949           BOOT_JDK_FOUND=no
20950         else
20951           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20952           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20953             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20955             BOOT_JDK_FOUND=no
20956           else
20957             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20958             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20959 
20960             # Extra M4 quote needed to protect [] in grep expression.
20961             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20962             if test "x$FOUND_VERSION_78" = x; then
20963               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20965               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20966 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20967               BOOT_JDK_FOUND=no
20968             else
20969               # We're done! :-)
20970               BOOT_JDK_FOUND=yes
20971 
20972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20973 
20974   # Input might be given as Windows format, start by converting to
20975   # unix format.
20976   path="$BOOT_JDK"
20977   new_path=`$CYGPATH -u "$path"`
20978 
20979   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20980   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20981   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20982   # "foo.exe" is OK but "foo" is an error.
20983   #
20984   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20985   # It is also a way to make sure we got the proper file name for the real test later on.
20986   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20987   if test "x$test_shortpath" = x; then
20988     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20989 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20990     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20991   fi
20992 
20993   # Call helper function which possibly converts this using DOS-style short mode.
20994   # If so, the updated path is stored in $new_path.
20995 
20996   input_path="$new_path"
20997   # Check if we need to convert this using DOS-style short mode. If the path
20998   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20999   # take no chances and rewrite it.
21000   # Note: m4 eats our [], so we need to use [ and ] instead.
21001   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21002   if test "x$has_forbidden_chars" != x; then
21003     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21004     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21005     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21006     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21007       # Going to short mode and back again did indeed matter. Since short mode is
21008       # case insensitive, let's make it lowercase to improve readability.
21009       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21010       # Now convert it back to Unix-stile (cygpath)
21011       input_path=`$CYGPATH -u "$shortmode_path"`
21012       new_path="$input_path"
21013     fi
21014   fi
21015 
21016   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21017   if test "x$test_cygdrive_prefix" = x; then
21018     # As a simple fix, exclude /usr/bin since it's not a real path.
21019     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21020       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21021       # a path prefixed by /cygdrive for fixpath to work.
21022       new_path="$CYGWIN_ROOT_PATH$input_path"
21023     fi
21024   fi
21025 
21026 
21027   if test "x$path" != "x$new_path"; then
21028     BOOT_JDK="$new_path"
21029     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21031   fi
21032 
21033   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21034 
21035   path="$BOOT_JDK"
21036   has_colon=`$ECHO $path | $GREP ^.:`
21037   new_path="$path"
21038   if test "x$has_colon" = x; then
21039     # Not in mixed or Windows style, start by that.
21040     new_path=`cmd //c echo $path`
21041   fi
21042 
21043 
21044   input_path="$new_path"
21045   # Check if we need to convert this using DOS-style short mode. If the path
21046   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21047   # take no chances and rewrite it.
21048   # Note: m4 eats our [], so we need to use [ and ] instead.
21049   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21050   if test "x$has_forbidden_chars" != x; then
21051     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21052     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21053   fi
21054 
21055 
21056   windows_path="$new_path"
21057   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21058     unix_path=`$CYGPATH -u "$windows_path"`
21059     new_path="$unix_path"
21060   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21061     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21062     new_path="$unix_path"
21063   fi
21064 
21065   if test "x$path" != "x$new_path"; then
21066     BOOT_JDK="$new_path"
21067     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21068 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21069   fi
21070 
21071   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21072   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21073 
21074   else
21075     # We're on a posix platform. Hooray! :)
21076     path="$BOOT_JDK"
21077     has_space=`$ECHO "$path" | $GREP " "`
21078     if test "x$has_space" != x; then
21079       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21080 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21081       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21082     fi
21083 
21084     # Use eval to expand a potential ~
21085     eval path="$path"
21086     if test ! -f "$path" && test ! -d "$path"; then
21087       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21088     fi
21089 
21090     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21091   fi
21092 
21093               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21094 $as_echo_n "checking for Boot JDK... " >&6; }
21095               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21096 $as_echo "$BOOT_JDK" >&6; }
21097               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21098 $as_echo_n "checking Boot JDK version... " >&6; }
21099               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21100               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21101 $as_echo "$BOOT_JDK_VERSION" >&6; }
21102             fi # end check jdk version
21103           fi # end check rt.jar
21104         fi # end check javac
21105       fi # end check java
21106     fi # end check boot jdk found
21107   fi
21108 
21109 
21110   if test "x$BOOT_JDK_FOUND" = xno; then
21111     # Now execute the test
21112 
21113   if test "x$PROGRAMW6432" != x; then
21114     VIRTUAL_DIR="$PROGRAMW6432/Java"
21115 
21116   windows_path="$VIRTUAL_DIR"
21117   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21118     unix_path=`$CYGPATH -u "$windows_path"`
21119     VIRTUAL_DIR="$unix_path"
21120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21121     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21122     VIRTUAL_DIR="$unix_path"
21123   fi
21124 
21125 
21126   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21127   BOOT_JDK_SUFFIX=""
21128   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21129   if test "x$ALL_JDKS_FOUND" != x; then
21130     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21131 
21132   if test "x$BOOT_JDK_FOUND" = xno; then
21133     # Now execute the test
21134 
21135         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21136         if test -d "$BOOT_JDK"; then
21137           BOOT_JDK_FOUND=maybe
21138           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21139 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21140         fi
21141 
21142 
21143     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21144     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21145       # Do we have a bin/java?
21146       if test ! -x "$BOOT_JDK/bin/java"; then
21147         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21149         BOOT_JDK_FOUND=no
21150       else
21151         # Do we have a bin/javac?
21152         if test ! -x "$BOOT_JDK/bin/javac"; then
21153           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21155           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21156 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21157           BOOT_JDK_FOUND=no
21158         else
21159           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21160           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21161             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21162 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21163             BOOT_JDK_FOUND=no
21164           else
21165             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21166             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21167 
21168             # Extra M4 quote needed to protect [] in grep expression.
21169             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21170             if test "x$FOUND_VERSION_78" = x; then
21171               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21172 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21173               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21174 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21175               BOOT_JDK_FOUND=no
21176             else
21177               # We're done! :-)
21178               BOOT_JDK_FOUND=yes
21179 
21180   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21181 
21182   # Input might be given as Windows format, start by converting to
21183   # unix format.
21184   path="$BOOT_JDK"
21185   new_path=`$CYGPATH -u "$path"`
21186 
21187   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21188   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21189   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21190   # "foo.exe" is OK but "foo" is an error.
21191   #
21192   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21193   # It is also a way to make sure we got the proper file name for the real test later on.
21194   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21195   if test "x$test_shortpath" = x; then
21196     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21197 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21198     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21199   fi
21200 
21201   # Call helper function which possibly converts this using DOS-style short mode.
21202   # If so, the updated path is stored in $new_path.
21203 
21204   input_path="$new_path"
21205   # Check if we need to convert this using DOS-style short mode. If the path
21206   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21207   # take no chances and rewrite it.
21208   # Note: m4 eats our [], so we need to use [ and ] instead.
21209   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21210   if test "x$has_forbidden_chars" != x; then
21211     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21212     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21213     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21214     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21215       # Going to short mode and back again did indeed matter. Since short mode is
21216       # case insensitive, let's make it lowercase to improve readability.
21217       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21218       # Now convert it back to Unix-stile (cygpath)
21219       input_path=`$CYGPATH -u "$shortmode_path"`
21220       new_path="$input_path"
21221     fi
21222   fi
21223 
21224   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21225   if test "x$test_cygdrive_prefix" = x; then
21226     # As a simple fix, exclude /usr/bin since it's not a real path.
21227     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21228       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21229       # a path prefixed by /cygdrive for fixpath to work.
21230       new_path="$CYGWIN_ROOT_PATH$input_path"
21231     fi
21232   fi
21233 
21234 
21235   if test "x$path" != "x$new_path"; then
21236     BOOT_JDK="$new_path"
21237     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21238 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21239   fi
21240 
21241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21242 
21243   path="$BOOT_JDK"
21244   has_colon=`$ECHO $path | $GREP ^.:`
21245   new_path="$path"
21246   if test "x$has_colon" = x; then
21247     # Not in mixed or Windows style, start by that.
21248     new_path=`cmd //c echo $path`
21249   fi
21250 
21251 
21252   input_path="$new_path"
21253   # Check if we need to convert this using DOS-style short mode. If the path
21254   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21255   # take no chances and rewrite it.
21256   # Note: m4 eats our [], so we need to use [ and ] instead.
21257   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21258   if test "x$has_forbidden_chars" != x; then
21259     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21260     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21261   fi
21262 
21263 
21264   windows_path="$new_path"
21265   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21266     unix_path=`$CYGPATH -u "$windows_path"`
21267     new_path="$unix_path"
21268   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21269     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21270     new_path="$unix_path"
21271   fi
21272 
21273   if test "x$path" != "x$new_path"; then
21274     BOOT_JDK="$new_path"
21275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21276 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21277   fi
21278 
21279   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21280   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21281 
21282   else
21283     # We're on a posix platform. Hooray! :)
21284     path="$BOOT_JDK"
21285     has_space=`$ECHO "$path" | $GREP " "`
21286     if test "x$has_space" != x; then
21287       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21288 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21289       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21290     fi
21291 
21292     # Use eval to expand a potential ~
21293     eval path="$path"
21294     if test ! -f "$path" && test ! -d "$path"; then
21295       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21296     fi
21297 
21298     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21299   fi
21300 
21301               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21302 $as_echo_n "checking for Boot JDK... " >&6; }
21303               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21304 $as_echo "$BOOT_JDK" >&6; }
21305               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21306 $as_echo_n "checking Boot JDK version... " >&6; }
21307               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21308               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21309 $as_echo "$BOOT_JDK_VERSION" >&6; }
21310             fi # end check jdk version
21311           fi # end check rt.jar
21312         fi # end check javac
21313       fi # end check java
21314     fi # end check boot jdk found
21315   fi
21316 
21317     done
21318   fi
21319 
21320   fi
21321 
21322 
21323     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21324     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21325       # Do we have a bin/java?
21326       if test ! -x "$BOOT_JDK/bin/java"; then
21327         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21329         BOOT_JDK_FOUND=no
21330       else
21331         # Do we have a bin/javac?
21332         if test ! -x "$BOOT_JDK/bin/javac"; then
21333           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21335           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21336 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21337           BOOT_JDK_FOUND=no
21338         else
21339           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21340           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21341             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21342 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21343             BOOT_JDK_FOUND=no
21344           else
21345             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21346             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21347 
21348             # Extra M4 quote needed to protect [] in grep expression.
21349             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21350             if test "x$FOUND_VERSION_78" = x; then
21351               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21352 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21353               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21354 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21355               BOOT_JDK_FOUND=no
21356             else
21357               # We're done! :-)
21358               BOOT_JDK_FOUND=yes
21359 
21360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21361 
21362   # Input might be given as Windows format, start by converting to
21363   # unix format.
21364   path="$BOOT_JDK"
21365   new_path=`$CYGPATH -u "$path"`
21366 
21367   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21368   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21369   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21370   # "foo.exe" is OK but "foo" is an error.
21371   #
21372   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21373   # It is also a way to make sure we got the proper file name for the real test later on.
21374   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21375   if test "x$test_shortpath" = x; then
21376     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21377 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21378     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21379   fi
21380 
21381   # Call helper function which possibly converts this using DOS-style short mode.
21382   # If so, the updated path is stored in $new_path.
21383 
21384   input_path="$new_path"
21385   # Check if we need to convert this using DOS-style short mode. If the path
21386   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21387   # take no chances and rewrite it.
21388   # Note: m4 eats our [], so we need to use [ and ] instead.
21389   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21390   if test "x$has_forbidden_chars" != x; then
21391     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21392     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21393     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21394     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21395       # Going to short mode and back again did indeed matter. Since short mode is
21396       # case insensitive, let's make it lowercase to improve readability.
21397       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21398       # Now convert it back to Unix-stile (cygpath)
21399       input_path=`$CYGPATH -u "$shortmode_path"`
21400       new_path="$input_path"
21401     fi
21402   fi
21403 
21404   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21405   if test "x$test_cygdrive_prefix" = x; then
21406     # As a simple fix, exclude /usr/bin since it's not a real path.
21407     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21408       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21409       # a path prefixed by /cygdrive for fixpath to work.
21410       new_path="$CYGWIN_ROOT_PATH$input_path"
21411     fi
21412   fi
21413 
21414 
21415   if test "x$path" != "x$new_path"; then
21416     BOOT_JDK="$new_path"
21417     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21418 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21419   fi
21420 
21421   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21422 
21423   path="$BOOT_JDK"
21424   has_colon=`$ECHO $path | $GREP ^.:`
21425   new_path="$path"
21426   if test "x$has_colon" = x; then
21427     # Not in mixed or Windows style, start by that.
21428     new_path=`cmd //c echo $path`
21429   fi
21430 
21431 
21432   input_path="$new_path"
21433   # Check if we need to convert this using DOS-style short mode. If the path
21434   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21435   # take no chances and rewrite it.
21436   # Note: m4 eats our [], so we need to use [ and ] instead.
21437   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21438   if test "x$has_forbidden_chars" != x; then
21439     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21440     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21441   fi
21442 
21443 
21444   windows_path="$new_path"
21445   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21446     unix_path=`$CYGPATH -u "$windows_path"`
21447     new_path="$unix_path"
21448   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21449     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21450     new_path="$unix_path"
21451   fi
21452 
21453   if test "x$path" != "x$new_path"; then
21454     BOOT_JDK="$new_path"
21455     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21456 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21457   fi
21458 
21459   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21460   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21461 
21462   else
21463     # We're on a posix platform. Hooray! :)
21464     path="$BOOT_JDK"
21465     has_space=`$ECHO "$path" | $GREP " "`
21466     if test "x$has_space" != x; then
21467       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21469       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21470     fi
21471 
21472     # Use eval to expand a potential ~
21473     eval path="$path"
21474     if test ! -f "$path" && test ! -d "$path"; then
21475       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21476     fi
21477 
21478     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21479   fi
21480 
21481               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21482 $as_echo_n "checking for Boot JDK... " >&6; }
21483               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21484 $as_echo "$BOOT_JDK" >&6; }
21485               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21486 $as_echo_n "checking Boot JDK version... " >&6; }
21487               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21488               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21489 $as_echo "$BOOT_JDK_VERSION" >&6; }
21490             fi # end check jdk version
21491           fi # end check rt.jar
21492         fi # end check javac
21493       fi # end check java
21494     fi # end check boot jdk found
21495   fi
21496 
21497 
21498   if test "x$BOOT_JDK_FOUND" = xno; then
21499     # Now execute the test
21500 
21501   if test "x$PROGRAMFILES" != x; then
21502     VIRTUAL_DIR="$PROGRAMFILES/Java"
21503 
21504   windows_path="$VIRTUAL_DIR"
21505   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21506     unix_path=`$CYGPATH -u "$windows_path"`
21507     VIRTUAL_DIR="$unix_path"
21508   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21509     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21510     VIRTUAL_DIR="$unix_path"
21511   fi
21512 
21513 
21514   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21515   BOOT_JDK_SUFFIX=""
21516   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21517   if test "x$ALL_JDKS_FOUND" != x; then
21518     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21519 
21520   if test "x$BOOT_JDK_FOUND" = xno; then
21521     # Now execute the test
21522 
21523         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21524         if test -d "$BOOT_JDK"; then
21525           BOOT_JDK_FOUND=maybe
21526           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21527 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21528         fi
21529 
21530 
21531     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21532     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21533       # Do we have a bin/java?
21534       if test ! -x "$BOOT_JDK/bin/java"; then
21535         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21536 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21537         BOOT_JDK_FOUND=no
21538       else
21539         # Do we have a bin/javac?
21540         if test ! -x "$BOOT_JDK/bin/javac"; then
21541           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21542 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21543           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21544 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21545           BOOT_JDK_FOUND=no
21546         else
21547           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21548           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21549             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21551             BOOT_JDK_FOUND=no
21552           else
21553             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21554             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21555 
21556             # Extra M4 quote needed to protect [] in grep expression.
21557             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21558             if test "x$FOUND_VERSION_78" = x; then
21559               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21561               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21562 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21563               BOOT_JDK_FOUND=no
21564             else
21565               # We're done! :-)
21566               BOOT_JDK_FOUND=yes
21567 
21568   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21569 
21570   # Input might be given as Windows format, start by converting to
21571   # unix format.
21572   path="$BOOT_JDK"
21573   new_path=`$CYGPATH -u "$path"`
21574 
21575   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21576   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21577   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21578   # "foo.exe" is OK but "foo" is an error.
21579   #
21580   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21581   # It is also a way to make sure we got the proper file name for the real test later on.
21582   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21583   if test "x$test_shortpath" = x; then
21584     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21585 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21586     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21587   fi
21588 
21589   # Call helper function which possibly converts this using DOS-style short mode.
21590   # If so, the updated path is stored in $new_path.
21591 
21592   input_path="$new_path"
21593   # Check if we need to convert this using DOS-style short mode. If the path
21594   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21595   # take no chances and rewrite it.
21596   # Note: m4 eats our [], so we need to use [ and ] instead.
21597   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21598   if test "x$has_forbidden_chars" != x; then
21599     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21600     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21601     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21602     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21603       # Going to short mode and back again did indeed matter. Since short mode is
21604       # case insensitive, let's make it lowercase to improve readability.
21605       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21606       # Now convert it back to Unix-stile (cygpath)
21607       input_path=`$CYGPATH -u "$shortmode_path"`
21608       new_path="$input_path"
21609     fi
21610   fi
21611 
21612   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21613   if test "x$test_cygdrive_prefix" = x; then
21614     # As a simple fix, exclude /usr/bin since it's not a real path.
21615     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21616       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21617       # a path prefixed by /cygdrive for fixpath to work.
21618       new_path="$CYGWIN_ROOT_PATH$input_path"
21619     fi
21620   fi
21621 
21622 
21623   if test "x$path" != "x$new_path"; then
21624     BOOT_JDK="$new_path"
21625     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21626 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21627   fi
21628 
21629   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21630 
21631   path="$BOOT_JDK"
21632   has_colon=`$ECHO $path | $GREP ^.:`
21633   new_path="$path"
21634   if test "x$has_colon" = x; then
21635     # Not in mixed or Windows style, start by that.
21636     new_path=`cmd //c echo $path`
21637   fi
21638 
21639 
21640   input_path="$new_path"
21641   # Check if we need to convert this using DOS-style short mode. If the path
21642   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21643   # take no chances and rewrite it.
21644   # Note: m4 eats our [], so we need to use [ and ] instead.
21645   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21646   if test "x$has_forbidden_chars" != x; then
21647     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21648     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21649   fi
21650 
21651 
21652   windows_path="$new_path"
21653   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21654     unix_path=`$CYGPATH -u "$windows_path"`
21655     new_path="$unix_path"
21656   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21657     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21658     new_path="$unix_path"
21659   fi
21660 
21661   if test "x$path" != "x$new_path"; then
21662     BOOT_JDK="$new_path"
21663     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21664 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21665   fi
21666 
21667   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21668   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21669 
21670   else
21671     # We're on a posix platform. Hooray! :)
21672     path="$BOOT_JDK"
21673     has_space=`$ECHO "$path" | $GREP " "`
21674     if test "x$has_space" != x; then
21675       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21676 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21677       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21678     fi
21679 
21680     # Use eval to expand a potential ~
21681     eval path="$path"
21682     if test ! -f "$path" && test ! -d "$path"; then
21683       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21684     fi
21685 
21686     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21687   fi
21688 
21689               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21690 $as_echo_n "checking for Boot JDK... " >&6; }
21691               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21692 $as_echo "$BOOT_JDK" >&6; }
21693               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21694 $as_echo_n "checking Boot JDK version... " >&6; }
21695               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21696               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21697 $as_echo "$BOOT_JDK_VERSION" >&6; }
21698             fi # end check jdk version
21699           fi # end check rt.jar
21700         fi # end check javac
21701       fi # end check java
21702     fi # end check boot jdk found
21703   fi
21704 
21705     done
21706   fi
21707 
21708   fi
21709 
21710 
21711     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21712     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21713       # Do we have a bin/java?
21714       if test ! -x "$BOOT_JDK/bin/java"; then
21715         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21716 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21717         BOOT_JDK_FOUND=no
21718       else
21719         # Do we have a bin/javac?
21720         if test ! -x "$BOOT_JDK/bin/javac"; then
21721           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21722 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21723           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21724 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21725           BOOT_JDK_FOUND=no
21726         else
21727           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21728           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21729             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21731             BOOT_JDK_FOUND=no
21732           else
21733             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21734             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21735 
21736             # Extra M4 quote needed to protect [] in grep expression.
21737             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21738             if test "x$FOUND_VERSION_78" = x; then
21739               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21741               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21742 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21743               BOOT_JDK_FOUND=no
21744             else
21745               # We're done! :-)
21746               BOOT_JDK_FOUND=yes
21747 
21748   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21749 
21750   # Input might be given as Windows format, start by converting to
21751   # unix format.
21752   path="$BOOT_JDK"
21753   new_path=`$CYGPATH -u "$path"`
21754 
21755   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21756   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21757   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21758   # "foo.exe" is OK but "foo" is an error.
21759   #
21760   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21761   # It is also a way to make sure we got the proper file name for the real test later on.
21762   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21763   if test "x$test_shortpath" = x; then
21764     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21765 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21766     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21767   fi
21768 
21769   # Call helper function which possibly converts this using DOS-style short mode.
21770   # If so, the updated path is stored in $new_path.
21771 
21772   input_path="$new_path"
21773   # Check if we need to convert this using DOS-style short mode. If the path
21774   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21775   # take no chances and rewrite it.
21776   # Note: m4 eats our [], so we need to use [ and ] instead.
21777   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21778   if test "x$has_forbidden_chars" != x; then
21779     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21780     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21781     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21782     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21783       # Going to short mode and back again did indeed matter. Since short mode is
21784       # case insensitive, let's make it lowercase to improve readability.
21785       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21786       # Now convert it back to Unix-stile (cygpath)
21787       input_path=`$CYGPATH -u "$shortmode_path"`
21788       new_path="$input_path"
21789     fi
21790   fi
21791 
21792   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21793   if test "x$test_cygdrive_prefix" = x; then
21794     # As a simple fix, exclude /usr/bin since it's not a real path.
21795     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21796       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21797       # a path prefixed by /cygdrive for fixpath to work.
21798       new_path="$CYGWIN_ROOT_PATH$input_path"
21799     fi
21800   fi
21801 
21802 
21803   if test "x$path" != "x$new_path"; then
21804     BOOT_JDK="$new_path"
21805     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21806 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21807   fi
21808 
21809   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21810 
21811   path="$BOOT_JDK"
21812   has_colon=`$ECHO $path | $GREP ^.:`
21813   new_path="$path"
21814   if test "x$has_colon" = x; then
21815     # Not in mixed or Windows style, start by that.
21816     new_path=`cmd //c echo $path`
21817   fi
21818 
21819 
21820   input_path="$new_path"
21821   # Check if we need to convert this using DOS-style short mode. If the path
21822   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21823   # take no chances and rewrite it.
21824   # Note: m4 eats our [], so we need to use [ and ] instead.
21825   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21826   if test "x$has_forbidden_chars" != x; then
21827     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21828     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21829   fi
21830 
21831 
21832   windows_path="$new_path"
21833   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21834     unix_path=`$CYGPATH -u "$windows_path"`
21835     new_path="$unix_path"
21836   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21837     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21838     new_path="$unix_path"
21839   fi
21840 
21841   if test "x$path" != "x$new_path"; then
21842     BOOT_JDK="$new_path"
21843     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21844 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21845   fi
21846 
21847   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21848   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21849 
21850   else
21851     # We're on a posix platform. Hooray! :)
21852     path="$BOOT_JDK"
21853     has_space=`$ECHO "$path" | $GREP " "`
21854     if test "x$has_space" != x; then
21855       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21856 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21857       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21858     fi
21859 
21860     # Use eval to expand a potential ~
21861     eval path="$path"
21862     if test ! -f "$path" && test ! -d "$path"; then
21863       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21864     fi
21865 
21866     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21867   fi
21868 
21869               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21870 $as_echo_n "checking for Boot JDK... " >&6; }
21871               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21872 $as_echo "$BOOT_JDK" >&6; }
21873               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21874 $as_echo_n "checking Boot JDK version... " >&6; }
21875               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21876               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21877 $as_echo "$BOOT_JDK_VERSION" >&6; }
21878             fi # end check jdk version
21879           fi # end check rt.jar
21880         fi # end check javac
21881       fi # end check java
21882     fi # end check boot jdk found
21883   fi
21884 
21885 
21886   if test "x$BOOT_JDK_FOUND" = xno; then
21887     # Now execute the test
21888 
21889   if test "x$ProgramFiles" != x; then
21890     VIRTUAL_DIR="$ProgramFiles/Java"
21891 
21892   windows_path="$VIRTUAL_DIR"
21893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21894     unix_path=`$CYGPATH -u "$windows_path"`
21895     VIRTUAL_DIR="$unix_path"
21896   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21897     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21898     VIRTUAL_DIR="$unix_path"
21899   fi
21900 
21901 
21902   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21903   BOOT_JDK_SUFFIX=""
21904   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21905   if test "x$ALL_JDKS_FOUND" != x; then
21906     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21907 
21908   if test "x$BOOT_JDK_FOUND" = xno; then
21909     # Now execute the test
21910 
21911         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21912         if test -d "$BOOT_JDK"; then
21913           BOOT_JDK_FOUND=maybe
21914           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21915 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21916         fi
21917 
21918 
21919     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21920     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21921       # Do we have a bin/java?
21922       if test ! -x "$BOOT_JDK/bin/java"; then
21923         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21924 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21925         BOOT_JDK_FOUND=no
21926       else
21927         # Do we have a bin/javac?
21928         if test ! -x "$BOOT_JDK/bin/javac"; then
21929           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21931           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21932 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21933           BOOT_JDK_FOUND=no
21934         else
21935           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21936           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21937             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21938 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21939             BOOT_JDK_FOUND=no
21940           else
21941             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21942             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21943 
21944             # Extra M4 quote needed to protect [] in grep expression.
21945             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21946             if test "x$FOUND_VERSION_78" = x; then
21947               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21949               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21950 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21951               BOOT_JDK_FOUND=no
21952             else
21953               # We're done! :-)
21954               BOOT_JDK_FOUND=yes
21955 
21956   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21957 
21958   # Input might be given as Windows format, start by converting to
21959   # unix format.
21960   path="$BOOT_JDK"
21961   new_path=`$CYGPATH -u "$path"`
21962 
21963   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21964   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21965   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21966   # "foo.exe" is OK but "foo" is an error.
21967   #
21968   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21969   # It is also a way to make sure we got the proper file name for the real test later on.
21970   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21971   if test "x$test_shortpath" = x; then
21972     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21973 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21974     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21975   fi
21976 
21977   # Call helper function which possibly converts this using DOS-style short mode.
21978   # If so, the updated path is stored in $new_path.
21979 
21980   input_path="$new_path"
21981   # Check if we need to convert this using DOS-style short mode. If the path
21982   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21983   # take no chances and rewrite it.
21984   # Note: m4 eats our [], so we need to use [ and ] instead.
21985   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21986   if test "x$has_forbidden_chars" != x; then
21987     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21988     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21989     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21990     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21991       # Going to short mode and back again did indeed matter. Since short mode is
21992       # case insensitive, let's make it lowercase to improve readability.
21993       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21994       # Now convert it back to Unix-stile (cygpath)
21995       input_path=`$CYGPATH -u "$shortmode_path"`
21996       new_path="$input_path"
21997     fi
21998   fi
21999 
22000   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22001   if test "x$test_cygdrive_prefix" = x; then
22002     # As a simple fix, exclude /usr/bin since it's not a real path.
22003     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22004       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22005       # a path prefixed by /cygdrive for fixpath to work.
22006       new_path="$CYGWIN_ROOT_PATH$input_path"
22007     fi
22008   fi
22009 
22010 
22011   if test "x$path" != "x$new_path"; then
22012     BOOT_JDK="$new_path"
22013     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22014 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22015   fi
22016 
22017   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22018 
22019   path="$BOOT_JDK"
22020   has_colon=`$ECHO $path | $GREP ^.:`
22021   new_path="$path"
22022   if test "x$has_colon" = x; then
22023     # Not in mixed or Windows style, start by that.
22024     new_path=`cmd //c echo $path`
22025   fi
22026 
22027 
22028   input_path="$new_path"
22029   # Check if we need to convert this using DOS-style short mode. If the path
22030   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22031   # take no chances and rewrite it.
22032   # Note: m4 eats our [], so we need to use [ and ] instead.
22033   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22034   if test "x$has_forbidden_chars" != x; then
22035     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22036     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22037   fi
22038 
22039 
22040   windows_path="$new_path"
22041   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22042     unix_path=`$CYGPATH -u "$windows_path"`
22043     new_path="$unix_path"
22044   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22045     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22046     new_path="$unix_path"
22047   fi
22048 
22049   if test "x$path" != "x$new_path"; then
22050     BOOT_JDK="$new_path"
22051     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22052 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22053   fi
22054 
22055   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22056   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22057 
22058   else
22059     # We're on a posix platform. Hooray! :)
22060     path="$BOOT_JDK"
22061     has_space=`$ECHO "$path" | $GREP " "`
22062     if test "x$has_space" != x; then
22063       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22064 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22065       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22066     fi
22067 
22068     # Use eval to expand a potential ~
22069     eval path="$path"
22070     if test ! -f "$path" && test ! -d "$path"; then
22071       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22072     fi
22073 
22074     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22075   fi
22076 
22077               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22078 $as_echo_n "checking for Boot JDK... " >&6; }
22079               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22080 $as_echo "$BOOT_JDK" >&6; }
22081               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22082 $as_echo_n "checking Boot JDK version... " >&6; }
22083               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22084               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22085 $as_echo "$BOOT_JDK_VERSION" >&6; }
22086             fi # end check jdk version
22087           fi # end check rt.jar
22088         fi # end check javac
22089       fi # end check java
22090     fi # end check boot jdk found
22091   fi
22092 
22093     done
22094   fi
22095 
22096   fi
22097 
22098 
22099     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22100     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22101       # Do we have a bin/java?
22102       if test ! -x "$BOOT_JDK/bin/java"; then
22103         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22105         BOOT_JDK_FOUND=no
22106       else
22107         # Do we have a bin/javac?
22108         if test ! -x "$BOOT_JDK/bin/javac"; then
22109           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22110 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22111           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22112 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22113           BOOT_JDK_FOUND=no
22114         else
22115           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22116           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22117             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22119             BOOT_JDK_FOUND=no
22120           else
22121             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22122             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22123 
22124             # Extra M4 quote needed to protect [] in grep expression.
22125             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22126             if test "x$FOUND_VERSION_78" = x; then
22127               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22129               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22130 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22131               BOOT_JDK_FOUND=no
22132             else
22133               # We're done! :-)
22134               BOOT_JDK_FOUND=yes
22135 
22136   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22137 
22138   # Input might be given as Windows format, start by converting to
22139   # unix format.
22140   path="$BOOT_JDK"
22141   new_path=`$CYGPATH -u "$path"`
22142 
22143   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22144   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22145   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22146   # "foo.exe" is OK but "foo" is an error.
22147   #
22148   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22149   # It is also a way to make sure we got the proper file name for the real test later on.
22150   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22151   if test "x$test_shortpath" = x; then
22152     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22153 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22154     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22155   fi
22156 
22157   # Call helper function which possibly converts this using DOS-style short mode.
22158   # If so, the updated path is stored in $new_path.
22159 
22160   input_path="$new_path"
22161   # Check if we need to convert this using DOS-style short mode. If the path
22162   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22163   # take no chances and rewrite it.
22164   # Note: m4 eats our [], so we need to use [ and ] instead.
22165   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22166   if test "x$has_forbidden_chars" != x; then
22167     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22168     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22169     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22170     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22171       # Going to short mode and back again did indeed matter. Since short mode is
22172       # case insensitive, let's make it lowercase to improve readability.
22173       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22174       # Now convert it back to Unix-stile (cygpath)
22175       input_path=`$CYGPATH -u "$shortmode_path"`
22176       new_path="$input_path"
22177     fi
22178   fi
22179 
22180   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22181   if test "x$test_cygdrive_prefix" = x; then
22182     # As a simple fix, exclude /usr/bin since it's not a real path.
22183     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22184       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22185       # a path prefixed by /cygdrive for fixpath to work.
22186       new_path="$CYGWIN_ROOT_PATH$input_path"
22187     fi
22188   fi
22189 
22190 
22191   if test "x$path" != "x$new_path"; then
22192     BOOT_JDK="$new_path"
22193     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22194 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22195   fi
22196 
22197   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22198 
22199   path="$BOOT_JDK"
22200   has_colon=`$ECHO $path | $GREP ^.:`
22201   new_path="$path"
22202   if test "x$has_colon" = x; then
22203     # Not in mixed or Windows style, start by that.
22204     new_path=`cmd //c echo $path`
22205   fi
22206 
22207 
22208   input_path="$new_path"
22209   # Check if we need to convert this using DOS-style short mode. If the path
22210   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22211   # take no chances and rewrite it.
22212   # Note: m4 eats our [], so we need to use [ and ] instead.
22213   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22214   if test "x$has_forbidden_chars" != x; then
22215     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22216     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22217   fi
22218 
22219 
22220   windows_path="$new_path"
22221   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22222     unix_path=`$CYGPATH -u "$windows_path"`
22223     new_path="$unix_path"
22224   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22225     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22226     new_path="$unix_path"
22227   fi
22228 
22229   if test "x$path" != "x$new_path"; then
22230     BOOT_JDK="$new_path"
22231     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22232 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22233   fi
22234 
22235   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22236   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22237 
22238   else
22239     # We're on a posix platform. Hooray! :)
22240     path="$BOOT_JDK"
22241     has_space=`$ECHO "$path" | $GREP " "`
22242     if test "x$has_space" != x; then
22243       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22244 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22245       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22246     fi
22247 
22248     # Use eval to expand a potential ~
22249     eval path="$path"
22250     if test ! -f "$path" && test ! -d "$path"; then
22251       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22252     fi
22253 
22254     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22255   fi
22256 
22257               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22258 $as_echo_n "checking for Boot JDK... " >&6; }
22259               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22260 $as_echo "$BOOT_JDK" >&6; }
22261               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22262 $as_echo_n "checking Boot JDK version... " >&6; }
22263               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22264               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22265 $as_echo "$BOOT_JDK_VERSION" >&6; }
22266             fi # end check jdk version
22267           fi # end check rt.jar
22268         fi # end check javac
22269       fi # end check java
22270     fi # end check boot jdk found
22271   fi
22272 
22273 
22274   if test "x$BOOT_JDK_FOUND" = xno; then
22275     # Now execute the test
22276 
22277   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22278   BOOT_JDK_SUFFIX=""
22279   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22280   if test "x$ALL_JDKS_FOUND" != x; then
22281     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22282 
22283   if test "x$BOOT_JDK_FOUND" = xno; then
22284     # Now execute the test
22285 
22286         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22287         if test -d "$BOOT_JDK"; then
22288           BOOT_JDK_FOUND=maybe
22289           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22290 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22291         fi
22292 
22293 
22294     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22295     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22296       # Do we have a bin/java?
22297       if test ! -x "$BOOT_JDK/bin/java"; then
22298         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22300         BOOT_JDK_FOUND=no
22301       else
22302         # Do we have a bin/javac?
22303         if test ! -x "$BOOT_JDK/bin/javac"; then
22304           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22305 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22306           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22307 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22308           BOOT_JDK_FOUND=no
22309         else
22310           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22311           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22312             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22314             BOOT_JDK_FOUND=no
22315           else
22316             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22317             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22318 
22319             # Extra M4 quote needed to protect [] in grep expression.
22320             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22321             if test "x$FOUND_VERSION_78" = x; then
22322               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22324               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22325 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22326               BOOT_JDK_FOUND=no
22327             else
22328               # We're done! :-)
22329               BOOT_JDK_FOUND=yes
22330 
22331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22332 
22333   # Input might be given as Windows format, start by converting to
22334   # unix format.
22335   path="$BOOT_JDK"
22336   new_path=`$CYGPATH -u "$path"`
22337 
22338   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22339   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22340   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22341   # "foo.exe" is OK but "foo" is an error.
22342   #
22343   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22344   # It is also a way to make sure we got the proper file name for the real test later on.
22345   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22346   if test "x$test_shortpath" = x; then
22347     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22348 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22349     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22350   fi
22351 
22352   # Call helper function which possibly converts this using DOS-style short mode.
22353   # If so, the updated path is stored in $new_path.
22354 
22355   input_path="$new_path"
22356   # Check if we need to convert this using DOS-style short mode. If the path
22357   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22358   # take no chances and rewrite it.
22359   # Note: m4 eats our [], so we need to use [ and ] instead.
22360   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22361   if test "x$has_forbidden_chars" != x; then
22362     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22363     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22364     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22365     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22366       # Going to short mode and back again did indeed matter. Since short mode is
22367       # case insensitive, let's make it lowercase to improve readability.
22368       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22369       # Now convert it back to Unix-stile (cygpath)
22370       input_path=`$CYGPATH -u "$shortmode_path"`
22371       new_path="$input_path"
22372     fi
22373   fi
22374 
22375   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22376   if test "x$test_cygdrive_prefix" = x; then
22377     # As a simple fix, exclude /usr/bin since it's not a real path.
22378     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22379       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22380       # a path prefixed by /cygdrive for fixpath to work.
22381       new_path="$CYGWIN_ROOT_PATH$input_path"
22382     fi
22383   fi
22384 
22385 
22386   if test "x$path" != "x$new_path"; then
22387     BOOT_JDK="$new_path"
22388     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22389 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22390   fi
22391 
22392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22393 
22394   path="$BOOT_JDK"
22395   has_colon=`$ECHO $path | $GREP ^.:`
22396   new_path="$path"
22397   if test "x$has_colon" = x; then
22398     # Not in mixed or Windows style, start by that.
22399     new_path=`cmd //c echo $path`
22400   fi
22401 
22402 
22403   input_path="$new_path"
22404   # Check if we need to convert this using DOS-style short mode. If the path
22405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22406   # take no chances and rewrite it.
22407   # Note: m4 eats our [], so we need to use [ and ] instead.
22408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22409   if test "x$has_forbidden_chars" != x; then
22410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22411     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22412   fi
22413 
22414 
22415   windows_path="$new_path"
22416   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22417     unix_path=`$CYGPATH -u "$windows_path"`
22418     new_path="$unix_path"
22419   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22420     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22421     new_path="$unix_path"
22422   fi
22423 
22424   if test "x$path" != "x$new_path"; then
22425     BOOT_JDK="$new_path"
22426     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22427 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22428   fi
22429 
22430   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22431   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22432 
22433   else
22434     # We're on a posix platform. Hooray! :)
22435     path="$BOOT_JDK"
22436     has_space=`$ECHO "$path" | $GREP " "`
22437     if test "x$has_space" != x; then
22438       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22439 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22440       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22441     fi
22442 
22443     # Use eval to expand a potential ~
22444     eval path="$path"
22445     if test ! -f "$path" && test ! -d "$path"; then
22446       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22447     fi
22448 
22449     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22450   fi
22451 
22452               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22453 $as_echo_n "checking for Boot JDK... " >&6; }
22454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22455 $as_echo "$BOOT_JDK" >&6; }
22456               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22457 $as_echo_n "checking Boot JDK version... " >&6; }
22458               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22459               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22460 $as_echo "$BOOT_JDK_VERSION" >&6; }
22461             fi # end check jdk version
22462           fi # end check rt.jar
22463         fi # end check javac
22464       fi # end check java
22465     fi # end check boot jdk found
22466   fi
22467 
22468     done
22469   fi
22470 
22471 
22472     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22473     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22474       # Do we have a bin/java?
22475       if test ! -x "$BOOT_JDK/bin/java"; then
22476         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22478         BOOT_JDK_FOUND=no
22479       else
22480         # Do we have a bin/javac?
22481         if test ! -x "$BOOT_JDK/bin/javac"; then
22482           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22483 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22484           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22485 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22486           BOOT_JDK_FOUND=no
22487         else
22488           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22489           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22490             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22492             BOOT_JDK_FOUND=no
22493           else
22494             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22495             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22496 
22497             # Extra M4 quote needed to protect [] in grep expression.
22498             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22499             if test "x$FOUND_VERSION_78" = x; then
22500               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22501 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22502               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22503 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22504               BOOT_JDK_FOUND=no
22505             else
22506               # We're done! :-)
22507               BOOT_JDK_FOUND=yes
22508 
22509   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22510 
22511   # Input might be given as Windows format, start by converting to
22512   # unix format.
22513   path="$BOOT_JDK"
22514   new_path=`$CYGPATH -u "$path"`
22515 
22516   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22517   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22518   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22519   # "foo.exe" is OK but "foo" is an error.
22520   #
22521   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22522   # It is also a way to make sure we got the proper file name for the real test later on.
22523   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22524   if test "x$test_shortpath" = x; then
22525     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22526 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22527     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22528   fi
22529 
22530   # Call helper function which possibly converts this using DOS-style short mode.
22531   # If so, the updated path is stored in $new_path.
22532 
22533   input_path="$new_path"
22534   # Check if we need to convert this using DOS-style short mode. If the path
22535   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22536   # take no chances and rewrite it.
22537   # Note: m4 eats our [], so we need to use [ and ] instead.
22538   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22539   if test "x$has_forbidden_chars" != x; then
22540     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22541     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22542     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22543     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22544       # Going to short mode and back again did indeed matter. Since short mode is
22545       # case insensitive, let's make it lowercase to improve readability.
22546       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22547       # Now convert it back to Unix-stile (cygpath)
22548       input_path=`$CYGPATH -u "$shortmode_path"`
22549       new_path="$input_path"
22550     fi
22551   fi
22552 
22553   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22554   if test "x$test_cygdrive_prefix" = x; then
22555     # As a simple fix, exclude /usr/bin since it's not a real path.
22556     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22557       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22558       # a path prefixed by /cygdrive for fixpath to work.
22559       new_path="$CYGWIN_ROOT_PATH$input_path"
22560     fi
22561   fi
22562 
22563 
22564   if test "x$path" != "x$new_path"; then
22565     BOOT_JDK="$new_path"
22566     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22567 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22568   fi
22569 
22570   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22571 
22572   path="$BOOT_JDK"
22573   has_colon=`$ECHO $path | $GREP ^.:`
22574   new_path="$path"
22575   if test "x$has_colon" = x; then
22576     # Not in mixed or Windows style, start by that.
22577     new_path=`cmd //c echo $path`
22578   fi
22579 
22580 
22581   input_path="$new_path"
22582   # Check if we need to convert this using DOS-style short mode. If the path
22583   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22584   # take no chances and rewrite it.
22585   # Note: m4 eats our [], so we need to use [ and ] instead.
22586   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22587   if test "x$has_forbidden_chars" != x; then
22588     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22589     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22590   fi
22591 
22592 
22593   windows_path="$new_path"
22594   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22595     unix_path=`$CYGPATH -u "$windows_path"`
22596     new_path="$unix_path"
22597   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22598     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22599     new_path="$unix_path"
22600   fi
22601 
22602   if test "x$path" != "x$new_path"; then
22603     BOOT_JDK="$new_path"
22604     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22605 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22606   fi
22607 
22608   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22609   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22610 
22611   else
22612     # We're on a posix platform. Hooray! :)
22613     path="$BOOT_JDK"
22614     has_space=`$ECHO "$path" | $GREP " "`
22615     if test "x$has_space" != x; then
22616       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22617 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22618       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22619     fi
22620 
22621     # Use eval to expand a potential ~
22622     eval path="$path"
22623     if test ! -f "$path" && test ! -d "$path"; then
22624       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22625     fi
22626 
22627     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22628   fi
22629 
22630               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22631 $as_echo_n "checking for Boot JDK... " >&6; }
22632               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22633 $as_echo "$BOOT_JDK" >&6; }
22634               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22635 $as_echo_n "checking Boot JDK version... " >&6; }
22636               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22637               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22638 $as_echo "$BOOT_JDK_VERSION" >&6; }
22639             fi # end check jdk version
22640           fi # end check rt.jar
22641         fi # end check javac
22642       fi # end check java
22643     fi # end check boot jdk found
22644   fi
22645 
22646   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
22647 
22648   if test "x$BOOT_JDK_FOUND" = xno; then
22649     # Now execute the test
22650 
22651   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
22652   BOOT_JDK_SUFFIX="/Contents/Home"
22653   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22654   if test "x$ALL_JDKS_FOUND" != x; then
22655     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22656 
22657   if test "x$BOOT_JDK_FOUND" = xno; then
22658     # Now execute the test
22659 
22660         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22661         if test -d "$BOOT_JDK"; then
22662           BOOT_JDK_FOUND=maybe
22663           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22664 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22665         fi
22666 
22667 
22668     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22669     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22670       # Do we have a bin/java?
22671       if test ! -x "$BOOT_JDK/bin/java"; then
22672         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22673 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22674         BOOT_JDK_FOUND=no
22675       else
22676         # Do we have a bin/javac?
22677         if test ! -x "$BOOT_JDK/bin/javac"; then
22678           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22679 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22680           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22681 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22682           BOOT_JDK_FOUND=no
22683         else
22684           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22685           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22686             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22687 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22688             BOOT_JDK_FOUND=no
22689           else
22690             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22691             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22692 
22693             # Extra M4 quote needed to protect [] in grep expression.
22694             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22695             if test "x$FOUND_VERSION_78" = x; then
22696               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22697 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22698               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22699 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22700               BOOT_JDK_FOUND=no
22701             else
22702               # We're done! :-)
22703               BOOT_JDK_FOUND=yes
22704 
22705   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22706 
22707   # Input might be given as Windows format, start by converting to
22708   # unix format.
22709   path="$BOOT_JDK"
22710   new_path=`$CYGPATH -u "$path"`
22711 
22712   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22713   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22714   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22715   # "foo.exe" is OK but "foo" is an error.
22716   #
22717   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22718   # It is also a way to make sure we got the proper file name for the real test later on.
22719   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22720   if test "x$test_shortpath" = x; then
22721     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22722 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22723     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22724   fi
22725 
22726   # Call helper function which possibly converts this using DOS-style short mode.
22727   # If so, the updated path is stored in $new_path.
22728 
22729   input_path="$new_path"
22730   # Check if we need to convert this using DOS-style short mode. If the path
22731   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22732   # take no chances and rewrite it.
22733   # Note: m4 eats our [], so we need to use [ and ] instead.
22734   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22735   if test "x$has_forbidden_chars" != x; then
22736     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22737     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22738     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22739     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22740       # Going to short mode and back again did indeed matter. Since short mode is
22741       # case insensitive, let's make it lowercase to improve readability.
22742       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22743       # Now convert it back to Unix-stile (cygpath)
22744       input_path=`$CYGPATH -u "$shortmode_path"`
22745       new_path="$input_path"
22746     fi
22747   fi
22748 
22749   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22750   if test "x$test_cygdrive_prefix" = x; then
22751     # As a simple fix, exclude /usr/bin since it's not a real path.
22752     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22753       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22754       # a path prefixed by /cygdrive for fixpath to work.
22755       new_path="$CYGWIN_ROOT_PATH$input_path"
22756     fi
22757   fi
22758 
22759 
22760   if test "x$path" != "x$new_path"; then
22761     BOOT_JDK="$new_path"
22762     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22763 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22764   fi
22765 
22766   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22767 
22768   path="$BOOT_JDK"
22769   has_colon=`$ECHO $path | $GREP ^.:`
22770   new_path="$path"
22771   if test "x$has_colon" = x; then
22772     # Not in mixed or Windows style, start by that.
22773     new_path=`cmd //c echo $path`
22774   fi
22775 
22776 
22777   input_path="$new_path"
22778   # Check if we need to convert this using DOS-style short mode. If the path
22779   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22780   # take no chances and rewrite it.
22781   # Note: m4 eats our [], so we need to use [ and ] instead.
22782   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22783   if test "x$has_forbidden_chars" != x; then
22784     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22785     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22786   fi
22787 
22788 
22789   windows_path="$new_path"
22790   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22791     unix_path=`$CYGPATH -u "$windows_path"`
22792     new_path="$unix_path"
22793   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22794     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22795     new_path="$unix_path"
22796   fi
22797 
22798   if test "x$path" != "x$new_path"; then
22799     BOOT_JDK="$new_path"
22800     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22801 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22802   fi
22803 
22804   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22805   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22806 
22807   else
22808     # We're on a posix platform. Hooray! :)
22809     path="$BOOT_JDK"
22810     has_space=`$ECHO "$path" | $GREP " "`
22811     if test "x$has_space" != x; then
22812       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22813 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22814       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22815     fi
22816 
22817     # Use eval to expand a potential ~
22818     eval path="$path"
22819     if test ! -f "$path" && test ! -d "$path"; then
22820       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22821     fi
22822 
22823     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22824   fi
22825 
22826               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22827 $as_echo_n "checking for Boot JDK... " >&6; }
22828               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22829 $as_echo "$BOOT_JDK" >&6; }
22830               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22831 $as_echo_n "checking Boot JDK version... " >&6; }
22832               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22833               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22834 $as_echo "$BOOT_JDK_VERSION" >&6; }
22835             fi # end check jdk version
22836           fi # end check rt.jar
22837         fi # end check javac
22838       fi # end check java
22839     fi # end check boot jdk found
22840   fi
22841 
22842     done
22843   fi
22844 
22845 
22846     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22847     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22848       # Do we have a bin/java?
22849       if test ! -x "$BOOT_JDK/bin/java"; then
22850         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22852         BOOT_JDK_FOUND=no
22853       else
22854         # Do we have a bin/javac?
22855         if test ! -x "$BOOT_JDK/bin/javac"; then
22856           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22857 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22858           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22859 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22860           BOOT_JDK_FOUND=no
22861         else
22862           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22863           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22864             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22866             BOOT_JDK_FOUND=no
22867           else
22868             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22869             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22870 
22871             # Extra M4 quote needed to protect [] in grep expression.
22872             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22873             if test "x$FOUND_VERSION_78" = x; then
22874               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22876               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22877 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22878               BOOT_JDK_FOUND=no
22879             else
22880               # We're done! :-)
22881               BOOT_JDK_FOUND=yes
22882 
22883   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22884 
22885   # Input might be given as Windows format, start by converting to
22886   # unix format.
22887   path="$BOOT_JDK"
22888   new_path=`$CYGPATH -u "$path"`
22889 
22890   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22891   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22892   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22893   # "foo.exe" is OK but "foo" is an error.
22894   #
22895   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22896   # It is also a way to make sure we got the proper file name for the real test later on.
22897   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22898   if test "x$test_shortpath" = x; then
22899     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22901     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22902   fi
22903 
22904   # Call helper function which possibly converts this using DOS-style short mode.
22905   # If so, the updated path is stored in $new_path.
22906 
22907   input_path="$new_path"
22908   # Check if we need to convert this using DOS-style short mode. If the path
22909   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22910   # take no chances and rewrite it.
22911   # Note: m4 eats our [], so we need to use [ and ] instead.
22912   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22913   if test "x$has_forbidden_chars" != x; then
22914     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22915     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22916     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22917     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22918       # Going to short mode and back again did indeed matter. Since short mode is
22919       # case insensitive, let's make it lowercase to improve readability.
22920       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22921       # Now convert it back to Unix-stile (cygpath)
22922       input_path=`$CYGPATH -u "$shortmode_path"`
22923       new_path="$input_path"
22924     fi
22925   fi
22926 
22927   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22928   if test "x$test_cygdrive_prefix" = x; then
22929     # As a simple fix, exclude /usr/bin since it's not a real path.
22930     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22931       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22932       # a path prefixed by /cygdrive for fixpath to work.
22933       new_path="$CYGWIN_ROOT_PATH$input_path"
22934     fi
22935   fi
22936 
22937 
22938   if test "x$path" != "x$new_path"; then
22939     BOOT_JDK="$new_path"
22940     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22941 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22942   fi
22943 
22944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22945 
22946   path="$BOOT_JDK"
22947   has_colon=`$ECHO $path | $GREP ^.:`
22948   new_path="$path"
22949   if test "x$has_colon" = x; then
22950     # Not in mixed or Windows style, start by that.
22951     new_path=`cmd //c echo $path`
22952   fi
22953 
22954 
22955   input_path="$new_path"
22956   # Check if we need to convert this using DOS-style short mode. If the path
22957   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22958   # take no chances and rewrite it.
22959   # Note: m4 eats our [], so we need to use [ and ] instead.
22960   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22961   if test "x$has_forbidden_chars" != x; then
22962     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22963     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22964   fi
22965 
22966 
22967   windows_path="$new_path"
22968   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22969     unix_path=`$CYGPATH -u "$windows_path"`
22970     new_path="$unix_path"
22971   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22972     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22973     new_path="$unix_path"
22974   fi
22975 
22976   if test "x$path" != "x$new_path"; then
22977     BOOT_JDK="$new_path"
22978     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22979 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22980   fi
22981 
22982   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22983   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22984 
22985   else
22986     # We're on a posix platform. Hooray! :)
22987     path="$BOOT_JDK"
22988     has_space=`$ECHO "$path" | $GREP " "`
22989     if test "x$has_space" != x; then
22990       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22991 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22992       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22993     fi
22994 
22995     # Use eval to expand a potential ~
22996     eval path="$path"
22997     if test ! -f "$path" && test ! -d "$path"; then
22998       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22999     fi
23000 
23001     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23002   fi
23003 
23004               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23005 $as_echo_n "checking for Boot JDK... " >&6; }
23006               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23007 $as_echo "$BOOT_JDK" >&6; }
23008               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23009 $as_echo_n "checking Boot JDK version... " >&6; }
23010               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23011               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23012 $as_echo "$BOOT_JDK_VERSION" >&6; }
23013             fi # end check jdk version
23014           fi # end check rt.jar
23015         fi # end check javac
23016       fi # end check java
23017     fi # end check boot jdk found
23018   fi
23019 
23020 
23021   if test "x$BOOT_JDK_FOUND" = xno; then
23022     # Now execute the test
23023 
23024   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23025   BOOT_JDK_SUFFIX="/Contents/Home"
23026   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23027   if test "x$ALL_JDKS_FOUND" != x; then
23028     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23029 
23030   if test "x$BOOT_JDK_FOUND" = xno; then
23031     # Now execute the test
23032 
23033         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23034         if test -d "$BOOT_JDK"; then
23035           BOOT_JDK_FOUND=maybe
23036           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23037 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23038         fi
23039 
23040 
23041     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23042     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23043       # Do we have a bin/java?
23044       if test ! -x "$BOOT_JDK/bin/java"; then
23045         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23047         BOOT_JDK_FOUND=no
23048       else
23049         # Do we have a bin/javac?
23050         if test ! -x "$BOOT_JDK/bin/javac"; then
23051           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23053           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23054 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23055           BOOT_JDK_FOUND=no
23056         else
23057           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23058           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23059             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23061             BOOT_JDK_FOUND=no
23062           else
23063             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23064             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23065 
23066             # Extra M4 quote needed to protect [] in grep expression.
23067             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23068             if test "x$FOUND_VERSION_78" = x; then
23069               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23071               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23072 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23073               BOOT_JDK_FOUND=no
23074             else
23075               # We're done! :-)
23076               BOOT_JDK_FOUND=yes
23077 
23078   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23079 
23080   # Input might be given as Windows format, start by converting to
23081   # unix format.
23082   path="$BOOT_JDK"
23083   new_path=`$CYGPATH -u "$path"`
23084 
23085   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23086   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23087   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23088   # "foo.exe" is OK but "foo" is an error.
23089   #
23090   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23091   # It is also a way to make sure we got the proper file name for the real test later on.
23092   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23093   if test "x$test_shortpath" = x; then
23094     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23095 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23096     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23097   fi
23098 
23099   # Call helper function which possibly converts this using DOS-style short mode.
23100   # If so, the updated path is stored in $new_path.
23101 
23102   input_path="$new_path"
23103   # Check if we need to convert this using DOS-style short mode. If the path
23104   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23105   # take no chances and rewrite it.
23106   # Note: m4 eats our [], so we need to use [ and ] instead.
23107   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23108   if test "x$has_forbidden_chars" != x; then
23109     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23110     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23111     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23112     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23113       # Going to short mode and back again did indeed matter. Since short mode is
23114       # case insensitive, let's make it lowercase to improve readability.
23115       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23116       # Now convert it back to Unix-stile (cygpath)
23117       input_path=`$CYGPATH -u "$shortmode_path"`
23118       new_path="$input_path"
23119     fi
23120   fi
23121 
23122   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23123   if test "x$test_cygdrive_prefix" = x; then
23124     # As a simple fix, exclude /usr/bin since it's not a real path.
23125     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23126       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23127       # a path prefixed by /cygdrive for fixpath to work.
23128       new_path="$CYGWIN_ROOT_PATH$input_path"
23129     fi
23130   fi
23131 
23132 
23133   if test "x$path" != "x$new_path"; then
23134     BOOT_JDK="$new_path"
23135     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23136 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23137   fi
23138 
23139   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23140 
23141   path="$BOOT_JDK"
23142   has_colon=`$ECHO $path | $GREP ^.:`
23143   new_path="$path"
23144   if test "x$has_colon" = x; then
23145     # Not in mixed or Windows style, start by that.
23146     new_path=`cmd //c echo $path`
23147   fi
23148 
23149 
23150   input_path="$new_path"
23151   # Check if we need to convert this using DOS-style short mode. If the path
23152   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23153   # take no chances and rewrite it.
23154   # Note: m4 eats our [], so we need to use [ and ] instead.
23155   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23156   if test "x$has_forbidden_chars" != x; then
23157     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23158     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23159   fi
23160 
23161 
23162   windows_path="$new_path"
23163   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23164     unix_path=`$CYGPATH -u "$windows_path"`
23165     new_path="$unix_path"
23166   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23167     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23168     new_path="$unix_path"
23169   fi
23170 
23171   if test "x$path" != "x$new_path"; then
23172     BOOT_JDK="$new_path"
23173     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23174 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23175   fi
23176 
23177   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23178   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23179 
23180   else
23181     # We're on a posix platform. Hooray! :)
23182     path="$BOOT_JDK"
23183     has_space=`$ECHO "$path" | $GREP " "`
23184     if test "x$has_space" != x; then
23185       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23186 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23187       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23188     fi
23189 
23190     # Use eval to expand a potential ~
23191     eval path="$path"
23192     if test ! -f "$path" && test ! -d "$path"; then
23193       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23194     fi
23195 
23196     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23197   fi
23198 
23199               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23200 $as_echo_n "checking for Boot JDK... " >&6; }
23201               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23202 $as_echo "$BOOT_JDK" >&6; }
23203               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23204 $as_echo_n "checking Boot JDK version... " >&6; }
23205               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23206               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23207 $as_echo "$BOOT_JDK_VERSION" >&6; }
23208             fi # end check jdk version
23209           fi # end check rt.jar
23210         fi # end check javac
23211       fi # end check java
23212     fi # end check boot jdk found
23213   fi
23214 
23215     done
23216   fi
23217 
23218 
23219     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23220     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23221       # Do we have a bin/java?
23222       if test ! -x "$BOOT_JDK/bin/java"; then
23223         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23225         BOOT_JDK_FOUND=no
23226       else
23227         # Do we have a bin/javac?
23228         if test ! -x "$BOOT_JDK/bin/javac"; then
23229           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23230 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23231           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23232 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23233           BOOT_JDK_FOUND=no
23234         else
23235           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23236           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23237             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23239             BOOT_JDK_FOUND=no
23240           else
23241             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23242             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23243 
23244             # Extra M4 quote needed to protect [] in grep expression.
23245             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23246             if test "x$FOUND_VERSION_78" = x; then
23247               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23248 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23249               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23250 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23251               BOOT_JDK_FOUND=no
23252             else
23253               # We're done! :-)
23254               BOOT_JDK_FOUND=yes
23255 
23256   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23257 
23258   # Input might be given as Windows format, start by converting to
23259   # unix format.
23260   path="$BOOT_JDK"
23261   new_path=`$CYGPATH -u "$path"`
23262 
23263   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23264   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23265   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23266   # "foo.exe" is OK but "foo" is an error.
23267   #
23268   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23269   # It is also a way to make sure we got the proper file name for the real test later on.
23270   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23271   if test "x$test_shortpath" = x; then
23272     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23273 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23274     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23275   fi
23276 
23277   # Call helper function which possibly converts this using DOS-style short mode.
23278   # If so, the updated path is stored in $new_path.
23279 
23280   input_path="$new_path"
23281   # Check if we need to convert this using DOS-style short mode. If the path
23282   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23283   # take no chances and rewrite it.
23284   # Note: m4 eats our [], so we need to use [ and ] instead.
23285   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23286   if test "x$has_forbidden_chars" != x; then
23287     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23288     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23289     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23290     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23291       # Going to short mode and back again did indeed matter. Since short mode is
23292       # case insensitive, let's make it lowercase to improve readability.
23293       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23294       # Now convert it back to Unix-stile (cygpath)
23295       input_path=`$CYGPATH -u "$shortmode_path"`
23296       new_path="$input_path"
23297     fi
23298   fi
23299 
23300   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23301   if test "x$test_cygdrive_prefix" = x; then
23302     # As a simple fix, exclude /usr/bin since it's not a real path.
23303     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23304       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23305       # a path prefixed by /cygdrive for fixpath to work.
23306       new_path="$CYGWIN_ROOT_PATH$input_path"
23307     fi
23308   fi
23309 
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   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23318 
23319   path="$BOOT_JDK"
23320   has_colon=`$ECHO $path | $GREP ^.:`
23321   new_path="$path"
23322   if test "x$has_colon" = x; then
23323     # Not in mixed or Windows style, start by that.
23324     new_path=`cmd //c echo $path`
23325   fi
23326 
23327 
23328   input_path="$new_path"
23329   # Check if we need to convert this using DOS-style short mode. If the path
23330   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23331   # take no chances and rewrite it.
23332   # Note: m4 eats our [], so we need to use [ and ] instead.
23333   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23334   if test "x$has_forbidden_chars" != x; then
23335     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23336     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23337   fi
23338 
23339 
23340   windows_path="$new_path"
23341   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23342     unix_path=`$CYGPATH -u "$windows_path"`
23343     new_path="$unix_path"
23344   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23345     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23346     new_path="$unix_path"
23347   fi
23348 
23349   if test "x$path" != "x$new_path"; then
23350     BOOT_JDK="$new_path"
23351     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23352 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23353   fi
23354 
23355   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23356   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23357 
23358   else
23359     # We're on a posix platform. Hooray! :)
23360     path="$BOOT_JDK"
23361     has_space=`$ECHO "$path" | $GREP " "`
23362     if test "x$has_space" != x; then
23363       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23364 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23365       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23366     fi
23367 
23368     # Use eval to expand a potential ~
23369     eval path="$path"
23370     if test ! -f "$path" && test ! -d "$path"; then
23371       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23372     fi
23373 
23374     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23375   fi
23376 
23377               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23378 $as_echo_n "checking for Boot JDK... " >&6; }
23379               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23380 $as_echo "$BOOT_JDK" >&6; }
23381               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23382 $as_echo_n "checking Boot JDK version... " >&6; }
23383               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23384               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23385 $as_echo "$BOOT_JDK_VERSION" >&6; }
23386             fi # end check jdk version
23387           fi # end check rt.jar
23388         fi # end check javac
23389       fi # end check java
23390     fi # end check boot jdk found
23391   fi
23392 
23393   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
23394 
23395   if test "x$BOOT_JDK_FOUND" = xno; then
23396     # Now execute the test
23397 
23398   BOOT_JDK_PREFIX="/usr/lib/jvm"
23399   BOOT_JDK_SUFFIX=""
23400   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23401   if test "x$ALL_JDKS_FOUND" != x; then
23402     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23403 
23404   if test "x$BOOT_JDK_FOUND" = xno; then
23405     # Now execute the test
23406 
23407         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23408         if test -d "$BOOT_JDK"; then
23409           BOOT_JDK_FOUND=maybe
23410           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23411 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23412         fi
23413 
23414 
23415     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23416     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23417       # Do we have a bin/java?
23418       if test ! -x "$BOOT_JDK/bin/java"; then
23419         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23421         BOOT_JDK_FOUND=no
23422       else
23423         # Do we have a bin/javac?
23424         if test ! -x "$BOOT_JDK/bin/javac"; then
23425           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23427           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23428 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23429           BOOT_JDK_FOUND=no
23430         else
23431           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23432           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23433             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23435             BOOT_JDK_FOUND=no
23436           else
23437             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23438             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23439 
23440             # Extra M4 quote needed to protect [] in grep expression.
23441             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23442             if test "x$FOUND_VERSION_78" = x; then
23443               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23444 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23445               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23446 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23447               BOOT_JDK_FOUND=no
23448             else
23449               # We're done! :-)
23450               BOOT_JDK_FOUND=yes
23451 
23452   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23453 
23454   # Input might be given as Windows format, start by converting to
23455   # unix format.
23456   path="$BOOT_JDK"
23457   new_path=`$CYGPATH -u "$path"`
23458 
23459   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23460   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23461   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23462   # "foo.exe" is OK but "foo" is an error.
23463   #
23464   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23465   # It is also a way to make sure we got the proper file name for the real test later on.
23466   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23467   if test "x$test_shortpath" = x; then
23468     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23469 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23470     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23471   fi
23472 
23473   # Call helper function which possibly converts this using DOS-style short mode.
23474   # If so, the updated path is stored in $new_path.
23475 
23476   input_path="$new_path"
23477   # Check if we need to convert this using DOS-style short mode. If the path
23478   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23479   # take no chances and rewrite it.
23480   # Note: m4 eats our [], so we need to use [ and ] instead.
23481   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23482   if test "x$has_forbidden_chars" != x; then
23483     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23484     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23485     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23486     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23487       # Going to short mode and back again did indeed matter. Since short mode is
23488       # case insensitive, let's make it lowercase to improve readability.
23489       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23490       # Now convert it back to Unix-stile (cygpath)
23491       input_path=`$CYGPATH -u "$shortmode_path"`
23492       new_path="$input_path"
23493     fi
23494   fi
23495 
23496   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23497   if test "x$test_cygdrive_prefix" = x; then
23498     # As a simple fix, exclude /usr/bin since it's not a real path.
23499     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23500       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23501       # a path prefixed by /cygdrive for fixpath to work.
23502       new_path="$CYGWIN_ROOT_PATH$input_path"
23503     fi
23504   fi
23505 
23506 
23507   if test "x$path" != "x$new_path"; then
23508     BOOT_JDK="$new_path"
23509     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23510 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23511   fi
23512 
23513   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23514 
23515   path="$BOOT_JDK"
23516   has_colon=`$ECHO $path | $GREP ^.:`
23517   new_path="$path"
23518   if test "x$has_colon" = x; then
23519     # Not in mixed or Windows style, start by that.
23520     new_path=`cmd //c echo $path`
23521   fi
23522 
23523 
23524   input_path="$new_path"
23525   # Check if we need to convert this using DOS-style short mode. If the path
23526   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23527   # take no chances and rewrite it.
23528   # Note: m4 eats our [], so we need to use [ and ] instead.
23529   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23530   if test "x$has_forbidden_chars" != x; then
23531     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23532     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23533   fi
23534 
23535 
23536   windows_path="$new_path"
23537   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23538     unix_path=`$CYGPATH -u "$windows_path"`
23539     new_path="$unix_path"
23540   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23541     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23542     new_path="$unix_path"
23543   fi
23544 
23545   if test "x$path" != "x$new_path"; then
23546     BOOT_JDK="$new_path"
23547     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23548 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23549   fi
23550 
23551   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23552   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23553 
23554   else
23555     # We're on a posix platform. Hooray! :)
23556     path="$BOOT_JDK"
23557     has_space=`$ECHO "$path" | $GREP " "`
23558     if test "x$has_space" != x; then
23559       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23560 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23561       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23562     fi
23563 
23564     # Use eval to expand a potential ~
23565     eval path="$path"
23566     if test ! -f "$path" && test ! -d "$path"; then
23567       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23568     fi
23569 
23570     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23571   fi
23572 
23573               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23574 $as_echo_n "checking for Boot JDK... " >&6; }
23575               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23576 $as_echo "$BOOT_JDK" >&6; }
23577               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23578 $as_echo_n "checking Boot JDK version... " >&6; }
23579               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23580               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23581 $as_echo "$BOOT_JDK_VERSION" >&6; }
23582             fi # end check jdk version
23583           fi # end check rt.jar
23584         fi # end check javac
23585       fi # end check java
23586     fi # end check boot jdk found
23587   fi
23588 
23589     done
23590   fi
23591 
23592 
23593     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23594     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23595       # Do we have a bin/java?
23596       if test ! -x "$BOOT_JDK/bin/java"; then
23597         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23599         BOOT_JDK_FOUND=no
23600       else
23601         # Do we have a bin/javac?
23602         if test ! -x "$BOOT_JDK/bin/javac"; then
23603           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23604 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23605           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23606 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23607           BOOT_JDK_FOUND=no
23608         else
23609           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23610           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23611             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23613             BOOT_JDK_FOUND=no
23614           else
23615             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23616             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23617 
23618             # Extra M4 quote needed to protect [] in grep expression.
23619             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23620             if test "x$FOUND_VERSION_78" = x; then
23621               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23622 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23623               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23624 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23625               BOOT_JDK_FOUND=no
23626             else
23627               # We're done! :-)
23628               BOOT_JDK_FOUND=yes
23629 
23630   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23631 
23632   # Input might be given as Windows format, start by converting to
23633   # unix format.
23634   path="$BOOT_JDK"
23635   new_path=`$CYGPATH -u "$path"`
23636 
23637   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23638   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23639   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23640   # "foo.exe" is OK but "foo" is an error.
23641   #
23642   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23643   # It is also a way to make sure we got the proper file name for the real test later on.
23644   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23645   if test "x$test_shortpath" = x; then
23646     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23647 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23648     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23649   fi
23650 
23651   # Call helper function which possibly converts this using DOS-style short mode.
23652   # If so, the updated path is stored in $new_path.
23653 
23654   input_path="$new_path"
23655   # Check if we need to convert this using DOS-style short mode. If the path
23656   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23657   # take no chances and rewrite it.
23658   # Note: m4 eats our [], so we need to use [ and ] instead.
23659   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23660   if test "x$has_forbidden_chars" != x; then
23661     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23662     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23663     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23664     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23665       # Going to short mode and back again did indeed matter. Since short mode is
23666       # case insensitive, let's make it lowercase to improve readability.
23667       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23668       # Now convert it back to Unix-stile (cygpath)
23669       input_path=`$CYGPATH -u "$shortmode_path"`
23670       new_path="$input_path"
23671     fi
23672   fi
23673 
23674   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23675   if test "x$test_cygdrive_prefix" = x; then
23676     # As a simple fix, exclude /usr/bin since it's not a real path.
23677     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23678       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23679       # a path prefixed by /cygdrive for fixpath to work.
23680       new_path="$CYGWIN_ROOT_PATH$input_path"
23681     fi
23682   fi
23683 
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   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23692 
23693   path="$BOOT_JDK"
23694   has_colon=`$ECHO $path | $GREP ^.:`
23695   new_path="$path"
23696   if test "x$has_colon" = x; then
23697     # Not in mixed or Windows style, start by that.
23698     new_path=`cmd //c echo $path`
23699   fi
23700 
23701 
23702   input_path="$new_path"
23703   # Check if we need to convert this using DOS-style short mode. If the path
23704   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23705   # take no chances and rewrite it.
23706   # Note: m4 eats our [], so we need to use [ and ] instead.
23707   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23708   if test "x$has_forbidden_chars" != x; then
23709     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23710     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23711   fi
23712 
23713 
23714   windows_path="$new_path"
23715   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23716     unix_path=`$CYGPATH -u "$windows_path"`
23717     new_path="$unix_path"
23718   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23719     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23720     new_path="$unix_path"
23721   fi
23722 
23723   if test "x$path" != "x$new_path"; then
23724     BOOT_JDK="$new_path"
23725     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23726 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23727   fi
23728 
23729   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23730   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23731 
23732   else
23733     # We're on a posix platform. Hooray! :)
23734     path="$BOOT_JDK"
23735     has_space=`$ECHO "$path" | $GREP " "`
23736     if test "x$has_space" != x; then
23737       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23738 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23739       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23740     fi
23741 
23742     # Use eval to expand a potential ~
23743     eval path="$path"
23744     if test ! -f "$path" && test ! -d "$path"; then
23745       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23746     fi
23747 
23748     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23749   fi
23750 
23751               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23752 $as_echo_n "checking for Boot JDK... " >&6; }
23753               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23754 $as_echo "$BOOT_JDK" >&6; }
23755               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23756 $as_echo_n "checking Boot JDK version... " >&6; }
23757               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23758               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23759 $as_echo "$BOOT_JDK_VERSION" >&6; }
23760             fi # end check jdk version
23761           fi # end check rt.jar
23762         fi # end check javac
23763       fi # end check java
23764     fi # end check boot jdk found
23765   fi
23766 
23767   fi
23768 
23769 
23770     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23771     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23772       # Do we have a bin/java?
23773       if test ! -x "$BOOT_JDK/bin/java"; then
23774         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23776         BOOT_JDK_FOUND=no
23777       else
23778         # Do we have a bin/javac?
23779         if test ! -x "$BOOT_JDK/bin/javac"; then
23780           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23782           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23783 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23784           BOOT_JDK_FOUND=no
23785         else
23786           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23787           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23788             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23790             BOOT_JDK_FOUND=no
23791           else
23792             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23793             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23794 
23795             # Extra M4 quote needed to protect [] in grep expression.
23796             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23797             if test "x$FOUND_VERSION_78" = x; then
23798               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23800               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23801 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23802               BOOT_JDK_FOUND=no
23803             else
23804               # We're done! :-)
23805               BOOT_JDK_FOUND=yes
23806 
23807   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23808 
23809   # Input might be given as Windows format, start by converting to
23810   # unix format.
23811   path="$BOOT_JDK"
23812   new_path=`$CYGPATH -u "$path"`
23813 
23814   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23815   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23816   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23817   # "foo.exe" is OK but "foo" is an error.
23818   #
23819   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23820   # It is also a way to make sure we got the proper file name for the real test later on.
23821   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23822   if test "x$test_shortpath" = x; then
23823     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23824 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23825     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23826   fi
23827 
23828   # Call helper function which possibly converts this using DOS-style short mode.
23829   # If so, the updated path is stored in $new_path.
23830 
23831   input_path="$new_path"
23832   # Check if we need to convert this using DOS-style short mode. If the path
23833   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23834   # take no chances and rewrite it.
23835   # Note: m4 eats our [], so we need to use [ and ] instead.
23836   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23837   if test "x$has_forbidden_chars" != x; then
23838     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23839     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23840     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23841     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23842       # Going to short mode and back again did indeed matter. Since short mode is
23843       # case insensitive, let's make it lowercase to improve readability.
23844       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23845       # Now convert it back to Unix-stile (cygpath)
23846       input_path=`$CYGPATH -u "$shortmode_path"`
23847       new_path="$input_path"
23848     fi
23849   fi
23850 
23851   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23852   if test "x$test_cygdrive_prefix" = x; then
23853     # As a simple fix, exclude /usr/bin since it's not a real path.
23854     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23855       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23856       # a path prefixed by /cygdrive for fixpath to work.
23857       new_path="$CYGWIN_ROOT_PATH$input_path"
23858     fi
23859   fi
23860 
23861 
23862   if test "x$path" != "x$new_path"; then
23863     BOOT_JDK="$new_path"
23864     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23865 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23866   fi
23867 
23868   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23869 
23870   path="$BOOT_JDK"
23871   has_colon=`$ECHO $path | $GREP ^.:`
23872   new_path="$path"
23873   if test "x$has_colon" = x; then
23874     # Not in mixed or Windows style, start by that.
23875     new_path=`cmd //c echo $path`
23876   fi
23877 
23878 
23879   input_path="$new_path"
23880   # Check if we need to convert this using DOS-style short mode. If the path
23881   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23882   # take no chances and rewrite it.
23883   # Note: m4 eats our [], so we need to use [ and ] instead.
23884   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23885   if test "x$has_forbidden_chars" != x; then
23886     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23887     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23888   fi
23889 
23890 
23891   windows_path="$new_path"
23892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23893     unix_path=`$CYGPATH -u "$windows_path"`
23894     new_path="$unix_path"
23895   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23896     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23897     new_path="$unix_path"
23898   fi
23899 
23900   if test "x$path" != "x$new_path"; then
23901     BOOT_JDK="$new_path"
23902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23903 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23904   fi
23905 
23906   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23907   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23908 
23909   else
23910     # We're on a posix platform. Hooray! :)
23911     path="$BOOT_JDK"
23912     has_space=`$ECHO "$path" | $GREP " "`
23913     if test "x$has_space" != x; then
23914       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23916       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23917     fi
23918 
23919     # Use eval to expand a potential ~
23920     eval path="$path"
23921     if test ! -f "$path" && test ! -d "$path"; then
23922       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23923     fi
23924 
23925     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23926   fi
23927 
23928               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23929 $as_echo_n "checking for Boot JDK... " >&6; }
23930               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23931 $as_echo "$BOOT_JDK" >&6; }
23932               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23933 $as_echo_n "checking Boot JDK version... " >&6; }
23934               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23935               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23936 $as_echo "$BOOT_JDK_VERSION" >&6; }
23937             fi # end check jdk version
23938           fi # end check rt.jar
23939         fi # end check javac
23940       fi # end check java
23941     fi # end check boot jdk found
23942   fi
23943 
23944 
23945   # If we haven't found anything yet, we've truly lost. Give up.
23946   if test "x$BOOT_JDK_FOUND" = xno; then
23947 
23948   # Print a helpful message on how to acquire the necessary build dependency.
23949   # openjdk is the help tag: freetype, cups, pulse, alsa etc
23950   MISSING_DEPENDENCY=openjdk
23951 
23952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23953     cygwin_help $MISSING_DEPENDENCY
23954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23955     msys_help $MISSING_DEPENDENCY
23956   else
23957     PKGHANDLER_COMMAND=
23958 
23959     case $PKGHANDLER in
23960       apt-get)
23961         apt_help     $MISSING_DEPENDENCY ;;
23962       yum)
23963         yum_help     $MISSING_DEPENDENCY ;;
23964       port)
23965         port_help    $MISSING_DEPENDENCY ;;
23966       pkgutil)
23967         pkgutil_help $MISSING_DEPENDENCY ;;
23968       pkgadd)
23969         pkgadd_help  $MISSING_DEPENDENCY ;;
23970     esac
23971 
23972     if test "x$PKGHANDLER_COMMAND" != x; then
23973       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
23974     fi
23975   fi
23976 
23977     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
23978 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
23979     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
23980 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
23981     as_fn_error $? "Cannot continue" "$LINENO" 5
23982   fi
23983 
23984   # Setup proper paths for what we found
23985   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
23986   if test ! -f "$BOOT_RTJAR"; then
23987     # On MacOSX it is called classes.jar
23988     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
23989     if test -f "$BOOT_RTJAR"; then
23990       # Remove the ..
23991       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
23992     fi
23993   fi
23994   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
23995   BOOT_JDK="$BOOT_JDK"
23996 
23997 
23998 
23999 
24000   # Setup tools from the Boot JDK.
24001 
24002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24003 $as_echo_n "checking for java in Boot JDK... " >&6; }
24004   JAVA=$BOOT_JDK/bin/java
24005   if test ! -x $JAVA; then
24006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24007 $as_echo "not found" >&6; }
24008     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24009 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24010     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24011   fi
24012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24013 $as_echo "ok" >&6; }
24014 
24015 
24016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24017 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24018   JAVAC=$BOOT_JDK/bin/javac
24019   if test ! -x $JAVAC; then
24020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24021 $as_echo "not found" >&6; }
24022     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24023 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24024     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24025   fi
24026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24027 $as_echo "ok" >&6; }
24028 
24029 
24030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24031 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24032   JAVAH=$BOOT_JDK/bin/javah
24033   if test ! -x $JAVAH; then
24034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24035 $as_echo "not found" >&6; }
24036     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24037 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24038     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24039   fi
24040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24041 $as_echo "ok" >&6; }
24042 
24043 
24044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24045 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24046   JAVAP=$BOOT_JDK/bin/javap
24047   if test ! -x $JAVAP; then
24048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24049 $as_echo "not found" >&6; }
24050     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24051 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24052     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24053   fi
24054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24055 $as_echo "ok" >&6; }
24056 
24057 
24058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24059 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24060   JAR=$BOOT_JDK/bin/jar
24061   if test ! -x $JAR; then
24062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24063 $as_echo "not found" >&6; }
24064     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24065 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24066     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24067   fi
24068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24069 $as_echo "ok" >&6; }
24070 
24071 
24072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24073 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24074   RMIC=$BOOT_JDK/bin/rmic
24075   if test ! -x $RMIC; then
24076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24077 $as_echo "not found" >&6; }
24078     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24079 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24080     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24081   fi
24082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24083 $as_echo "ok" >&6; }
24084 
24085 
24086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24087 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24088   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24089   if test ! -x $NATIVE2ASCII; then
24090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24091 $as_echo "not found" >&6; }
24092     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24093 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24094     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24095   fi
24096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24097 $as_echo "ok" >&6; }
24098 
24099 
24100   # Finally, set some other options...
24101 
24102   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24103   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24104 
24105 
24106 
24107   # Check if the boot jdk is 32 or 64 bit
24108   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24109     BOOT_JDK_BITS="64"
24110   else
24111     BOOT_JDK_BITS="32"
24112   fi
24113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24114 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24116 $as_echo "$BOOT_JDK_BITS" >&6; }
24117 
24118 
24119 
24120   ##############################################################################
24121   #
24122   # Specify options for anything that is run with the Boot JDK.
24123   #
24124 
24125 # Check whether --with-boot-jdk-jvmargs was given.
24126 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24127   withval=$with_boot_jdk_jvmargs;
24128 fi
24129 
24130 
24131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24132 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24133 
24134   # Disable special log output when a debug build is used as Boot JDK...
24135 
24136   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24137   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24138   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24139   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24140   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24141   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24142     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24143     JVM_ARG_OK=true
24144   else
24145     $ECHO "Arg failed:" >&5
24146     $ECHO "$OUTPUT" >&5
24147     JVM_ARG_OK=false
24148   fi
24149 
24150 
24151   # Apply user provided options.
24152 
24153   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24154   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24155   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24156   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24157   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24158   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24159     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24160     JVM_ARG_OK=true
24161   else
24162     $ECHO "Arg failed:" >&5
24163     $ECHO "$OUTPUT" >&5
24164     JVM_ARG_OK=false
24165   fi
24166 
24167 
24168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24169 $as_echo "$boot_jdk_jvmargs" >&6; }
24170 
24171   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24172   JAVA_FLAGS=$boot_jdk_jvmargs
24173 
24174 
24175 
24176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24177 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24178 
24179   # Starting amount of heap memory.
24180 
24181   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24182   $ECHO "Command: $JAVA -Xms64M -version" >&5
24183   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24184   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24185   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24186   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24187     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24188     JVM_ARG_OK=true
24189   else
24190     $ECHO "Arg failed:" >&5
24191     $ECHO "$OUTPUT" >&5
24192     JVM_ARG_OK=false
24193   fi
24194 
24195 
24196   # Maximum amount of heap memory.
24197   # Maximum stack size.
24198   if test "x$BOOT_JDK_BITS" = x32; then
24199     JVM_MAX_HEAP=1100M
24200     STACK_SIZE=768
24201   else
24202     # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit
24203     # pointers are used. Apparently, we need to increase the heap and stack
24204     # space for the jvm. More specifically, when running javac to build huge
24205     # jdk batch
24206     JVM_MAX_HEAP=1600M
24207     STACK_SIZE=1536
24208   fi
24209 
24210   $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5
24211   $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5
24212   OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1`
24213   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24214   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24215   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24216     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP"
24217     JVM_ARG_OK=true
24218   else
24219     $ECHO "Arg failed:" >&5
24220     $ECHO "$OUTPUT" >&5
24221     JVM_ARG_OK=false
24222   fi
24223 
24224 
24225   $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
24226   $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
24227   OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
24228   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24229   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24230   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24231     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE"
24232     JVM_ARG_OK=true
24233   else
24234     $ECHO "Arg failed:" >&5
24235     $ECHO "$OUTPUT" >&5
24236     JVM_ARG_OK=false
24237   fi
24238 
24239 
24240   $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5
24241   $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5
24242   OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1`
24243   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24244   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24245   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24246     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m"
24247     JVM_ARG_OK=true
24248   else
24249     $ECHO "Arg failed:" >&5
24250     $ECHO "$OUTPUT" >&5
24251     JVM_ARG_OK=false
24252   fi
24253 
24254 
24255   $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5
24256   $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5
24257   OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1`
24258   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24259   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24260   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24261     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m"
24262     JVM_ARG_OK=true
24263   else
24264     $ECHO "Arg failed:" >&5
24265     $ECHO "$OUTPUT" >&5
24266     JVM_ARG_OK=false
24267   fi
24268 
24269 
24270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5
24271 $as_echo "$boot_jdk_jvmargs_big" >&6; }
24272 
24273   JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big
24274 
24275 
24276 
24277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5
24278 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; }
24279 
24280   # Use serial gc for small short lived tools if possible
24281 
24282   $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5
24283   $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5
24284   OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1`
24285   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24286   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24287   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24288     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC"
24289     JVM_ARG_OK=true
24290   else
24291     $ECHO "Arg failed:" >&5
24292     $ECHO "$OUTPUT" >&5
24293     JVM_ARG_OK=false
24294   fi
24295 
24296 
24297   $ECHO "Check if jvm arg is ok: -Xms32M" >&5
24298   $ECHO "Command: $JAVA -Xms32M -version" >&5
24299   OUTPUT=`$JAVA -Xms32M -version 2>&1`
24300   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24301   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24302   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24303     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M"
24304     JVM_ARG_OK=true
24305   else
24306     $ECHO "Arg failed:" >&5
24307     $ECHO "$OUTPUT" >&5
24308     JVM_ARG_OK=false
24309   fi
24310 
24311 
24312   $ECHO "Check if jvm arg is ok: -Xmx512M" >&5
24313   $ECHO "Command: $JAVA -Xmx512M -version" >&5
24314   OUTPUT=`$JAVA -Xmx512M -version 2>&1`
24315   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24316   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24317   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24318     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M"
24319     JVM_ARG_OK=true
24320   else
24321     $ECHO "Arg failed:" >&5
24322     $ECHO "$OUTPUT" >&5
24323     JVM_ARG_OK=false
24324   fi
24325 
24326 
24327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5
24328 $as_echo "$boot_jdk_jvmargs_small" >&6; }
24329 
24330   JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small
24331 
24332 
24333 
24334 ###############################################################################
24335 #
24336 # Configure the sources to use. We can add or override individual directories.
24337 #
24338 ###############################################################################
24339 
24340 
24341   # Where are the sources. Any of these can be overridden
24342   # using --with-override-corba and the likes.
24343   LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
24344   CORBA_TOPDIR="$SRC_ROOT/corba"
24345   JAXP_TOPDIR="$SRC_ROOT/jaxp"
24346   JAXWS_TOPDIR="$SRC_ROOT/jaxws"
24347   HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
24348   NASHORN_TOPDIR="$SRC_ROOT/nashorn"
24349   JDK_TOPDIR="$SRC_ROOT/jdk"
24350 
24351 
24352 
24353 
24354 
24355 
24356 
24357 
24358 
24359 
24360   ###############################################################################
24361   #
24362   # Pickup additional source for a component from outside of the source root
24363   # or override source for a component.
24364   #
24365 
24366 # Check whether --with-add-source-root was given.
24367 if test "${with_add_source_root+set}" = set; then :
24368   withval=$with_add_source_root;
24369 fi
24370 
24371 
24372 
24373 # Check whether --with-override-source-root was given.
24374 if test "${with_override_source_root+set}" = set; then :
24375   withval=$with_override_source_root;
24376 fi
24377 
24378 
24379 
24380 # Check whether --with-adds-and-overrides was given.
24381 if test "${with_adds_and_overrides+set}" = set; then :
24382   withval=$with_adds_and_overrides;
24383 fi
24384 
24385 
24386   if test "x$with_adds_and_overrides" != x; then
24387     with_add_source_root="$with_adds_and_overrides/adds"
24388     with_override_source_root="$with_adds_and_overrides/overrides"
24389   fi
24390 
24391   if test "x$with_add_source_root" != x; then
24392     if ! test -d $with_add_source_root; then
24393       as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
24394     fi
24395     CURDIR="$PWD"
24396     cd "$with_add_source_root"
24397     ADD_SRC_ROOT="`pwd`"
24398     cd "$CURDIR"
24399     # Verify that the addon source root does not have any root makefiles.
24400     # If it does, then it is usually an error, prevent this.
24401     if test -f $with_add_source_root/langtools/make/Makefile; then
24402       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
24403     fi
24404     if test -f $with_add_source_root/corba/make/Makefile; then
24405       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
24406     fi
24407     if test -f $with_add_source_root/jaxp/make/Makefile; then
24408       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
24409     fi
24410     if test -f $with_add_source_root/jaxws/make/Makefile; then
24411       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
24412     fi
24413     if test -f $with_add_source_root/hotspot/make/Makefile; then
24414       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
24415     fi
24416     if test -f $with_add_source_root/nashorn/make/Makefile; then
24417       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
24418     fi
24419     if test -f $with_add_source_root/jdk/make/Makefile; then
24420       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
24421     fi
24422   fi
24423 
24424 
24425   if test "x$with_override_source_root" != x; then
24426     if ! test -d $with_override_source_root; then
24427       as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
24428     fi
24429     CURDIR="$PWD"
24430     cd "$with_override_source_root"
24431     OVERRIDE_SRC_ROOT="`pwd`"
24432     cd "$CURDIR"
24433     if test -f $with_override_source_root/langtools/make/Makefile; then
24434       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
24435     fi
24436     if test -f $with_override_source_root/corba/make/Makefile; then
24437       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
24438     fi
24439     if test -f $with_override_source_root/jaxp/make/Makefile; then
24440       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
24441     fi
24442     if test -f $with_override_source_root/jaxws/make/Makefile; then
24443       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
24444     fi
24445     if test -f $with_override_source_root/hotspot/make/Makefile; then
24446       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
24447     fi
24448     if test -f $with_override_source_root/nashorn/make/Makefile; then
24449       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
24450     fi
24451     if test -f $with_override_source_root/jdk/make/Makefile; then
24452       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
24453     fi
24454   fi
24455 
24456 
24457   ###############################################################################
24458   #
24459   # Override a repo completely, this is used for example when you have 3 small
24460   # development sandboxes of the langtools sources and want to avoid having 3 full
24461   # OpenJDK sources checked out on disk.
24462   #
24463   # Assuming that the 3 langtools sandboxes are located here:
24464   # /home/fredrik/sandbox1/langtools
24465   # /home/fredrik/sandbox2/langtools
24466   # /home/fredrik/sandbox3/langtools
24467   #
24468   # From the source root you create build subdirs manually:
24469   #     mkdir -p build1 build2 build3
24470   # in each build directory run:
24471   #     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
24472   #     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
24473   #     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
24474   #
24475 
24476 
24477 # Check whether --with-override-langtools was given.
24478 if test "${with_override_langtools+set}" = set; then :
24479   withval=$with_override_langtools;
24480 fi
24481 
24482 
24483 
24484 # Check whether --with-override-corba was given.
24485 if test "${with_override_corba+set}" = set; then :
24486   withval=$with_override_corba;
24487 fi
24488 
24489 
24490 
24491 # Check whether --with-override-jaxp was given.
24492 if test "${with_override_jaxp+set}" = set; then :
24493   withval=$with_override_jaxp;
24494 fi
24495 
24496 
24497 
24498 # Check whether --with-override-jaxws was given.
24499 if test "${with_override_jaxws+set}" = set; then :
24500   withval=$with_override_jaxws;
24501 fi
24502 
24503 
24504 
24505 # Check whether --with-override-hotspot was given.
24506 if test "${with_override_hotspot+set}" = set; then :
24507   withval=$with_override_hotspot;
24508 fi
24509 
24510 
24511 
24512 # Check whether --with-override-nashorn was given.
24513 if test "${with_override_nashorn+set}" = set; then :
24514   withval=$with_override_nashorn;
24515 fi
24516 
24517 
24518 
24519 # Check whether --with-override-jdk was given.
24520 if test "${with_override_jdk+set}" = set; then :
24521   withval=$with_override_jdk;
24522 fi
24523 
24524 
24525   if test "x$with_override_langtools" != x; then
24526     CURDIR="$PWD"
24527     cd "$with_override_langtools"
24528     LANGTOOLS_TOPDIR="`pwd`"
24529     cd "$CURDIR"
24530     if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then
24531       as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
24532     fi
24533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
24534 $as_echo_n "checking if langtools should be overridden... " >&6; }
24535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
24536 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
24537   fi
24538   if test "x$with_override_corba" != x; then
24539     CURDIR="$PWD"
24540     cd "$with_override_corba"
24541     CORBA_TOPDIR="`pwd`"
24542     cd "$CURDIR"
24543     if ! test -f $CORBA_TOPDIR/make/Makefile; then
24544       as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
24545     fi
24546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
24547 $as_echo_n "checking if corba should be overridden... " >&6; }
24548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
24549 $as_echo "yes with $CORBA_TOPDIR" >&6; }
24550   fi
24551   if test "x$with_override_jaxp" != x; then
24552     CURDIR="$PWD"
24553     cd "$with_override_jaxp"
24554     JAXP_TOPDIR="`pwd`"
24555     cd "$CURDIR"
24556     if ! test -f $JAXP_TOPDIR/make/Makefile; then
24557       as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
24558     fi
24559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
24560 $as_echo_n "checking if jaxp should be overridden... " >&6; }
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
24562 $as_echo "yes with $JAXP_TOPDIR" >&6; }
24563   fi
24564   if test "x$with_override_jaxws" != x; then
24565     CURDIR="$PWD"
24566     cd "$with_override_jaxws"
24567     JAXWS_TOPDIR="`pwd`"
24568     cd "$CURDIR"
24569     if ! test -f $JAXWS_TOPDIR/make/Makefile; then
24570       as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
24571     fi
24572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
24573 $as_echo_n "checking if jaxws should be overridden... " >&6; }
24574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
24575 $as_echo "yes with $JAXWS_TOPDIR" >&6; }
24576   fi
24577   if test "x$with_override_hotspot" != x; then
24578     CURDIR="$PWD"
24579     cd "$with_override_hotspot"
24580     HOTSPOT_TOPDIR="`pwd`"
24581     cd "$CURDIR"
24582     if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then
24583       as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
24584     fi
24585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
24586 $as_echo_n "checking if hotspot should be overridden... " >&6; }
24587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
24588 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
24589   fi
24590   if test "x$with_override_nashorn" != x; then
24591     CURDIR="$PWD"
24592     cd "$with_override_nashorn"
24593     NASHORN_TOPDIR="`pwd`"
24594     cd "$CURDIR"
24595     if ! test -f $NASHORN_TOPDIR/make/Makefile; then
24596       as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5
24597     fi
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5
24599 $as_echo_n "checking if nashorn should be overridden... " >&6; }
24600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5
24601 $as_echo "yes with $NASHORN_TOPDIR" >&6; }
24602   fi
24603   if test "x$with_override_jdk" != x; then
24604     CURDIR="$PWD"
24605     cd "$with_override_jdk"
24606     JDK_TOPDIR="`pwd`"
24607     cd "$CURDIR"
24608     if ! test -f $JDK_TOPDIR/make/Makefile; then
24609       as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
24610     fi
24611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
24612 $as_echo_n "checking if JDK should be overridden... " >&6; }
24613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
24614 $as_echo "yes with $JDK_TOPDIR" >&6; }
24615   fi
24616 
24617 
24618   BUILD_OUTPUT="$OUTPUT_ROOT"
24619 
24620 
24621   HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
24622   BUILD_HOTSPOT=true
24623 
24624 
24625 
24626 # Check whether --with-import-hotspot was given.
24627 if test "${with_import_hotspot+set}" = set; then :
24628   withval=$with_import_hotspot;
24629 fi
24630 
24631   if test "x$with_import_hotspot" != x; then
24632     CURDIR="$PWD"
24633     cd "$with_import_hotspot"
24634     HOTSPOT_DIST="`pwd`"
24635     cd "$CURDIR"
24636     if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then
24637       as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5
24638     fi
24639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5
24640 $as_echo_n "checking if hotspot should be imported... " >&6; }
24641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5
24642 $as_echo "yes from $HOTSPOT_DIST" >&6; }
24643     BUILD_HOTSPOT=false
24644   fi
24645 
24646   JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
24647 
24648 
24649 ###############################################################################
24650 #
24651 # Setup the toolchain (compilers etc), i.e. the tools that need to be
24652 # cross-compilation aware.
24653 #
24654 ###############################################################################
24655 
24656 
24657   ###############################################################################
24658   #
24659   # Configure the development tool paths and potential sysroot.
24660   #
24661   ac_ext=cpp
24662 ac_cpp='$CXXCPP $CPPFLAGS'
24663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24666 
24667 
24668   # The option used to specify the target .o,.a or .so file.
24669   # When compiling, how to specify the to be created object file.
24670   CC_OUT_OPTION='-o$(SPACE)'
24671   # When linking, how to specify the to be created executable.
24672   EXE_OUT_OPTION='-o$(SPACE)'
24673   # When linking, how to specify the to be created dynamically linkable library.
24674   LD_OUT_OPTION='-o$(SPACE)'
24675   # When archiving, how to specify the to be create static archive for object files.
24676   AR_OUT_OPTION='rcs$(SPACE)'
24677 
24678 
24679 
24680 
24681 
24682 # Locate the actual tools
24683 
24684 
24685 # Check whether --with-jtreg was given.
24686 if test "${with_jtreg+set}" = set; then :
24687   withval=$with_jtreg;
24688 else
24689   with_jtreg=no
24690 fi
24691 
24692 
24693   if test "x$with_jtreg" = xno; then
24694     # jtreg disabled
24695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
24696 $as_echo_n "checking for jtreg... " >&6; }
24697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24698 $as_echo "no" >&6; }
24699   else
24700     if test "x$with_jtreg" != xyes; then
24701       # with path specified.
24702       JT_HOME="$with_jtreg"
24703     fi
24704 
24705     if test "x$JT_HOME" != x; then
24706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
24707 $as_echo_n "checking for jtreg... " >&6; }
24708 
24709       # use JT_HOME enviroment var.
24710 
24711   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24712 
24713   # Input might be given as Windows format, start by converting to
24714   # unix format.
24715   path="$JT_HOME"
24716   new_path=`$CYGPATH -u "$path"`
24717 
24718   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24719   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24720   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24721   # "foo.exe" is OK but "foo" is an error.
24722   #
24723   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24724   # It is also a way to make sure we got the proper file name for the real test later on.
24725   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24726   if test "x$test_shortpath" = x; then
24727     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
24728 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
24729     as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5
24730   fi
24731 
24732   # Call helper function which possibly converts this using DOS-style short mode.
24733   # If so, the updated path is stored in $new_path.
24734 
24735   input_path="$new_path"
24736   # Check if we need to convert this using DOS-style short mode. If the path
24737   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24738   # take no chances and rewrite it.
24739   # Note: m4 eats our [], so we need to use [ and ] instead.
24740   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24741   if test "x$has_forbidden_chars" != x; then
24742     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24743     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24744     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24745     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24746       # Going to short mode and back again did indeed matter. Since short mode is
24747       # case insensitive, let's make it lowercase to improve readability.
24748       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24749       # Now convert it back to Unix-stile (cygpath)
24750       input_path=`$CYGPATH -u "$shortmode_path"`
24751       new_path="$input_path"
24752     fi
24753   fi
24754 
24755   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24756   if test "x$test_cygdrive_prefix" = x; then
24757     # As a simple fix, exclude /usr/bin since it's not a real path.
24758     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24759       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24760       # a path prefixed by /cygdrive for fixpath to work.
24761       new_path="$CYGWIN_ROOT_PATH$input_path"
24762     fi
24763   fi
24764 
24765 
24766   if test "x$path" != "x$new_path"; then
24767     JT_HOME="$new_path"
24768     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
24769 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
24770   fi
24771 
24772   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24773 
24774   path="$JT_HOME"
24775   has_colon=`$ECHO $path | $GREP ^.:`
24776   new_path="$path"
24777   if test "x$has_colon" = x; then
24778     # Not in mixed or Windows style, start by that.
24779     new_path=`cmd //c echo $path`
24780   fi
24781 
24782 
24783   input_path="$new_path"
24784   # Check if we need to convert this using DOS-style short mode. If the path
24785   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24786   # take no chances and rewrite it.
24787   # Note: m4 eats our [], so we need to use [ and ] instead.
24788   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24789   if test "x$has_forbidden_chars" != x; then
24790     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24791     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24792   fi
24793 
24794 
24795   windows_path="$new_path"
24796   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24797     unix_path=`$CYGPATH -u "$windows_path"`
24798     new_path="$unix_path"
24799   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24800     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24801     new_path="$unix_path"
24802   fi
24803 
24804   if test "x$path" != "x$new_path"; then
24805     JT_HOME="$new_path"
24806     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
24807 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
24808   fi
24809 
24810   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24811   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24812 
24813   else
24814     # We're on a posix platform. Hooray! :)
24815     path="$JT_HOME"
24816     has_space=`$ECHO "$path" | $GREP " "`
24817     if test "x$has_space" != x; then
24818       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
24819 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
24820       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24821     fi
24822 
24823     # Use eval to expand a potential ~
24824     eval path="$path"
24825     if test ! -f "$path" && test ! -d "$path"; then
24826       as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5
24827     fi
24828 
24829     JT_HOME="`cd "$path"; $THEPWDCMD -L`"
24830   fi
24831 
24832 
24833       # jtreg win32 script works for everybody
24834       JTREGEXE="$JT_HOME/bin/jtreg"
24835 
24836       if test ! -f "$JTREGEXE"; then
24837         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
24838       fi
24839 
24840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
24841 $as_echo "$JTREGEXE" >&6; }
24842     else
24843       # try to find jtreg on path
24844 
24845 
24846 
24847   # Publish this variable in the help.
24848 
24849 
24850   if test "x$JTREGEXE" = x; then
24851     # The variable is not set by user, try to locate tool using the code snippet
24852     for ac_prog in jtreg
24853 do
24854   # Extract the first word of "$ac_prog", so it can be a program name with args.
24855 set dummy $ac_prog; ac_word=$2
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24857 $as_echo_n "checking for $ac_word... " >&6; }
24858 if ${ac_cv_path_JTREGEXE+:} false; then :
24859   $as_echo_n "(cached) " >&6
24860 else
24861   case $JTREGEXE in
24862   [\\/]* | ?:[\\/]*)
24863   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
24864   ;;
24865   *)
24866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24867 for as_dir in $PATH
24868 do
24869   IFS=$as_save_IFS
24870   test -z "$as_dir" && as_dir=.
24871     for ac_exec_ext in '' $ac_executable_extensions; do
24872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24873     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
24874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24875     break 2
24876   fi
24877 done
24878   done
24879 IFS=$as_save_IFS
24880 
24881   ;;
24882 esac
24883 fi
24884 JTREGEXE=$ac_cv_path_JTREGEXE
24885 if test -n "$JTREGEXE"; then
24886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
24887 $as_echo "$JTREGEXE" >&6; }
24888 else
24889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24890 $as_echo "no" >&6; }
24891 fi
24892 
24893 
24894   test -n "$JTREGEXE" && break
24895 done
24896 
24897   else
24898     # The variable is set, but is it from the command line or the environment?
24899 
24900     # Try to remove the string !JTREGEXE! from our list.
24901     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/}
24902     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24903       # If it failed, the variable was not from the command line. Ignore it,
24904       # but warn the user (except for BASH, which is always set by the calling BASH).
24905       if test "xJTREGEXE" != xBASH; then
24906         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5
24907 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;}
24908       fi
24909       # Try to locate tool using the code snippet
24910       for ac_prog in jtreg
24911 do
24912   # Extract the first word of "$ac_prog", so it can be a program name with args.
24913 set dummy $ac_prog; ac_word=$2
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24915 $as_echo_n "checking for $ac_word... " >&6; }
24916 if ${ac_cv_path_JTREGEXE+:} false; then :
24917   $as_echo_n "(cached) " >&6
24918 else
24919   case $JTREGEXE in
24920   [\\/]* | ?:[\\/]*)
24921   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
24922   ;;
24923   *)
24924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24925 for as_dir in $PATH
24926 do
24927   IFS=$as_save_IFS
24928   test -z "$as_dir" && as_dir=.
24929     for ac_exec_ext in '' $ac_executable_extensions; do
24930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24931     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
24932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24933     break 2
24934   fi
24935 done
24936   done
24937 IFS=$as_save_IFS
24938 
24939   ;;
24940 esac
24941 fi
24942 JTREGEXE=$ac_cv_path_JTREGEXE
24943 if test -n "$JTREGEXE"; then
24944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
24945 $as_echo "$JTREGEXE" >&6; }
24946 else
24947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24948 $as_echo "no" >&6; }
24949 fi
24950 
24951 
24952   test -n "$JTREGEXE" && break
24953 done
24954 
24955     else
24956       # If it succeeded, then it was overridden by the user. We will use it
24957       # for the tool.
24958 
24959       # First remove it from the list of overridden variables, so we can test
24960       # for unknown variables in the end.
24961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24962 
24963       # Check if the provided tool contains a complete path.
24964       tool_specified="$JTREGEXE"
24965       tool_basename="${tool_specified##*/}"
24966       if test "x$tool_basename" = "x$tool_specified"; then
24967         # A command without a complete path is provided, search $PATH.
24968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5
24969 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;}
24970         # Extract the first word of "$tool_basename", so it can be a program name with args.
24971 set dummy $tool_basename; ac_word=$2
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24973 $as_echo_n "checking for $ac_word... " >&6; }
24974 if ${ac_cv_path_JTREGEXE+:} false; then :
24975   $as_echo_n "(cached) " >&6
24976 else
24977   case $JTREGEXE in
24978   [\\/]* | ?:[\\/]*)
24979   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
24980   ;;
24981   *)
24982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24984 do
24985   IFS=$as_save_IFS
24986   test -z "$as_dir" && as_dir=.
24987     for ac_exec_ext in '' $ac_executable_extensions; do
24988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24989     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
24990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24991     break 2
24992   fi
24993 done
24994   done
24995 IFS=$as_save_IFS
24996 
24997   ;;
24998 esac
24999 fi
25000 JTREGEXE=$ac_cv_path_JTREGEXE
25001 if test -n "$JTREGEXE"; then
25002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
25003 $as_echo "$JTREGEXE" >&6; }
25004 else
25005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25006 $as_echo "no" >&6; }
25007 fi
25008 
25009 
25010         if test "x$JTREGEXE" = x; then
25011           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25012         fi
25013       else
25014         # Otherwise we believe it is a complete path. Use it as it is.
25015         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5
25016 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;}
25017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5
25018 $as_echo_n "checking for JTREGEXE... " >&6; }
25019         if test ! -x "$tool_specified"; then
25020           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25021 $as_echo "not found" >&6; }
25022           as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
25023         fi
25024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25025 $as_echo "$tool_specified" >&6; }
25026       fi
25027     fi
25028   fi
25029 
25030 
25031 
25032   if test "x$JTREGEXE" = x; then
25033     as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5
25034   fi
25035 
25036 
25037       JT_HOME="`$DIRNAME $JTREGEXE`"
25038     fi
25039   fi
25040 
25041 
25042 
25043 
25044 
25045   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
25046 
25047   # Store path to cygwin link.exe to help excluding it when searching for
25048   # VS linker. This must be done before changing the PATH when looking for VS.
25049   # Extract the first word of "link", so it can be a program name with args.
25050 set dummy link; ac_word=$2
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25052 $as_echo_n "checking for $ac_word... " >&6; }
25053 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
25054   $as_echo_n "(cached) " >&6
25055 else
25056   case $CYGWIN_LINK in
25057   [\\/]* | ?:[\\/]*)
25058   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
25059   ;;
25060   *)
25061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25062 for as_dir in $PATH
25063 do
25064   IFS=$as_save_IFS
25065   test -z "$as_dir" && as_dir=.
25066     for ac_exec_ext in '' $ac_executable_extensions; do
25067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25068     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
25069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25070     break 2
25071   fi
25072 done
25073   done
25074 IFS=$as_save_IFS
25075 
25076   ;;
25077 esac
25078 fi
25079 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
25080 if test -n "$CYGWIN_LINK"; then
25081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
25082 $as_echo "$CYGWIN_LINK" >&6; }
25083 else
25084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25085 $as_echo "no" >&6; }
25086 fi
25087 
25088 
25089   if test "x$CYGWIN_LINK" != x; then
25090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5
25091 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; }
25092     "$CYGWIN_LINK" --version > /dev/null
25093     if test $? -eq 0 ; then
25094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25095 $as_echo "yes" >&6; }
25096     else
25097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25098 $as_echo "no" >&6; }
25099       # This might be the VS linker. Don't exclude it later on.
25100       CYGWIN_LINK=""
25101     fi
25102   fi
25103 
25104   # First-hand choice is to locate and run the vsvars bat file.
25105 
25106   if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25107     VCVARSFILE="vc/bin/vcvars32.bat"
25108   else
25109     VCVARSFILE="vc/bin/amd64/vcvars64.bat"
25110   fi
25111 
25112   VS_ENV_CMD=""
25113   VS_ENV_ARGS=""
25114   if test "x$with_toolsdir" != x; then
25115 
25116   if test "x$VS_ENV_CMD" = x; then
25117     VS100BASE="$with_toolsdir/../.."
25118     METHOD="--with-tools-dir"
25119 
25120   windows_path="$VS100BASE"
25121   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25122     unix_path=`$CYGPATH -u "$windows_path"`
25123     VS100BASE="$unix_path"
25124   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25125     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25126     VS100BASE="$unix_path"
25127   fi
25128 
25129     if test -d "$VS100BASE"; then
25130       if test -f "$VS100BASE/$VCVARSFILE"; then
25131         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25132 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25133         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
25134       else
25135         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25136 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25137         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
25138 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
25139       fi
25140     fi
25141   fi
25142 
25143   fi
25144 
25145   if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then
25146     # Having specified an argument which is incorrect will produce an instant failure;
25147     # we should not go on looking
25148     { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5
25149 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;}
25150     { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5
25151 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;}
25152     as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5
25153   fi
25154 
25155   if test "x$VS100COMNTOOLS" != x; then
25156 
25157   if test "x$VS_ENV_CMD" = x; then
25158     VS100BASE="$VS100COMNTOOLS/../.."
25159     METHOD="VS100COMNTOOLS variable"
25160 
25161   windows_path="$VS100BASE"
25162   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25163     unix_path=`$CYGPATH -u "$windows_path"`
25164     VS100BASE="$unix_path"
25165   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25166     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25167     VS100BASE="$unix_path"
25168   fi
25169 
25170     if test -d "$VS100BASE"; then
25171       if test -f "$VS100BASE/$VCVARSFILE"; then
25172         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25173 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25174         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
25175       else
25176         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25177 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25178         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
25179 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
25180       fi
25181     fi
25182   fi
25183 
25184   fi
25185   if test "x$PROGRAMFILES" != x; then
25186 
25187   if test "x$VS_ENV_CMD" = x; then
25188     VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0"
25189     METHOD="well-known name"
25190 
25191   windows_path="$VS100BASE"
25192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25193     unix_path=`$CYGPATH -u "$windows_path"`
25194     VS100BASE="$unix_path"
25195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25197     VS100BASE="$unix_path"
25198   fi
25199 
25200     if test -d "$VS100BASE"; then
25201       if test -f "$VS100BASE/$VCVARSFILE"; then
25202         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25203 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25204         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
25205       else
25206         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25207 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25208         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
25209 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
25210       fi
25211     fi
25212   fi
25213 
25214   fi
25215 
25216   if test "x$VS_ENV_CMD" = x; then
25217     VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0"
25218     METHOD="well-known name"
25219 
25220   windows_path="$VS100BASE"
25221   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25222     unix_path=`$CYGPATH -u "$windows_path"`
25223     VS100BASE="$unix_path"
25224   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25225     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25226     VS100BASE="$unix_path"
25227   fi
25228 
25229     if test -d "$VS100BASE"; then
25230       if test -f "$VS100BASE/$VCVARSFILE"; then
25231         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25232 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25233         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
25234       else
25235         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25236 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25237         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
25238 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
25239       fi
25240     fi
25241   fi
25242 
25243 
25244   if test "x$VS_ENV_CMD" = x; then
25245     VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0"
25246     METHOD="well-known name"
25247 
25248   windows_path="$VS100BASE"
25249   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25250     unix_path=`$CYGPATH -u "$windows_path"`
25251     VS100BASE="$unix_path"
25252   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25253     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25254     VS100BASE="$unix_path"
25255   fi
25256 
25257     if test -d "$VS100BASE"; then
25258       if test -f "$VS100BASE/$VCVARSFILE"; then
25259         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25260 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25261         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
25262       else
25263         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
25264 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
25265         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
25266 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
25267       fi
25268     fi
25269   fi
25270 
25271 
25272   if test "x$ProgramW6432" != x; then
25273 
25274   if test "x$VS_ENV_CMD" = x; then
25275     WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin"
25276     METHOD="well-known name"
25277 
25278   windows_path="$WIN_SDK_BASE"
25279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25280     unix_path=`$CYGPATH -u "$windows_path"`
25281     WIN_SDK_BASE="$unix_path"
25282   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25283     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25284     WIN_SDK_BASE="$unix_path"
25285   fi
25286 
25287     if test -d "$WIN_SDK_BASE"; then
25288       # There have been cases of partial or broken SDK installations. A missing
25289       # lib dir is not going to work.
25290       if test ! -d "$WIN_SDK_BASE/../lib"; then
25291         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25292 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25293         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
25294 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
25295       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
25296         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25297 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25298         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
25299         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25300           VS_ENV_ARGS="/x86"
25301         else
25302           VS_ENV_ARGS="/x64"
25303         fi
25304       else
25305         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25306 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25307         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
25308 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
25309       fi
25310     fi
25311   fi
25312 
25313   fi
25314   if test "x$PROGRAMW6432" != x; then
25315 
25316   if test "x$VS_ENV_CMD" = x; then
25317     WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin"
25318     METHOD="well-known name"
25319 
25320   windows_path="$WIN_SDK_BASE"
25321   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25322     unix_path=`$CYGPATH -u "$windows_path"`
25323     WIN_SDK_BASE="$unix_path"
25324   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25325     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25326     WIN_SDK_BASE="$unix_path"
25327   fi
25328 
25329     if test -d "$WIN_SDK_BASE"; then
25330       # There have been cases of partial or broken SDK installations. A missing
25331       # lib dir is not going to work.
25332       if test ! -d "$WIN_SDK_BASE/../lib"; then
25333         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25334 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25335         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
25336 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
25337       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
25338         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25339 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25340         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
25341         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25342           VS_ENV_ARGS="/x86"
25343         else
25344           VS_ENV_ARGS="/x64"
25345         fi
25346       else
25347         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25348 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25349         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
25350 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
25351       fi
25352     fi
25353   fi
25354 
25355   fi
25356   if test "x$PROGRAMFILES" != x; then
25357 
25358   if test "x$VS_ENV_CMD" = x; then
25359     WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin"
25360     METHOD="well-known name"
25361 
25362   windows_path="$WIN_SDK_BASE"
25363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25364     unix_path=`$CYGPATH -u "$windows_path"`
25365     WIN_SDK_BASE="$unix_path"
25366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25368     WIN_SDK_BASE="$unix_path"
25369   fi
25370 
25371     if test -d "$WIN_SDK_BASE"; then
25372       # There have been cases of partial or broken SDK installations. A missing
25373       # lib dir is not going to work.
25374       if test ! -d "$WIN_SDK_BASE/../lib"; then
25375         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25376 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25377         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
25378 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
25379       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
25380         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25381 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25382         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
25383         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25384           VS_ENV_ARGS="/x86"
25385         else
25386           VS_ENV_ARGS="/x64"
25387         fi
25388       else
25389         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25390 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25391         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
25392 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
25393       fi
25394     fi
25395   fi
25396 
25397   fi
25398 
25399   if test "x$VS_ENV_CMD" = x; then
25400     WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin"
25401     METHOD="well-known name"
25402 
25403   windows_path="$WIN_SDK_BASE"
25404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25405     unix_path=`$CYGPATH -u "$windows_path"`
25406     WIN_SDK_BASE="$unix_path"
25407   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25408     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25409     WIN_SDK_BASE="$unix_path"
25410   fi
25411 
25412     if test -d "$WIN_SDK_BASE"; then
25413       # There have been cases of partial or broken SDK installations. A missing
25414       # lib dir is not going to work.
25415       if test ! -d "$WIN_SDK_BASE/../lib"; then
25416         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25417 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25418         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
25419 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
25420       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
25421         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25422 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25423         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
25424         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25425           VS_ENV_ARGS="/x86"
25426         else
25427           VS_ENV_ARGS="/x64"
25428         fi
25429       else
25430         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25431 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25432         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
25433 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
25434       fi
25435     fi
25436   fi
25437 
25438 
25439   if test "x$VS_ENV_CMD" = x; then
25440     WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin"
25441     METHOD="well-known name"
25442 
25443   windows_path="$WIN_SDK_BASE"
25444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25445     unix_path=`$CYGPATH -u "$windows_path"`
25446     WIN_SDK_BASE="$unix_path"
25447   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25448     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25449     WIN_SDK_BASE="$unix_path"
25450   fi
25451 
25452     if test -d "$WIN_SDK_BASE"; then
25453       # There have been cases of partial or broken SDK installations. A missing
25454       # lib dir is not going to work.
25455       if test ! -d "$WIN_SDK_BASE/../lib"; then
25456         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25457 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25458         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
25459 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
25460       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
25461         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25462 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25463         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
25464         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25465           VS_ENV_ARGS="/x86"
25466         else
25467           VS_ENV_ARGS="/x64"
25468         fi
25469       else
25470         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
25471 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
25472         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
25473 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
25474       fi
25475     fi
25476   fi
25477 
25478 
25479   if test "x$VS_ENV_CMD" != x; then
25480     # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file.
25481 
25482   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25483 
25484   # First separate the path from the arguments. This will split at the first
25485   # space.
25486   complete="$VS_ENV_CMD"
25487   path="${complete%% *}"
25488   tmp="$complete EOL"
25489   arguments="${tmp#* }"
25490 
25491   # Input might be given as Windows format, start by converting to
25492   # unix format.
25493   new_path=`$CYGPATH -u "$path"`
25494 
25495   # Now try to locate executable using which
25496   new_path=`$WHICH "$new_path" 2> /dev/null`
25497   # bat and cmd files are not always considered executable in cygwin causing which
25498   # to not find them
25499   if test "x$new_path" = x \
25500       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25501       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25502     new_path=`$CYGPATH -u "$path"`
25503   fi
25504   if test "x$new_path" = x; then
25505     # Oops. Which didn't find the executable.
25506     # The splitting of arguments from the executable at a space might have been incorrect,
25507     # since paths with space are more likely in Windows. Give it another try with the whole
25508     # argument.
25509     path="$complete"
25510     arguments="EOL"
25511     new_path=`$CYGPATH -u "$path"`
25512     new_path=`$WHICH "$new_path" 2> /dev/null`
25513     # bat and cmd files are not always considered executable in cygwin causing which
25514     # to not find them
25515     if test "x$new_path" = x \
25516         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25517         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25518       new_path=`$CYGPATH -u "$path"`
25519     fi
25520     if test "x$new_path" = x; then
25521       # It's still not found. Now this is an unrecoverable error.
25522       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
25523 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
25524       has_space=`$ECHO "$complete" | $GREP " "`
25525       if test "x$has_space" != x; then
25526         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
25527 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
25528       fi
25529       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
25530     fi
25531   fi
25532 
25533   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25534   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25535   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25536   # "foo.exe" is OK but "foo" is an error.
25537   #
25538   # This test is therefore slightly more accurate than "test -f" to check for file presence.
25539   # It is also a way to make sure we got the proper file name for the real test later on.
25540   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25541   if test "x$test_shortpath" = x; then
25542     # Short path failed, file does not exist as specified.
25543     # Try adding .exe or .cmd
25544     if test -f "${new_path}.exe"; then
25545       input_to_shortpath="${new_path}.exe"
25546     elif test -f "${new_path}.cmd"; then
25547       input_to_shortpath="${new_path}.cmd"
25548     else
25549       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5
25550 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;}
25551       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
25552 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
25553       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
25554     fi
25555   else
25556     input_to_shortpath="$new_path"
25557   fi
25558 
25559   # Call helper function which possibly converts this using DOS-style short mode.
25560   # If so, the updated path is stored in $new_path.
25561   new_path="$input_to_shortpath"
25562 
25563   input_path="$input_to_shortpath"
25564   # Check if we need to convert this using DOS-style short mode. If the path
25565   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25566   # take no chances and rewrite it.
25567   # Note: m4 eats our [], so we need to use [ and ] instead.
25568   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25569   if test "x$has_forbidden_chars" != x; then
25570     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25571     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25572     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25573     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25574       # Going to short mode and back again did indeed matter. Since short mode is
25575       # case insensitive, let's make it lowercase to improve readability.
25576       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25577       # Now convert it back to Unix-stile (cygpath)
25578       input_path=`$CYGPATH -u "$shortmode_path"`
25579       new_path="$input_path"
25580     fi
25581   fi
25582 
25583   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25584   if test "x$test_cygdrive_prefix" = x; then
25585     # As a simple fix, exclude /usr/bin since it's not a real path.
25586     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
25587       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25588       # a path prefixed by /cygdrive for fixpath to work.
25589       new_path="$CYGWIN_ROOT_PATH$input_path"
25590     fi
25591   fi
25592 
25593   # remove trailing .exe if any
25594   new_path="${new_path/%.exe/}"
25595 
25596   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25597 
25598   # First separate the path from the arguments. This will split at the first
25599   # space.
25600   complete="$VS_ENV_CMD"
25601   path="${complete%% *}"
25602   tmp="$complete EOL"
25603   arguments="${tmp#* }"
25604 
25605   # Input might be given as Windows format, start by converting to
25606   # unix format.
25607   new_path="$path"
25608 
25609   windows_path="$new_path"
25610   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25611     unix_path=`$CYGPATH -u "$windows_path"`
25612     new_path="$unix_path"
25613   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25614     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25615     new_path="$unix_path"
25616   fi
25617 
25618 
25619   # Now try to locate executable using which
25620   new_path=`$WHICH "$new_path" 2> /dev/null`
25621 
25622   if test "x$new_path" = x; then
25623     # Oops. Which didn't find the executable.
25624     # The splitting of arguments from the executable at a space might have been incorrect,
25625     # since paths with space are more likely in Windows. Give it another try with the whole
25626     # argument.
25627     path="$complete"
25628     arguments="EOL"
25629     new_path="$path"
25630 
25631   windows_path="$new_path"
25632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25633     unix_path=`$CYGPATH -u "$windows_path"`
25634     new_path="$unix_path"
25635   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25636     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25637     new_path="$unix_path"
25638   fi
25639 
25640 
25641     new_path=`$WHICH "$new_path" 2> /dev/null`
25642 
25643     if test "x$new_path" = x; then
25644       # It's still not found. Now this is an unrecoverable error.
25645       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
25646 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
25647       has_space=`$ECHO "$complete" | $GREP " "`
25648       if test "x$has_space" != x; then
25649         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
25650 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
25651       fi
25652       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
25653     fi
25654   fi
25655 
25656   # Now new_path has a complete unix path to the binary
25657   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
25658     # Keep paths in /bin as-is, but remove trailing .exe if any
25659     new_path="${new_path/%.exe/}"
25660     # Do not save /bin paths to all_fixpath_prefixes!
25661   else
25662     # Not in mixed or Windows style, start by that.
25663     new_path=`cmd //c echo $new_path`
25664 
25665   input_path="$new_path"
25666   # Check if we need to convert this using DOS-style short mode. If the path
25667   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25668   # take no chances and rewrite it.
25669   # Note: m4 eats our [], so we need to use [ and ] instead.
25670   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25671   if test "x$has_forbidden_chars" != x; then
25672     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25673     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25674   fi
25675 
25676     # Output is in $new_path
25677 
25678   windows_path="$new_path"
25679   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25680     unix_path=`$CYGPATH -u "$windows_path"`
25681     new_path="$unix_path"
25682   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25683     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25684     new_path="$unix_path"
25685   fi
25686 
25687     # remove trailing .exe if any
25688     new_path="${new_path/%.exe/}"
25689 
25690     # Save the first 10 bytes of this path to the storage, so fixpath can work.
25691     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25692   fi
25693 
25694   else
25695     # We're on a posix platform. Hooray! :)
25696     # First separate the path from the arguments. This will split at the first
25697     # space.
25698     complete="$VS_ENV_CMD"
25699     path="${complete%% *}"
25700     tmp="$complete EOL"
25701     arguments="${tmp#* }"
25702 
25703     # Cannot rely on the command "which" here since it doesn't always work.
25704     is_absolute_path=`$ECHO "$path" | $GREP ^/`
25705     if test -z "$is_absolute_path"; then
25706       # Path to executable is not absolute. Find it.
25707       IFS_save="$IFS"
25708       IFS=:
25709       for p in $PATH; do
25710         if test -f "$p/$path" && test -x "$p/$path"; then
25711           new_path="$p/$path"
25712           break
25713         fi
25714       done
25715       IFS="$IFS_save"
25716     else
25717       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&5
25718 $as_echo "$as_me: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&6;}
25719       new_path="$path"
25720     fi
25721 
25722     if test "x$new_path" = x; then
25723       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
25724 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
25725       has_space=`$ECHO "$complete" | $GREP " "`
25726       if test "x$has_space" != x; then
25727         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
25728 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
25729       fi
25730       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
25731     fi
25732   fi
25733 
25734   # Now join together the path and the arguments once again
25735   if test "x$arguments" != xEOL; then
25736     new_complete="$new_path ${arguments% *}"
25737   else
25738     new_complete="$new_path"
25739   fi
25740 
25741   if test "x$complete" != "x$new_complete"; then
25742     VS_ENV_CMD="$new_complete"
25743     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5
25744 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;}
25745   fi
25746 
25747 
25748     # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
25749     { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5
25750 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
25751     cd $OUTPUT_ROOT
25752     # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted
25753     # to autoconf standards.
25754 
25755     #----
25756 
25757     # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment)
25758     # but calculate the difference in Cygwin environment before/after running it and then
25759     # apply the diff.
25760 
25761     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
25762       _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"`
25763       _dosvs10varsall=`cygpath -a -w -s $_vs10varsall`
25764       _dosbash=`cygpath -a -w -s \`which bash\`.*`
25765     else
25766       _dosvs10varsall=`cmd //c echo $VS_ENV_CMD`
25767       _dosbash=`cmd //c echo \`which bash\``
25768     fi
25769 
25770     # generate the set of exported vars before/after the vs10 setup
25771     $ECHO "@echo off"                                           >  localdevenvtmp.bat
25772     $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat
25773     $ECHO "call $_dosvs10varsall $VS_ENV_ARGS"                  >> localdevenvtmp.bat
25774     $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat
25775 
25776     # Now execute the newly created bat file.
25777     # The | cat is to stop SetEnv.Cmd to mess with system colors on msys
25778     cmd /c localdevenvtmp.bat | cat
25779 
25780     # apply the diff (less some non-vs10 vars named by "!")
25781     $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort
25782     $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort
25783     $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh
25784 
25785     # cleanup
25786     $RM localdevenvtmp*
25787     #----
25788     cd $CURDIR
25789     if test ! -s $OUTPUT_ROOT/localdevenv.sh; then
25790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791 $as_echo "no" >&6; }
25792       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5
25793 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;}
25794       { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
25795 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
25796       { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
25797 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
25798       as_fn_error $? "Cannot continue" "$LINENO" 5
25799     fi
25800 
25801     # Now set all paths and other env variables. This will allow the rest of
25802     # the configure script to find and run the compiler in the proper way.
25803     { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5
25804 $as_echo "$as_me: Setting extracted environment variables" >&6;}
25805     . $OUTPUT_ROOT/localdevenv.sh
25806   else
25807     # We did not find a vsvars bat file, let's hope we are run from a VS command prompt.
25808     { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5
25809 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;}
25810   fi
25811 
25812   # At this point, we should have corrent variables in the environment, or we can't continue.
25813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5
25814 $as_echo_n "checking for Visual Studio variables... " >&6; }
25815 
25816   if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then
25817     if test "x$INCLUDE" = x || test "x$LIB" = x; then
25818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5
25819 $as_echo "present but broken" >&6; }
25820       as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5
25821     else
25822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25823 $as_echo "ok" >&6; }
25824       # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
25825       VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
25826       VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
25827       # Remove any paths containing # (typically F#) as that messes up make
25828       PATH=`$ECHO "$PATH" | $SED 's/[^:#]*#[^:]*://g'`
25829       VS_PATH="$PATH"
25830 
25831 
25832 
25833     fi
25834   else
25835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25836 $as_echo "not found" >&6; }
25837 
25838     if test "x$VS_ENV_CMD" = x; then
25839       { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5
25840 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;}
25841       { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5
25842 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;}
25843     else
25844       { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5
25845 $as_echo "$as_me: Running the extraction script failed." >&6;}
25846     fi
25847     { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
25848 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
25849     { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
25850 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
25851     as_fn_error $? "Cannot continue" "$LINENO" 5
25852   fi
25853 
25854 
25855 
25856 # Check whether --with-msvcr-dll was given.
25857 if test "${with_msvcr_dll+set}" = set; then :
25858   withval=$with_msvcr_dll;
25859 fi
25860 
25861 
25862   if test "x$with_msvcr_dll" != x; then
25863     # If given explicitely by user, do not probe. If not present, fail directly.
25864 
25865   POSSIBLE_MSVCR_DLL="$with_msvcr_dll"
25866   METHOD="--with-msvcr-dll"
25867   if test -e "$POSSIBLE_MSVCR_DLL"; then
25868     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
25869 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
25870 
25871     # Need to check if the found msvcr is correct architecture
25872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
25873 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
25874     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
25875     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25876       CORRECT_MSVCR_ARCH=386
25877     else
25878       CORRECT_MSVCR_ARCH=x86-64
25879     fi
25880     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
25881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25882 $as_echo "ok" >&6; }
25883       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
25884       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
25885 $as_echo_n "checking for msvcr100.dll... " >&6; }
25886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
25887 $as_echo "$MSVCR_DLL" >&6; }
25888     else
25889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
25890 $as_echo "incorrect, ignoring" >&6; }
25891       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
25892 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
25893     fi
25894   fi
25895 
25896     if test "x$MSVCR_DLL" = x; then
25897       as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5
25898     fi
25899   fi
25900 
25901   if test "x$MSVCR_DLL" = x; then
25902     # Probe: Using well-known location from Visual Studio 10.0
25903     if test "x$VCINSTALLDIR" != x; then
25904       CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR"
25905 
25906   windows_path="$CYGWIN_VC_INSTALL_DIR"
25907   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25908     unix_path=`$CYGPATH -u "$windows_path"`
25909     CYGWIN_VC_INSTALL_DIR="$unix_path"
25910   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25911     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25912     CYGWIN_VC_INSTALL_DIR="$unix_path"
25913   fi
25914 
25915       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
25916         POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll"
25917       else
25918         POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll"
25919       fi
25920 
25921   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
25922   METHOD="well-known location in VCINSTALLDIR"
25923   if test -e "$POSSIBLE_MSVCR_DLL"; then
25924     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
25925 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
25926 
25927     # Need to check if the found msvcr is correct architecture
25928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
25929 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
25930     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
25931     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25932       CORRECT_MSVCR_ARCH=386
25933     else
25934       CORRECT_MSVCR_ARCH=x86-64
25935     fi
25936     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
25937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25938 $as_echo "ok" >&6; }
25939       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
25940       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
25941 $as_echo_n "checking for msvcr100.dll... " >&6; }
25942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
25943 $as_echo "$MSVCR_DLL" >&6; }
25944     else
25945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
25946 $as_echo "incorrect, ignoring" >&6; }
25947       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
25948 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
25949     fi
25950   fi
25951 
25952     fi
25953   fi
25954 
25955   if test "x$MSVCR_DLL" = x; then
25956     # Probe: Check in the Boot JDK directory.
25957     POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll"
25958 
25959   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
25960   METHOD="well-known location in Boot JDK"
25961   if test -e "$POSSIBLE_MSVCR_DLL"; then
25962     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
25963 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
25964 
25965     # Need to check if the found msvcr is correct architecture
25966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
25967 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
25968     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
25969     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
25970       CORRECT_MSVCR_ARCH=386
25971     else
25972       CORRECT_MSVCR_ARCH=x86-64
25973     fi
25974     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
25975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25976 $as_echo "ok" >&6; }
25977       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
25978       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
25979 $as_echo_n "checking for msvcr100.dll... " >&6; }
25980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
25981 $as_echo "$MSVCR_DLL" >&6; }
25982     else
25983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
25984 $as_echo "incorrect, ignoring" >&6; }
25985       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
25986 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
25987     fi
25988   fi
25989 
25990   fi
25991 
25992   if test "x$MSVCR_DLL" = x; then
25993     # Probe: Look in the Windows system32 directory
25994     CYGWIN_SYSTEMROOT="$SYSTEMROOT"
25995 
25996   windows_path="$CYGWIN_SYSTEMROOT"
25997   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25998     unix_path=`$CYGPATH -u "$windows_path"`
25999     CYGWIN_SYSTEMROOT="$unix_path"
26000   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26001     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26002     CYGWIN_SYSTEMROOT="$unix_path"
26003   fi
26004 
26005     POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll"
26006 
26007   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
26008   METHOD="well-known location in SYSTEMROOT"
26009   if test -e "$POSSIBLE_MSVCR_DLL"; then
26010     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
26011 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
26012 
26013     # Need to check if the found msvcr is correct architecture
26014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
26015 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
26016     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
26017     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26018       CORRECT_MSVCR_ARCH=386
26019     else
26020       CORRECT_MSVCR_ARCH=x86-64
26021     fi
26022     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
26023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
26024 $as_echo "ok" >&6; }
26025       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
26026       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
26027 $as_echo_n "checking for msvcr100.dll... " >&6; }
26028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
26029 $as_echo "$MSVCR_DLL" >&6; }
26030     else
26031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
26032 $as_echo "incorrect, ignoring" >&6; }
26033       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
26034 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
26035     fi
26036   fi
26037 
26038   fi
26039 
26040   if test "x$MSVCR_DLL" = x; then
26041     # Probe: If Visual Studio Express is installed, there is usually one with the debugger
26042     if test "x$VS100COMNTOOLS" != x; then
26043       CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.."
26044 
26045   windows_path="$CYGWIN_VS_TOOLS_DIR"
26046   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26047     unix_path=`$CYGPATH -u "$windows_path"`
26048     CYGWIN_VS_TOOLS_DIR="$unix_path"
26049   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26050     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26051     CYGWIN_VS_TOOLS_DIR="$unix_path"
26052   fi
26053 
26054       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
26055         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1`
26056       else
26057         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1`
26058       fi
26059 
26060   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
26061   METHOD="search of VS100COMNTOOLS"
26062   if test -e "$POSSIBLE_MSVCR_DLL"; then
26063     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
26064 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
26065 
26066     # Need to check if the found msvcr is correct architecture
26067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
26068 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
26069     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
26070     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26071       CORRECT_MSVCR_ARCH=386
26072     else
26073       CORRECT_MSVCR_ARCH=x86-64
26074     fi
26075     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
26076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
26077 $as_echo "ok" >&6; }
26078       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
26079       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
26080 $as_echo_n "checking for msvcr100.dll... " >&6; }
26081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
26082 $as_echo "$MSVCR_DLL" >&6; }
26083     else
26084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
26085 $as_echo "incorrect, ignoring" >&6; }
26086       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
26087 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
26088     fi
26089   fi
26090 
26091     fi
26092   fi
26093 
26094   if test "x$MSVCR_DLL" = x; then
26095     # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now.
26096     # (This was the original behaviour; kept since it might turn up something)
26097     if test "x$CYGWIN_VC_INSTALL_DIR" != x; then
26098       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
26099         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1`
26100       else
26101         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1`
26102         if test "x$POSSIBLE_MSVCR_DLL" = x; then
26103           # We're grasping at straws now...
26104           POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1`
26105         fi
26106       fi
26107 
26108 
26109   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
26110   METHOD="search of VCINSTALLDIR"
26111   if test -e "$POSSIBLE_MSVCR_DLL"; then
26112     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
26113 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
26114 
26115     # Need to check if the found msvcr is correct architecture
26116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
26117 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
26118     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
26119     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26120       CORRECT_MSVCR_ARCH=386
26121     else
26122       CORRECT_MSVCR_ARCH=x86-64
26123     fi
26124     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
26125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
26126 $as_echo "ok" >&6; }
26127       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
26128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
26129 $as_echo_n "checking for msvcr100.dll... " >&6; }
26130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
26131 $as_echo "$MSVCR_DLL" >&6; }
26132     else
26133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
26134 $as_echo "incorrect, ignoring" >&6; }
26135       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
26136 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
26137     fi
26138   fi
26139 
26140     fi
26141   fi
26142 
26143   if test "x$MSVCR_DLL" = x; then
26144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
26145 $as_echo_n "checking for msvcr100.dll... " >&6; }
26146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26147 $as_echo "no" >&6; }
26148     as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5
26149   fi
26150 
26151 
26152   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26153 
26154   # Input might be given as Windows format, start by converting to
26155   # unix format.
26156   path="$MSVCR_DLL"
26157   new_path=`$CYGPATH -u "$path"`
26158 
26159   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26160   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26161   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26162   # "foo.exe" is OK but "foo" is an error.
26163   #
26164   # This test is therefore slightly more accurate than "test -f" to check for file precense.
26165   # It is also a way to make sure we got the proper file name for the real test later on.
26166   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
26167   if test "x$test_shortpath" = x; then
26168     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
26169 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
26170     as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5
26171   fi
26172 
26173   # Call helper function which possibly converts this using DOS-style short mode.
26174   # If so, the updated path is stored in $new_path.
26175 
26176   input_path="$new_path"
26177   # Check if we need to convert this using DOS-style short mode. If the path
26178   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26179   # take no chances and rewrite it.
26180   # Note: m4 eats our [], so we need to use [ and ] instead.
26181   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
26182   if test "x$has_forbidden_chars" != x; then
26183     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26184     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
26185     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
26186     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
26187       # Going to short mode and back again did indeed matter. Since short mode is
26188       # case insensitive, let's make it lowercase to improve readability.
26189       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26190       # Now convert it back to Unix-stile (cygpath)
26191       input_path=`$CYGPATH -u "$shortmode_path"`
26192       new_path="$input_path"
26193     fi
26194   fi
26195 
26196   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
26197   if test "x$test_cygdrive_prefix" = x; then
26198     # As a simple fix, exclude /usr/bin since it's not a real path.
26199     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
26200       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
26201       # a path prefixed by /cygdrive for fixpath to work.
26202       new_path="$CYGWIN_ROOT_PATH$input_path"
26203     fi
26204   fi
26205 
26206 
26207   if test "x$path" != "x$new_path"; then
26208     MSVCR_DLL="$new_path"
26209     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
26210 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
26211   fi
26212 
26213   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26214 
26215   path="$MSVCR_DLL"
26216   has_colon=`$ECHO $path | $GREP ^.:`
26217   new_path="$path"
26218   if test "x$has_colon" = x; then
26219     # Not in mixed or Windows style, start by that.
26220     new_path=`cmd //c echo $path`
26221   fi
26222 
26223 
26224   input_path="$new_path"
26225   # Check if we need to convert this using DOS-style short mode. If the path
26226   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26227   # take no chances and rewrite it.
26228   # Note: m4 eats our [], so we need to use [ and ] instead.
26229   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
26230   if test "x$has_forbidden_chars" != x; then
26231     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26232     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26233   fi
26234 
26235 
26236   windows_path="$new_path"
26237   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26238     unix_path=`$CYGPATH -u "$windows_path"`
26239     new_path="$unix_path"
26240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26241     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26242     new_path="$unix_path"
26243   fi
26244 
26245   if test "x$path" != "x$new_path"; then
26246     MSVCR_DLL="$new_path"
26247     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
26248 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
26249   fi
26250 
26251   # Save the first 10 bytes of this path to the storage, so fixpath can work.
26252   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
26253 
26254   else
26255     # We're on a posix platform. Hooray! :)
26256     path="$MSVCR_DLL"
26257     has_space=`$ECHO "$path" | $GREP " "`
26258     if test "x$has_space" != x; then
26259       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
26260 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
26261       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
26262     fi
26263 
26264     # Use eval to expand a potential ~
26265     eval path="$path"
26266     if test ! -f "$path" && test ! -d "$path"; then
26267       as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5
26268     fi
26269 
26270     MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`"
26271   fi
26272 
26273 
26274 
26275 
26276 # Check whether --with-dxsdk was given.
26277 if test "${with_dxsdk+set}" = set; then :
26278   withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5
26279 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;}
26280 fi
26281 
26282 
26283 
26284 
26285 # Check whether --with-dxsdk-lib was given.
26286 if test "${with_dxsdk_lib+set}" = set; then :
26287   withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5
26288 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;}
26289 fi
26290 
26291 
26292 
26293 
26294 # Check whether --with-dxsdk-include was given.
26295 if test "${with_dxsdk_include+set}" = set; then :
26296   withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5
26297 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;}
26298 fi
26299 
26300 
26301   fi
26302 
26303 
26304 
26305   # If --build AND --host is set, then the configure script will find any
26306   # cross compilation tools in the PATH. Cross compilation tools
26307   # follows the cross compilation standard where they are prefixed with ${host}.
26308   # For example the binary i686-sun-solaris2.10-gcc
26309   # will cross compile for i686-sun-solaris2.10
26310   # If neither of build and host is not set, then build=host and the
26311   # default compiler found in the path will be used.
26312   # Setting only --host, does not seem to be really supported.
26313   # Please set both --build and --host if you want to cross compile.
26314 
26315   if test "x$COMPILE_TYPE" = "xcross"; then
26316     # Now we to find a C/C++ compiler that can build executables for the build
26317     # platform. We can't use the AC_PROG_CC macro, since it can only be used
26318     # once. Also, we need to do this before adding a tools dir to the path,
26319     # otherwise we might pick up cross-compilers which don't use standard naming.
26320     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
26321     # to wait until they are properly discovered.
26322 
26323 
26324   # Publish this variable in the help.
26325 
26326 
26327   if test "x$BUILD_CC" = x; then
26328     # The variable is not set by user, try to locate tool using the code snippet
26329     for ac_prog in cl cc gcc
26330 do
26331   # Extract the first word of "$ac_prog", so it can be a program name with args.
26332 set dummy $ac_prog; ac_word=$2
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26334 $as_echo_n "checking for $ac_word... " >&6; }
26335 if ${ac_cv_path_BUILD_CC+:} false; then :
26336   $as_echo_n "(cached) " >&6
26337 else
26338   case $BUILD_CC in
26339   [\\/]* | ?:[\\/]*)
26340   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
26341   ;;
26342   *)
26343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26344 for as_dir in $PATH
26345 do
26346   IFS=$as_save_IFS
26347   test -z "$as_dir" && as_dir=.
26348     for ac_exec_ext in '' $ac_executable_extensions; do
26349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26350     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
26351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26352     break 2
26353   fi
26354 done
26355   done
26356 IFS=$as_save_IFS
26357 
26358   ;;
26359 esac
26360 fi
26361 BUILD_CC=$ac_cv_path_BUILD_CC
26362 if test -n "$BUILD_CC"; then
26363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
26364 $as_echo "$BUILD_CC" >&6; }
26365 else
26366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26367 $as_echo "no" >&6; }
26368 fi
26369 
26370 
26371   test -n "$BUILD_CC" && break
26372 done
26373 
26374   else
26375     # The variable is set, but is it from the command line or the environment?
26376 
26377     # Try to remove the string !BUILD_CC! from our list.
26378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/}
26379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
26380       # If it failed, the variable was not from the command line. Ignore it,
26381       # but warn the user (except for BASH, which is always set by the calling BASH).
26382       if test "xBUILD_CC" != xBASH; then
26383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5
26384 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;}
26385       fi
26386       # Try to locate tool using the code snippet
26387       for ac_prog in cl cc gcc
26388 do
26389   # Extract the first word of "$ac_prog", so it can be a program name with args.
26390 set dummy $ac_prog; ac_word=$2
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26392 $as_echo_n "checking for $ac_word... " >&6; }
26393 if ${ac_cv_path_BUILD_CC+:} false; then :
26394   $as_echo_n "(cached) " >&6
26395 else
26396   case $BUILD_CC in
26397   [\\/]* | ?:[\\/]*)
26398   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
26399   ;;
26400   *)
26401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26402 for as_dir in $PATH
26403 do
26404   IFS=$as_save_IFS
26405   test -z "$as_dir" && as_dir=.
26406     for ac_exec_ext in '' $ac_executable_extensions; do
26407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26408     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
26409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26410     break 2
26411   fi
26412 done
26413   done
26414 IFS=$as_save_IFS
26415 
26416   ;;
26417 esac
26418 fi
26419 BUILD_CC=$ac_cv_path_BUILD_CC
26420 if test -n "$BUILD_CC"; then
26421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
26422 $as_echo "$BUILD_CC" >&6; }
26423 else
26424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26425 $as_echo "no" >&6; }
26426 fi
26427 
26428 
26429   test -n "$BUILD_CC" && break
26430 done
26431 
26432     else
26433       # If it succeeded, then it was overridden by the user. We will use it
26434       # for the tool.
26435 
26436       # First remove it from the list of overridden variables, so we can test
26437       # for unknown variables in the end.
26438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
26439 
26440       # Check if the provided tool contains a complete path.
26441       tool_specified="$BUILD_CC"
26442       tool_basename="${tool_specified##*/}"
26443       if test "x$tool_basename" = "x$tool_specified"; then
26444         # A command without a complete path is provided, search $PATH.
26445         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5
26446 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;}
26447         # Extract the first word of "$tool_basename", so it can be a program name with args.
26448 set dummy $tool_basename; ac_word=$2
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26450 $as_echo_n "checking for $ac_word... " >&6; }
26451 if ${ac_cv_path_BUILD_CC+:} false; then :
26452   $as_echo_n "(cached) " >&6
26453 else
26454   case $BUILD_CC in
26455   [\\/]* | ?:[\\/]*)
26456   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
26457   ;;
26458   *)
26459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26460 for as_dir in $PATH
26461 do
26462   IFS=$as_save_IFS
26463   test -z "$as_dir" && as_dir=.
26464     for ac_exec_ext in '' $ac_executable_extensions; do
26465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26466     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
26467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26468     break 2
26469   fi
26470 done
26471   done
26472 IFS=$as_save_IFS
26473 
26474   ;;
26475 esac
26476 fi
26477 BUILD_CC=$ac_cv_path_BUILD_CC
26478 if test -n "$BUILD_CC"; then
26479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
26480 $as_echo "$BUILD_CC" >&6; }
26481 else
26482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26483 $as_echo "no" >&6; }
26484 fi
26485 
26486 
26487         if test "x$BUILD_CC" = x; then
26488           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
26489         fi
26490       else
26491         # Otherwise we believe it is a complete path. Use it as it is.
26492         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5
26493 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;}
26494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5
26495 $as_echo_n "checking for BUILD_CC... " >&6; }
26496         if test ! -x "$tool_specified"; then
26497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26498 $as_echo "not found" >&6; }
26499           as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5
26500         fi
26501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
26502 $as_echo "$tool_specified" >&6; }
26503       fi
26504     fi
26505   fi
26506 
26507 
26508 
26509   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26510 
26511   # First separate the path from the arguments. This will split at the first
26512   # space.
26513   complete="$BUILD_CC"
26514   path="${complete%% *}"
26515   tmp="$complete EOL"
26516   arguments="${tmp#* }"
26517 
26518   # Input might be given as Windows format, start by converting to
26519   # unix format.
26520   new_path=`$CYGPATH -u "$path"`
26521 
26522   # Now try to locate executable using which
26523   new_path=`$WHICH "$new_path" 2> /dev/null`
26524   # bat and cmd files are not always considered executable in cygwin causing which
26525   # to not find them
26526   if test "x$new_path" = x \
26527       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26528       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26529     new_path=`$CYGPATH -u "$path"`
26530   fi
26531   if test "x$new_path" = x; then
26532     # Oops. Which didn't find the executable.
26533     # The splitting of arguments from the executable at a space might have been incorrect,
26534     # since paths with space are more likely in Windows. Give it another try with the whole
26535     # argument.
26536     path="$complete"
26537     arguments="EOL"
26538     new_path=`$CYGPATH -u "$path"`
26539     new_path=`$WHICH "$new_path" 2> /dev/null`
26540     # bat and cmd files are not always considered executable in cygwin causing which
26541     # to not find them
26542     if test "x$new_path" = x \
26543         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26544         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26545       new_path=`$CYGPATH -u "$path"`
26546     fi
26547     if test "x$new_path" = x; then
26548       # It's still not found. Now this is an unrecoverable error.
26549       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
26550 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
26551       has_space=`$ECHO "$complete" | $GREP " "`
26552       if test "x$has_space" != x; then
26553         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26554 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26555       fi
26556       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
26557     fi
26558   fi
26559 
26560   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26561   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26562   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26563   # "foo.exe" is OK but "foo" is an error.
26564   #
26565   # This test is therefore slightly more accurate than "test -f" to check for file presence.
26566   # It is also a way to make sure we got the proper file name for the real test later on.
26567   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
26568   if test "x$test_shortpath" = x; then
26569     # Short path failed, file does not exist as specified.
26570     # Try adding .exe or .cmd
26571     if test -f "${new_path}.exe"; then
26572       input_to_shortpath="${new_path}.exe"
26573     elif test -f "${new_path}.cmd"; then
26574       input_to_shortpath="${new_path}.cmd"
26575     else
26576       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5
26577 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;}
26578       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
26579 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
26580       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
26581     fi
26582   else
26583     input_to_shortpath="$new_path"
26584   fi
26585 
26586   # Call helper function which possibly converts this using DOS-style short mode.
26587   # If so, the updated path is stored in $new_path.
26588   new_path="$input_to_shortpath"
26589 
26590   input_path="$input_to_shortpath"
26591   # Check if we need to convert this using DOS-style short mode. If the path
26592   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26593   # take no chances and rewrite it.
26594   # Note: m4 eats our [], so we need to use [ and ] instead.
26595   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
26596   if test "x$has_forbidden_chars" != x; then
26597     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26598     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
26599     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
26600     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
26601       # Going to short mode and back again did indeed matter. Since short mode is
26602       # case insensitive, let's make it lowercase to improve readability.
26603       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26604       # Now convert it back to Unix-stile (cygpath)
26605       input_path=`$CYGPATH -u "$shortmode_path"`
26606       new_path="$input_path"
26607     fi
26608   fi
26609 
26610   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
26611   if test "x$test_cygdrive_prefix" = x; then
26612     # As a simple fix, exclude /usr/bin since it's not a real path.
26613     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
26614       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
26615       # a path prefixed by /cygdrive for fixpath to work.
26616       new_path="$CYGWIN_ROOT_PATH$input_path"
26617     fi
26618   fi
26619 
26620   # remove trailing .exe if any
26621   new_path="${new_path/%.exe/}"
26622 
26623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26624 
26625   # First separate the path from the arguments. This will split at the first
26626   # space.
26627   complete="$BUILD_CC"
26628   path="${complete%% *}"
26629   tmp="$complete EOL"
26630   arguments="${tmp#* }"
26631 
26632   # Input might be given as Windows format, start by converting to
26633   # unix format.
26634   new_path="$path"
26635 
26636   windows_path="$new_path"
26637   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26638     unix_path=`$CYGPATH -u "$windows_path"`
26639     new_path="$unix_path"
26640   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26641     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26642     new_path="$unix_path"
26643   fi
26644 
26645 
26646   # Now try to locate executable using which
26647   new_path=`$WHICH "$new_path" 2> /dev/null`
26648 
26649   if test "x$new_path" = x; then
26650     # Oops. Which didn't find the executable.
26651     # The splitting of arguments from the executable at a space might have been incorrect,
26652     # since paths with space are more likely in Windows. Give it another try with the whole
26653     # argument.
26654     path="$complete"
26655     arguments="EOL"
26656     new_path="$path"
26657 
26658   windows_path="$new_path"
26659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26660     unix_path=`$CYGPATH -u "$windows_path"`
26661     new_path="$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     new_path="$unix_path"
26665   fi
26666 
26667 
26668     new_path=`$WHICH "$new_path" 2> /dev/null`
26669 
26670     if test "x$new_path" = x; then
26671       # It's still not found. Now this is an unrecoverable error.
26672       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
26673 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
26674       has_space=`$ECHO "$complete" | $GREP " "`
26675       if test "x$has_space" != x; then
26676         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26678       fi
26679       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
26680     fi
26681   fi
26682 
26683   # Now new_path has a complete unix path to the binary
26684   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
26685     # Keep paths in /bin as-is, but remove trailing .exe if any
26686     new_path="${new_path/%.exe/}"
26687     # Do not save /bin paths to all_fixpath_prefixes!
26688   else
26689     # Not in mixed or Windows style, start by that.
26690     new_path=`cmd //c echo $new_path`
26691 
26692   input_path="$new_path"
26693   # Check if we need to convert this using DOS-style short mode. If the path
26694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26695   # take no chances and rewrite it.
26696   # Note: m4 eats our [], so we need to use [ and ] instead.
26697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
26698   if test "x$has_forbidden_chars" != x; then
26699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26700     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26701   fi
26702 
26703     # Output is in $new_path
26704 
26705   windows_path="$new_path"
26706   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26707     unix_path=`$CYGPATH -u "$windows_path"`
26708     new_path="$unix_path"
26709   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26710     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26711     new_path="$unix_path"
26712   fi
26713 
26714     # remove trailing .exe if any
26715     new_path="${new_path/%.exe/}"
26716 
26717     # Save the first 10 bytes of this path to the storage, so fixpath can work.
26718     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
26719   fi
26720 
26721   else
26722     # We're on a posix platform. Hooray! :)
26723     # First separate the path from the arguments. This will split at the first
26724     # space.
26725     complete="$BUILD_CC"
26726     path="${complete%% *}"
26727     tmp="$complete EOL"
26728     arguments="${tmp#* }"
26729 
26730     # Cannot rely on the command "which" here since it doesn't always work.
26731     is_absolute_path=`$ECHO "$path" | $GREP ^/`
26732     if test -z "$is_absolute_path"; then
26733       # Path to executable is not absolute. Find it.
26734       IFS_save="$IFS"
26735       IFS=:
26736       for p in $PATH; do
26737         if test -f "$p/$path" && test -x "$p/$path"; then
26738           new_path="$p/$path"
26739           break
26740         fi
26741       done
26742       IFS="$IFS_save"
26743     else
26744       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CC (as $path) failed, using $path directly." >&5
26745 $as_echo "$as_me: Resolving BUILD_CC (as $path) failed, using $path directly." >&6;}
26746       new_path="$path"
26747     fi
26748 
26749     if test "x$new_path" = x; then
26750       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
26751 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
26752       has_space=`$ECHO "$complete" | $GREP " "`
26753       if test "x$has_space" != x; then
26754         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
26755 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
26756       fi
26757       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
26758     fi
26759   fi
26760 
26761   # Now join together the path and the arguments once again
26762   if test "x$arguments" != xEOL; then
26763     new_complete="$new_path ${arguments% *}"
26764   else
26765     new_complete="$new_path"
26766   fi
26767 
26768   if test "x$complete" != "x$new_complete"; then
26769     BUILD_CC="$new_complete"
26770     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
26771 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
26772   fi
26773 
26774 
26775 
26776   # Publish this variable in the help.
26777 
26778 
26779   if test "x$BUILD_CXX" = x; then
26780     # The variable is not set by user, try to locate tool using the code snippet
26781     for ac_prog in cl CC g++
26782 do
26783   # Extract the first word of "$ac_prog", so it can be a program name with args.
26784 set dummy $ac_prog; ac_word=$2
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26786 $as_echo_n "checking for $ac_word... " >&6; }
26787 if ${ac_cv_path_BUILD_CXX+:} false; then :
26788   $as_echo_n "(cached) " >&6
26789 else
26790   case $BUILD_CXX in
26791   [\\/]* | ?:[\\/]*)
26792   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
26793   ;;
26794   *)
26795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26796 for as_dir in $PATH
26797 do
26798   IFS=$as_save_IFS
26799   test -z "$as_dir" && as_dir=.
26800     for ac_exec_ext in '' $ac_executable_extensions; do
26801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26802     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
26803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26804     break 2
26805   fi
26806 done
26807   done
26808 IFS=$as_save_IFS
26809 
26810   ;;
26811 esac
26812 fi
26813 BUILD_CXX=$ac_cv_path_BUILD_CXX
26814 if test -n "$BUILD_CXX"; then
26815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
26816 $as_echo "$BUILD_CXX" >&6; }
26817 else
26818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26819 $as_echo "no" >&6; }
26820 fi
26821 
26822 
26823   test -n "$BUILD_CXX" && break
26824 done
26825 
26826   else
26827     # The variable is set, but is it from the command line or the environment?
26828 
26829     # Try to remove the string !BUILD_CXX! from our list.
26830     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/}
26831     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
26832       # If it failed, the variable was not from the command line. Ignore it,
26833       # but warn the user (except for BASH, which is always set by the calling BASH).
26834       if test "xBUILD_CXX" != xBASH; then
26835         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5
26836 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;}
26837       fi
26838       # Try to locate tool using the code snippet
26839       for ac_prog in cl CC g++
26840 do
26841   # Extract the first word of "$ac_prog", so it can be a program name with args.
26842 set dummy $ac_prog; ac_word=$2
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26844 $as_echo_n "checking for $ac_word... " >&6; }
26845 if ${ac_cv_path_BUILD_CXX+:} false; then :
26846   $as_echo_n "(cached) " >&6
26847 else
26848   case $BUILD_CXX in
26849   [\\/]* | ?:[\\/]*)
26850   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
26851   ;;
26852   *)
26853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26854 for as_dir in $PATH
26855 do
26856   IFS=$as_save_IFS
26857   test -z "$as_dir" && as_dir=.
26858     for ac_exec_ext in '' $ac_executable_extensions; do
26859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26860     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
26861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26862     break 2
26863   fi
26864 done
26865   done
26866 IFS=$as_save_IFS
26867 
26868   ;;
26869 esac
26870 fi
26871 BUILD_CXX=$ac_cv_path_BUILD_CXX
26872 if test -n "$BUILD_CXX"; then
26873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
26874 $as_echo "$BUILD_CXX" >&6; }
26875 else
26876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26877 $as_echo "no" >&6; }
26878 fi
26879 
26880 
26881   test -n "$BUILD_CXX" && break
26882 done
26883 
26884     else
26885       # If it succeeded, then it was overridden by the user. We will use it
26886       # for the tool.
26887 
26888       # First remove it from the list of overridden variables, so we can test
26889       # for unknown variables in the end.
26890       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
26891 
26892       # Check if the provided tool contains a complete path.
26893       tool_specified="$BUILD_CXX"
26894       tool_basename="${tool_specified##*/}"
26895       if test "x$tool_basename" = "x$tool_specified"; then
26896         # A command without a complete path is provided, search $PATH.
26897         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5
26898 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;}
26899         # Extract the first word of "$tool_basename", so it can be a program name with args.
26900 set dummy $tool_basename; ac_word=$2
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26902 $as_echo_n "checking for $ac_word... " >&6; }
26903 if ${ac_cv_path_BUILD_CXX+:} false; then :
26904   $as_echo_n "(cached) " >&6
26905 else
26906   case $BUILD_CXX in
26907   [\\/]* | ?:[\\/]*)
26908   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
26909   ;;
26910   *)
26911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26912 for as_dir in $PATH
26913 do
26914   IFS=$as_save_IFS
26915   test -z "$as_dir" && as_dir=.
26916     for ac_exec_ext in '' $ac_executable_extensions; do
26917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26918     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
26919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26920     break 2
26921   fi
26922 done
26923   done
26924 IFS=$as_save_IFS
26925 
26926   ;;
26927 esac
26928 fi
26929 BUILD_CXX=$ac_cv_path_BUILD_CXX
26930 if test -n "$BUILD_CXX"; then
26931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
26932 $as_echo "$BUILD_CXX" >&6; }
26933 else
26934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26935 $as_echo "no" >&6; }
26936 fi
26937 
26938 
26939         if test "x$BUILD_CXX" = x; then
26940           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
26941         fi
26942       else
26943         # Otherwise we believe it is a complete path. Use it as it is.
26944         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5
26945 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;}
26946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5
26947 $as_echo_n "checking for BUILD_CXX... " >&6; }
26948         if test ! -x "$tool_specified"; then
26949           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26950 $as_echo "not found" >&6; }
26951           as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5
26952         fi
26953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
26954 $as_echo "$tool_specified" >&6; }
26955       fi
26956     fi
26957   fi
26958 
26959 
26960 
26961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26962 
26963   # First separate the path from the arguments. This will split at the first
26964   # space.
26965   complete="$BUILD_CXX"
26966   path="${complete%% *}"
26967   tmp="$complete EOL"
26968   arguments="${tmp#* }"
26969 
26970   # Input might be given as Windows format, start by converting to
26971   # unix format.
26972   new_path=`$CYGPATH -u "$path"`
26973 
26974   # Now try to locate executable using which
26975   new_path=`$WHICH "$new_path" 2> /dev/null`
26976   # bat and cmd files are not always considered executable in cygwin causing which
26977   # to not find them
26978   if test "x$new_path" = x \
26979       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26980       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26981     new_path=`$CYGPATH -u "$path"`
26982   fi
26983   if test "x$new_path" = x; then
26984     # Oops. Which didn't find the executable.
26985     # The splitting of arguments from the executable at a space might have been incorrect,
26986     # since paths with space are more likely in Windows. Give it another try with the whole
26987     # argument.
26988     path="$complete"
26989     arguments="EOL"
26990     new_path=`$CYGPATH -u "$path"`
26991     new_path=`$WHICH "$new_path" 2> /dev/null`
26992     # bat and cmd files are not always considered executable in cygwin causing which
26993     # to not find them
26994     if test "x$new_path" = x \
26995         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26996         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26997       new_path=`$CYGPATH -u "$path"`
26998     fi
26999     if test "x$new_path" = x; then
27000       # It's still not found. Now this is an unrecoverable error.
27001       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
27002 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
27003       has_space=`$ECHO "$complete" | $GREP " "`
27004       if test "x$has_space" != x; then
27005         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27007       fi
27008       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
27009     fi
27010   fi
27011 
27012   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27013   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27014   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27015   # "foo.exe" is OK but "foo" is an error.
27016   #
27017   # This test is therefore slightly more accurate than "test -f" to check for file presence.
27018   # It is also a way to make sure we got the proper file name for the real test later on.
27019   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
27020   if test "x$test_shortpath" = x; then
27021     # Short path failed, file does not exist as specified.
27022     # Try adding .exe or .cmd
27023     if test -f "${new_path}.exe"; then
27024       input_to_shortpath="${new_path}.exe"
27025     elif test -f "${new_path}.cmd"; then
27026       input_to_shortpath="${new_path}.cmd"
27027     else
27028       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5
27029 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;}
27030       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
27031 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
27032       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
27033     fi
27034   else
27035     input_to_shortpath="$new_path"
27036   fi
27037 
27038   # Call helper function which possibly converts this using DOS-style short mode.
27039   # If so, the updated path is stored in $new_path.
27040   new_path="$input_to_shortpath"
27041 
27042   input_path="$input_to_shortpath"
27043   # Check if we need to convert this using DOS-style short mode. If the path
27044   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27045   # take no chances and rewrite it.
27046   # Note: m4 eats our [], so we need to use [ and ] instead.
27047   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27048   if test "x$has_forbidden_chars" != x; then
27049     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27050     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27051     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27052     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27053       # Going to short mode and back again did indeed matter. Since short mode is
27054       # case insensitive, let's make it lowercase to improve readability.
27055       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27056       # Now convert it back to Unix-stile (cygpath)
27057       input_path=`$CYGPATH -u "$shortmode_path"`
27058       new_path="$input_path"
27059     fi
27060   fi
27061 
27062   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27063   if test "x$test_cygdrive_prefix" = x; then
27064     # As a simple fix, exclude /usr/bin since it's not a real path.
27065     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
27066       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27067       # a path prefixed by /cygdrive for fixpath to work.
27068       new_path="$CYGWIN_ROOT_PATH$input_path"
27069     fi
27070   fi
27071 
27072   # remove trailing .exe if any
27073   new_path="${new_path/%.exe/}"
27074 
27075   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27076 
27077   # First separate the path from the arguments. This will split at the first
27078   # space.
27079   complete="$BUILD_CXX"
27080   path="${complete%% *}"
27081   tmp="$complete EOL"
27082   arguments="${tmp#* }"
27083 
27084   # Input might be given as Windows format, start by converting to
27085   # unix format.
27086   new_path="$path"
27087 
27088   windows_path="$new_path"
27089   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27090     unix_path=`$CYGPATH -u "$windows_path"`
27091     new_path="$unix_path"
27092   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27093     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27094     new_path="$unix_path"
27095   fi
27096 
27097 
27098   # Now try to locate executable using which
27099   new_path=`$WHICH "$new_path" 2> /dev/null`
27100 
27101   if test "x$new_path" = x; then
27102     # Oops. Which didn't find the executable.
27103     # The splitting of arguments from the executable at a space might have been incorrect,
27104     # since paths with space are more likely in Windows. Give it another try with the whole
27105     # argument.
27106     path="$complete"
27107     arguments="EOL"
27108     new_path="$path"
27109 
27110   windows_path="$new_path"
27111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27112     unix_path=`$CYGPATH -u "$windows_path"`
27113     new_path="$unix_path"
27114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27116     new_path="$unix_path"
27117   fi
27118 
27119 
27120     new_path=`$WHICH "$new_path" 2> /dev/null`
27121 
27122     if test "x$new_path" = x; then
27123       # It's still not found. Now this is an unrecoverable error.
27124       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
27125 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
27126       has_space=`$ECHO "$complete" | $GREP " "`
27127       if test "x$has_space" != x; then
27128         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27129 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27130       fi
27131       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
27132     fi
27133   fi
27134 
27135   # Now new_path has a complete unix path to the binary
27136   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
27137     # Keep paths in /bin as-is, but remove trailing .exe if any
27138     new_path="${new_path/%.exe/}"
27139     # Do not save /bin paths to all_fixpath_prefixes!
27140   else
27141     # Not in mixed or Windows style, start by that.
27142     new_path=`cmd //c echo $new_path`
27143 
27144   input_path="$new_path"
27145   # Check if we need to convert this using DOS-style short mode. If the path
27146   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27147   # take no chances and rewrite it.
27148   # Note: m4 eats our [], so we need to use [ and ] instead.
27149   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27150   if test "x$has_forbidden_chars" != x; then
27151     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27152     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27153   fi
27154 
27155     # Output is in $new_path
27156 
27157   windows_path="$new_path"
27158   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27159     unix_path=`$CYGPATH -u "$windows_path"`
27160     new_path="$unix_path"
27161   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27162     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27163     new_path="$unix_path"
27164   fi
27165 
27166     # remove trailing .exe if any
27167     new_path="${new_path/%.exe/}"
27168 
27169     # Save the first 10 bytes of this path to the storage, so fixpath can work.
27170     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27171   fi
27172 
27173   else
27174     # We're on a posix platform. Hooray! :)
27175     # First separate the path from the arguments. This will split at the first
27176     # space.
27177     complete="$BUILD_CXX"
27178     path="${complete%% *}"
27179     tmp="$complete EOL"
27180     arguments="${tmp#* }"
27181 
27182     # Cannot rely on the command "which" here since it doesn't always work.
27183     is_absolute_path=`$ECHO "$path" | $GREP ^/`
27184     if test -z "$is_absolute_path"; then
27185       # Path to executable is not absolute. Find it.
27186       IFS_save="$IFS"
27187       IFS=:
27188       for p in $PATH; do
27189         if test -f "$p/$path" && test -x "$p/$path"; then
27190           new_path="$p/$path"
27191           break
27192         fi
27193       done
27194       IFS="$IFS_save"
27195     else
27196       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CXX (as $path) failed, using $path directly." >&5
27197 $as_echo "$as_me: Resolving BUILD_CXX (as $path) failed, using $path directly." >&6;}
27198       new_path="$path"
27199     fi
27200 
27201     if test "x$new_path" = x; then
27202       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
27203 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
27204       has_space=`$ECHO "$complete" | $GREP " "`
27205       if test "x$has_space" != x; then
27206         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
27207 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27208       fi
27209       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
27210     fi
27211   fi
27212 
27213   # Now join together the path and the arguments once again
27214   if test "x$arguments" != xEOL; then
27215     new_complete="$new_path ${arguments% *}"
27216   else
27217     new_complete="$new_path"
27218   fi
27219 
27220   if test "x$complete" != "x$new_complete"; then
27221     BUILD_CXX="$new_complete"
27222     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
27223 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
27224   fi
27225 
27226 
27227 
27228   # Publish this variable in the help.
27229 
27230 
27231   if test "x$BUILD_LD" = x; then
27232     # The variable is not set by user, try to locate tool using the code snippet
27233     for ac_prog in ld
27234 do
27235   # Extract the first word of "$ac_prog", so it can be a program name with args.
27236 set dummy $ac_prog; ac_word=$2
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27238 $as_echo_n "checking for $ac_word... " >&6; }
27239 if ${ac_cv_path_BUILD_LD+:} false; then :
27240   $as_echo_n "(cached) " >&6
27241 else
27242   case $BUILD_LD in
27243   [\\/]* | ?:[\\/]*)
27244   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
27245   ;;
27246   *)
27247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27248 for as_dir in $PATH
27249 do
27250   IFS=$as_save_IFS
27251   test -z "$as_dir" && as_dir=.
27252     for ac_exec_ext in '' $ac_executable_extensions; do
27253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27254     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
27255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27256     break 2
27257   fi
27258 done
27259   done
27260 IFS=$as_save_IFS
27261 
27262   ;;
27263 esac
27264 fi
27265 BUILD_LD=$ac_cv_path_BUILD_LD
27266 if test -n "$BUILD_LD"; then
27267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
27268 $as_echo "$BUILD_LD" >&6; }
27269 else
27270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27271 $as_echo "no" >&6; }
27272 fi
27273 
27274 
27275   test -n "$BUILD_LD" && break
27276 done
27277 
27278   else
27279     # The variable is set, but is it from the command line or the environment?
27280 
27281     # Try to remove the string !BUILD_LD! from our list.
27282     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/}
27283     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
27284       # If it failed, the variable was not from the command line. Ignore it,
27285       # but warn the user (except for BASH, which is always set by the calling BASH).
27286       if test "xBUILD_LD" != xBASH; then
27287         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5
27288 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;}
27289       fi
27290       # Try to locate tool using the code snippet
27291       for ac_prog in ld
27292 do
27293   # Extract the first word of "$ac_prog", so it can be a program name with args.
27294 set dummy $ac_prog; ac_word=$2
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27296 $as_echo_n "checking for $ac_word... " >&6; }
27297 if ${ac_cv_path_BUILD_LD+:} false; then :
27298   $as_echo_n "(cached) " >&6
27299 else
27300   case $BUILD_LD in
27301   [\\/]* | ?:[\\/]*)
27302   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
27303   ;;
27304   *)
27305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27306 for as_dir in $PATH
27307 do
27308   IFS=$as_save_IFS
27309   test -z "$as_dir" && as_dir=.
27310     for ac_exec_ext in '' $ac_executable_extensions; do
27311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27312     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
27313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27314     break 2
27315   fi
27316 done
27317   done
27318 IFS=$as_save_IFS
27319 
27320   ;;
27321 esac
27322 fi
27323 BUILD_LD=$ac_cv_path_BUILD_LD
27324 if test -n "$BUILD_LD"; then
27325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
27326 $as_echo "$BUILD_LD" >&6; }
27327 else
27328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27329 $as_echo "no" >&6; }
27330 fi
27331 
27332 
27333   test -n "$BUILD_LD" && break
27334 done
27335 
27336     else
27337       # If it succeeded, then it was overridden by the user. We will use it
27338       # for the tool.
27339 
27340       # First remove it from the list of overridden variables, so we can test
27341       # for unknown variables in the end.
27342       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
27343 
27344       # Check if the provided tool contains a complete path.
27345       tool_specified="$BUILD_LD"
27346       tool_basename="${tool_specified##*/}"
27347       if test "x$tool_basename" = "x$tool_specified"; then
27348         # A command without a complete path is provided, search $PATH.
27349         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5
27350 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;}
27351         # Extract the first word of "$tool_basename", so it can be a program name with args.
27352 set dummy $tool_basename; ac_word=$2
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27354 $as_echo_n "checking for $ac_word... " >&6; }
27355 if ${ac_cv_path_BUILD_LD+:} false; then :
27356   $as_echo_n "(cached) " >&6
27357 else
27358   case $BUILD_LD in
27359   [\\/]* | ?:[\\/]*)
27360   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
27361   ;;
27362   *)
27363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27364 for as_dir in $PATH
27365 do
27366   IFS=$as_save_IFS
27367   test -z "$as_dir" && as_dir=.
27368     for ac_exec_ext in '' $ac_executable_extensions; do
27369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27370     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
27371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27372     break 2
27373   fi
27374 done
27375   done
27376 IFS=$as_save_IFS
27377 
27378   ;;
27379 esac
27380 fi
27381 BUILD_LD=$ac_cv_path_BUILD_LD
27382 if test -n "$BUILD_LD"; then
27383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
27384 $as_echo "$BUILD_LD" >&6; }
27385 else
27386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27387 $as_echo "no" >&6; }
27388 fi
27389 
27390 
27391         if test "x$BUILD_LD" = x; then
27392           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
27393         fi
27394       else
27395         # Otherwise we believe it is a complete path. Use it as it is.
27396         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5
27397 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;}
27398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5
27399 $as_echo_n "checking for BUILD_LD... " >&6; }
27400         if test ! -x "$tool_specified"; then
27401           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27402 $as_echo "not found" >&6; }
27403           as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5
27404         fi
27405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
27406 $as_echo "$tool_specified" >&6; }
27407       fi
27408     fi
27409   fi
27410 
27411 
27412 
27413   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27414 
27415   # First separate the path from the arguments. This will split at the first
27416   # space.
27417   complete="$BUILD_LD"
27418   path="${complete%% *}"
27419   tmp="$complete EOL"
27420   arguments="${tmp#* }"
27421 
27422   # Input might be given as Windows format, start by converting to
27423   # unix format.
27424   new_path=`$CYGPATH -u "$path"`
27425 
27426   # Now try to locate executable using which
27427   new_path=`$WHICH "$new_path" 2> /dev/null`
27428   # bat and cmd files are not always considered executable in cygwin causing which
27429   # to not find them
27430   if test "x$new_path" = x \
27431       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27432       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27433     new_path=`$CYGPATH -u "$path"`
27434   fi
27435   if test "x$new_path" = x; then
27436     # Oops. Which didn't find the executable.
27437     # The splitting of arguments from the executable at a space might have been incorrect,
27438     # since paths with space are more likely in Windows. Give it another try with the whole
27439     # argument.
27440     path="$complete"
27441     arguments="EOL"
27442     new_path=`$CYGPATH -u "$path"`
27443     new_path=`$WHICH "$new_path" 2> /dev/null`
27444     # bat and cmd files are not always considered executable in cygwin causing which
27445     # to not find them
27446     if test "x$new_path" = x \
27447         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27448         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27449       new_path=`$CYGPATH -u "$path"`
27450     fi
27451     if test "x$new_path" = x; then
27452       # It's still not found. Now this is an unrecoverable error.
27453       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
27454 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
27455       has_space=`$ECHO "$complete" | $GREP " "`
27456       if test "x$has_space" != x; then
27457         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27459       fi
27460       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
27461     fi
27462   fi
27463 
27464   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27465   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27466   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27467   # "foo.exe" is OK but "foo" is an error.
27468   #
27469   # This test is therefore slightly more accurate than "test -f" to check for file presence.
27470   # It is also a way to make sure we got the proper file name for the real test later on.
27471   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
27472   if test "x$test_shortpath" = x; then
27473     # Short path failed, file does not exist as specified.
27474     # Try adding .exe or .cmd
27475     if test -f "${new_path}.exe"; then
27476       input_to_shortpath="${new_path}.exe"
27477     elif test -f "${new_path}.cmd"; then
27478       input_to_shortpath="${new_path}.cmd"
27479     else
27480       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5
27481 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;}
27482       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
27483 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
27484       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
27485     fi
27486   else
27487     input_to_shortpath="$new_path"
27488   fi
27489 
27490   # Call helper function which possibly converts this using DOS-style short mode.
27491   # If so, the updated path is stored in $new_path.
27492   new_path="$input_to_shortpath"
27493 
27494   input_path="$input_to_shortpath"
27495   # Check if we need to convert this using DOS-style short mode. If the path
27496   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27497   # take no chances and rewrite it.
27498   # Note: m4 eats our [], so we need to use [ and ] instead.
27499   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27500   if test "x$has_forbidden_chars" != x; then
27501     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27502     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27503     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27504     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27505       # Going to short mode and back again did indeed matter. Since short mode is
27506       # case insensitive, let's make it lowercase to improve readability.
27507       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27508       # Now convert it back to Unix-stile (cygpath)
27509       input_path=`$CYGPATH -u "$shortmode_path"`
27510       new_path="$input_path"
27511     fi
27512   fi
27513 
27514   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27515   if test "x$test_cygdrive_prefix" = x; then
27516     # As a simple fix, exclude /usr/bin since it's not a real path.
27517     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
27518       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27519       # a path prefixed by /cygdrive for fixpath to work.
27520       new_path="$CYGWIN_ROOT_PATH$input_path"
27521     fi
27522   fi
27523 
27524   # remove trailing .exe if any
27525   new_path="${new_path/%.exe/}"
27526 
27527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27528 
27529   # First separate the path from the arguments. This will split at the first
27530   # space.
27531   complete="$BUILD_LD"
27532   path="${complete%% *}"
27533   tmp="$complete EOL"
27534   arguments="${tmp#* }"
27535 
27536   # Input might be given as Windows format, start by converting to
27537   # unix format.
27538   new_path="$path"
27539 
27540   windows_path="$new_path"
27541   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27542     unix_path=`$CYGPATH -u "$windows_path"`
27543     new_path="$unix_path"
27544   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27545     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27546     new_path="$unix_path"
27547   fi
27548 
27549 
27550   # Now try to locate executable using which
27551   new_path=`$WHICH "$new_path" 2> /dev/null`
27552 
27553   if test "x$new_path" = x; then
27554     # Oops. Which didn't find the executable.
27555     # The splitting of arguments from the executable at a space might have been incorrect,
27556     # since paths with space are more likely in Windows. Give it another try with the whole
27557     # argument.
27558     path="$complete"
27559     arguments="EOL"
27560     new_path="$path"
27561 
27562   windows_path="$new_path"
27563   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27564     unix_path=`$CYGPATH -u "$windows_path"`
27565     new_path="$unix_path"
27566   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27567     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27568     new_path="$unix_path"
27569   fi
27570 
27571 
27572     new_path=`$WHICH "$new_path" 2> /dev/null`
27573 
27574     if test "x$new_path" = x; then
27575       # It's still not found. Now this is an unrecoverable error.
27576       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
27577 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
27578       has_space=`$ECHO "$complete" | $GREP " "`
27579       if test "x$has_space" != x; then
27580         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27582       fi
27583       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
27584     fi
27585   fi
27586 
27587   # Now new_path has a complete unix path to the binary
27588   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
27589     # Keep paths in /bin as-is, but remove trailing .exe if any
27590     new_path="${new_path/%.exe/}"
27591     # Do not save /bin paths to all_fixpath_prefixes!
27592   else
27593     # Not in mixed or Windows style, start by that.
27594     new_path=`cmd //c echo $new_path`
27595 
27596   input_path="$new_path"
27597   # Check if we need to convert this using DOS-style short mode. If the path
27598   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27599   # take no chances and rewrite it.
27600   # Note: m4 eats our [], so we need to use [ and ] instead.
27601   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27602   if test "x$has_forbidden_chars" != x; then
27603     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27604     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27605   fi
27606 
27607     # Output is in $new_path
27608 
27609   windows_path="$new_path"
27610   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27611     unix_path=`$CYGPATH -u "$windows_path"`
27612     new_path="$unix_path"
27613   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27614     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27615     new_path="$unix_path"
27616   fi
27617 
27618     # remove trailing .exe if any
27619     new_path="${new_path/%.exe/}"
27620 
27621     # Save the first 10 bytes of this path to the storage, so fixpath can work.
27622     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27623   fi
27624 
27625   else
27626     # We're on a posix platform. Hooray! :)
27627     # First separate the path from the arguments. This will split at the first
27628     # space.
27629     complete="$BUILD_LD"
27630     path="${complete%% *}"
27631     tmp="$complete EOL"
27632     arguments="${tmp#* }"
27633 
27634     # Cannot rely on the command "which" here since it doesn't always work.
27635     is_absolute_path=`$ECHO "$path" | $GREP ^/`
27636     if test -z "$is_absolute_path"; then
27637       # Path to executable is not absolute. Find it.
27638       IFS_save="$IFS"
27639       IFS=:
27640       for p in $PATH; do
27641         if test -f "$p/$path" && test -x "$p/$path"; then
27642           new_path="$p/$path"
27643           break
27644         fi
27645       done
27646       IFS="$IFS_save"
27647     else
27648       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_LD (as $path) failed, using $path directly." >&5
27649 $as_echo "$as_me: Resolving BUILD_LD (as $path) failed, using $path directly." >&6;}
27650       new_path="$path"
27651     fi
27652 
27653     if test "x$new_path" = x; then
27654       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
27655 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
27656       has_space=`$ECHO "$complete" | $GREP " "`
27657       if test "x$has_space" != x; then
27658         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
27659 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27660       fi
27661       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
27662     fi
27663   fi
27664 
27665   # Now join together the path and the arguments once again
27666   if test "x$arguments" != xEOL; then
27667     new_complete="$new_path ${arguments% *}"
27668   else
27669     new_complete="$new_path"
27670   fi
27671 
27672   if test "x$complete" != "x$new_complete"; then
27673     BUILD_LD="$new_complete"
27674     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5
27675 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;}
27676   fi
27677 
27678   fi
27679 
27680 
27681 
27682 
27683   # If a devkit is found on the builddeps server, then prepend its path to the
27684   # PATH variable. If there are cross compilers available in the devkit, these
27685   # will be found by AC_PROG_CC et al.
27686   DEVKIT=
27687 
27688 
27689   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
27690     # Source the builddeps file again, to make sure it uses the latest variables!
27691     . $builddepsfile
27692     # Look for a target and build machine specific resource!
27693     eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
27694     if test "x$resource" = x; then
27695       # Ok, lets instead look for a target specific resource
27696       eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}}
27697     fi
27698     if test "x$resource" = x; then
27699       # Ok, lets instead look for a build specific resource
27700       eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
27701     fi
27702     if test "x$resource" = x; then
27703       # Ok, lets instead look for a generic resource
27704       # (The devkit comes from M4 and not the shell, thus no need for eval here.)
27705       resource=${builddep_devkit}
27706     fi
27707     if test "x$resource" != x; then
27708       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
27709 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
27710       # If the resource in the builddeps.conf file is an existing directory,
27711       # for example /java/linux/cups
27712       if test -d ${resource}; then
27713         depdir=${resource}
27714       else
27715 
27716   # devkit is for example mymodule
27717   # $resource is for example libs/general/libmymod_1_2_3.zip
27718   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
27719   # $with_builddeps_dir is for example /localhome/builddeps
27720   # depdir is the name of the variable into which we store the depdir, eg MYMOD
27721   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
27722   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
27723   filename=`basename $resource`
27724   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
27725   filebase=${filename%%.*}
27726   extension=${filename#*.}
27727   installdir=$with_builddeps_dir/$filebase
27728   if test ! -f $installdir/$filename.unpacked; then
27729     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
27730 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
27731     if test ! -d $installdir; then
27732       mkdir -p $installdir
27733     fi
27734     if test ! -d $installdir; then
27735       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
27736     fi
27737     tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
27738     touch $tmpfile
27739     if test ! -f $tmpfile; then
27740       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
27741     fi
27742 
27743   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
27744   # $tmpfile is the local file name for the downloaded file.
27745   VALID_TOOL=no
27746   if test "x$BDEPS_FTP" = xwget; then
27747     VALID_TOOL=yes
27748     wget -O $tmpfile $with_builddeps_server/$resource
27749   fi
27750   if test "x$BDEPS_FTP" = xlftp; then
27751     VALID_TOOL=yes
27752     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
27753   fi
27754   if test "x$BDEPS_FTP" = xftp; then
27755     VALID_TOOL=yes
27756     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
27757     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
27758     FTPUSERPWD=${FTPSERVER%%@*}
27759     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
27760       FTPUSER=${userpwd%%:*}
27761       FTPPWD=${userpwd#*@}
27762       FTPSERVER=${FTPSERVER#*@}
27763     else
27764       FTPUSER=ftp
27765       FTPPWD=ftp
27766     fi
27767     # the "pass" command does not work on some
27768     # ftp clients (read ftp.exe) but if it works,
27769     # passive mode is better!
27770     ( \
27771         echo "user $FTPUSER $FTPPWD"        ; \
27772         echo "pass"                         ; \
27773         echo "bin"                          ; \
27774         echo "get $FTPPATH $tmpfile"              ; \
27775     ) | ftp -in $FTPSERVER
27776   fi
27777   if test "x$VALID_TOOL" != xyes; then
27778     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
27779   fi
27780 
27781     mv $tmpfile $installdir/$filename
27782     if test ! -s $installdir/$filename; then
27783       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
27784     fi
27785     case "$extension" in
27786       zip)  echo "Unzipping $installdir/$filename..."
27787         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
27788         ;;
27789       tar.gz) echo "Untaring $installdir/$filename..."
27790         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
27791         ;;
27792       tgz) echo "Untaring $installdir/$filename..."
27793         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
27794         ;;
27795       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
27796         ;;
27797     esac
27798   fi
27799   if test -f $installdir/$filename.unpacked; then
27800     depdir=$installdir
27801   fi
27802 
27803       fi
27804       # Source the builddeps file again, because in the previous command, the depdir
27805       # was updated to point at the current build dependency install directory.
27806       . $builddepsfile
27807       # Now extract variables from the builddeps.conf files.
27808       theroot=${builddep_devkit_ROOT}
27809       thecflags=${builddep_devkit_CFLAGS}
27810       thelibs=${builddep_devkit_LIBS}
27811       if test "x$depdir" = x; then
27812         as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
27813       fi
27814       DEVKIT=$depdir
27815       if test "x$theroot" != x; then
27816         DEVKIT="$theroot"
27817       fi
27818       if test "x$thecflags" != x; then
27819         DEVKIT_CFLAGS="$thecflags"
27820       fi
27821       if test "x$thelibs" != x; then
27822         DEVKIT_LIBS="$thelibs"
27823       fi
27824 
27825         # Found devkit
27826         PATH="$DEVKIT/bin:$PATH"
27827         SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root"
27828         if test "x$x_includes" = "xNONE"; then
27829           x_includes="$SYS_ROOT/usr/include/X11"
27830         fi
27831         if test "x$x_libraries" = "xNONE"; then
27832           x_libraries="$SYS_ROOT/usr/lib"
27833         fi
27834 
27835 
27836     fi
27837 
27838   fi
27839 
27840 
27841   # Store the CFLAGS etal passed to the configure script.
27842   ORG_CFLAGS="$CFLAGS"
27843   ORG_CXXFLAGS="$CXXFLAGS"
27844   ORG_OBJCFLAGS="$OBJCFLAGS"
27845 
27846   # autoconf magic only relies on PATH, so update it if tools dir is specified
27847   OLD_PATH="$PATH"
27848   if test "x$TOOLS_DIR" != x; then
27849     PATH=$TOOLS_DIR:$PATH
27850   fi
27851 
27852   # Before we locate the compilers, we need to sanitize the Xcode build environment
27853   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
27854     # determine path to Xcode developer directory
27855     # can be empty in which case all the tools will rely on a sane Xcode 4 installation
27856     SET_DEVELOPER_DIR=
27857 
27858     if test -n "$XCODE_PATH"; then
27859       DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer
27860     fi
27861 
27862     # DEVELOPER_DIR could also be provided directly
27863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5
27864 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; }
27865     if test -n "$DEVELOPER_DIR"; then
27866       if test ! -d "$DEVELOPER_DIR"; then
27867         as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR, please provide a path to the Xcode 4 application bundle using --with-xcode-path" "$LINENO" 5
27868       fi
27869       if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then
27870         as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5
27871       fi
27872       # make it visible to all the tools immediately
27873       export DEVELOPER_DIR
27874       SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR"
27875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5
27876 $as_echo "yes ($DEVELOPER_DIR)" >&6; }
27877     else
27878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27879 $as_echo "no" >&6; }
27880     fi
27881 
27882 
27883     # Extract the first word of "xcodebuild", so it can be a program name with args.
27884 set dummy xcodebuild; ac_word=$2
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27886 $as_echo_n "checking for $ac_word... " >&6; }
27887 if ${ac_cv_path_XCODEBUILD+:} false; then :
27888   $as_echo_n "(cached) " >&6
27889 else
27890   case $XCODEBUILD in
27891   [\\/]* | ?:[\\/]*)
27892   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
27893   ;;
27894   *)
27895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27896 for as_dir in $PATH
27897 do
27898   IFS=$as_save_IFS
27899   test -z "$as_dir" && as_dir=.
27900     for ac_exec_ext in '' $ac_executable_extensions; do
27901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27902     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
27903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27904     break 2
27905   fi
27906 done
27907   done
27908 IFS=$as_save_IFS
27909 
27910   ;;
27911 esac
27912 fi
27913 XCODEBUILD=$ac_cv_path_XCODEBUILD
27914 if test -n "$XCODEBUILD"; then
27915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
27916 $as_echo "$XCODEBUILD" >&6; }
27917 else
27918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27919 $as_echo "no" >&6; }
27920 fi
27921 
27922 
27923     if test -z "$XCODEBUILD"; then
27924       as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5
27925     fi
27926 
27927     # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later
27928     XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'`
27929     XC_VERSION_PARTS=( ${XCODE_VERSION//./ } )
27930     if test ! "${XC_VERSION_PARTS[0]}" = "4"; then
27931       as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5
27932     fi
27933 
27934     # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to
27935     # clang and clang++, which will break the build. So handle that here if we need to.
27936     if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then
27937       # use xcrun to find the real gcc and add it's directory to PATH
27938       # then autoconf magic will find it
27939       { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5
27940 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;}
27941       XCODE_BIN_PATH=$(dirname `xcrun -find gcc`)
27942       PATH="$XCODE_BIN_PATH":$PATH
27943     fi
27944 
27945     # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools
27946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5
27947 $as_echo_n "checking Determining Xcode SDK path... " >&6; }
27948     # allow SDKNAME to be set to override the default SDK selection
27949     SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'`
27950     if test -n "$SDKPATH"; then
27951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5
27952 $as_echo "$SDKPATH" >&6; }
27953     else
27954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5
27955 $as_echo "(none, will use system headers and frameworks)" >&6; }
27956     fi
27957 
27958 
27959     # Perform a basic sanity test
27960     if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
27961       as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5
27962     fi
27963 
27964     # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++
27965     if test -n "$SDKPATH"; then
27966       # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks
27967       CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\""
27968       CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\""
27969       LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\""
27970     fi
27971 
27972     # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework
27973     # setting this here means it doesn't have to be peppered throughout the forest
27974     CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\""
27975     CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\""
27976     LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\""
27977   fi
27978 
27979   ### Locate C compiler (CC)
27980 
27981   # On windows, only cl.exe is supported.
27982   # On Solaris, cc is preferred to gcc.
27983   # Elsewhere, gcc is preferred to cc.
27984 
27985   if test "x$CC" != x; then
27986     COMPILER_CHECK_LIST="$CC"
27987   elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
27988     COMPILER_CHECK_LIST="cl"
27989   elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
27990     COMPILER_CHECK_LIST="cc gcc"
27991   elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
27992     # Do not probe for cc on AIX.
27993     COMPILER_CHECK_LIST="xlc_r"
27994   else
27995     COMPILER_CHECK_LIST="gcc cc"
27996   fi
27997 
27998 
27999   COMPILER_NAME=C
28000 
28001   CC=
28002   # If TOOLS_DIR is set, check for all compiler names in there first
28003   # before checking the rest of the PATH.
28004   if test -n "$TOOLS_DIR"; then
28005     PATH_save="$PATH"
28006     PATH="$TOOLS_DIR"
28007     for ac_prog in $COMPILER_CHECK_LIST
28008 do
28009   # Extract the first word of "$ac_prog", so it can be a program name with args.
28010 set dummy $ac_prog; ac_word=$2
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28012 $as_echo_n "checking for $ac_word... " >&6; }
28013 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
28014   $as_echo_n "(cached) " >&6
28015 else
28016   case $TOOLS_DIR_CC in
28017   [\\/]* | ?:[\\/]*)
28018   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
28019   ;;
28020   *)
28021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28022 for as_dir in $PATH
28023 do
28024   IFS=$as_save_IFS
28025   test -z "$as_dir" && as_dir=.
28026     for ac_exec_ext in '' $ac_executable_extensions; do
28027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28028     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
28029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28030     break 2
28031   fi
28032 done
28033   done
28034 IFS=$as_save_IFS
28035 
28036   ;;
28037 esac
28038 fi
28039 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
28040 if test -n "$TOOLS_DIR_CC"; then
28041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
28042 $as_echo "$TOOLS_DIR_CC" >&6; }
28043 else
28044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28045 $as_echo "no" >&6; }
28046 fi
28047 
28048 
28049   test -n "$TOOLS_DIR_CC" && break
28050 done
28051 
28052     CC=$TOOLS_DIR_CC
28053     PATH="$PATH_save"
28054   fi
28055 
28056   # AC_PATH_PROGS can't be run multiple times with the same variable,
28057   # so create a new name for this run.
28058   if test "x$CC" = x; then
28059     for ac_prog in $COMPILER_CHECK_LIST
28060 do
28061   # Extract the first word of "$ac_prog", so it can be a program name with args.
28062 set dummy $ac_prog; ac_word=$2
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28064 $as_echo_n "checking for $ac_word... " >&6; }
28065 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
28066   $as_echo_n "(cached) " >&6
28067 else
28068   case $POTENTIAL_CC in
28069   [\\/]* | ?:[\\/]*)
28070   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
28071   ;;
28072   *)
28073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28074 for as_dir in $PATH
28075 do
28076   IFS=$as_save_IFS
28077   test -z "$as_dir" && as_dir=.
28078     for ac_exec_ext in '' $ac_executable_extensions; do
28079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28080     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
28081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28082     break 2
28083   fi
28084 done
28085   done
28086 IFS=$as_save_IFS
28087 
28088   ;;
28089 esac
28090 fi
28091 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
28092 if test -n "$POTENTIAL_CC"; then
28093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
28094 $as_echo "$POTENTIAL_CC" >&6; }
28095 else
28096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28097 $as_echo "no" >&6; }
28098 fi
28099 
28100 
28101   test -n "$POTENTIAL_CC" && break
28102 done
28103 
28104     CC=$POTENTIAL_CC
28105   fi
28106 
28107   if test "x$CC" = x; then
28108 
28109   # Print a helpful message on how to acquire the necessary build dependency.
28110   # devkit is the help tag: freetype, cups, pulse, alsa etc
28111   MISSING_DEPENDENCY=devkit
28112 
28113   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28114     cygwin_help $MISSING_DEPENDENCY
28115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28116     msys_help $MISSING_DEPENDENCY
28117   else
28118     PKGHANDLER_COMMAND=
28119 
28120     case $PKGHANDLER in
28121       apt-get)
28122         apt_help     $MISSING_DEPENDENCY ;;
28123       yum)
28124         yum_help     $MISSING_DEPENDENCY ;;
28125       port)
28126         port_help    $MISSING_DEPENDENCY ;;
28127       pkgutil)
28128         pkgutil_help $MISSING_DEPENDENCY ;;
28129       pkgadd)
28130         pkgadd_help  $MISSING_DEPENDENCY ;;
28131     esac
28132 
28133     if test "x$PKGHANDLER_COMMAND" != x; then
28134       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
28135     fi
28136   fi
28137 
28138     as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
28139   fi
28140 
28141   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28142 
28143   # First separate the path from the arguments. This will split at the first
28144   # space.
28145   complete="$CC"
28146   path="${complete%% *}"
28147   tmp="$complete EOL"
28148   arguments="${tmp#* }"
28149 
28150   # Input might be given as Windows format, start by converting to
28151   # unix format.
28152   new_path=`$CYGPATH -u "$path"`
28153 
28154   # Now try to locate executable using which
28155   new_path=`$WHICH "$new_path" 2> /dev/null`
28156   # bat and cmd files are not always considered executable in cygwin causing which
28157   # to not find them
28158   if test "x$new_path" = x \
28159       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28160       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28161     new_path=`$CYGPATH -u "$path"`
28162   fi
28163   if test "x$new_path" = x; then
28164     # Oops. Which didn't find the executable.
28165     # The splitting of arguments from the executable at a space might have been incorrect,
28166     # since paths with space are more likely in Windows. Give it another try with the whole
28167     # argument.
28168     path="$complete"
28169     arguments="EOL"
28170     new_path=`$CYGPATH -u "$path"`
28171     new_path=`$WHICH "$new_path" 2> /dev/null`
28172     # bat and cmd files are not always considered executable in cygwin causing which
28173     # to not find them
28174     if test "x$new_path" = x \
28175         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28176         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28177       new_path=`$CYGPATH -u "$path"`
28178     fi
28179     if test "x$new_path" = x; then
28180       # It's still not found. Now this is an unrecoverable error.
28181       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
28182 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
28183       has_space=`$ECHO "$complete" | $GREP " "`
28184       if test "x$has_space" != x; then
28185         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28186 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28187       fi
28188       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
28189     fi
28190   fi
28191 
28192   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28193   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28194   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28195   # "foo.exe" is OK but "foo" is an error.
28196   #
28197   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28198   # It is also a way to make sure we got the proper file name for the real test later on.
28199   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28200   if test "x$test_shortpath" = x; then
28201     # Short path failed, file does not exist as specified.
28202     # Try adding .exe or .cmd
28203     if test -f "${new_path}.exe"; then
28204       input_to_shortpath="${new_path}.exe"
28205     elif test -f "${new_path}.cmd"; then
28206       input_to_shortpath="${new_path}.cmd"
28207     else
28208       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5
28209 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;}
28210       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28211 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28212       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
28213     fi
28214   else
28215     input_to_shortpath="$new_path"
28216   fi
28217 
28218   # Call helper function which possibly converts this using DOS-style short mode.
28219   # If so, the updated path is stored in $new_path.
28220   new_path="$input_to_shortpath"
28221 
28222   input_path="$input_to_shortpath"
28223   # Check if we need to convert this using DOS-style short mode. If the path
28224   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28225   # take no chances and rewrite it.
28226   # Note: m4 eats our [], so we need to use [ and ] instead.
28227   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28228   if test "x$has_forbidden_chars" != x; then
28229     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28230     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28231     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28232     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28233       # Going to short mode and back again did indeed matter. Since short mode is
28234       # case insensitive, let's make it lowercase to improve readability.
28235       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28236       # Now convert it back to Unix-stile (cygpath)
28237       input_path=`$CYGPATH -u "$shortmode_path"`
28238       new_path="$input_path"
28239     fi
28240   fi
28241 
28242   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28243   if test "x$test_cygdrive_prefix" = x; then
28244     # As a simple fix, exclude /usr/bin since it's not a real path.
28245     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28246       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28247       # a path prefixed by /cygdrive for fixpath to work.
28248       new_path="$CYGWIN_ROOT_PATH$input_path"
28249     fi
28250   fi
28251 
28252   # remove trailing .exe if any
28253   new_path="${new_path/%.exe/}"
28254 
28255   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28256 
28257   # First separate the path from the arguments. This will split at the first
28258   # space.
28259   complete="$CC"
28260   path="${complete%% *}"
28261   tmp="$complete EOL"
28262   arguments="${tmp#* }"
28263 
28264   # Input might be given as Windows format, start by converting to
28265   # unix format.
28266   new_path="$path"
28267 
28268   windows_path="$new_path"
28269   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28270     unix_path=`$CYGPATH -u "$windows_path"`
28271     new_path="$unix_path"
28272   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28273     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28274     new_path="$unix_path"
28275   fi
28276 
28277 
28278   # Now try to locate executable using which
28279   new_path=`$WHICH "$new_path" 2> /dev/null`
28280 
28281   if test "x$new_path" = x; then
28282     # Oops. Which didn't find the executable.
28283     # The splitting of arguments from the executable at a space might have been incorrect,
28284     # since paths with space are more likely in Windows. Give it another try with the whole
28285     # argument.
28286     path="$complete"
28287     arguments="EOL"
28288     new_path="$path"
28289 
28290   windows_path="$new_path"
28291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28292     unix_path=`$CYGPATH -u "$windows_path"`
28293     new_path="$unix_path"
28294   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28295     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28296     new_path="$unix_path"
28297   fi
28298 
28299 
28300     new_path=`$WHICH "$new_path" 2> /dev/null`
28301 
28302     if test "x$new_path" = x; then
28303       # It's still not found. Now this is an unrecoverable error.
28304       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
28305 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
28306       has_space=`$ECHO "$complete" | $GREP " "`
28307       if test "x$has_space" != x; then
28308         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28309 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28310       fi
28311       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
28312     fi
28313   fi
28314 
28315   # Now new_path has a complete unix path to the binary
28316   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28317     # Keep paths in /bin as-is, but remove trailing .exe if any
28318     new_path="${new_path/%.exe/}"
28319     # Do not save /bin paths to all_fixpath_prefixes!
28320   else
28321     # Not in mixed or Windows style, start by that.
28322     new_path=`cmd //c echo $new_path`
28323 
28324   input_path="$new_path"
28325   # Check if we need to convert this using DOS-style short mode. If the path
28326   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28327   # take no chances and rewrite it.
28328   # Note: m4 eats our [], so we need to use [ and ] instead.
28329   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28330   if test "x$has_forbidden_chars" != x; then
28331     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28332     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28333   fi
28334 
28335     # Output is in $new_path
28336 
28337   windows_path="$new_path"
28338   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28339     unix_path=`$CYGPATH -u "$windows_path"`
28340     new_path="$unix_path"
28341   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28342     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28343     new_path="$unix_path"
28344   fi
28345 
28346     # remove trailing .exe if any
28347     new_path="${new_path/%.exe/}"
28348 
28349     # Save the first 10 bytes of this path to the storage, so fixpath can work.
28350     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28351   fi
28352 
28353   else
28354     # We're on a posix platform. Hooray! :)
28355     # First separate the path from the arguments. This will split at the first
28356     # space.
28357     complete="$CC"
28358     path="${complete%% *}"
28359     tmp="$complete EOL"
28360     arguments="${tmp#* }"
28361 
28362     # Cannot rely on the command "which" here since it doesn't always work.
28363     is_absolute_path=`$ECHO "$path" | $GREP ^/`
28364     if test -z "$is_absolute_path"; then
28365       # Path to executable is not absolute. Find it.
28366       IFS_save="$IFS"
28367       IFS=:
28368       for p in $PATH; do
28369         if test -f "$p/$path" && test -x "$p/$path"; then
28370           new_path="$p/$path"
28371           break
28372         fi
28373       done
28374       IFS="$IFS_save"
28375     else
28376       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CC (as $path) failed, using $path directly." >&5
28377 $as_echo "$as_me: Resolving CC (as $path) failed, using $path directly." >&6;}
28378       new_path="$path"
28379     fi
28380 
28381     if test "x$new_path" = x; then
28382       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
28383 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
28384       has_space=`$ECHO "$complete" | $GREP " "`
28385       if test "x$has_space" != x; then
28386         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28387 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28388       fi
28389       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
28390     fi
28391   fi
28392 
28393   # Now join together the path and the arguments once again
28394   if test "x$arguments" != xEOL; then
28395     new_complete="$new_path ${arguments% *}"
28396   else
28397     new_complete="$new_path"
28398   fi
28399 
28400   if test "x$complete" != "x$new_complete"; then
28401     CC="$new_complete"
28402     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
28403 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
28404   fi
28405 
28406   TEST_COMPILER="$CC"
28407   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
28408   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
28409   if test "x$OPENJDK_BUILD_OS" != xaix; then
28410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
28411 $as_echo_n "checking resolved symbolic links for CC... " >&6; }
28412 
28413   if test "x$OPENJDK_BUILD_OS" != xwindows; then
28414     # Follow a chain of symbolic links. Use readlink
28415     # where it exists, else fall back to horribly
28416     # complicated shell code.
28417     if test "x$READLINK_TESTED" != yes; then
28418       # On MacOSX there is a readlink tool with a different
28419       # purpose than the GNU readlink tool. Check the found readlink.
28420       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
28421       if test "x$ISGNU" = x; then
28422         # A readlink that we do not know how to use.
28423         # Are there other non-GNU readlinks out there?
28424         READLINK_TESTED=yes
28425         READLINK=
28426       fi
28427     fi
28428 
28429     if test "x$READLINK" != x; then
28430       TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
28431     else
28432       # Save the current directory for restoring afterwards
28433       STARTDIR=$PWD
28434       COUNTER=0
28435       sym_link_dir=`$DIRNAME $TEST_COMPILER`
28436       sym_link_file=`$BASENAME $TEST_COMPILER`
28437       cd $sym_link_dir
28438       # Use -P flag to resolve symlinks in directories.
28439       cd `$THEPWDCMD -P`
28440       sym_link_dir=`$THEPWDCMD -P`
28441       # Resolve file symlinks
28442       while test $COUNTER -lt 20; do
28443         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
28444         if test "x$ISLINK" == x; then
28445           # This is not a symbolic link! We are done!
28446           break
28447         fi
28448         # Again resolve directory symlinks since the target of the just found
28449         # link could be in a different directory
28450         cd `$DIRNAME $ISLINK`
28451         sym_link_dir=`$THEPWDCMD -P`
28452         sym_link_file=`$BASENAME $ISLINK`
28453         let COUNTER=COUNTER+1
28454       done
28455       cd $STARTDIR
28456       TEST_COMPILER=$sym_link_dir/$sym_link_file
28457     fi
28458   fi
28459 
28460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
28461 $as_echo "$TEST_COMPILER" >&6; }
28462   fi
28463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
28464 $as_echo_n "checking if CC is disguised ccache... " >&6; }
28465 
28466   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
28467   if test "x$COMPILER_BASENAME" = "xccache"; then
28468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
28469 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
28470     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
28471     # We want to control ccache invocation ourselves, so ignore this cc and try
28472     # searching again.
28473 
28474     # Remove the path to the fake ccache cc from the PATH
28475     RETRY_COMPILER_SAVED_PATH="$PATH"
28476     COMPILER_DIRNAME=`$DIRNAME $CC`
28477     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
28478 
28479     # Try again looking for our compiler
28480     if test -n "$ac_tool_prefix"; then
28481   for ac_prog in $COMPILER_CHECK_LIST
28482   do
28483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28486 $as_echo_n "checking for $ac_word... " >&6; }
28487 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
28488   $as_echo_n "(cached) " >&6
28489 else
28490   if test -n "$PROPER_COMPILER_CC"; then
28491   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
28492 else
28493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28494 for as_dir in $PATH
28495 do
28496   IFS=$as_save_IFS
28497   test -z "$as_dir" && as_dir=.
28498     for ac_exec_ext in '' $ac_executable_extensions; do
28499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28500     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
28501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28502     break 2
28503   fi
28504 done
28505   done
28506 IFS=$as_save_IFS
28507 
28508 fi
28509 fi
28510 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
28511 if test -n "$PROPER_COMPILER_CC"; then
28512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
28513 $as_echo "$PROPER_COMPILER_CC" >&6; }
28514 else
28515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28516 $as_echo "no" >&6; }
28517 fi
28518 
28519 
28520     test -n "$PROPER_COMPILER_CC" && break
28521   done
28522 fi
28523 if test -z "$PROPER_COMPILER_CC"; then
28524   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
28525   for ac_prog in $COMPILER_CHECK_LIST
28526 do
28527   # Extract the first word of "$ac_prog", so it can be a program name with args.
28528 set dummy $ac_prog; ac_word=$2
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28530 $as_echo_n "checking for $ac_word... " >&6; }
28531 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
28532   $as_echo_n "(cached) " >&6
28533 else
28534   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
28535   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
28536 else
28537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28538 for as_dir in $PATH
28539 do
28540   IFS=$as_save_IFS
28541   test -z "$as_dir" && as_dir=.
28542     for ac_exec_ext in '' $ac_executable_extensions; do
28543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28544     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
28545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28546     break 2
28547   fi
28548 done
28549   done
28550 IFS=$as_save_IFS
28551 
28552 fi
28553 fi
28554 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
28555 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
28556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
28557 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
28558 else
28559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28560 $as_echo "no" >&6; }
28561 fi
28562 
28563 
28564   test -n "$ac_ct_PROPER_COMPILER_CC" && break
28565 done
28566 
28567   if test "x$ac_ct_PROPER_COMPILER_CC" = x; then
28568     PROPER_COMPILER_CC=""
28569   else
28570     case $cross_compiling:$ac_tool_warned in
28571 yes:)
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28574 ac_tool_warned=yes ;;
28575 esac
28576     PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC
28577   fi
28578 fi
28579 
28580 
28581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28582 
28583   # First separate the path from the arguments. This will split at the first
28584   # space.
28585   complete="$PROPER_COMPILER_CC"
28586   path="${complete%% *}"
28587   tmp="$complete EOL"
28588   arguments="${tmp#* }"
28589 
28590   # Input might be given as Windows format, start by converting to
28591   # unix format.
28592   new_path=`$CYGPATH -u "$path"`
28593 
28594   # Now try to locate executable using which
28595   new_path=`$WHICH "$new_path" 2> /dev/null`
28596   # bat and cmd files are not always considered executable in cygwin causing which
28597   # to not find them
28598   if test "x$new_path" = x \
28599       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28600       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28601     new_path=`$CYGPATH -u "$path"`
28602   fi
28603   if test "x$new_path" = x; then
28604     # Oops. Which didn't find the executable.
28605     # The splitting of arguments from the executable at a space might have been incorrect,
28606     # since paths with space are more likely in Windows. Give it another try with the whole
28607     # argument.
28608     path="$complete"
28609     arguments="EOL"
28610     new_path=`$CYGPATH -u "$path"`
28611     new_path=`$WHICH "$new_path" 2> /dev/null`
28612     # bat and cmd files are not always considered executable in cygwin causing which
28613     # to not find them
28614     if test "x$new_path" = x \
28615         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28616         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28617       new_path=`$CYGPATH -u "$path"`
28618     fi
28619     if test "x$new_path" = x; then
28620       # It's still not found. Now this is an unrecoverable error.
28621       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
28622 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
28623       has_space=`$ECHO "$complete" | $GREP " "`
28624       if test "x$has_space" != x; then
28625         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28626 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28627       fi
28628       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28629     fi
28630   fi
28631 
28632   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28633   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28634   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28635   # "foo.exe" is OK but "foo" is an error.
28636   #
28637   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28638   # It is also a way to make sure we got the proper file name for the real test later on.
28639   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28640   if test "x$test_shortpath" = x; then
28641     # Short path failed, file does not exist as specified.
28642     # Try adding .exe or .cmd
28643     if test -f "${new_path}.exe"; then
28644       input_to_shortpath="${new_path}.exe"
28645     elif test -f "${new_path}.cmd"; then
28646       input_to_shortpath="${new_path}.cmd"
28647     else
28648       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5
28649 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;}
28650       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28651 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28652       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28653     fi
28654   else
28655     input_to_shortpath="$new_path"
28656   fi
28657 
28658   # Call helper function which possibly converts this using DOS-style short mode.
28659   # If so, the updated path is stored in $new_path.
28660   new_path="$input_to_shortpath"
28661 
28662   input_path="$input_to_shortpath"
28663   # Check if we need to convert this using DOS-style short mode. If the path
28664   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28665   # take no chances and rewrite it.
28666   # Note: m4 eats our [], so we need to use [ and ] instead.
28667   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28668   if test "x$has_forbidden_chars" != x; then
28669     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28670     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28671     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28672     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28673       # Going to short mode and back again did indeed matter. Since short mode is
28674       # case insensitive, let's make it lowercase to improve readability.
28675       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28676       # Now convert it back to Unix-stile (cygpath)
28677       input_path=`$CYGPATH -u "$shortmode_path"`
28678       new_path="$input_path"
28679     fi
28680   fi
28681 
28682   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28683   if test "x$test_cygdrive_prefix" = x; then
28684     # As a simple fix, exclude /usr/bin since it's not a real path.
28685     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28686       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28687       # a path prefixed by /cygdrive for fixpath to work.
28688       new_path="$CYGWIN_ROOT_PATH$input_path"
28689     fi
28690   fi
28691 
28692   # remove trailing .exe if any
28693   new_path="${new_path/%.exe/}"
28694 
28695   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28696 
28697   # First separate the path from the arguments. This will split at the first
28698   # space.
28699   complete="$PROPER_COMPILER_CC"
28700   path="${complete%% *}"
28701   tmp="$complete EOL"
28702   arguments="${tmp#* }"
28703 
28704   # Input might be given as Windows format, start by converting to
28705   # unix format.
28706   new_path="$path"
28707 
28708   windows_path="$new_path"
28709   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28710     unix_path=`$CYGPATH -u "$windows_path"`
28711     new_path="$unix_path"
28712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28713     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28714     new_path="$unix_path"
28715   fi
28716 
28717 
28718   # Now try to locate executable using which
28719   new_path=`$WHICH "$new_path" 2> /dev/null`
28720 
28721   if test "x$new_path" = x; then
28722     # Oops. Which didn't find the executable.
28723     # The splitting of arguments from the executable at a space might have been incorrect,
28724     # since paths with space are more likely in Windows. Give it another try with the whole
28725     # argument.
28726     path="$complete"
28727     arguments="EOL"
28728     new_path="$path"
28729 
28730   windows_path="$new_path"
28731   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28732     unix_path=`$CYGPATH -u "$windows_path"`
28733     new_path="$unix_path"
28734   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28735     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28736     new_path="$unix_path"
28737   fi
28738 
28739 
28740     new_path=`$WHICH "$new_path" 2> /dev/null`
28741 
28742     if test "x$new_path" = x; then
28743       # It's still not found. Now this is an unrecoverable error.
28744       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
28745 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
28746       has_space=`$ECHO "$complete" | $GREP " "`
28747       if test "x$has_space" != x; then
28748         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28749 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28750       fi
28751       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28752     fi
28753   fi
28754 
28755   # Now new_path has a complete unix path to the binary
28756   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28757     # Keep paths in /bin as-is, but remove trailing .exe if any
28758     new_path="${new_path/%.exe/}"
28759     # Do not save /bin paths to all_fixpath_prefixes!
28760   else
28761     # Not in mixed or Windows style, start by that.
28762     new_path=`cmd //c echo $new_path`
28763 
28764   input_path="$new_path"
28765   # Check if we need to convert this using DOS-style short mode. If the path
28766   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28767   # take no chances and rewrite it.
28768   # Note: m4 eats our [], so we need to use [ and ] instead.
28769   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28770   if test "x$has_forbidden_chars" != x; then
28771     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28772     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28773   fi
28774 
28775     # Output is in $new_path
28776 
28777   windows_path="$new_path"
28778   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28779     unix_path=`$CYGPATH -u "$windows_path"`
28780     new_path="$unix_path"
28781   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28782     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28783     new_path="$unix_path"
28784   fi
28785 
28786     # remove trailing .exe if any
28787     new_path="${new_path/%.exe/}"
28788 
28789     # Save the first 10 bytes of this path to the storage, so fixpath can work.
28790     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28791   fi
28792 
28793   else
28794     # We're on a posix platform. Hooray! :)
28795     # First separate the path from the arguments. This will split at the first
28796     # space.
28797     complete="$PROPER_COMPILER_CC"
28798     path="${complete%% *}"
28799     tmp="$complete EOL"
28800     arguments="${tmp#* }"
28801 
28802     # Cannot rely on the command "which" here since it doesn't always work.
28803     is_absolute_path=`$ECHO "$path" | $GREP ^/`
28804     if test -z "$is_absolute_path"; then
28805       # Path to executable is not absolute. Find it.
28806       IFS_save="$IFS"
28807       IFS=:
28808       for p in $PATH; do
28809         if test -f "$p/$path" && test -x "$p/$path"; then
28810           new_path="$p/$path"
28811           break
28812         fi
28813       done
28814       IFS="$IFS_save"
28815     else
28816       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&5
28817 $as_echo "$as_me: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&6;}
28818       new_path="$path"
28819     fi
28820 
28821     if test "x$new_path" = x; then
28822       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
28823 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
28824       has_space=`$ECHO "$complete" | $GREP " "`
28825       if test "x$has_space" != x; then
28826         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28827 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28828       fi
28829       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28830     fi
28831   fi
28832 
28833   # Now join together the path and the arguments once again
28834   if test "x$arguments" != xEOL; then
28835     new_complete="$new_path ${arguments% *}"
28836   else
28837     new_complete="$new_path"
28838   fi
28839 
28840   if test "x$complete" != "x$new_complete"; then
28841     PROPER_COMPILER_CC="$new_complete"
28842     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5
28843 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;}
28844   fi
28845 
28846     PATH="$RETRY_COMPILER_SAVED_PATH"
28847 
28848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5
28849 $as_echo_n "checking for resolved symbolic links for CC... " >&6; }
28850 
28851   if test "x$OPENJDK_BUILD_OS" != xwindows; then
28852     # Follow a chain of symbolic links. Use readlink
28853     # where it exists, else fall back to horribly
28854     # complicated shell code.
28855     if test "x$READLINK_TESTED" != yes; then
28856       # On MacOSX there is a readlink tool with a different
28857       # purpose than the GNU readlink tool. Check the found readlink.
28858       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
28859       if test "x$ISGNU" = x; then
28860         # A readlink that we do not know how to use.
28861         # Are there other non-GNU readlinks out there?
28862         READLINK_TESTED=yes
28863         READLINK=
28864       fi
28865     fi
28866 
28867     if test "x$READLINK" != x; then
28868       PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC`
28869     else
28870       # Save the current directory for restoring afterwards
28871       STARTDIR=$PWD
28872       COUNTER=0
28873       sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC`
28874       sym_link_file=`$BASENAME $PROPER_COMPILER_CC`
28875       cd $sym_link_dir
28876       # Use -P flag to resolve symlinks in directories.
28877       cd `$THEPWDCMD -P`
28878       sym_link_dir=`$THEPWDCMD -P`
28879       # Resolve file symlinks
28880       while test $COUNTER -lt 20; do
28881         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
28882         if test "x$ISLINK" == x; then
28883           # This is not a symbolic link! We are done!
28884           break
28885         fi
28886         # Again resolve directory symlinks since the target of the just found
28887         # link could be in a different directory
28888         cd `$DIRNAME $ISLINK`
28889         sym_link_dir=`$THEPWDCMD -P`
28890         sym_link_file=`$BASENAME $ISLINK`
28891         let COUNTER=COUNTER+1
28892       done
28893       cd $STARTDIR
28894       PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file
28895     fi
28896   fi
28897 
28898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
28899 $as_echo "$PROPER_COMPILER_CC" >&6; }
28900     CC="$PROPER_COMPILER_CC"
28901   else
28902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5
28903 $as_echo "no, keeping CC" >&6; }
28904     CC="$TEST_COMPILER"
28905   fi
28906 
28907   COMPILER=$CC
28908   COMPILER_NAME=$COMPILER_NAME
28909 
28910   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
28911     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
28912     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
28913     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
28914     if test $? -ne 0; then
28915       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
28916 
28917       { $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
28918 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
28919       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
28920 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
28921       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28922     else
28923       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
28924       COMPILER_VENDOR="Sun Studio"
28925     fi
28926   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
28927       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
28928       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
28929       if test $? -ne 0; then
28930         as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
28931       else
28932         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
28933         COMPILER_VENDOR='IBM'
28934       fi
28935   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
28936     # First line typically looks something like:
28937     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
28938     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
28939     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
28940     COMPILER_VENDOR="Microsoft CL.EXE"
28941     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
28942     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
28943       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
28944         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
28945       fi
28946     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
28947       if test "x$COMPILER_CPU_TEST" != "xx64"; then
28948         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
28949       fi
28950     fi
28951   else
28952     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
28953     # Check that this is likely to be GCC.
28954     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
28955     if test $? -ne 0; then
28956       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5
28957 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;}
28958       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5
28959 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;}
28960       as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28961     fi
28962 
28963     # First line typically looks something like:
28964     # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
28965     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | \
28966         $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'`
28967     COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"`
28968   fi
28969   # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker)
28970   CC_VERSION="$COMPILER_VERSION"
28971   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
28972   CC_VENDOR="$COMPILER_VENDOR"
28973 
28974   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
28975 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
28976 
28977 
28978   # Now that we have resolved CC ourself, let autoconf have its go at it
28979   ac_ext=c
28980 ac_cpp='$CPP $CPPFLAGS'
28981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28984 if test -n "$ac_tool_prefix"; then
28985   for ac_prog in $CC
28986   do
28987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28990 $as_echo_n "checking for $ac_word... " >&6; }
28991 if ${ac_cv_prog_CC+:} false; then :
28992   $as_echo_n "(cached) " >&6
28993 else
28994   if test -n "$CC"; then
28995   ac_cv_prog_CC="$CC" # Let the user override the test.
28996 else
28997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28998 for as_dir in $PATH
28999 do
29000   IFS=$as_save_IFS
29001   test -z "$as_dir" && as_dir=.
29002     for ac_exec_ext in '' $ac_executable_extensions; do
29003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29004     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29006     break 2
29007   fi
29008 done
29009   done
29010 IFS=$as_save_IFS
29011 
29012 fi
29013 fi
29014 CC=$ac_cv_prog_CC
29015 if test -n "$CC"; then
29016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29017 $as_echo "$CC" >&6; }
29018 else
29019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29020 $as_echo "no" >&6; }
29021 fi
29022 
29023 
29024     test -n "$CC" && break
29025   done
29026 fi
29027 if test -z "$CC"; then
29028   ac_ct_CC=$CC
29029   for ac_prog in $CC
29030 do
29031   # Extract the first word of "$ac_prog", so it can be a program name with args.
29032 set dummy $ac_prog; ac_word=$2
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29034 $as_echo_n "checking for $ac_word... " >&6; }
29035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
29036   $as_echo_n "(cached) " >&6
29037 else
29038   if test -n "$ac_ct_CC"; then
29039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29040 else
29041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29042 for as_dir in $PATH
29043 do
29044   IFS=$as_save_IFS
29045   test -z "$as_dir" && as_dir=.
29046     for ac_exec_ext in '' $ac_executable_extensions; do
29047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29048     ac_cv_prog_ac_ct_CC="$ac_prog"
29049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29050     break 2
29051   fi
29052 done
29053   done
29054 IFS=$as_save_IFS
29055 
29056 fi
29057 fi
29058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
29059 if test -n "$ac_ct_CC"; then
29060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
29061 $as_echo "$ac_ct_CC" >&6; }
29062 else
29063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064 $as_echo "no" >&6; }
29065 fi
29066 
29067 
29068   test -n "$ac_ct_CC" && break
29069 done
29070 
29071   if test "x$ac_ct_CC" = x; then
29072     CC=""
29073   else
29074     case $cross_compiling:$ac_tool_warned in
29075 yes:)
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29078 ac_tool_warned=yes ;;
29079 esac
29080     CC=$ac_ct_CC
29081   fi
29082 fi
29083 
29084 
29085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29087 as_fn_error $? "no acceptable C compiler found in \$PATH
29088 See \`config.log' for more details" "$LINENO" 5; }
29089 
29090 # Provide some information about the compiler.
29091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
29092 set X $ac_compile
29093 ac_compiler=$2
29094 for ac_option in --version -v -V -qversion; do
29095   { { ac_try="$ac_compiler $ac_option >&5"
29096 case "(($ac_try" in
29097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098   *) ac_try_echo=$ac_try;;
29099 esac
29100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29101 $as_echo "$ac_try_echo"; } >&5
29102   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
29103   ac_status=$?
29104   if test -s conftest.err; then
29105     sed '10a\
29106 ... rest of stderr output deleted ...
29107          10q' conftest.err >conftest.er1
29108     cat conftest.er1 >&5
29109   fi
29110   rm -f conftest.er1 conftest.err
29111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29112   test $ac_status = 0; }
29113 done
29114 
29115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29116 /* end confdefs.h.  */
29117 
29118 int
29119 main ()
29120 {
29121 
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 ac_clean_files_save=$ac_clean_files
29127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
29128 # Try to create an executable without -o first, disregard a.out.
29129 # It will help us diagnose broken compilers, and finding out an intuition
29130 # of exeext.
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
29132 $as_echo_n "checking whether the C compiler works... " >&6; }
29133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
29134 
29135 # The possible output files:
29136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
29137 
29138 ac_rmfiles=
29139 for ac_file in $ac_files
29140 do
29141   case $ac_file in
29142     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29143     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
29144   esac
29145 done
29146 rm -f $ac_rmfiles
29147 
29148 if { { ac_try="$ac_link_default"
29149 case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29154 $as_echo "$ac_try_echo"; } >&5
29155   (eval "$ac_link_default") 2>&5
29156   ac_status=$?
29157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29158   test $ac_status = 0; }; then :
29159   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
29160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
29161 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
29162 # so that the user can short-circuit this test for compilers unknown to
29163 # Autoconf.
29164 for ac_file in $ac_files ''
29165 do
29166   test -f "$ac_file" || continue
29167   case $ac_file in
29168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
29169         ;;
29170     [ab].out )
29171         # We found the default executable, but exeext='' is most
29172         # certainly right.
29173         break;;
29174     *.* )
29175         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
29176         then :; else
29177            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29178         fi
29179         # We set ac_cv_exeext here because the later test for it is not
29180         # safe: cross compilers may not add the suffix if given an `-o'
29181         # argument, so we may need to know it at that point already.
29182         # Even if this section looks crufty: it has the advantage of
29183         # actually working.
29184         break;;
29185     * )
29186         break;;
29187   esac
29188 done
29189 test "$ac_cv_exeext" = no && ac_cv_exeext=
29190 
29191 else
29192   ac_file=''
29193 fi
29194 if test -z "$ac_file"; then :
29195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29196 $as_echo "no" >&6; }
29197 $as_echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29199 
29200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29202 as_fn_error 77 "C compiler cannot create executables
29203 See \`config.log' for more details" "$LINENO" 5; }
29204 else
29205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29206 $as_echo "yes" >&6; }
29207 fi
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
29209 $as_echo_n "checking for C compiler default output file name... " >&6; }
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
29211 $as_echo "$ac_file" >&6; }
29212 ac_exeext=$ac_cv_exeext
29213 
29214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29215 ac_clean_files=$ac_clean_files_save
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
29217 $as_echo_n "checking for suffix of executables... " >&6; }
29218 if { { ac_try="$ac_link"
29219 case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29224 $as_echo "$ac_try_echo"; } >&5
29225   (eval "$ac_link") 2>&5
29226   ac_status=$?
29227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29228   test $ac_status = 0; }; then :
29229   # If both `conftest.exe' and `conftest' are `present' (well, observable)
29230 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29231 # work properly (i.e., refer to `conftest.exe'), while it won't with
29232 # `rm'.
29233 for ac_file in conftest.exe conftest conftest.*; do
29234   test -f "$ac_file" || continue
29235   case $ac_file in
29236     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29237     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29238           break;;
29239     * ) break;;
29240   esac
29241 done
29242 else
29243   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
29246 See \`config.log' for more details" "$LINENO" 5; }
29247 fi
29248 rm -f conftest conftest$ac_cv_exeext
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
29250 $as_echo "$ac_cv_exeext" >&6; }
29251 
29252 rm -f conftest.$ac_ext
29253 EXEEXT=$ac_cv_exeext
29254 ac_exeext=$EXEEXT
29255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h.  */
29257 #include <stdio.h>
29258 int
29259 main ()
29260 {
29261 FILE *f = fopen ("conftest.out", "w");
29262  return ferror (f) || fclose (f) != 0;
29263 
29264   ;
29265   return 0;
29266 }
29267 _ACEOF
29268 ac_clean_files="$ac_clean_files conftest.out"
29269 # Check that the compiler produces executables we can run.  If not, either
29270 # the compiler is broken, or we cross compile.
29271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
29272 $as_echo_n "checking whether we are cross compiling... " >&6; }
29273 if test "$cross_compiling" != yes; then
29274   { { ac_try="$ac_link"
29275 case "(($ac_try" in
29276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277   *) ac_try_echo=$ac_try;;
29278 esac
29279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29280 $as_echo "$ac_try_echo"; } >&5
29281   (eval "$ac_link") 2>&5
29282   ac_status=$?
29283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29284   test $ac_status = 0; }
29285   if { ac_try='./conftest$ac_cv_exeext'
29286   { { case "(($ac_try" in
29287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288   *) ac_try_echo=$ac_try;;
29289 esac
29290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29291 $as_echo "$ac_try_echo"; } >&5
29292   (eval "$ac_try") 2>&5
29293   ac_status=$?
29294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29295   test $ac_status = 0; }; }; then
29296     cross_compiling=no
29297   else
29298     if test "$cross_compiling" = maybe; then
29299         cross_compiling=yes
29300     else
29301         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29303 as_fn_error $? "cannot run C compiled programs.
29304 If you meant to cross compile, use \`--host'.
29305 See \`config.log' for more details" "$LINENO" 5; }
29306     fi
29307   fi
29308 fi
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
29310 $as_echo "$cross_compiling" >&6; }
29311 
29312 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
29313 ac_clean_files=$ac_clean_files_save
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
29315 $as_echo_n "checking for suffix of object files... " >&6; }
29316 if ${ac_cv_objext+:} false; then :
29317   $as_echo_n "(cached) " >&6
29318 else
29319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29320 /* end confdefs.h.  */
29321 
29322 int
29323 main ()
29324 {
29325 
29326   ;
29327   return 0;
29328 }
29329 _ACEOF
29330 rm -f conftest.o conftest.obj
29331 if { { ac_try="$ac_compile"
29332 case "(($ac_try" in
29333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334   *) ac_try_echo=$ac_try;;
29335 esac
29336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29337 $as_echo "$ac_try_echo"; } >&5
29338   (eval "$ac_compile") 2>&5
29339   ac_status=$?
29340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29341   test $ac_status = 0; }; then :
29342   for ac_file in conftest.o conftest.obj conftest.*; do
29343   test -f "$ac_file" || continue;
29344   case $ac_file in
29345     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
29346     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
29347        break;;
29348   esac
29349 done
29350 else
29351   $as_echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29353 
29354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29356 as_fn_error $? "cannot compute suffix of object files: cannot compile
29357 See \`config.log' for more details" "$LINENO" 5; }
29358 fi
29359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
29360 fi
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
29362 $as_echo "$ac_cv_objext" >&6; }
29363 OBJEXT=$ac_cv_objext
29364 ac_objext=$OBJEXT
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
29366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
29367 if ${ac_cv_c_compiler_gnu+:} false; then :
29368   $as_echo_n "(cached) " >&6
29369 else
29370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29371 /* end confdefs.h.  */
29372 
29373 int
29374 main ()
29375 {
29376 #ifndef __GNUC__
29377        choke me
29378 #endif
29379 
29380   ;
29381   return 0;
29382 }
29383 _ACEOF
29384 if ac_fn_c_try_compile "$LINENO"; then :
29385   ac_compiler_gnu=yes
29386 else
29387   ac_compiler_gnu=no
29388 fi
29389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
29391 
29392 fi
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
29394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
29395 if test $ac_compiler_gnu = yes; then
29396   GCC=yes
29397 else
29398   GCC=
29399 fi
29400 ac_test_CFLAGS=${CFLAGS+set}
29401 ac_save_CFLAGS=$CFLAGS
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
29403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
29404 if ${ac_cv_prog_cc_g+:} false; then :
29405   $as_echo_n "(cached) " >&6
29406 else
29407   ac_save_c_werror_flag=$ac_c_werror_flag
29408    ac_c_werror_flag=yes
29409    ac_cv_prog_cc_g=no
29410    CFLAGS="-g"
29411    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29412 /* end confdefs.h.  */
29413 
29414 int
29415 main ()
29416 {
29417 
29418   ;
29419   return 0;
29420 }
29421 _ACEOF
29422 if ac_fn_c_try_compile "$LINENO"; then :
29423   ac_cv_prog_cc_g=yes
29424 else
29425   CFLAGS=""
29426       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29427 /* end confdefs.h.  */
29428 
29429 int
29430 main ()
29431 {
29432 
29433   ;
29434   return 0;
29435 }
29436 _ACEOF
29437 if ac_fn_c_try_compile "$LINENO"; then :
29438 
29439 else
29440   ac_c_werror_flag=$ac_save_c_werror_flag
29441          CFLAGS="-g"
29442          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29443 /* end confdefs.h.  */
29444 
29445 int
29446 main ()
29447 {
29448 
29449   ;
29450   return 0;
29451 }
29452 _ACEOF
29453 if ac_fn_c_try_compile "$LINENO"; then :
29454   ac_cv_prog_cc_g=yes
29455 fi
29456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29457 fi
29458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459 fi
29460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29461    ac_c_werror_flag=$ac_save_c_werror_flag
29462 fi
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
29464 $as_echo "$ac_cv_prog_cc_g" >&6; }
29465 if test "$ac_test_CFLAGS" = set; then
29466   CFLAGS=$ac_save_CFLAGS
29467 elif test $ac_cv_prog_cc_g = yes; then
29468   if test "$GCC" = yes; then
29469     CFLAGS="-g -O2"
29470   else
29471     CFLAGS="-g"
29472   fi
29473 else
29474   if test "$GCC" = yes; then
29475     CFLAGS="-O2"
29476   else
29477     CFLAGS=
29478   fi
29479 fi
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
29481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
29482 if ${ac_cv_prog_cc_c89+:} false; then :
29483   $as_echo_n "(cached) " >&6
29484 else
29485   ac_cv_prog_cc_c89=no
29486 ac_save_CC=$CC
29487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29488 /* end confdefs.h.  */
29489 #include <stdarg.h>
29490 #include <stdio.h>
29491 struct stat;
29492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29493 struct buf { int x; };
29494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
29495 static char *e (p, i)
29496      char **p;
29497      int i;
29498 {
29499   return p[i];
29500 }
29501 static char *f (char * (*g) (char **, int), char **p, ...)
29502 {
29503   char *s;
29504   va_list v;
29505   va_start (v,p);
29506   s = g (p, va_arg (v,int));
29507   va_end (v);
29508   return s;
29509 }
29510 
29511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29512    function prototypes and stuff, but not '\xHH' hex character constants.
29513    These don't provoke an error unfortunately, instead are silently treated
29514    as 'x'.  The following induces an error, until -std is added to get
29515    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29516    array size at least.  It's necessary to write '\x00'==0 to get something
29517    that's true only with -std.  */
29518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
29519 
29520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
29521    inside strings and character constants.  */
29522 #define FOO(x) 'x'
29523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
29524 
29525 int test (int i, double x);
29526 struct s1 {int (*f) (int a);};
29527 struct s2 {int (*f) (double a);};
29528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
29529 int argc;
29530 char **argv;
29531 int
29532 main ()
29533 {
29534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
29535   ;
29536   return 0;
29537 }
29538 _ACEOF
29539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
29540         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
29541 do
29542   CC="$ac_save_CC $ac_arg"
29543   if ac_fn_c_try_compile "$LINENO"; then :
29544   ac_cv_prog_cc_c89=$ac_arg
29545 fi
29546 rm -f core conftest.err conftest.$ac_objext
29547   test "x$ac_cv_prog_cc_c89" != "xno" && break
29548 done
29549 rm -f conftest.$ac_ext
29550 CC=$ac_save_CC
29551 
29552 fi
29553 # AC_CACHE_VAL
29554 case "x$ac_cv_prog_cc_c89" in
29555   x)
29556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
29557 $as_echo "none needed" >&6; } ;;
29558   xno)
29559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
29560 $as_echo "unsupported" >&6; } ;;
29561   *)
29562     CC="$CC $ac_cv_prog_cc_c89"
29563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
29564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
29565 esac
29566 if test "x$ac_cv_prog_cc_c89" != xno; then :
29567 
29568 fi
29569 
29570 ac_ext=cpp
29571 ac_cpp='$CXXCPP $CPPFLAGS'
29572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29575 
29576 
29577   # Option used to tell the compiler whether to create 32- or 64-bit executables
29578   # Notice that CC contains the full compiler path at this point.
29579   case $CC in
29580     *xlc_r) COMPILER_TARGET_BITS_FLAG="-q";;
29581     *)      COMPILER_TARGET_BITS_FLAG="-m";;
29582   esac
29583 
29584 
29585   ### Locate C++ compiler (CXX)
29586 
29587   if test "x$CXX" != x; then
29588     COMPILER_CHECK_LIST="$CXX"
29589   elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
29590     COMPILER_CHECK_LIST="cl"
29591   elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
29592     COMPILER_CHECK_LIST="CC g++"
29593   elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
29594     # Do not probe for CC on AIX .
29595     COMPILER_CHECK_LIST="xlC_r"
29596   else
29597     COMPILER_CHECK_LIST="g++ CC"
29598   fi
29599 
29600 
29601   COMPILER_NAME=C++
29602 
29603   CXX=
29604   # If TOOLS_DIR is set, check for all compiler names in there first
29605   # before checking the rest of the PATH.
29606   if test -n "$TOOLS_DIR"; then
29607     PATH_save="$PATH"
29608     PATH="$TOOLS_DIR"
29609     for ac_prog in $COMPILER_CHECK_LIST
29610 do
29611   # Extract the first word of "$ac_prog", so it can be a program name with args.
29612 set dummy $ac_prog; ac_word=$2
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29614 $as_echo_n "checking for $ac_word... " >&6; }
29615 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
29616   $as_echo_n "(cached) " >&6
29617 else
29618   case $TOOLS_DIR_CXX in
29619   [\\/]* | ?:[\\/]*)
29620   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
29621   ;;
29622   *)
29623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29624 for as_dir in $PATH
29625 do
29626   IFS=$as_save_IFS
29627   test -z "$as_dir" && as_dir=.
29628     for ac_exec_ext in '' $ac_executable_extensions; do
29629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29630     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
29631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29632     break 2
29633   fi
29634 done
29635   done
29636 IFS=$as_save_IFS
29637 
29638   ;;
29639 esac
29640 fi
29641 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
29642 if test -n "$TOOLS_DIR_CXX"; then
29643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
29644 $as_echo "$TOOLS_DIR_CXX" >&6; }
29645 else
29646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29647 $as_echo "no" >&6; }
29648 fi
29649 
29650 
29651   test -n "$TOOLS_DIR_CXX" && break
29652 done
29653 
29654     CXX=$TOOLS_DIR_CXX
29655     PATH="$PATH_save"
29656   fi
29657 
29658   # AC_PATH_PROGS can't be run multiple times with the same variable,
29659   # so create a new name for this run.
29660   if test "x$CXX" = x; then
29661     for ac_prog in $COMPILER_CHECK_LIST
29662 do
29663   # Extract the first word of "$ac_prog", so it can be a program name with args.
29664 set dummy $ac_prog; ac_word=$2
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29666 $as_echo_n "checking for $ac_word... " >&6; }
29667 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
29668   $as_echo_n "(cached) " >&6
29669 else
29670   case $POTENTIAL_CXX in
29671   [\\/]* | ?:[\\/]*)
29672   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
29673   ;;
29674   *)
29675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29676 for as_dir in $PATH
29677 do
29678   IFS=$as_save_IFS
29679   test -z "$as_dir" && as_dir=.
29680     for ac_exec_ext in '' $ac_executable_extensions; do
29681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29682     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
29683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29684     break 2
29685   fi
29686 done
29687   done
29688 IFS=$as_save_IFS
29689 
29690   ;;
29691 esac
29692 fi
29693 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
29694 if test -n "$POTENTIAL_CXX"; then
29695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
29696 $as_echo "$POTENTIAL_CXX" >&6; }
29697 else
29698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29699 $as_echo "no" >&6; }
29700 fi
29701 
29702 
29703   test -n "$POTENTIAL_CXX" && break
29704 done
29705 
29706     CXX=$POTENTIAL_CXX
29707   fi
29708 
29709   if test "x$CXX" = x; then
29710 
29711   # Print a helpful message on how to acquire the necessary build dependency.
29712   # devkit is the help tag: freetype, cups, pulse, alsa etc
29713   MISSING_DEPENDENCY=devkit
29714 
29715   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29716     cygwin_help $MISSING_DEPENDENCY
29717   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29718     msys_help $MISSING_DEPENDENCY
29719   else
29720     PKGHANDLER_COMMAND=
29721 
29722     case $PKGHANDLER in
29723       apt-get)
29724         apt_help     $MISSING_DEPENDENCY ;;
29725       yum)
29726         yum_help     $MISSING_DEPENDENCY ;;
29727       port)
29728         port_help    $MISSING_DEPENDENCY ;;
29729       pkgutil)
29730         pkgutil_help $MISSING_DEPENDENCY ;;
29731       pkgadd)
29732         pkgadd_help  $MISSING_DEPENDENCY ;;
29733     esac
29734 
29735     if test "x$PKGHANDLER_COMMAND" != x; then
29736       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
29737     fi
29738   fi
29739 
29740     as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
29741   fi
29742 
29743   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29744 
29745   # First separate the path from the arguments. This will split at the first
29746   # space.
29747   complete="$CXX"
29748   path="${complete%% *}"
29749   tmp="$complete EOL"
29750   arguments="${tmp#* }"
29751 
29752   # Input might be given as Windows format, start by converting to
29753   # unix format.
29754   new_path=`$CYGPATH -u "$path"`
29755 
29756   # Now try to locate executable using which
29757   new_path=`$WHICH "$new_path" 2> /dev/null`
29758   # bat and cmd files are not always considered executable in cygwin causing which
29759   # to not find them
29760   if test "x$new_path" = x \
29761       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29762       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29763     new_path=`$CYGPATH -u "$path"`
29764   fi
29765   if test "x$new_path" = x; then
29766     # Oops. Which didn't find the executable.
29767     # The splitting of arguments from the executable at a space might have been incorrect,
29768     # since paths with space are more likely in Windows. Give it another try with the whole
29769     # argument.
29770     path="$complete"
29771     arguments="EOL"
29772     new_path=`$CYGPATH -u "$path"`
29773     new_path=`$WHICH "$new_path" 2> /dev/null`
29774     # bat and cmd files are not always considered executable in cygwin causing which
29775     # to not find them
29776     if test "x$new_path" = x \
29777         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29778         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29779       new_path=`$CYGPATH -u "$path"`
29780     fi
29781     if test "x$new_path" = x; then
29782       # It's still not found. Now this is an unrecoverable error.
29783       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
29784 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
29785       has_space=`$ECHO "$complete" | $GREP " "`
29786       if test "x$has_space" != x; then
29787         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29788 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29789       fi
29790       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29791     fi
29792   fi
29793 
29794   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
29795   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
29796   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
29797   # "foo.exe" is OK but "foo" is an error.
29798   #
29799   # This test is therefore slightly more accurate than "test -f" to check for file presence.
29800   # It is also a way to make sure we got the proper file name for the real test later on.
29801   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
29802   if test "x$test_shortpath" = x; then
29803     # Short path failed, file does not exist as specified.
29804     # Try adding .exe or .cmd
29805     if test -f "${new_path}.exe"; then
29806       input_to_shortpath="${new_path}.exe"
29807     elif test -f "${new_path}.cmd"; then
29808       input_to_shortpath="${new_path}.cmd"
29809     else
29810       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5
29811 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;}
29812       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
29813 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
29814       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29815     fi
29816   else
29817     input_to_shortpath="$new_path"
29818   fi
29819 
29820   # Call helper function which possibly converts this using DOS-style short mode.
29821   # If so, the updated path is stored in $new_path.
29822   new_path="$input_to_shortpath"
29823 
29824   input_path="$input_to_shortpath"
29825   # Check if we need to convert this using DOS-style short mode. If the path
29826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29827   # take no chances and rewrite it.
29828   # Note: m4 eats our [], so we need to use [ and ] instead.
29829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
29830   if test "x$has_forbidden_chars" != x; then
29831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29832     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
29833     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
29834     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
29835       # Going to short mode and back again did indeed matter. Since short mode is
29836       # case insensitive, let's make it lowercase to improve readability.
29837       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29838       # Now convert it back to Unix-stile (cygpath)
29839       input_path=`$CYGPATH -u "$shortmode_path"`
29840       new_path="$input_path"
29841     fi
29842   fi
29843 
29844   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
29845   if test "x$test_cygdrive_prefix" = x; then
29846     # As a simple fix, exclude /usr/bin since it's not a real path.
29847     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
29848       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
29849       # a path prefixed by /cygdrive for fixpath to work.
29850       new_path="$CYGWIN_ROOT_PATH$input_path"
29851     fi
29852   fi
29853 
29854   # remove trailing .exe if any
29855   new_path="${new_path/%.exe/}"
29856 
29857   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29858 
29859   # First separate the path from the arguments. This will split at the first
29860   # space.
29861   complete="$CXX"
29862   path="${complete%% *}"
29863   tmp="$complete EOL"
29864   arguments="${tmp#* }"
29865 
29866   # Input might be given as Windows format, start by converting to
29867   # unix format.
29868   new_path="$path"
29869 
29870   windows_path="$new_path"
29871   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29872     unix_path=`$CYGPATH -u "$windows_path"`
29873     new_path="$unix_path"
29874   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29875     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29876     new_path="$unix_path"
29877   fi
29878 
29879 
29880   # Now try to locate executable using which
29881   new_path=`$WHICH "$new_path" 2> /dev/null`
29882 
29883   if test "x$new_path" = x; then
29884     # Oops. Which didn't find the executable.
29885     # The splitting of arguments from the executable at a space might have been incorrect,
29886     # since paths with space are more likely in Windows. Give it another try with the whole
29887     # argument.
29888     path="$complete"
29889     arguments="EOL"
29890     new_path="$path"
29891 
29892   windows_path="$new_path"
29893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29894     unix_path=`$CYGPATH -u "$windows_path"`
29895     new_path="$unix_path"
29896   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29897     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29898     new_path="$unix_path"
29899   fi
29900 
29901 
29902     new_path=`$WHICH "$new_path" 2> /dev/null`
29903 
29904     if test "x$new_path" = x; then
29905       # It's still not found. Now this is an unrecoverable error.
29906       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
29907 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
29908       has_space=`$ECHO "$complete" | $GREP " "`
29909       if test "x$has_space" != x; then
29910         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29912       fi
29913       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29914     fi
29915   fi
29916 
29917   # Now new_path has a complete unix path to the binary
29918   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
29919     # Keep paths in /bin as-is, but remove trailing .exe if any
29920     new_path="${new_path/%.exe/}"
29921     # Do not save /bin paths to all_fixpath_prefixes!
29922   else
29923     # Not in mixed or Windows style, start by that.
29924     new_path=`cmd //c echo $new_path`
29925 
29926   input_path="$new_path"
29927   # Check if we need to convert this using DOS-style short mode. If the path
29928   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29929   # take no chances and rewrite it.
29930   # Note: m4 eats our [], so we need to use [ and ] instead.
29931   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
29932   if test "x$has_forbidden_chars" != x; then
29933     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29934     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29935   fi
29936 
29937     # Output is in $new_path
29938 
29939   windows_path="$new_path"
29940   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29941     unix_path=`$CYGPATH -u "$windows_path"`
29942     new_path="$unix_path"
29943   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29944     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29945     new_path="$unix_path"
29946   fi
29947 
29948     # remove trailing .exe if any
29949     new_path="${new_path/%.exe/}"
29950 
29951     # Save the first 10 bytes of this path to the storage, so fixpath can work.
29952     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
29953   fi
29954 
29955   else
29956     # We're on a posix platform. Hooray! :)
29957     # First separate the path from the arguments. This will split at the first
29958     # space.
29959     complete="$CXX"
29960     path="${complete%% *}"
29961     tmp="$complete EOL"
29962     arguments="${tmp#* }"
29963 
29964     # Cannot rely on the command "which" here since it doesn't always work.
29965     is_absolute_path=`$ECHO "$path" | $GREP ^/`
29966     if test -z "$is_absolute_path"; then
29967       # Path to executable is not absolute. Find it.
29968       IFS_save="$IFS"
29969       IFS=:
29970       for p in $PATH; do
29971         if test -f "$p/$path" && test -x "$p/$path"; then
29972           new_path="$p/$path"
29973           break
29974         fi
29975       done
29976       IFS="$IFS_save"
29977     else
29978       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXX (as $path) failed, using $path directly." >&5
29979 $as_echo "$as_me: Resolving CXX (as $path) failed, using $path directly." >&6;}
29980       new_path="$path"
29981     fi
29982 
29983     if test "x$new_path" = x; then
29984       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
29985 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
29986       has_space=`$ECHO "$complete" | $GREP " "`
29987       if test "x$has_space" != x; then
29988         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
29989 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
29990       fi
29991       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29992     fi
29993   fi
29994 
29995   # Now join together the path and the arguments once again
29996   if test "x$arguments" != xEOL; then
29997     new_complete="$new_path ${arguments% *}"
29998   else
29999     new_complete="$new_path"
30000   fi
30001 
30002   if test "x$complete" != "x$new_complete"; then
30003     CXX="$new_complete"
30004     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
30005 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
30006   fi
30007 
30008   TEST_COMPILER="$CXX"
30009   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
30010   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
30011   if test "x$OPENJDK_BUILD_OS" != xaix; then
30012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
30013 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }
30014 
30015   if test "x$OPENJDK_BUILD_OS" != xwindows; then
30016     # Follow a chain of symbolic links. Use readlink
30017     # where it exists, else fall back to horribly
30018     # complicated shell code.
30019     if test "x$READLINK_TESTED" != yes; then
30020       # On MacOSX there is a readlink tool with a different
30021       # purpose than the GNU readlink tool. Check the found readlink.
30022       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
30023       if test "x$ISGNU" = x; then
30024         # A readlink that we do not know how to use.
30025         # Are there other non-GNU readlinks out there?
30026         READLINK_TESTED=yes
30027         READLINK=
30028       fi
30029     fi
30030 
30031     if test "x$READLINK" != x; then
30032       TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
30033     else
30034       # Save the current directory for restoring afterwards
30035       STARTDIR=$PWD
30036       COUNTER=0
30037       sym_link_dir=`$DIRNAME $TEST_COMPILER`
30038       sym_link_file=`$BASENAME $TEST_COMPILER`
30039       cd $sym_link_dir
30040       # Use -P flag to resolve symlinks in directories.
30041       cd `$THEPWDCMD -P`
30042       sym_link_dir=`$THEPWDCMD -P`
30043       # Resolve file symlinks
30044       while test $COUNTER -lt 20; do
30045         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
30046         if test "x$ISLINK" == x; then
30047           # This is not a symbolic link! We are done!
30048           break
30049         fi
30050         # Again resolve directory symlinks since the target of the just found
30051         # link could be in a different directory
30052         cd `$DIRNAME $ISLINK`
30053         sym_link_dir=`$THEPWDCMD -P`
30054         sym_link_file=`$BASENAME $ISLINK`
30055         let COUNTER=COUNTER+1
30056       done
30057       cd $STARTDIR
30058       TEST_COMPILER=$sym_link_dir/$sym_link_file
30059     fi
30060   fi
30061 
30062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
30063 $as_echo "$TEST_COMPILER" >&6; }
30064   fi
30065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
30066 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
30067 
30068   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
30069   if test "x$COMPILER_BASENAME" = "xccache"; then
30070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
30071 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
30072     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
30073     # We want to control ccache invocation ourselves, so ignore this cc and try
30074     # searching again.
30075 
30076     # Remove the path to the fake ccache cc from the PATH
30077     RETRY_COMPILER_SAVED_PATH="$PATH"
30078     COMPILER_DIRNAME=`$DIRNAME $CXX`
30079     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
30080 
30081     # Try again looking for our compiler
30082     if test -n "$ac_tool_prefix"; then
30083   for ac_prog in $COMPILER_CHECK_LIST
30084   do
30085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30088 $as_echo_n "checking for $ac_word... " >&6; }
30089 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
30090   $as_echo_n "(cached) " >&6
30091 else
30092   if test -n "$PROPER_COMPILER_CXX"; then
30093   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
30094 else
30095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30096 for as_dir in $PATH
30097 do
30098   IFS=$as_save_IFS
30099   test -z "$as_dir" && as_dir=.
30100     for ac_exec_ext in '' $ac_executable_extensions; do
30101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30102     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
30103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30104     break 2
30105   fi
30106 done
30107   done
30108 IFS=$as_save_IFS
30109 
30110 fi
30111 fi
30112 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
30113 if test -n "$PROPER_COMPILER_CXX"; then
30114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
30115 $as_echo "$PROPER_COMPILER_CXX" >&6; }
30116 else
30117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30118 $as_echo "no" >&6; }
30119 fi
30120 
30121 
30122     test -n "$PROPER_COMPILER_CXX" && break
30123   done
30124 fi
30125 if test -z "$PROPER_COMPILER_CXX"; then
30126   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
30127   for ac_prog in $COMPILER_CHECK_LIST
30128 do
30129   # Extract the first word of "$ac_prog", so it can be a program name with args.
30130 set dummy $ac_prog; ac_word=$2
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30132 $as_echo_n "checking for $ac_word... " >&6; }
30133 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
30134   $as_echo_n "(cached) " >&6
30135 else
30136   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
30137   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
30138 else
30139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30140 for as_dir in $PATH
30141 do
30142   IFS=$as_save_IFS
30143   test -z "$as_dir" && as_dir=.
30144     for ac_exec_ext in '' $ac_executable_extensions; do
30145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30146     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
30147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30148     break 2
30149   fi
30150 done
30151   done
30152 IFS=$as_save_IFS
30153 
30154 fi
30155 fi
30156 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
30157 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
30158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
30159 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
30160 else
30161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30162 $as_echo "no" >&6; }
30163 fi
30164 
30165 
30166   test -n "$ac_ct_PROPER_COMPILER_CXX" && break
30167 done
30168 
30169   if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then
30170     PROPER_COMPILER_CXX=""
30171   else
30172     case $cross_compiling:$ac_tool_warned in
30173 yes:)
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30176 ac_tool_warned=yes ;;
30177 esac
30178     PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX
30179   fi
30180 fi
30181 
30182 
30183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30184 
30185   # First separate the path from the arguments. This will split at the first
30186   # space.
30187   complete="$PROPER_COMPILER_CXX"
30188   path="${complete%% *}"
30189   tmp="$complete EOL"
30190   arguments="${tmp#* }"
30191 
30192   # Input might be given as Windows format, start by converting to
30193   # unix format.
30194   new_path=`$CYGPATH -u "$path"`
30195 
30196   # Now try to locate executable using which
30197   new_path=`$WHICH "$new_path" 2> /dev/null`
30198   # bat and cmd files are not always considered executable in cygwin causing which
30199   # to not find them
30200   if test "x$new_path" = x \
30201       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
30202       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
30203     new_path=`$CYGPATH -u "$path"`
30204   fi
30205   if test "x$new_path" = x; then
30206     # Oops. Which didn't find the executable.
30207     # The splitting of arguments from the executable at a space might have been incorrect,
30208     # since paths with space are more likely in Windows. Give it another try with the whole
30209     # argument.
30210     path="$complete"
30211     arguments="EOL"
30212     new_path=`$CYGPATH -u "$path"`
30213     new_path=`$WHICH "$new_path" 2> /dev/null`
30214     # bat and cmd files are not always considered executable in cygwin causing which
30215     # to not find them
30216     if test "x$new_path" = x \
30217         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
30218         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
30219       new_path=`$CYGPATH -u "$path"`
30220     fi
30221     if test "x$new_path" = x; then
30222       # It's still not found. Now this is an unrecoverable error.
30223       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
30224 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
30225       has_space=`$ECHO "$complete" | $GREP " "`
30226       if test "x$has_space" != x; then
30227         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30229       fi
30230       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
30231     fi
30232   fi
30233 
30234   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
30235   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
30236   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
30237   # "foo.exe" is OK but "foo" is an error.
30238   #
30239   # This test is therefore slightly more accurate than "test -f" to check for file presence.
30240   # It is also a way to make sure we got the proper file name for the real test later on.
30241   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
30242   if test "x$test_shortpath" = x; then
30243     # Short path failed, file does not exist as specified.
30244     # Try adding .exe or .cmd
30245     if test -f "${new_path}.exe"; then
30246       input_to_shortpath="${new_path}.exe"
30247     elif test -f "${new_path}.cmd"; then
30248       input_to_shortpath="${new_path}.cmd"
30249     else
30250       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5
30251 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;}
30252       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
30253 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
30254       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
30255     fi
30256   else
30257     input_to_shortpath="$new_path"
30258   fi
30259 
30260   # Call helper function which possibly converts this using DOS-style short mode.
30261   # If so, the updated path is stored in $new_path.
30262   new_path="$input_to_shortpath"
30263 
30264   input_path="$input_to_shortpath"
30265   # Check if we need to convert this using DOS-style short mode. If the path
30266   # contains just simple characters, use it. Otherwise (spaces, weird characters),
30267   # take no chances and rewrite it.
30268   # Note: m4 eats our [], so we need to use [ and ] instead.
30269   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
30270   if test "x$has_forbidden_chars" != x; then
30271     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30272     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
30273     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
30274     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
30275       # Going to short mode and back again did indeed matter. Since short mode is
30276       # case insensitive, let's make it lowercase to improve readability.
30277       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30278       # Now convert it back to Unix-stile (cygpath)
30279       input_path=`$CYGPATH -u "$shortmode_path"`
30280       new_path="$input_path"
30281     fi
30282   fi
30283 
30284   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
30285   if test "x$test_cygdrive_prefix" = x; then
30286     # As a simple fix, exclude /usr/bin since it's not a real path.
30287     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
30288       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
30289       # a path prefixed by /cygdrive for fixpath to work.
30290       new_path="$CYGWIN_ROOT_PATH$input_path"
30291     fi
30292   fi
30293 
30294   # remove trailing .exe if any
30295   new_path="${new_path/%.exe/}"
30296 
30297   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30298 
30299   # First separate the path from the arguments. This will split at the first
30300   # space.
30301   complete="$PROPER_COMPILER_CXX"
30302   path="${complete%% *}"
30303   tmp="$complete EOL"
30304   arguments="${tmp#* }"
30305 
30306   # Input might be given as Windows format, start by converting to
30307   # unix format.
30308   new_path="$path"
30309 
30310   windows_path="$new_path"
30311   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30312     unix_path=`$CYGPATH -u "$windows_path"`
30313     new_path="$unix_path"
30314   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30315     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30316     new_path="$unix_path"
30317   fi
30318 
30319 
30320   # Now try to locate executable using which
30321   new_path=`$WHICH "$new_path" 2> /dev/null`
30322 
30323   if test "x$new_path" = x; then
30324     # Oops. Which didn't find the executable.
30325     # The splitting of arguments from the executable at a space might have been incorrect,
30326     # since paths with space are more likely in Windows. Give it another try with the whole
30327     # argument.
30328     path="$complete"
30329     arguments="EOL"
30330     new_path="$path"
30331 
30332   windows_path="$new_path"
30333   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30334     unix_path=`$CYGPATH -u "$windows_path"`
30335     new_path="$unix_path"
30336   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30337     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30338     new_path="$unix_path"
30339   fi
30340 
30341 
30342     new_path=`$WHICH "$new_path" 2> /dev/null`
30343 
30344     if test "x$new_path" = x; then
30345       # It's still not found. Now this is an unrecoverable error.
30346       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
30347 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
30348       has_space=`$ECHO "$complete" | $GREP " "`
30349       if test "x$has_space" != x; then
30350         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30351 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30352       fi
30353       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
30354     fi
30355   fi
30356 
30357   # Now new_path has a complete unix path to the binary
30358   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
30359     # Keep paths in /bin as-is, but remove trailing .exe if any
30360     new_path="${new_path/%.exe/}"
30361     # Do not save /bin paths to all_fixpath_prefixes!
30362   else
30363     # Not in mixed or Windows style, start by that.
30364     new_path=`cmd //c echo $new_path`
30365 
30366   input_path="$new_path"
30367   # Check if we need to convert this using DOS-style short mode. If the path
30368   # contains just simple characters, use it. Otherwise (spaces, weird characters),
30369   # take no chances and rewrite it.
30370   # Note: m4 eats our [], so we need to use [ and ] instead.
30371   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
30372   if test "x$has_forbidden_chars" != x; then
30373     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30374     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30375   fi
30376 
30377     # Output is in $new_path
30378 
30379   windows_path="$new_path"
30380   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30381     unix_path=`$CYGPATH -u "$windows_path"`
30382     new_path="$unix_path"
30383   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30384     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30385     new_path="$unix_path"
30386   fi
30387 
30388     # remove trailing .exe if any
30389     new_path="${new_path/%.exe/}"
30390 
30391     # Save the first 10 bytes of this path to the storage, so fixpath can work.
30392     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
30393   fi
30394 
30395   else
30396     # We're on a posix platform. Hooray! :)
30397     # First separate the path from the arguments. This will split at the first
30398     # space.
30399     complete="$PROPER_COMPILER_CXX"
30400     path="${complete%% *}"
30401     tmp="$complete EOL"
30402     arguments="${tmp#* }"
30403 
30404     # Cannot rely on the command "which" here since it doesn't always work.
30405     is_absolute_path=`$ECHO "$path" | $GREP ^/`
30406     if test -z "$is_absolute_path"; then
30407       # Path to executable is not absolute. Find it.
30408       IFS_save="$IFS"
30409       IFS=:
30410       for p in $PATH; do
30411         if test -f "$p/$path" && test -x "$p/$path"; then
30412           new_path="$p/$path"
30413           break
30414         fi
30415       done
30416       IFS="$IFS_save"
30417     else
30418       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&5
30419 $as_echo "$as_me: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&6;}
30420       new_path="$path"
30421     fi
30422 
30423     if test "x$new_path" = x; then
30424       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
30425 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
30426       has_space=`$ECHO "$complete" | $GREP " "`
30427       if test "x$has_space" != x; then
30428         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
30429 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
30430       fi
30431       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
30432     fi
30433   fi
30434 
30435   # Now join together the path and the arguments once again
30436   if test "x$arguments" != xEOL; then
30437     new_complete="$new_path ${arguments% *}"
30438   else
30439     new_complete="$new_path"
30440   fi
30441 
30442   if test "x$complete" != "x$new_complete"; then
30443     PROPER_COMPILER_CXX="$new_complete"
30444     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5
30445 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;}
30446   fi
30447 
30448     PATH="$RETRY_COMPILER_SAVED_PATH"
30449 
30450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5
30451 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; }
30452 
30453   if test "x$OPENJDK_BUILD_OS" != xwindows; then
30454     # Follow a chain of symbolic links. Use readlink
30455     # where it exists, else fall back to horribly
30456     # complicated shell code.
30457     if test "x$READLINK_TESTED" != yes; then
30458       # On MacOSX there is a readlink tool with a different
30459       # purpose than the GNU readlink tool. Check the found readlink.
30460       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
30461       if test "x$ISGNU" = x; then
30462         # A readlink that we do not know how to use.
30463         # Are there other non-GNU readlinks out there?
30464         READLINK_TESTED=yes
30465         READLINK=
30466       fi
30467     fi
30468 
30469     if test "x$READLINK" != x; then
30470       PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX`
30471     else
30472       # Save the current directory for restoring afterwards
30473       STARTDIR=$PWD
30474       COUNTER=0
30475       sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX`
30476       sym_link_file=`$BASENAME $PROPER_COMPILER_CXX`
30477       cd $sym_link_dir
30478       # Use -P flag to resolve symlinks in directories.
30479       cd `$THEPWDCMD -P`
30480       sym_link_dir=`$THEPWDCMD -P`
30481       # Resolve file symlinks
30482       while test $COUNTER -lt 20; do
30483         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
30484         if test "x$ISLINK" == x; then
30485           # This is not a symbolic link! We are done!
30486           break
30487         fi
30488         # Again resolve directory symlinks since the target of the just found
30489         # link could be in a different directory
30490         cd `$DIRNAME $ISLINK`
30491         sym_link_dir=`$THEPWDCMD -P`
30492         sym_link_file=`$BASENAME $ISLINK`
30493         let COUNTER=COUNTER+1
30494       done
30495       cd $STARTDIR
30496       PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file
30497     fi
30498   fi
30499 
30500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
30501 $as_echo "$PROPER_COMPILER_CXX" >&6; }
30502     CXX="$PROPER_COMPILER_CXX"
30503   else
30504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5
30505 $as_echo "no, keeping CXX" >&6; }
30506     CXX="$TEST_COMPILER"
30507   fi
30508 
30509   COMPILER=$CXX
30510   COMPILER_NAME=$COMPILER_NAME
30511 
30512   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30513     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
30514     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
30515     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
30516     if test $? -ne 0; then
30517       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
30518 
30519       { $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
30520 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
30521       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
30522 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
30523       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30524     else
30525       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
30526       COMPILER_VENDOR="Sun Studio"
30527     fi
30528   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
30529       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
30530       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
30531       if test $? -ne 0; then
30532         as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
30533       else
30534         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
30535         COMPILER_VENDOR='IBM'
30536       fi
30537   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
30538     # First line typically looks something like:
30539     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
30540     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
30541     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
30542     COMPILER_VENDOR="Microsoft CL.EXE"
30543     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
30544     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
30545       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
30546         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
30547       fi
30548     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
30549       if test "x$COMPILER_CPU_TEST" != "xx64"; then
30550         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
30551       fi
30552     fi
30553   else
30554     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
30555     # Check that this is likely to be GCC.
30556     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
30557     if test $? -ne 0; then
30558       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5
30559 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;}
30560       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5
30561 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;}
30562       as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30563     fi
30564 
30565     # First line typically looks something like:
30566     # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
30567     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | \
30568         $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'`
30569     COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"`
30570   fi
30571   # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker)
30572   CXX_VERSION="$COMPILER_VERSION"
30573   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
30574   CXX_VENDOR="$COMPILER_VENDOR"
30575 
30576   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
30577 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
30578 
30579 
30580   # Now that we have resolved CXX ourself, let autoconf have its go at it
30581   ac_ext=cpp
30582 ac_cpp='$CXXCPP $CPPFLAGS'
30583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30586 if test -z "$CXX"; then
30587   if test -n "$CCC"; then
30588     CXX=$CCC
30589   else
30590     if test -n "$ac_tool_prefix"; then
30591   for ac_prog in $CXX
30592   do
30593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30596 $as_echo_n "checking for $ac_word... " >&6; }
30597 if ${ac_cv_prog_CXX+:} false; then :
30598   $as_echo_n "(cached) " >&6
30599 else
30600   if test -n "$CXX"; then
30601   ac_cv_prog_CXX="$CXX" # Let the user override the test.
30602 else
30603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30604 for as_dir in $PATH
30605 do
30606   IFS=$as_save_IFS
30607   test -z "$as_dir" && as_dir=.
30608     for ac_exec_ext in '' $ac_executable_extensions; do
30609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30610     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30612     break 2
30613   fi
30614 done
30615   done
30616 IFS=$as_save_IFS
30617 
30618 fi
30619 fi
30620 CXX=$ac_cv_prog_CXX
30621 if test -n "$CXX"; then
30622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
30623 $as_echo "$CXX" >&6; }
30624 else
30625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30626 $as_echo "no" >&6; }
30627 fi
30628 
30629 
30630     test -n "$CXX" && break
30631   done
30632 fi
30633 if test -z "$CXX"; then
30634   ac_ct_CXX=$CXX
30635   for ac_prog in $CXX
30636 do
30637   # Extract the first word of "$ac_prog", so it can be a program name with args.
30638 set dummy $ac_prog; ac_word=$2
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30640 $as_echo_n "checking for $ac_word... " >&6; }
30641 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
30642   $as_echo_n "(cached) " >&6
30643 else
30644   if test -n "$ac_ct_CXX"; then
30645   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
30646 else
30647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30648 for as_dir in $PATH
30649 do
30650   IFS=$as_save_IFS
30651   test -z "$as_dir" && as_dir=.
30652     for ac_exec_ext in '' $ac_executable_extensions; do
30653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30654     ac_cv_prog_ac_ct_CXX="$ac_prog"
30655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30656     break 2
30657   fi
30658 done
30659   done
30660 IFS=$as_save_IFS
30661 
30662 fi
30663 fi
30664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
30665 if test -n "$ac_ct_CXX"; then
30666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
30667 $as_echo "$ac_ct_CXX" >&6; }
30668 else
30669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30670 $as_echo "no" >&6; }
30671 fi
30672 
30673 
30674   test -n "$ac_ct_CXX" && break
30675 done
30676 
30677   if test "x$ac_ct_CXX" = x; then
30678     CXX="g++"
30679   else
30680     case $cross_compiling:$ac_tool_warned in
30681 yes:)
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30684 ac_tool_warned=yes ;;
30685 esac
30686     CXX=$ac_ct_CXX
30687   fi
30688 fi
30689 
30690   fi
30691 fi
30692 # Provide some information about the compiler.
30693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
30694 set X $ac_compile
30695 ac_compiler=$2
30696 for ac_option in --version -v -V -qversion; do
30697   { { ac_try="$ac_compiler $ac_option >&5"
30698 case "(($ac_try" in
30699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700   *) ac_try_echo=$ac_try;;
30701 esac
30702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30703 $as_echo "$ac_try_echo"; } >&5
30704   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30705   ac_status=$?
30706   if test -s conftest.err; then
30707     sed '10a\
30708 ... rest of stderr output deleted ...
30709          10q' conftest.err >conftest.er1
30710     cat conftest.er1 >&5
30711   fi
30712   rm -f conftest.er1 conftest.err
30713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30714   test $ac_status = 0; }
30715 done
30716 
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
30718 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
30719 if ${ac_cv_cxx_compiler_gnu+:} false; then :
30720   $as_echo_n "(cached) " >&6
30721 else
30722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30723 /* end confdefs.h.  */
30724 
30725 int
30726 main ()
30727 {
30728 #ifndef __GNUC__
30729        choke me
30730 #endif
30731 
30732   ;
30733   return 0;
30734 }
30735 _ACEOF
30736 if ac_fn_cxx_try_compile "$LINENO"; then :
30737   ac_compiler_gnu=yes
30738 else
30739   ac_compiler_gnu=no
30740 fi
30741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30742 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
30743 
30744 fi
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
30746 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
30747 if test $ac_compiler_gnu = yes; then
30748   GXX=yes
30749 else
30750   GXX=
30751 fi
30752 ac_test_CXXFLAGS=${CXXFLAGS+set}
30753 ac_save_CXXFLAGS=$CXXFLAGS
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
30755 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
30756 if ${ac_cv_prog_cxx_g+:} false; then :
30757   $as_echo_n "(cached) " >&6
30758 else
30759   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
30760    ac_cxx_werror_flag=yes
30761    ac_cv_prog_cxx_g=no
30762    CXXFLAGS="-g"
30763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30764 /* end confdefs.h.  */
30765 
30766 int
30767 main ()
30768 {
30769 
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 if ac_fn_cxx_try_compile "$LINENO"; then :
30775   ac_cv_prog_cxx_g=yes
30776 else
30777   CXXFLAGS=""
30778       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30779 /* end confdefs.h.  */
30780 
30781 int
30782 main ()
30783 {
30784 
30785   ;
30786   return 0;
30787 }
30788 _ACEOF
30789 if ac_fn_cxx_try_compile "$LINENO"; then :
30790 
30791 else
30792   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30793          CXXFLAGS="-g"
30794          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30795 /* end confdefs.h.  */
30796 
30797 int
30798 main ()
30799 {
30800 
30801   ;
30802   return 0;
30803 }
30804 _ACEOF
30805 if ac_fn_cxx_try_compile "$LINENO"; then :
30806   ac_cv_prog_cxx_g=yes
30807 fi
30808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30809 fi
30810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30811 fi
30812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30813    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30814 fi
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
30816 $as_echo "$ac_cv_prog_cxx_g" >&6; }
30817 if test "$ac_test_CXXFLAGS" = set; then
30818   CXXFLAGS=$ac_save_CXXFLAGS
30819 elif test $ac_cv_prog_cxx_g = yes; then
30820   if test "$GXX" = yes; then
30821     CXXFLAGS="-g -O2"
30822   else
30823     CXXFLAGS="-g"
30824   fi
30825 else
30826   if test "$GXX" = yes; then
30827     CXXFLAGS="-O2"
30828   else
30829     CXXFLAGS=
30830   fi
30831 fi
30832 ac_ext=cpp
30833 ac_cpp='$CXXCPP $CPPFLAGS'
30834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30837 
30838 
30839   # This is the compiler version number on the form X.Y[.Z]
30840 
30841 
30842 
30843 
30844   if test "x$CC_VERSION" != "x$CXX_VERSION"; then
30845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&5
30846 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&2;}
30847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5
30848 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;}
30849   fi
30850 
30851   # We only check CC_VERSION since we assume CXX_VERSION is equal.
30852   if  [[ "$CC_VERSION" =~ (.*\.){3} ]] ; then
30853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5
30854 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;}
30855   fi
30856 
30857   if  [[  "$CC_VERSION" =~ [0-9]{6} ]] ; then
30858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5
30859 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;}
30860   fi
30861 
30862   COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION"`
30863 
30864 
30865   ### Locate other tools
30866 
30867   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30868     ac_ext=m
30869 ac_cpp='$OBJCPP $CPPFLAGS'
30870 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30871 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30872 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
30873 if test -n "$ac_tool_prefix"; then
30874   for ac_prog in gcc objcc objc cc CC
30875   do
30876     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30879 $as_echo_n "checking for $ac_word... " >&6; }
30880 if ${ac_cv_prog_OBJC+:} false; then :
30881   $as_echo_n "(cached) " >&6
30882 else
30883   if test -n "$OBJC"; then
30884   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
30885 else
30886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30887 for as_dir in $PATH
30888 do
30889   IFS=$as_save_IFS
30890   test -z "$as_dir" && as_dir=.
30891     for ac_exec_ext in '' $ac_executable_extensions; do
30892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30893     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
30894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30895     break 2
30896   fi
30897 done
30898   done
30899 IFS=$as_save_IFS
30900 
30901 fi
30902 fi
30903 OBJC=$ac_cv_prog_OBJC
30904 if test -n "$OBJC"; then
30905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
30906 $as_echo "$OBJC" >&6; }
30907 else
30908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909 $as_echo "no" >&6; }
30910 fi
30911 
30912 
30913     test -n "$OBJC" && break
30914   done
30915 fi
30916 if test -z "$OBJC"; then
30917   ac_ct_OBJC=$OBJC
30918   for ac_prog in gcc objcc objc cc CC
30919 do
30920   # Extract the first word of "$ac_prog", so it can be a program name with args.
30921 set dummy $ac_prog; ac_word=$2
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30923 $as_echo_n "checking for $ac_word... " >&6; }
30924 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
30925   $as_echo_n "(cached) " >&6
30926 else
30927   if test -n "$ac_ct_OBJC"; then
30928   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
30929 else
30930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30931 for as_dir in $PATH
30932 do
30933   IFS=$as_save_IFS
30934   test -z "$as_dir" && as_dir=.
30935     for ac_exec_ext in '' $ac_executable_extensions; do
30936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30937     ac_cv_prog_ac_ct_OBJC="$ac_prog"
30938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30939     break 2
30940   fi
30941 done
30942   done
30943 IFS=$as_save_IFS
30944 
30945 fi
30946 fi
30947 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
30948 if test -n "$ac_ct_OBJC"; then
30949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
30950 $as_echo "$ac_ct_OBJC" >&6; }
30951 else
30952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30953 $as_echo "no" >&6; }
30954 fi
30955 
30956 
30957   test -n "$ac_ct_OBJC" && break
30958 done
30959 
30960   if test "x$ac_ct_OBJC" = x; then
30961     OBJC="gcc"
30962   else
30963     case $cross_compiling:$ac_tool_warned in
30964 yes:)
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30967 ac_tool_warned=yes ;;
30968 esac
30969     OBJC=$ac_ct_OBJC
30970   fi
30971 fi
30972 
30973 # Provide some information about the compiler.
30974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
30975 set X $ac_compile
30976 ac_compiler=$2
30977 for ac_option in --version -v -V -qversion; do
30978   { { ac_try="$ac_compiler $ac_option >&5"
30979 case "(($ac_try" in
30980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30981   *) ac_try_echo=$ac_try;;
30982 esac
30983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30984 $as_echo "$ac_try_echo"; } >&5
30985   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30986   ac_status=$?
30987   if test -s conftest.err; then
30988     sed '10a\
30989 ... rest of stderr output deleted ...
30990          10q' conftest.err >conftest.er1
30991     cat conftest.er1 >&5
30992   fi
30993   rm -f conftest.er1 conftest.err
30994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30995   test $ac_status = 0; }
30996 done
30997 
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
30999 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
31000 if ${ac_cv_objc_compiler_gnu+:} false; then :
31001   $as_echo_n "(cached) " >&6
31002 else
31003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31004 /* end confdefs.h.  */
31005 
31006 int
31007 main ()
31008 {
31009 #ifndef __GNUC__
31010        choke me
31011 #endif
31012 
31013   ;
31014   return 0;
31015 }
31016 _ACEOF
31017 if ac_fn_objc_try_compile "$LINENO"; then :
31018   ac_compiler_gnu=yes
31019 else
31020   ac_compiler_gnu=no
31021 fi
31022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31023 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
31024 
31025 fi
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
31027 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
31028 if test $ac_compiler_gnu = yes; then
31029   GOBJC=yes
31030 else
31031   GOBJC=
31032 fi
31033 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
31034 ac_save_OBJCFLAGS=$OBJCFLAGS
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
31036 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
31037 if ${ac_cv_prog_objc_g+:} false; then :
31038   $as_echo_n "(cached) " >&6
31039 else
31040   ac_save_objc_werror_flag=$ac_objc_werror_flag
31041    ac_objc_werror_flag=yes
31042    ac_cv_prog_objc_g=no
31043    OBJCFLAGS="-g"
31044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31045 /* end confdefs.h.  */
31046 
31047 int
31048 main ()
31049 {
31050 
31051   ;
31052   return 0;
31053 }
31054 _ACEOF
31055 if ac_fn_objc_try_compile "$LINENO"; then :
31056   ac_cv_prog_objc_g=yes
31057 else
31058   OBJCFLAGS=""
31059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060 /* end confdefs.h.  */
31061 
31062 int
31063 main ()
31064 {
31065 
31066   ;
31067   return 0;
31068 }
31069 _ACEOF
31070 if ac_fn_objc_try_compile "$LINENO"; then :
31071 
31072 else
31073   ac_objc_werror_flag=$ac_save_objc_werror_flag
31074          OBJCFLAGS="-g"
31075          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31076 /* end confdefs.h.  */
31077 
31078 int
31079 main ()
31080 {
31081 
31082   ;
31083   return 0;
31084 }
31085 _ACEOF
31086 if ac_fn_objc_try_compile "$LINENO"; then :
31087   ac_cv_prog_objc_g=yes
31088 fi
31089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31090 fi
31091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31092 fi
31093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31094    ac_objc_werror_flag=$ac_save_objc_werror_flag
31095 fi
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
31097 $as_echo "$ac_cv_prog_objc_g" >&6; }
31098 if test "$ac_test_OBJCFLAGS" = set; then
31099   OBJCFLAGS=$ac_save_OBJCFLAGS
31100 elif test $ac_cv_prog_objc_g = yes; then
31101   if test "$GOBJC" = yes; then
31102     OBJCFLAGS="-g -O2"
31103   else
31104     OBJCFLAGS="-g"
31105   fi
31106 else
31107   if test "$GOBJC" = yes; then
31108     OBJCFLAGS="-O2"
31109   else
31110     OBJCFLAGS=
31111   fi
31112 fi
31113 ac_ext=cpp
31114 ac_cpp='$CXXCPP $CPPFLAGS'
31115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31118 
31119 
31120   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31121 
31122   # First separate the path from the arguments. This will split at the first
31123   # space.
31124   complete="$OBJC"
31125   path="${complete%% *}"
31126   tmp="$complete EOL"
31127   arguments="${tmp#* }"
31128 
31129   # Input might be given as Windows format, start by converting to
31130   # unix format.
31131   new_path=`$CYGPATH -u "$path"`
31132 
31133   # Now try to locate executable using which
31134   new_path=`$WHICH "$new_path" 2> /dev/null`
31135   # bat and cmd files are not always considered executable in cygwin causing which
31136   # to not find them
31137   if test "x$new_path" = x \
31138       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31139       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31140     new_path=`$CYGPATH -u "$path"`
31141   fi
31142   if test "x$new_path" = x; then
31143     # Oops. Which didn't find the executable.
31144     # The splitting of arguments from the executable at a space might have been incorrect,
31145     # since paths with space are more likely in Windows. Give it another try with the whole
31146     # argument.
31147     path="$complete"
31148     arguments="EOL"
31149     new_path=`$CYGPATH -u "$path"`
31150     new_path=`$WHICH "$new_path" 2> /dev/null`
31151     # bat and cmd files are not always considered executable in cygwin causing which
31152     # to not find them
31153     if test "x$new_path" = x \
31154         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31155         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31156       new_path=`$CYGPATH -u "$path"`
31157     fi
31158     if test "x$new_path" = x; then
31159       # It's still not found. Now this is an unrecoverable error.
31160       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
31161 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
31162       has_space=`$ECHO "$complete" | $GREP " "`
31163       if test "x$has_space" != x; then
31164         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31165 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31166       fi
31167       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
31168     fi
31169   fi
31170 
31171   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31172   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31173   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31174   # "foo.exe" is OK but "foo" is an error.
31175   #
31176   # This test is therefore slightly more accurate than "test -f" to check for file presence.
31177   # It is also a way to make sure we got the proper file name for the real test later on.
31178   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31179   if test "x$test_shortpath" = x; then
31180     # Short path failed, file does not exist as specified.
31181     # Try adding .exe or .cmd
31182     if test -f "${new_path}.exe"; then
31183       input_to_shortpath="${new_path}.exe"
31184     elif test -f "${new_path}.cmd"; then
31185       input_to_shortpath="${new_path}.cmd"
31186     else
31187       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5
31188 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;}
31189       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31190 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31191       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
31192     fi
31193   else
31194     input_to_shortpath="$new_path"
31195   fi
31196 
31197   # Call helper function which possibly converts this using DOS-style short mode.
31198   # If so, the updated path is stored in $new_path.
31199   new_path="$input_to_shortpath"
31200 
31201   input_path="$input_to_shortpath"
31202   # Check if we need to convert this using DOS-style short mode. If the path
31203   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31204   # take no chances and rewrite it.
31205   # Note: m4 eats our [], so we need to use [ and ] instead.
31206   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31207   if test "x$has_forbidden_chars" != x; then
31208     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31209     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31210     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31211     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31212       # Going to short mode and back again did indeed matter. Since short mode is
31213       # case insensitive, let's make it lowercase to improve readability.
31214       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31215       # Now convert it back to Unix-stile (cygpath)
31216       input_path=`$CYGPATH -u "$shortmode_path"`
31217       new_path="$input_path"
31218     fi
31219   fi
31220 
31221   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31222   if test "x$test_cygdrive_prefix" = x; then
31223     # As a simple fix, exclude /usr/bin since it's not a real path.
31224     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31225       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31226       # a path prefixed by /cygdrive for fixpath to work.
31227       new_path="$CYGWIN_ROOT_PATH$input_path"
31228     fi
31229   fi
31230 
31231   # remove trailing .exe if any
31232   new_path="${new_path/%.exe/}"
31233 
31234   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31235 
31236   # First separate the path from the arguments. This will split at the first
31237   # space.
31238   complete="$OBJC"
31239   path="${complete%% *}"
31240   tmp="$complete EOL"
31241   arguments="${tmp#* }"
31242 
31243   # Input might be given as Windows format, start by converting to
31244   # unix format.
31245   new_path="$path"
31246 
31247   windows_path="$new_path"
31248   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31249     unix_path=`$CYGPATH -u "$windows_path"`
31250     new_path="$unix_path"
31251   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31252     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31253     new_path="$unix_path"
31254   fi
31255 
31256 
31257   # Now try to locate executable using which
31258   new_path=`$WHICH "$new_path" 2> /dev/null`
31259 
31260   if test "x$new_path" = x; then
31261     # Oops. Which didn't find the executable.
31262     # The splitting of arguments from the executable at a space might have been incorrect,
31263     # since paths with space are more likely in Windows. Give it another try with the whole
31264     # argument.
31265     path="$complete"
31266     arguments="EOL"
31267     new_path="$path"
31268 
31269   windows_path="$new_path"
31270   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31271     unix_path=`$CYGPATH -u "$windows_path"`
31272     new_path="$unix_path"
31273   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31274     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31275     new_path="$unix_path"
31276   fi
31277 
31278 
31279     new_path=`$WHICH "$new_path" 2> /dev/null`
31280 
31281     if test "x$new_path" = x; then
31282       # It's still not found. Now this is an unrecoverable error.
31283       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
31284 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
31285       has_space=`$ECHO "$complete" | $GREP " "`
31286       if test "x$has_space" != x; then
31287         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31288 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31289       fi
31290       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
31291     fi
31292   fi
31293 
31294   # Now new_path has a complete unix path to the binary
31295   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31296     # Keep paths in /bin as-is, but remove trailing .exe if any
31297     new_path="${new_path/%.exe/}"
31298     # Do not save /bin paths to all_fixpath_prefixes!
31299   else
31300     # Not in mixed or Windows style, start by that.
31301     new_path=`cmd //c echo $new_path`
31302 
31303   input_path="$new_path"
31304   # Check if we need to convert this using DOS-style short mode. If the path
31305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31306   # take no chances and rewrite it.
31307   # Note: m4 eats our [], so we need to use [ and ] instead.
31308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31309   if test "x$has_forbidden_chars" != x; then
31310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31311     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31312   fi
31313 
31314     # Output is in $new_path
31315 
31316   windows_path="$new_path"
31317   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31318     unix_path=`$CYGPATH -u "$windows_path"`
31319     new_path="$unix_path"
31320   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31321     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31322     new_path="$unix_path"
31323   fi
31324 
31325     # remove trailing .exe if any
31326     new_path="${new_path/%.exe/}"
31327 
31328     # Save the first 10 bytes of this path to the storage, so fixpath can work.
31329     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31330   fi
31331 
31332   else
31333     # We're on a posix platform. Hooray! :)
31334     # First separate the path from the arguments. This will split at the first
31335     # space.
31336     complete="$OBJC"
31337     path="${complete%% *}"
31338     tmp="$complete EOL"
31339     arguments="${tmp#* }"
31340 
31341     # Cannot rely on the command "which" here since it doesn't always work.
31342     is_absolute_path=`$ECHO "$path" | $GREP ^/`
31343     if test -z "$is_absolute_path"; then
31344       # Path to executable is not absolute. Find it.
31345       IFS_save="$IFS"
31346       IFS=:
31347       for p in $PATH; do
31348         if test -f "$p/$path" && test -x "$p/$path"; then
31349           new_path="$p/$path"
31350           break
31351         fi
31352       done
31353       IFS="$IFS_save"
31354     else
31355       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJC (as $path) failed, using $path directly." >&5
31356 $as_echo "$as_me: Resolving OBJC (as $path) failed, using $path directly." >&6;}
31357       new_path="$path"
31358     fi
31359 
31360     if test "x$new_path" = x; then
31361       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
31362 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
31363       has_space=`$ECHO "$complete" | $GREP " "`
31364       if test "x$has_space" != x; then
31365         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31366 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31367       fi
31368       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
31369     fi
31370   fi
31371 
31372   # Now join together the path and the arguments once again
31373   if test "x$arguments" != xEOL; then
31374     new_complete="$new_path ${arguments% *}"
31375   else
31376     new_complete="$new_path"
31377   fi
31378 
31379   if test "x$complete" != "x$new_complete"; then
31380     OBJC="$new_complete"
31381     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5
31382 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;}
31383   fi
31384 
31385   else
31386     OBJC=
31387   fi
31388 
31389   # Restore the flags to the user specified values.
31390   # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
31391   CFLAGS="$ORG_CFLAGS"
31392   CXXFLAGS="$ORG_CXXFLAGS"
31393   OBJCFLAGS="$ORG_OBJCFLAGS"
31394 
31395   LD="$CC"
31396   LDEXE="$CC"
31397   LDCXX="$CXX"
31398   LDEXECXX="$CXX"
31399 
31400   # LDEXE is the linker to use, when creating executables.
31401 
31402   # Linking C++ libraries.
31403 
31404   # Linking C++ executables.
31405 
31406 
31407   if test "x$OPENJDK_TARGET_OS" != xwindows; then
31408 
31409 
31410   # Publish this variable in the help.
31411 
31412 
31413   if test "x$AR" = x; then
31414     # The variable is not set by user, try to locate tool using the code snippet
31415     if test -n "$ac_tool_prefix"; then
31416   for ac_prog in ar
31417   do
31418     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31421 $as_echo_n "checking for $ac_word... " >&6; }
31422 if ${ac_cv_prog_AR+:} false; then :
31423   $as_echo_n "(cached) " >&6
31424 else
31425   if test -n "$AR"; then
31426   ac_cv_prog_AR="$AR" # Let the user override the test.
31427 else
31428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31429 for as_dir in $PATH
31430 do
31431   IFS=$as_save_IFS
31432   test -z "$as_dir" && as_dir=.
31433     for ac_exec_ext in '' $ac_executable_extensions; do
31434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31435     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
31436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31437     break 2
31438   fi
31439 done
31440   done
31441 IFS=$as_save_IFS
31442 
31443 fi
31444 fi
31445 AR=$ac_cv_prog_AR
31446 if test -n "$AR"; then
31447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31448 $as_echo "$AR" >&6; }
31449 else
31450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31451 $as_echo "no" >&6; }
31452 fi
31453 
31454 
31455     test -n "$AR" && break
31456   done
31457 fi
31458 if test -z "$AR"; then
31459   ac_ct_AR=$AR
31460   for ac_prog in ar
31461 do
31462   # Extract the first word of "$ac_prog", so it can be a program name with args.
31463 set dummy $ac_prog; ac_word=$2
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31465 $as_echo_n "checking for $ac_word... " >&6; }
31466 if ${ac_cv_prog_ac_ct_AR+:} false; then :
31467   $as_echo_n "(cached) " >&6
31468 else
31469   if test -n "$ac_ct_AR"; then
31470   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
31471 else
31472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31473 for as_dir in $PATH
31474 do
31475   IFS=$as_save_IFS
31476   test -z "$as_dir" && as_dir=.
31477     for ac_exec_ext in '' $ac_executable_extensions; do
31478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31479     ac_cv_prog_ac_ct_AR="$ac_prog"
31480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31481     break 2
31482   fi
31483 done
31484   done
31485 IFS=$as_save_IFS
31486 
31487 fi
31488 fi
31489 ac_ct_AR=$ac_cv_prog_ac_ct_AR
31490 if test -n "$ac_ct_AR"; then
31491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
31492 $as_echo "$ac_ct_AR" >&6; }
31493 else
31494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31495 $as_echo "no" >&6; }
31496 fi
31497 
31498 
31499   test -n "$ac_ct_AR" && break
31500 done
31501 
31502   if test "x$ac_ct_AR" = x; then
31503     AR=""
31504   else
31505     case $cross_compiling:$ac_tool_warned in
31506 yes:)
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31509 ac_tool_warned=yes ;;
31510 esac
31511     AR=$ac_ct_AR
31512   fi
31513 fi
31514 
31515   else
31516     # The variable is set, but is it from the command line or the environment?
31517 
31518     # Try to remove the string !AR! from our list.
31519     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/}
31520     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
31521       # If it failed, the variable was not from the command line. Ignore it,
31522       # but warn the user (except for BASH, which is always set by the calling BASH).
31523       if test "xAR" != xBASH; then
31524         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5
31525 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;}
31526       fi
31527       # Try to locate tool using the code snippet
31528       if test -n "$ac_tool_prefix"; then
31529   for ac_prog in ar
31530   do
31531     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31534 $as_echo_n "checking for $ac_word... " >&6; }
31535 if ${ac_cv_prog_AR+:} false; then :
31536   $as_echo_n "(cached) " >&6
31537 else
31538   if test -n "$AR"; then
31539   ac_cv_prog_AR="$AR" # Let the user override the test.
31540 else
31541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31542 for as_dir in $PATH
31543 do
31544   IFS=$as_save_IFS
31545   test -z "$as_dir" && as_dir=.
31546     for ac_exec_ext in '' $ac_executable_extensions; do
31547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31548     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
31549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31550     break 2
31551   fi
31552 done
31553   done
31554 IFS=$as_save_IFS
31555 
31556 fi
31557 fi
31558 AR=$ac_cv_prog_AR
31559 if test -n "$AR"; then
31560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31561 $as_echo "$AR" >&6; }
31562 else
31563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31564 $as_echo "no" >&6; }
31565 fi
31566 
31567 
31568     test -n "$AR" && break
31569   done
31570 fi
31571 if test -z "$AR"; then
31572   ac_ct_AR=$AR
31573   for ac_prog in ar
31574 do
31575   # Extract the first word of "$ac_prog", so it can be a program name with args.
31576 set dummy $ac_prog; ac_word=$2
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31578 $as_echo_n "checking for $ac_word... " >&6; }
31579 if ${ac_cv_prog_ac_ct_AR+:} false; then :
31580   $as_echo_n "(cached) " >&6
31581 else
31582   if test -n "$ac_ct_AR"; then
31583   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
31584 else
31585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31586 for as_dir in $PATH
31587 do
31588   IFS=$as_save_IFS
31589   test -z "$as_dir" && as_dir=.
31590     for ac_exec_ext in '' $ac_executable_extensions; do
31591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31592     ac_cv_prog_ac_ct_AR="$ac_prog"
31593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31594     break 2
31595   fi
31596 done
31597   done
31598 IFS=$as_save_IFS
31599 
31600 fi
31601 fi
31602 ac_ct_AR=$ac_cv_prog_ac_ct_AR
31603 if test -n "$ac_ct_AR"; then
31604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
31605 $as_echo "$ac_ct_AR" >&6; }
31606 else
31607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31608 $as_echo "no" >&6; }
31609 fi
31610 
31611 
31612   test -n "$ac_ct_AR" && break
31613 done
31614 
31615   if test "x$ac_ct_AR" = x; then
31616     AR=""
31617   else
31618     case $cross_compiling:$ac_tool_warned in
31619 yes:)
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31622 ac_tool_warned=yes ;;
31623 esac
31624     AR=$ac_ct_AR
31625   fi
31626 fi
31627 
31628     else
31629       # If it succeeded, then it was overridden by the user. We will use it
31630       # for the tool.
31631 
31632       # First remove it from the list of overridden variables, so we can test
31633       # for unknown variables in the end.
31634       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
31635 
31636       # Check if the provided tool contains a complete path.
31637       tool_specified="$AR"
31638       tool_basename="${tool_specified##*/}"
31639       if test "x$tool_basename" = "x$tool_specified"; then
31640         # A command without a complete path is provided, search $PATH.
31641         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5
31642 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;}
31643         # Extract the first word of "$tool_basename", so it can be a program name with args.
31644 set dummy $tool_basename; ac_word=$2
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31646 $as_echo_n "checking for $ac_word... " >&6; }
31647 if ${ac_cv_path_AR+:} false; then :
31648   $as_echo_n "(cached) " >&6
31649 else
31650   case $AR in
31651   [\\/]* | ?:[\\/]*)
31652   ac_cv_path_AR="$AR" # Let the user override the test with a path.
31653   ;;
31654   *)
31655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31656 for as_dir in $PATH
31657 do
31658   IFS=$as_save_IFS
31659   test -z "$as_dir" && as_dir=.
31660     for ac_exec_ext in '' $ac_executable_extensions; do
31661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31662     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
31663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31664     break 2
31665   fi
31666 done
31667   done
31668 IFS=$as_save_IFS
31669 
31670   ;;
31671 esac
31672 fi
31673 AR=$ac_cv_path_AR
31674 if test -n "$AR"; then
31675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31676 $as_echo "$AR" >&6; }
31677 else
31678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31679 $as_echo "no" >&6; }
31680 fi
31681 
31682 
31683         if test "x$AR" = x; then
31684           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
31685         fi
31686       else
31687         # Otherwise we believe it is a complete path. Use it as it is.
31688         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5
31689 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;}
31690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5
31691 $as_echo_n "checking for AR... " >&6; }
31692         if test ! -x "$tool_specified"; then
31693           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
31694 $as_echo "not found" >&6; }
31695           as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5
31696         fi
31697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
31698 $as_echo "$tool_specified" >&6; }
31699       fi
31700     fi
31701   fi
31702 
31703 
31704 
31705   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31706 
31707   # First separate the path from the arguments. This will split at the first
31708   # space.
31709   complete="$AR"
31710   path="${complete%% *}"
31711   tmp="$complete EOL"
31712   arguments="${tmp#* }"
31713 
31714   # Input might be given as Windows format, start by converting to
31715   # unix format.
31716   new_path=`$CYGPATH -u "$path"`
31717 
31718   # Now try to locate executable using which
31719   new_path=`$WHICH "$new_path" 2> /dev/null`
31720   # bat and cmd files are not always considered executable in cygwin causing which
31721   # to not find them
31722   if test "x$new_path" = x \
31723       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31724       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31725     new_path=`$CYGPATH -u "$path"`
31726   fi
31727   if test "x$new_path" = x; then
31728     # Oops. Which didn't find the executable.
31729     # The splitting of arguments from the executable at a space might have been incorrect,
31730     # since paths with space are more likely in Windows. Give it another try with the whole
31731     # argument.
31732     path="$complete"
31733     arguments="EOL"
31734     new_path=`$CYGPATH -u "$path"`
31735     new_path=`$WHICH "$new_path" 2> /dev/null`
31736     # bat and cmd files are not always considered executable in cygwin causing which
31737     # to not find them
31738     if test "x$new_path" = x \
31739         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31740         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31741       new_path=`$CYGPATH -u "$path"`
31742     fi
31743     if test "x$new_path" = x; then
31744       # It's still not found. Now this is an unrecoverable error.
31745       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
31746 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
31747       has_space=`$ECHO "$complete" | $GREP " "`
31748       if test "x$has_space" != x; then
31749         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31750 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31751       fi
31752       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
31753     fi
31754   fi
31755 
31756   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31757   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31758   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31759   # "foo.exe" is OK but "foo" is an error.
31760   #
31761   # This test is therefore slightly more accurate than "test -f" to check for file presence.
31762   # It is also a way to make sure we got the proper file name for the real test later on.
31763   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31764   if test "x$test_shortpath" = x; then
31765     # Short path failed, file does not exist as specified.
31766     # Try adding .exe or .cmd
31767     if test -f "${new_path}.exe"; then
31768       input_to_shortpath="${new_path}.exe"
31769     elif test -f "${new_path}.cmd"; then
31770       input_to_shortpath="${new_path}.cmd"
31771     else
31772       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5
31773 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;}
31774       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31775 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31776       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
31777     fi
31778   else
31779     input_to_shortpath="$new_path"
31780   fi
31781 
31782   # Call helper function which possibly converts this using DOS-style short mode.
31783   # If so, the updated path is stored in $new_path.
31784   new_path="$input_to_shortpath"
31785 
31786   input_path="$input_to_shortpath"
31787   # Check if we need to convert this using DOS-style short mode. If the path
31788   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31789   # take no chances and rewrite it.
31790   # Note: m4 eats our [], so we need to use [ and ] instead.
31791   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31792   if test "x$has_forbidden_chars" != x; then
31793     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31794     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31795     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31796     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31797       # Going to short mode and back again did indeed matter. Since short mode is
31798       # case insensitive, let's make it lowercase to improve readability.
31799       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31800       # Now convert it back to Unix-stile (cygpath)
31801       input_path=`$CYGPATH -u "$shortmode_path"`
31802       new_path="$input_path"
31803     fi
31804   fi
31805 
31806   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31807   if test "x$test_cygdrive_prefix" = x; then
31808     # As a simple fix, exclude /usr/bin since it's not a real path.
31809     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31810       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31811       # a path prefixed by /cygdrive for fixpath to work.
31812       new_path="$CYGWIN_ROOT_PATH$input_path"
31813     fi
31814   fi
31815 
31816   # remove trailing .exe if any
31817   new_path="${new_path/%.exe/}"
31818 
31819   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31820 
31821   # First separate the path from the arguments. This will split at the first
31822   # space.
31823   complete="$AR"
31824   path="${complete%% *}"
31825   tmp="$complete EOL"
31826   arguments="${tmp#* }"
31827 
31828   # Input might be given as Windows format, start by converting to
31829   # unix format.
31830   new_path="$path"
31831 
31832   windows_path="$new_path"
31833   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31834     unix_path=`$CYGPATH -u "$windows_path"`
31835     new_path="$unix_path"
31836   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31837     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31838     new_path="$unix_path"
31839   fi
31840 
31841 
31842   # Now try to locate executable using which
31843   new_path=`$WHICH "$new_path" 2> /dev/null`
31844 
31845   if test "x$new_path" = x; then
31846     # Oops. Which didn't find the executable.
31847     # The splitting of arguments from the executable at a space might have been incorrect,
31848     # since paths with space are more likely in Windows. Give it another try with the whole
31849     # argument.
31850     path="$complete"
31851     arguments="EOL"
31852     new_path="$path"
31853 
31854   windows_path="$new_path"
31855   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31856     unix_path=`$CYGPATH -u "$windows_path"`
31857     new_path="$unix_path"
31858   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31859     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31860     new_path="$unix_path"
31861   fi
31862 
31863 
31864     new_path=`$WHICH "$new_path" 2> /dev/null`
31865 
31866     if test "x$new_path" = x; then
31867       # It's still not found. Now this is an unrecoverable error.
31868       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
31869 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
31870       has_space=`$ECHO "$complete" | $GREP " "`
31871       if test "x$has_space" != x; then
31872         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31873 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31874       fi
31875       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
31876     fi
31877   fi
31878 
31879   # Now new_path has a complete unix path to the binary
31880   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31881     # Keep paths in /bin as-is, but remove trailing .exe if any
31882     new_path="${new_path/%.exe/}"
31883     # Do not save /bin paths to all_fixpath_prefixes!
31884   else
31885     # Not in mixed or Windows style, start by that.
31886     new_path=`cmd //c echo $new_path`
31887 
31888   input_path="$new_path"
31889   # Check if we need to convert this using DOS-style short mode. If the path
31890   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31891   # take no chances and rewrite it.
31892   # Note: m4 eats our [], so we need to use [ and ] instead.
31893   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31894   if test "x$has_forbidden_chars" != x; then
31895     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31896     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31897   fi
31898 
31899     # Output is in $new_path
31900 
31901   windows_path="$new_path"
31902   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31903     unix_path=`$CYGPATH -u "$windows_path"`
31904     new_path="$unix_path"
31905   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31906     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31907     new_path="$unix_path"
31908   fi
31909 
31910     # remove trailing .exe if any
31911     new_path="${new_path/%.exe/}"
31912 
31913     # Save the first 10 bytes of this path to the storage, so fixpath can work.
31914     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31915   fi
31916 
31917   else
31918     # We're on a posix platform. Hooray! :)
31919     # First separate the path from the arguments. This will split at the first
31920     # space.
31921     complete="$AR"
31922     path="${complete%% *}"
31923     tmp="$complete EOL"
31924     arguments="${tmp#* }"
31925 
31926     # Cannot rely on the command "which" here since it doesn't always work.
31927     is_absolute_path=`$ECHO "$path" | $GREP ^/`
31928     if test -z "$is_absolute_path"; then
31929       # Path to executable is not absolute. Find it.
31930       IFS_save="$IFS"
31931       IFS=:
31932       for p in $PATH; do
31933         if test -f "$p/$path" && test -x "$p/$path"; then
31934           new_path="$p/$path"
31935           break
31936         fi
31937       done
31938       IFS="$IFS_save"
31939     else
31940       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AR (as $path) failed, using $path directly." >&5
31941 $as_echo "$as_me: Resolving AR (as $path) failed, using $path directly." >&6;}
31942       new_path="$path"
31943     fi
31944 
31945     if test "x$new_path" = x; then
31946       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
31947 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
31948       has_space=`$ECHO "$complete" | $GREP " "`
31949       if test "x$has_space" != x; then
31950         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31951 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31952       fi
31953       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
31954     fi
31955   fi
31956 
31957   # Now join together the path and the arguments once again
31958   if test "x$arguments" != xEOL; then
31959     new_complete="$new_path ${arguments% *}"
31960   else
31961     new_complete="$new_path"
31962   fi
31963 
31964   if test "x$complete" != "x$new_complete"; then
31965     AR="$new_complete"
31966     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
31967 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
31968   fi
31969 
31970   fi
31971   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
31972     ARFLAGS="-r"
31973   elif test "x$OPENJDK_TARGET_OS" = xaix; then
31974     ARFLAGS="-X64"
31975   else
31976     ARFLAGS=""
31977   fi
31978 
31979 
31980   # For hotspot, we need these in Windows mixed path; other platforms keep them the same
31981   HOTSPOT_CXX="$CXX"
31982   HOTSPOT_LD="$LD"
31983 
31984 
31985 
31986   COMPILER_NAME=gcc
31987   COMPILER_TYPE=CC
31988   if test "x$OPENJDK_TARGET_OS" = xwindows; then :
31989 
31990     # For now, assume that we are always compiling using cl.exe.
31991     CC_OUT_OPTION=-Fo
31992     EXE_OUT_OPTION=-out:
31993     LD_OUT_OPTION=-out:
31994     AR_OUT_OPTION=-out:
31995     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
31996     # program for something completely different.
31997     # Extract the first word of "link", so it can be a program name with args.
31998 set dummy link; ac_word=$2
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32000 $as_echo_n "checking for $ac_word... " >&6; }
32001 if ${ac_cv_prog_WINLD+:} false; then :
32002   $as_echo_n "(cached) " >&6
32003 else
32004   if test -n "$WINLD"; then
32005   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
32006 else
32007   ac_prog_rejected=no
32008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32009 for as_dir in $PATH
32010 do
32011   IFS=$as_save_IFS
32012   test -z "$as_dir" && as_dir=.
32013     for ac_exec_ext in '' $ac_executable_extensions; do
32014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32015     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
32016        ac_prog_rejected=yes
32017        continue
32018      fi
32019     ac_cv_prog_WINLD="link"
32020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32021     break 2
32022   fi
32023 done
32024   done
32025 IFS=$as_save_IFS
32026 
32027 if test $ac_prog_rejected = yes; then
32028   # We found a bogon in the path, so make sure we never use it.
32029   set dummy $ac_cv_prog_WINLD
32030   shift
32031   if test $# != 0; then
32032     # We chose a different compiler from the bogus one.
32033     # However, it has the same basename, so the bogon will be chosen
32034     # first if we set WINLD to just the basename; use the full file name.
32035     shift
32036     ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
32037   fi
32038 fi
32039 fi
32040 fi
32041 WINLD=$ac_cv_prog_WINLD
32042 if test -n "$WINLD"; then
32043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
32044 $as_echo "$WINLD" >&6; }
32045 else
32046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32048 fi
32049 
32050 
32051     # Since we must ignore the first found link, WINLD will contain
32052     # the full path to the link.exe program.
32053 
32054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32055 
32056   # First separate the path from the arguments. This will split at the first
32057   # space.
32058   complete="$WINLD"
32059   path="${complete%% *}"
32060   tmp="$complete EOL"
32061   arguments="${tmp#* }"
32062 
32063   # Input might be given as Windows format, start by converting to
32064   # unix format.
32065   new_path=`$CYGPATH -u "$path"`
32066 
32067   # Now try to locate executable using which
32068   new_path=`$WHICH "$new_path" 2> /dev/null`
32069   # bat and cmd files are not always considered executable in cygwin causing which
32070   # to not find them
32071   if test "x$new_path" = x \
32072       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32073       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32074     new_path=`$CYGPATH -u "$path"`
32075   fi
32076   if test "x$new_path" = x; then
32077     # Oops. Which didn't find the executable.
32078     # The splitting of arguments from the executable at a space might have been incorrect,
32079     # since paths with space are more likely in Windows. Give it another try with the whole
32080     # argument.
32081     path="$complete"
32082     arguments="EOL"
32083     new_path=`$CYGPATH -u "$path"`
32084     new_path=`$WHICH "$new_path" 2> /dev/null`
32085     # bat and cmd files are not always considered executable in cygwin causing which
32086     # to not find them
32087     if test "x$new_path" = x \
32088         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32089         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32090       new_path=`$CYGPATH -u "$path"`
32091     fi
32092     if test "x$new_path" = x; then
32093       # It's still not found. Now this is an unrecoverable error.
32094       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
32095 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
32096       has_space=`$ECHO "$complete" | $GREP " "`
32097       if test "x$has_space" != x; then
32098         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32099 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32100       fi
32101       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
32102     fi
32103   fi
32104 
32105   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
32106   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
32107   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
32108   # "foo.exe" is OK but "foo" is an error.
32109   #
32110   # This test is therefore slightly more accurate than "test -f" to check for file presence.
32111   # It is also a way to make sure we got the proper file name for the real test later on.
32112   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
32113   if test "x$test_shortpath" = x; then
32114     # Short path failed, file does not exist as specified.
32115     # Try adding .exe or .cmd
32116     if test -f "${new_path}.exe"; then
32117       input_to_shortpath="${new_path}.exe"
32118     elif test -f "${new_path}.cmd"; then
32119       input_to_shortpath="${new_path}.cmd"
32120     else
32121       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$new_path\", is invalid." >&5
32122 $as_echo "$as_me: The path of WINLD, which resolves as \"$new_path\", is invalid." >&6;}
32123       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
32124 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
32125       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
32126     fi
32127   else
32128     input_to_shortpath="$new_path"
32129   fi
32130 
32131   # Call helper function which possibly converts this using DOS-style short mode.
32132   # If so, the updated path is stored in $new_path.
32133   new_path="$input_to_shortpath"
32134 
32135   input_path="$input_to_shortpath"
32136   # Check if we need to convert this using DOS-style short mode. If the path
32137   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32138   # take no chances and rewrite it.
32139   # Note: m4 eats our [], so we need to use [ and ] instead.
32140   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32141   if test "x$has_forbidden_chars" != x; then
32142     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32143     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32144     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32145     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32146       # Going to short mode and back again did indeed matter. Since short mode is
32147       # case insensitive, let's make it lowercase to improve readability.
32148       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32149       # Now convert it back to Unix-stile (cygpath)
32150       input_path=`$CYGPATH -u "$shortmode_path"`
32151       new_path="$input_path"
32152     fi
32153   fi
32154 
32155   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32156   if test "x$test_cygdrive_prefix" = x; then
32157     # As a simple fix, exclude /usr/bin since it's not a real path.
32158     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32159       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32160       # a path prefixed by /cygdrive for fixpath to work.
32161       new_path="$CYGWIN_ROOT_PATH$input_path"
32162     fi
32163   fi
32164 
32165   # remove trailing .exe if any
32166   new_path="${new_path/%.exe/}"
32167 
32168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32169 
32170   # First separate the path from the arguments. This will split at the first
32171   # space.
32172   complete="$WINLD"
32173   path="${complete%% *}"
32174   tmp="$complete EOL"
32175   arguments="${tmp#* }"
32176 
32177   # Input might be given as Windows format, start by converting to
32178   # unix format.
32179   new_path="$path"
32180 
32181   windows_path="$new_path"
32182   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32183     unix_path=`$CYGPATH -u "$windows_path"`
32184     new_path="$unix_path"
32185   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32186     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32187     new_path="$unix_path"
32188   fi
32189 
32190 
32191   # Now try to locate executable using which
32192   new_path=`$WHICH "$new_path" 2> /dev/null`
32193 
32194   if test "x$new_path" = x; then
32195     # Oops. Which didn't find the executable.
32196     # The splitting of arguments from the executable at a space might have been incorrect,
32197     # since paths with space are more likely in Windows. Give it another try with the whole
32198     # argument.
32199     path="$complete"
32200     arguments="EOL"
32201     new_path="$path"
32202 
32203   windows_path="$new_path"
32204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32205     unix_path=`$CYGPATH -u "$windows_path"`
32206     new_path="$unix_path"
32207   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32208     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32209     new_path="$unix_path"
32210   fi
32211 
32212 
32213     new_path=`$WHICH "$new_path" 2> /dev/null`
32214 
32215     if test "x$new_path" = x; then
32216       # It's still not found. Now this is an unrecoverable error.
32217       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
32218 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
32219       has_space=`$ECHO "$complete" | $GREP " "`
32220       if test "x$has_space" != x; then
32221         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32222 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32223       fi
32224       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
32225     fi
32226   fi
32227 
32228   # Now new_path has a complete unix path to the binary
32229   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32230     # Keep paths in /bin as-is, but remove trailing .exe if any
32231     new_path="${new_path/%.exe/}"
32232     # Do not save /bin paths to all_fixpath_prefixes!
32233   else
32234     # Not in mixed or Windows style, start by that.
32235     new_path=`cmd //c echo $new_path`
32236 
32237   input_path="$new_path"
32238   # Check if we need to convert this using DOS-style short mode. If the path
32239   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32240   # take no chances and rewrite it.
32241   # Note: m4 eats our [], so we need to use [ and ] instead.
32242   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32243   if test "x$has_forbidden_chars" != x; then
32244     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32245     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32246   fi
32247 
32248     # Output is in $new_path
32249 
32250   windows_path="$new_path"
32251   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32252     unix_path=`$CYGPATH -u "$windows_path"`
32253     new_path="$unix_path"
32254   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32255     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32256     new_path="$unix_path"
32257   fi
32258 
32259     # remove trailing .exe if any
32260     new_path="${new_path/%.exe/}"
32261 
32262     # Save the first 10 bytes of this path to the storage, so fixpath can work.
32263     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32264   fi
32265 
32266   else
32267     # We're on a posix platform. Hooray! :)
32268     # First separate the path from the arguments. This will split at the first
32269     # space.
32270     complete="$WINLD"
32271     path="${complete%% *}"
32272     tmp="$complete EOL"
32273     arguments="${tmp#* }"
32274 
32275     # Cannot rely on the command "which" here since it doesn't always work.
32276     is_absolute_path=`$ECHO "$path" | $GREP ^/`
32277     if test -z "$is_absolute_path"; then
32278       # Path to executable is not absolute. Find it.
32279       IFS_save="$IFS"
32280       IFS=:
32281       for p in $PATH; do
32282         if test -f "$p/$path" && test -x "$p/$path"; then
32283           new_path="$p/$path"
32284           break
32285         fi
32286       done
32287       IFS="$IFS_save"
32288     else
32289       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINLD (as $path) failed, using $path directly." >&5
32290 $as_echo "$as_me: Resolving WINLD (as $path) failed, using $path directly." >&6;}
32291       new_path="$path"
32292     fi
32293 
32294     if test "x$new_path" = x; then
32295       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
32296 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
32297       has_space=`$ECHO "$complete" | $GREP " "`
32298       if test "x$has_space" != x; then
32299         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32300 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32301       fi
32302       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
32303     fi
32304   fi
32305 
32306   # Now join together the path and the arguments once again
32307   if test "x$arguments" != xEOL; then
32308     new_complete="$new_path ${arguments% *}"
32309   else
32310     new_complete="$new_path"
32311   fi
32312 
32313   if test "x$complete" != "x$new_complete"; then
32314     WINLD="$new_complete"
32315     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINLD to \"$new_complete\"" >&5
32316 $as_echo "$as_me: Rewriting WINLD to \"$new_complete\"" >&6;}
32317   fi
32318 
32319     printf "Windows linker was found at $WINLD\n"
32320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
32321 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
32322     "$WINLD" --version > /dev/null
32323     if test $? -eq 0 ; then
32324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32325 $as_echo "no" >&6; }
32326       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
32327     else
32328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32329 $as_echo "yes" >&6; }
32330     fi
32331     LD="$WINLD"
32332     LDEXE="$WINLD"
32333     LDCXX="$WINLD"
32334     LDEXECXX="$WINLD"
32335 
32336     # Extract the first word of "mt", so it can be a program name with args.
32337 set dummy mt; ac_word=$2
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32339 $as_echo_n "checking for $ac_word... " >&6; }
32340 if ${ac_cv_prog_MT+:} false; then :
32341   $as_echo_n "(cached) " >&6
32342 else
32343   if test -n "$MT"; then
32344   ac_cv_prog_MT="$MT" # Let the user override the test.
32345 else
32346   ac_prog_rejected=no
32347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348 for as_dir in $PATH
32349 do
32350   IFS=$as_save_IFS
32351   test -z "$as_dir" && as_dir=.
32352     for ac_exec_ext in '' $ac_executable_extensions; do
32353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32354     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
32355        ac_prog_rejected=yes
32356        continue
32357      fi
32358     ac_cv_prog_MT="mt"
32359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32360     break 2
32361   fi
32362 done
32363   done
32364 IFS=$as_save_IFS
32365 
32366 if test $ac_prog_rejected = yes; then
32367   # We found a bogon in the path, so make sure we never use it.
32368   set dummy $ac_cv_prog_MT
32369   shift
32370   if test $# != 0; then
32371     # We chose a different compiler from the bogus one.
32372     # However, it has the same basename, so the bogon will be chosen
32373     # first if we set MT to just the basename; use the full file name.
32374     shift
32375     ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
32376   fi
32377 fi
32378 fi
32379 fi
32380 MT=$ac_cv_prog_MT
32381 if test -n "$MT"; then
32382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
32383 $as_echo "$MT" >&6; }
32384 else
32385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32386 $as_echo "no" >&6; }
32387 fi
32388 
32389 
32390 
32391   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32392 
32393   # First separate the path from the arguments. This will split at the first
32394   # space.
32395   complete="$MT"
32396   path="${complete%% *}"
32397   tmp="$complete EOL"
32398   arguments="${tmp#* }"
32399 
32400   # Input might be given as Windows format, start by converting to
32401   # unix format.
32402   new_path=`$CYGPATH -u "$path"`
32403 
32404   # Now try to locate executable using which
32405   new_path=`$WHICH "$new_path" 2> /dev/null`
32406   # bat and cmd files are not always considered executable in cygwin causing which
32407   # to not find them
32408   if test "x$new_path" = x \
32409       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32410       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32411     new_path=`$CYGPATH -u "$path"`
32412   fi
32413   if test "x$new_path" = x; then
32414     # Oops. Which didn't find the executable.
32415     # The splitting of arguments from the executable at a space might have been incorrect,
32416     # since paths with space are more likely in Windows. Give it another try with the whole
32417     # argument.
32418     path="$complete"
32419     arguments="EOL"
32420     new_path=`$CYGPATH -u "$path"`
32421     new_path=`$WHICH "$new_path" 2> /dev/null`
32422     # bat and cmd files are not always considered executable in cygwin causing which
32423     # to not find them
32424     if test "x$new_path" = x \
32425         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32426         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32427       new_path=`$CYGPATH -u "$path"`
32428     fi
32429     if test "x$new_path" = x; then
32430       # It's still not found. Now this is an unrecoverable error.
32431       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
32432 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
32433       has_space=`$ECHO "$complete" | $GREP " "`
32434       if test "x$has_space" != x; then
32435         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32436 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32437       fi
32438       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
32439     fi
32440   fi
32441 
32442   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
32443   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
32444   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
32445   # "foo.exe" is OK but "foo" is an error.
32446   #
32447   # This test is therefore slightly more accurate than "test -f" to check for file presence.
32448   # It is also a way to make sure we got the proper file name for the real test later on.
32449   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
32450   if test "x$test_shortpath" = x; then
32451     # Short path failed, file does not exist as specified.
32452     # Try adding .exe or .cmd
32453     if test -f "${new_path}.exe"; then
32454       input_to_shortpath="${new_path}.exe"
32455     elif test -f "${new_path}.cmd"; then
32456       input_to_shortpath="${new_path}.cmd"
32457     else
32458       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5
32459 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;}
32460       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
32461 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
32462       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
32463     fi
32464   else
32465     input_to_shortpath="$new_path"
32466   fi
32467 
32468   # Call helper function which possibly converts this using DOS-style short mode.
32469   # If so, the updated path is stored in $new_path.
32470   new_path="$input_to_shortpath"
32471 
32472   input_path="$input_to_shortpath"
32473   # Check if we need to convert this using DOS-style short mode. If the path
32474   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32475   # take no chances and rewrite it.
32476   # Note: m4 eats our [], so we need to use [ and ] instead.
32477   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32478   if test "x$has_forbidden_chars" != x; then
32479     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32480     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32481     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32482     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32483       # Going to short mode and back again did indeed matter. Since short mode is
32484       # case insensitive, let's make it lowercase to improve readability.
32485       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32486       # Now convert it back to Unix-stile (cygpath)
32487       input_path=`$CYGPATH -u "$shortmode_path"`
32488       new_path="$input_path"
32489     fi
32490   fi
32491 
32492   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32493   if test "x$test_cygdrive_prefix" = x; then
32494     # As a simple fix, exclude /usr/bin since it's not a real path.
32495     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32496       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32497       # a path prefixed by /cygdrive for fixpath to work.
32498       new_path="$CYGWIN_ROOT_PATH$input_path"
32499     fi
32500   fi
32501 
32502   # remove trailing .exe if any
32503   new_path="${new_path/%.exe/}"
32504 
32505   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32506 
32507   # First separate the path from the arguments. This will split at the first
32508   # space.
32509   complete="$MT"
32510   path="${complete%% *}"
32511   tmp="$complete EOL"
32512   arguments="${tmp#* }"
32513 
32514   # Input might be given as Windows format, start by converting to
32515   # unix format.
32516   new_path="$path"
32517 
32518   windows_path="$new_path"
32519   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32520     unix_path=`$CYGPATH -u "$windows_path"`
32521     new_path="$unix_path"
32522   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32523     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32524     new_path="$unix_path"
32525   fi
32526 
32527 
32528   # Now try to locate executable using which
32529   new_path=`$WHICH "$new_path" 2> /dev/null`
32530 
32531   if test "x$new_path" = x; then
32532     # Oops. Which didn't find the executable.
32533     # The splitting of arguments from the executable at a space might have been incorrect,
32534     # since paths with space are more likely in Windows. Give it another try with the whole
32535     # argument.
32536     path="$complete"
32537     arguments="EOL"
32538     new_path="$path"
32539 
32540   windows_path="$new_path"
32541   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32542     unix_path=`$CYGPATH -u "$windows_path"`
32543     new_path="$unix_path"
32544   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32545     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32546     new_path="$unix_path"
32547   fi
32548 
32549 
32550     new_path=`$WHICH "$new_path" 2> /dev/null`
32551 
32552     if test "x$new_path" = x; then
32553       # It's still not found. Now this is an unrecoverable error.
32554       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
32555 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
32556       has_space=`$ECHO "$complete" | $GREP " "`
32557       if test "x$has_space" != x; then
32558         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32559 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32560       fi
32561       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
32562     fi
32563   fi
32564 
32565   # Now new_path has a complete unix path to the binary
32566   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32567     # Keep paths in /bin as-is, but remove trailing .exe if any
32568     new_path="${new_path/%.exe/}"
32569     # Do not save /bin paths to all_fixpath_prefixes!
32570   else
32571     # Not in mixed or Windows style, start by that.
32572     new_path=`cmd //c echo $new_path`
32573 
32574   input_path="$new_path"
32575   # Check if we need to convert this using DOS-style short mode. If the path
32576   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32577   # take no chances and rewrite it.
32578   # Note: m4 eats our [], so we need to use [ and ] instead.
32579   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32580   if test "x$has_forbidden_chars" != x; then
32581     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32582     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32583   fi
32584 
32585     # Output is in $new_path
32586 
32587   windows_path="$new_path"
32588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32589     unix_path=`$CYGPATH -u "$windows_path"`
32590     new_path="$unix_path"
32591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32593     new_path="$unix_path"
32594   fi
32595 
32596     # remove trailing .exe if any
32597     new_path="${new_path/%.exe/}"
32598 
32599     # Save the first 10 bytes of this path to the storage, so fixpath can work.
32600     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32601   fi
32602 
32603   else
32604     # We're on a posix platform. Hooray! :)
32605     # First separate the path from the arguments. This will split at the first
32606     # space.
32607     complete="$MT"
32608     path="${complete%% *}"
32609     tmp="$complete EOL"
32610     arguments="${tmp#* }"
32611 
32612     # Cannot rely on the command "which" here since it doesn't always work.
32613     is_absolute_path=`$ECHO "$path" | $GREP ^/`
32614     if test -z "$is_absolute_path"; then
32615       # Path to executable is not absolute. Find it.
32616       IFS_save="$IFS"
32617       IFS=:
32618       for p in $PATH; do
32619         if test -f "$p/$path" && test -x "$p/$path"; then
32620           new_path="$p/$path"
32621           break
32622         fi
32623       done
32624       IFS="$IFS_save"
32625     else
32626       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MT (as $path) failed, using $path directly." >&5
32627 $as_echo "$as_me: Resolving MT (as $path) failed, using $path directly." >&6;}
32628       new_path="$path"
32629     fi
32630 
32631     if test "x$new_path" = x; then
32632       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
32633 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
32634       has_space=`$ECHO "$complete" | $GREP " "`
32635       if test "x$has_space" != x; then
32636         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32637 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32638       fi
32639       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
32640     fi
32641   fi
32642 
32643   # Now join together the path and the arguments once again
32644   if test "x$arguments" != xEOL; then
32645     new_complete="$new_path ${arguments% *}"
32646   else
32647     new_complete="$new_path"
32648   fi
32649 
32650   if test "x$complete" != "x$new_complete"; then
32651     MT="$new_complete"
32652     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
32653 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
32654   fi
32655 
32656     # The resource compiler
32657     # Extract the first word of "rc", so it can be a program name with args.
32658 set dummy rc; ac_word=$2
32659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32660 $as_echo_n "checking for $ac_word... " >&6; }
32661 if ${ac_cv_prog_RC+:} false; then :
32662   $as_echo_n "(cached) " >&6
32663 else
32664   if test -n "$RC"; then
32665   ac_cv_prog_RC="$RC" # Let the user override the test.
32666 else
32667   ac_prog_rejected=no
32668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32669 for as_dir in $PATH
32670 do
32671   IFS=$as_save_IFS
32672   test -z "$as_dir" && as_dir=.
32673     for ac_exec_ext in '' $ac_executable_extensions; do
32674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32675     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
32676        ac_prog_rejected=yes
32677        continue
32678      fi
32679     ac_cv_prog_RC="rc"
32680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32681     break 2
32682   fi
32683 done
32684   done
32685 IFS=$as_save_IFS
32686 
32687 if test $ac_prog_rejected = yes; then
32688   # We found a bogon in the path, so make sure we never use it.
32689   set dummy $ac_cv_prog_RC
32690   shift
32691   if test $# != 0; then
32692     # We chose a different compiler from the bogus one.
32693     # However, it has the same basename, so the bogon will be chosen
32694     # first if we set RC to just the basename; use the full file name.
32695     shift
32696     ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
32697   fi
32698 fi
32699 fi
32700 fi
32701 RC=$ac_cv_prog_RC
32702 if test -n "$RC"; then
32703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
32704 $as_echo "$RC" >&6; }
32705 else
32706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32707 $as_echo "no" >&6; }
32708 fi
32709 
32710 
32711 
32712   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32713 
32714   # First separate the path from the arguments. This will split at the first
32715   # space.
32716   complete="$RC"
32717   path="${complete%% *}"
32718   tmp="$complete EOL"
32719   arguments="${tmp#* }"
32720 
32721   # Input might be given as Windows format, start by converting to
32722   # unix format.
32723   new_path=`$CYGPATH -u "$path"`
32724 
32725   # Now try to locate executable using which
32726   new_path=`$WHICH "$new_path" 2> /dev/null`
32727   # bat and cmd files are not always considered executable in cygwin causing which
32728   # to not find them
32729   if test "x$new_path" = x \
32730       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32731       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32732     new_path=`$CYGPATH -u "$path"`
32733   fi
32734   if test "x$new_path" = x; then
32735     # Oops. Which didn't find the executable.
32736     # The splitting of arguments from the executable at a space might have been incorrect,
32737     # since paths with space are more likely in Windows. Give it another try with the whole
32738     # argument.
32739     path="$complete"
32740     arguments="EOL"
32741     new_path=`$CYGPATH -u "$path"`
32742     new_path=`$WHICH "$new_path" 2> /dev/null`
32743     # bat and cmd files are not always considered executable in cygwin causing which
32744     # to not find them
32745     if test "x$new_path" = x \
32746         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32747         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32748       new_path=`$CYGPATH -u "$path"`
32749     fi
32750     if test "x$new_path" = x; then
32751       # It's still not found. Now this is an unrecoverable error.
32752       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
32753 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
32754       has_space=`$ECHO "$complete" | $GREP " "`
32755       if test "x$has_space" != x; then
32756         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32758       fi
32759       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
32760     fi
32761   fi
32762 
32763   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
32764   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
32765   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
32766   # "foo.exe" is OK but "foo" is an error.
32767   #
32768   # This test is therefore slightly more accurate than "test -f" to check for file presence.
32769   # It is also a way to make sure we got the proper file name for the real test later on.
32770   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
32771   if test "x$test_shortpath" = x; then
32772     # Short path failed, file does not exist as specified.
32773     # Try adding .exe or .cmd
32774     if test -f "${new_path}.exe"; then
32775       input_to_shortpath="${new_path}.exe"
32776     elif test -f "${new_path}.cmd"; then
32777       input_to_shortpath="${new_path}.cmd"
32778     else
32779       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5
32780 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;}
32781       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
32782 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
32783       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
32784     fi
32785   else
32786     input_to_shortpath="$new_path"
32787   fi
32788 
32789   # Call helper function which possibly converts this using DOS-style short mode.
32790   # If so, the updated path is stored in $new_path.
32791   new_path="$input_to_shortpath"
32792 
32793   input_path="$input_to_shortpath"
32794   # Check if we need to convert this using DOS-style short mode. If the path
32795   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32796   # take no chances and rewrite it.
32797   # Note: m4 eats our [], so we need to use [ and ] instead.
32798   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32799   if test "x$has_forbidden_chars" != x; then
32800     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32801     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32802     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32803     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32804       # Going to short mode and back again did indeed matter. Since short mode is
32805       # case insensitive, let's make it lowercase to improve readability.
32806       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32807       # Now convert it back to Unix-stile (cygpath)
32808       input_path=`$CYGPATH -u "$shortmode_path"`
32809       new_path="$input_path"
32810     fi
32811   fi
32812 
32813   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32814   if test "x$test_cygdrive_prefix" = x; then
32815     # As a simple fix, exclude /usr/bin since it's not a real path.
32816     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32817       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32818       # a path prefixed by /cygdrive for fixpath to work.
32819       new_path="$CYGWIN_ROOT_PATH$input_path"
32820     fi
32821   fi
32822 
32823   # remove trailing .exe if any
32824   new_path="${new_path/%.exe/}"
32825 
32826   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32827 
32828   # First separate the path from the arguments. This will split at the first
32829   # space.
32830   complete="$RC"
32831   path="${complete%% *}"
32832   tmp="$complete EOL"
32833   arguments="${tmp#* }"
32834 
32835   # Input might be given as Windows format, start by converting to
32836   # unix format.
32837   new_path="$path"
32838 
32839   windows_path="$new_path"
32840   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32841     unix_path=`$CYGPATH -u "$windows_path"`
32842     new_path="$unix_path"
32843   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32844     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32845     new_path="$unix_path"
32846   fi
32847 
32848 
32849   # Now try to locate executable using which
32850   new_path=`$WHICH "$new_path" 2> /dev/null`
32851 
32852   if test "x$new_path" = x; then
32853     # Oops. Which didn't find the executable.
32854     # The splitting of arguments from the executable at a space might have been incorrect,
32855     # since paths with space are more likely in Windows. Give it another try with the whole
32856     # argument.
32857     path="$complete"
32858     arguments="EOL"
32859     new_path="$path"
32860 
32861   windows_path="$new_path"
32862   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32863     unix_path=`$CYGPATH -u "$windows_path"`
32864     new_path="$unix_path"
32865   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32866     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32867     new_path="$unix_path"
32868   fi
32869 
32870 
32871     new_path=`$WHICH "$new_path" 2> /dev/null`
32872 
32873     if test "x$new_path" = x; then
32874       # It's still not found. Now this is an unrecoverable error.
32875       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
32876 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
32877       has_space=`$ECHO "$complete" | $GREP " "`
32878       if test "x$has_space" != x; then
32879         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32880 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32881       fi
32882       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
32883     fi
32884   fi
32885 
32886   # Now new_path has a complete unix path to the binary
32887   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32888     # Keep paths in /bin as-is, but remove trailing .exe if any
32889     new_path="${new_path/%.exe/}"
32890     # Do not save /bin paths to all_fixpath_prefixes!
32891   else
32892     # Not in mixed or Windows style, start by that.
32893     new_path=`cmd //c echo $new_path`
32894 
32895   input_path="$new_path"
32896   # Check if we need to convert this using DOS-style short mode. If the path
32897   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32898   # take no chances and rewrite it.
32899   # Note: m4 eats our [], so we need to use [ and ] instead.
32900   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32901   if test "x$has_forbidden_chars" != x; then
32902     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32903     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32904   fi
32905 
32906     # Output is in $new_path
32907 
32908   windows_path="$new_path"
32909   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32910     unix_path=`$CYGPATH -u "$windows_path"`
32911     new_path="$unix_path"
32912   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32913     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32914     new_path="$unix_path"
32915   fi
32916 
32917     # remove trailing .exe if any
32918     new_path="${new_path/%.exe/}"
32919 
32920     # Save the first 10 bytes of this path to the storage, so fixpath can work.
32921     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32922   fi
32923 
32924   else
32925     # We're on a posix platform. Hooray! :)
32926     # First separate the path from the arguments. This will split at the first
32927     # space.
32928     complete="$RC"
32929     path="${complete%% *}"
32930     tmp="$complete EOL"
32931     arguments="${tmp#* }"
32932 
32933     # Cannot rely on the command "which" here since it doesn't always work.
32934     is_absolute_path=`$ECHO "$path" | $GREP ^/`
32935     if test -z "$is_absolute_path"; then
32936       # Path to executable is not absolute. Find it.
32937       IFS_save="$IFS"
32938       IFS=:
32939       for p in $PATH; do
32940         if test -f "$p/$path" && test -x "$p/$path"; then
32941           new_path="$p/$path"
32942           break
32943         fi
32944       done
32945       IFS="$IFS_save"
32946     else
32947       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving RC (as $path) failed, using $path directly." >&5
32948 $as_echo "$as_me: Resolving RC (as $path) failed, using $path directly." >&6;}
32949       new_path="$path"
32950     fi
32951 
32952     if test "x$new_path" = x; then
32953       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
32954 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
32955       has_space=`$ECHO "$complete" | $GREP " "`
32956       if test "x$has_space" != x; then
32957         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32958 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32959       fi
32960       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
32961     fi
32962   fi
32963 
32964   # Now join together the path and the arguments once again
32965   if test "x$arguments" != xEOL; then
32966     new_complete="$new_path ${arguments% *}"
32967   else
32968     new_complete="$new_path"
32969   fi
32970 
32971   if test "x$complete" != "x$new_complete"; then
32972     RC="$new_complete"
32973     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5
32974 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;}
32975   fi
32976 
32977 
32978     # For hotspot, we need these in Windows mixed path,
32979     # so rewrite them all. Need added .exe suffix.
32980     HOTSPOT_CXX="$CXX.exe"
32981     HOTSPOT_LD="$LD.exe"
32982     HOTSPOT_MT="$MT.exe"
32983     HOTSPOT_RC="$RC.exe"
32984 
32985   unix_path="$HOTSPOT_CXX"
32986   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32987     windows_path=`$CYGPATH -m "$unix_path"`
32988     HOTSPOT_CXX="$windows_path"
32989   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32990     windows_path=`cmd //c echo $unix_path`
32991     HOTSPOT_CXX="$windows_path"
32992   fi
32993 
32994 
32995   unix_path="$HOTSPOT_LD"
32996   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32997     windows_path=`$CYGPATH -m "$unix_path"`
32998     HOTSPOT_LD="$windows_path"
32999   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33000     windows_path=`cmd //c echo $unix_path`
33001     HOTSPOT_LD="$windows_path"
33002   fi
33003 
33004 
33005   unix_path="$HOTSPOT_MT"
33006   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33007     windows_path=`$CYGPATH -m "$unix_path"`
33008     HOTSPOT_MT="$windows_path"
33009   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33010     windows_path=`cmd //c echo $unix_path`
33011     HOTSPOT_MT="$windows_path"
33012   fi
33013 
33014 
33015   unix_path="$HOTSPOT_RC"
33016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33017     windows_path=`$CYGPATH -m "$unix_path"`
33018     HOTSPOT_RC="$windows_path"
33019   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33020     windows_path=`cmd //c echo $unix_path`
33021     HOTSPOT_RC="$windows_path"
33022   fi
33023 
33024 
33025 
33026 
33027     RC_FLAGS="-nologo -l 0x409 -r"
33028     if test "x$VARIANT" = xOPT; then :
33029 
33030     RC_FLAGS="$RC_FLAGS -d NDEBUG"
33031 
33032 fi
33033 
33034   # The version variables used to create RC_FLAGS may be overridden
33035   # in a custom configure script, or possibly the command line.
33036   # Let those variables be expanded at make time in spec.gmk.
33037   # The \$ are escaped to the shell, and the $(...) variables
33038   # are evaluated by make.
33039   RC_FLAGS="$RC_FLAGS \
33040       -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
33041       -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
33042       -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
33043       -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \
33044       -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
33045       -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
33046       -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(COOKED_JDK_UPDATE_VERSION),\$(COOKED_BUILD_NUMBER)\""
33047 
33048   # lib.exe is used to create static libraries.
33049   # Extract the first word of "lib", so it can be a program name with args.
33050 set dummy lib; ac_word=$2
33051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33052 $as_echo_n "checking for $ac_word... " >&6; }
33053 if ${ac_cv_prog_WINAR+:} false; then :
33054   $as_echo_n "(cached) " >&6
33055 else
33056   if test -n "$WINAR"; then
33057   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
33058 else
33059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33060 for as_dir in $PATH
33061 do
33062   IFS=$as_save_IFS
33063   test -z "$as_dir" && as_dir=.
33064     for ac_exec_ext in '' $ac_executable_extensions; do
33065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33066     ac_cv_prog_WINAR="lib"
33067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33068     break 2
33069   fi
33070 done
33071   done
33072 IFS=$as_save_IFS
33073 
33074 fi
33075 fi
33076 WINAR=$ac_cv_prog_WINAR
33077 if test -n "$WINAR"; then
33078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
33079 $as_echo "$WINAR" >&6; }
33080 else
33081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33082 $as_echo "no" >&6; }
33083 fi
33084 
33085 
33086 
33087   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33088 
33089   # First separate the path from the arguments. This will split at the first
33090   # space.
33091   complete="$WINAR"
33092   path="${complete%% *}"
33093   tmp="$complete EOL"
33094   arguments="${tmp#* }"
33095 
33096   # Input might be given as Windows format, start by converting to
33097   # unix format.
33098   new_path=`$CYGPATH -u "$path"`
33099 
33100   # Now try to locate executable using which
33101   new_path=`$WHICH "$new_path" 2> /dev/null`
33102   # bat and cmd files are not always considered executable in cygwin causing which
33103   # to not find them
33104   if test "x$new_path" = x \
33105       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33106       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33107     new_path=`$CYGPATH -u "$path"`
33108   fi
33109   if test "x$new_path" = x; then
33110     # Oops. Which didn't find the executable.
33111     # The splitting of arguments from the executable at a space might have been incorrect,
33112     # since paths with space are more likely in Windows. Give it another try with the whole
33113     # argument.
33114     path="$complete"
33115     arguments="EOL"
33116     new_path=`$CYGPATH -u "$path"`
33117     new_path=`$WHICH "$new_path" 2> /dev/null`
33118     # bat and cmd files are not always considered executable in cygwin causing which
33119     # to not find them
33120     if test "x$new_path" = x \
33121         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33122         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33123       new_path=`$CYGPATH -u "$path"`
33124     fi
33125     if test "x$new_path" = x; then
33126       # It's still not found. Now this is an unrecoverable error.
33127       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
33128 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
33129       has_space=`$ECHO "$complete" | $GREP " "`
33130       if test "x$has_space" != x; then
33131         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33132 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33133       fi
33134       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
33135     fi
33136   fi
33137 
33138   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33139   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33140   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33141   # "foo.exe" is OK but "foo" is an error.
33142   #
33143   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33144   # It is also a way to make sure we got the proper file name for the real test later on.
33145   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33146   if test "x$test_shortpath" = x; then
33147     # Short path failed, file does not exist as specified.
33148     # Try adding .exe or .cmd
33149     if test -f "${new_path}.exe"; then
33150       input_to_shortpath="${new_path}.exe"
33151     elif test -f "${new_path}.cmd"; then
33152       input_to_shortpath="${new_path}.cmd"
33153     else
33154       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$new_path\", is invalid." >&5
33155 $as_echo "$as_me: The path of WINAR, which resolves as \"$new_path\", is invalid." >&6;}
33156       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33157 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33158       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
33159     fi
33160   else
33161     input_to_shortpath="$new_path"
33162   fi
33163 
33164   # Call helper function which possibly converts this using DOS-style short mode.
33165   # If so, the updated path is stored in $new_path.
33166   new_path="$input_to_shortpath"
33167 
33168   input_path="$input_to_shortpath"
33169   # Check if we need to convert this using DOS-style short mode. If the path
33170   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33171   # take no chances and rewrite it.
33172   # Note: m4 eats our [], so we need to use [ and ] instead.
33173   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33174   if test "x$has_forbidden_chars" != x; then
33175     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33176     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33177     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33178     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33179       # Going to short mode and back again did indeed matter. Since short mode is
33180       # case insensitive, let's make it lowercase to improve readability.
33181       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33182       # Now convert it back to Unix-stile (cygpath)
33183       input_path=`$CYGPATH -u "$shortmode_path"`
33184       new_path="$input_path"
33185     fi
33186   fi
33187 
33188   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33189   if test "x$test_cygdrive_prefix" = x; then
33190     # As a simple fix, exclude /usr/bin since it's not a real path.
33191     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33192       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33193       # a path prefixed by /cygdrive for fixpath to work.
33194       new_path="$CYGWIN_ROOT_PATH$input_path"
33195     fi
33196   fi
33197 
33198   # remove trailing .exe if any
33199   new_path="${new_path/%.exe/}"
33200 
33201   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33202 
33203   # First separate the path from the arguments. This will split at the first
33204   # space.
33205   complete="$WINAR"
33206   path="${complete%% *}"
33207   tmp="$complete EOL"
33208   arguments="${tmp#* }"
33209 
33210   # Input might be given as Windows format, start by converting to
33211   # unix format.
33212   new_path="$path"
33213 
33214   windows_path="$new_path"
33215   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33216     unix_path=`$CYGPATH -u "$windows_path"`
33217     new_path="$unix_path"
33218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33219     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33220     new_path="$unix_path"
33221   fi
33222 
33223 
33224   # Now try to locate executable using which
33225   new_path=`$WHICH "$new_path" 2> /dev/null`
33226 
33227   if test "x$new_path" = x; then
33228     # Oops. Which didn't find the executable.
33229     # The splitting of arguments from the executable at a space might have been incorrect,
33230     # since paths with space are more likely in Windows. Give it another try with the whole
33231     # argument.
33232     path="$complete"
33233     arguments="EOL"
33234     new_path="$path"
33235 
33236   windows_path="$new_path"
33237   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33238     unix_path=`$CYGPATH -u "$windows_path"`
33239     new_path="$unix_path"
33240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33241     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33242     new_path="$unix_path"
33243   fi
33244 
33245 
33246     new_path=`$WHICH "$new_path" 2> /dev/null`
33247 
33248     if test "x$new_path" = x; then
33249       # It's still not found. Now this is an unrecoverable error.
33250       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
33251 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
33252       has_space=`$ECHO "$complete" | $GREP " "`
33253       if test "x$has_space" != x; then
33254         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33255 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33256       fi
33257       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
33258     fi
33259   fi
33260 
33261   # Now new_path has a complete unix path to the binary
33262   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33263     # Keep paths in /bin as-is, but remove trailing .exe if any
33264     new_path="${new_path/%.exe/}"
33265     # Do not save /bin paths to all_fixpath_prefixes!
33266   else
33267     # Not in mixed or Windows style, start by that.
33268     new_path=`cmd //c echo $new_path`
33269 
33270   input_path="$new_path"
33271   # Check if we need to convert this using DOS-style short mode. If the path
33272   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33273   # take no chances and rewrite it.
33274   # Note: m4 eats our [], so we need to use [ and ] instead.
33275   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33276   if test "x$has_forbidden_chars" != x; then
33277     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33278     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33279   fi
33280 
33281     # Output is in $new_path
33282 
33283   windows_path="$new_path"
33284   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33285     unix_path=`$CYGPATH -u "$windows_path"`
33286     new_path="$unix_path"
33287   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33288     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33289     new_path="$unix_path"
33290   fi
33291 
33292     # remove trailing .exe if any
33293     new_path="${new_path/%.exe/}"
33294 
33295     # Save the first 10 bytes of this path to the storage, so fixpath can work.
33296     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33297   fi
33298 
33299   else
33300     # We're on a posix platform. Hooray! :)
33301     # First separate the path from the arguments. This will split at the first
33302     # space.
33303     complete="$WINAR"
33304     path="${complete%% *}"
33305     tmp="$complete EOL"
33306     arguments="${tmp#* }"
33307 
33308     # Cannot rely on the command "which" here since it doesn't always work.
33309     is_absolute_path=`$ECHO "$path" | $GREP ^/`
33310     if test -z "$is_absolute_path"; then
33311       # Path to executable is not absolute. Find it.
33312       IFS_save="$IFS"
33313       IFS=:
33314       for p in $PATH; do
33315         if test -f "$p/$path" && test -x "$p/$path"; then
33316           new_path="$p/$path"
33317           break
33318         fi
33319       done
33320       IFS="$IFS_save"
33321     else
33322       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINAR (as $path) failed, using $path directly." >&5
33323 $as_echo "$as_me: Resolving WINAR (as $path) failed, using $path directly." >&6;}
33324       new_path="$path"
33325     fi
33326 
33327     if test "x$new_path" = x; then
33328       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
33329 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
33330       has_space=`$ECHO "$complete" | $GREP " "`
33331       if test "x$has_space" != x; then
33332         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33333 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33334       fi
33335       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
33336     fi
33337   fi
33338 
33339   # Now join together the path and the arguments once again
33340   if test "x$arguments" != xEOL; then
33341     new_complete="$new_path ${arguments% *}"
33342   else
33343     new_complete="$new_path"
33344   fi
33345 
33346   if test "x$complete" != "x$new_complete"; then
33347     WINAR="$new_complete"
33348     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
33349 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
33350   fi
33351 
33352   AR="$WINAR"
33353   ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
33354 
33355   # Extract the first word of "dumpbin", so it can be a program name with args.
33356 set dummy dumpbin; ac_word=$2
33357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33358 $as_echo_n "checking for $ac_word... " >&6; }
33359 if ${ac_cv_prog_DUMPBIN+:} false; then :
33360   $as_echo_n "(cached) " >&6
33361 else
33362   if test -n "$DUMPBIN"; then
33363   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
33364 else
33365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33366 for as_dir in $PATH
33367 do
33368   IFS=$as_save_IFS
33369   test -z "$as_dir" && as_dir=.
33370     for ac_exec_ext in '' $ac_executable_extensions; do
33371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33372     ac_cv_prog_DUMPBIN="dumpbin"
33373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33374     break 2
33375   fi
33376 done
33377   done
33378 IFS=$as_save_IFS
33379 
33380 fi
33381 fi
33382 DUMPBIN=$ac_cv_prog_DUMPBIN
33383 if test -n "$DUMPBIN"; then
33384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
33385 $as_echo "$DUMPBIN" >&6; }
33386 else
33387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388 $as_echo "no" >&6; }
33389 fi
33390 
33391 
33392 
33393   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33394 
33395   # First separate the path from the arguments. This will split at the first
33396   # space.
33397   complete="$DUMPBIN"
33398   path="${complete%% *}"
33399   tmp="$complete EOL"
33400   arguments="${tmp#* }"
33401 
33402   # Input might be given as Windows format, start by converting to
33403   # unix format.
33404   new_path=`$CYGPATH -u "$path"`
33405 
33406   # Now try to locate executable using which
33407   new_path=`$WHICH "$new_path" 2> /dev/null`
33408   # bat and cmd files are not always considered executable in cygwin causing which
33409   # to not find them
33410   if test "x$new_path" = x \
33411       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33412       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33413     new_path=`$CYGPATH -u "$path"`
33414   fi
33415   if test "x$new_path" = x; then
33416     # Oops. Which didn't find the executable.
33417     # The splitting of arguments from the executable at a space might have been incorrect,
33418     # since paths with space are more likely in Windows. Give it another try with the whole
33419     # argument.
33420     path="$complete"
33421     arguments="EOL"
33422     new_path=`$CYGPATH -u "$path"`
33423     new_path=`$WHICH "$new_path" 2> /dev/null`
33424     # bat and cmd files are not always considered executable in cygwin causing which
33425     # to not find them
33426     if test "x$new_path" = x \
33427         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33428         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33429       new_path=`$CYGPATH -u "$path"`
33430     fi
33431     if test "x$new_path" = x; then
33432       # It's still not found. Now this is an unrecoverable error.
33433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
33434 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
33435       has_space=`$ECHO "$complete" | $GREP " "`
33436       if test "x$has_space" != x; then
33437         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33438 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33439       fi
33440       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
33441     fi
33442   fi
33443 
33444   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33445   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33446   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33447   # "foo.exe" is OK but "foo" is an error.
33448   #
33449   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33450   # It is also a way to make sure we got the proper file name for the real test later on.
33451   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33452   if test "x$test_shortpath" = x; then
33453     # Short path failed, file does not exist as specified.
33454     # Try adding .exe or .cmd
33455     if test -f "${new_path}.exe"; then
33456       input_to_shortpath="${new_path}.exe"
33457     elif test -f "${new_path}.cmd"; then
33458       input_to_shortpath="${new_path}.cmd"
33459     else
33460       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5
33461 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;}
33462       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33463 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33464       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
33465     fi
33466   else
33467     input_to_shortpath="$new_path"
33468   fi
33469 
33470   # Call helper function which possibly converts this using DOS-style short mode.
33471   # If so, the updated path is stored in $new_path.
33472   new_path="$input_to_shortpath"
33473 
33474   input_path="$input_to_shortpath"
33475   # Check if we need to convert this using DOS-style short mode. If the path
33476   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33477   # take no chances and rewrite it.
33478   # Note: m4 eats our [], so we need to use [ and ] instead.
33479   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33480   if test "x$has_forbidden_chars" != x; then
33481     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33482     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33483     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33484     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33485       # Going to short mode and back again did indeed matter. Since short mode is
33486       # case insensitive, let's make it lowercase to improve readability.
33487       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33488       # Now convert it back to Unix-stile (cygpath)
33489       input_path=`$CYGPATH -u "$shortmode_path"`
33490       new_path="$input_path"
33491     fi
33492   fi
33493 
33494   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33495   if test "x$test_cygdrive_prefix" = x; then
33496     # As a simple fix, exclude /usr/bin since it's not a real path.
33497     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33498       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33499       # a path prefixed by /cygdrive for fixpath to work.
33500       new_path="$CYGWIN_ROOT_PATH$input_path"
33501     fi
33502   fi
33503 
33504   # remove trailing .exe if any
33505   new_path="${new_path/%.exe/}"
33506 
33507   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33508 
33509   # First separate the path from the arguments. This will split at the first
33510   # space.
33511   complete="$DUMPBIN"
33512   path="${complete%% *}"
33513   tmp="$complete EOL"
33514   arguments="${tmp#* }"
33515 
33516   # Input might be given as Windows format, start by converting to
33517   # unix format.
33518   new_path="$path"
33519 
33520   windows_path="$new_path"
33521   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33522     unix_path=`$CYGPATH -u "$windows_path"`
33523     new_path="$unix_path"
33524   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33525     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33526     new_path="$unix_path"
33527   fi
33528 
33529 
33530   # Now try to locate executable using which
33531   new_path=`$WHICH "$new_path" 2> /dev/null`
33532 
33533   if test "x$new_path" = x; then
33534     # Oops. Which didn't find the executable.
33535     # The splitting of arguments from the executable at a space might have been incorrect,
33536     # since paths with space are more likely in Windows. Give it another try with the whole
33537     # argument.
33538     path="$complete"
33539     arguments="EOL"
33540     new_path="$path"
33541 
33542   windows_path="$new_path"
33543   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33544     unix_path=`$CYGPATH -u "$windows_path"`
33545     new_path="$unix_path"
33546   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33547     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33548     new_path="$unix_path"
33549   fi
33550 
33551 
33552     new_path=`$WHICH "$new_path" 2> /dev/null`
33553 
33554     if test "x$new_path" = x; then
33555       # It's still not found. Now this is an unrecoverable error.
33556       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
33557 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
33558       has_space=`$ECHO "$complete" | $GREP " "`
33559       if test "x$has_space" != x; then
33560         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33561 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33562       fi
33563       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
33564     fi
33565   fi
33566 
33567   # Now new_path has a complete unix path to the binary
33568   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33569     # Keep paths in /bin as-is, but remove trailing .exe if any
33570     new_path="${new_path/%.exe/}"
33571     # Do not save /bin paths to all_fixpath_prefixes!
33572   else
33573     # Not in mixed or Windows style, start by that.
33574     new_path=`cmd //c echo $new_path`
33575 
33576   input_path="$new_path"
33577   # Check if we need to convert this using DOS-style short mode. If the path
33578   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33579   # take no chances and rewrite it.
33580   # Note: m4 eats our [], so we need to use [ and ] instead.
33581   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33582   if test "x$has_forbidden_chars" != x; then
33583     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33584     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33585   fi
33586 
33587     # Output is in $new_path
33588 
33589   windows_path="$new_path"
33590   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33591     unix_path=`$CYGPATH -u "$windows_path"`
33592     new_path="$unix_path"
33593   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33594     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33595     new_path="$unix_path"
33596   fi
33597 
33598     # remove trailing .exe if any
33599     new_path="${new_path/%.exe/}"
33600 
33601     # Save the first 10 bytes of this path to the storage, so fixpath can work.
33602     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33603   fi
33604 
33605   else
33606     # We're on a posix platform. Hooray! :)
33607     # First separate the path from the arguments. This will split at the first
33608     # space.
33609     complete="$DUMPBIN"
33610     path="${complete%% *}"
33611     tmp="$complete EOL"
33612     arguments="${tmp#* }"
33613 
33614     # Cannot rely on the command "which" here since it doesn't always work.
33615     is_absolute_path=`$ECHO "$path" | $GREP ^/`
33616     if test -z "$is_absolute_path"; then
33617       # Path to executable is not absolute. Find it.
33618       IFS_save="$IFS"
33619       IFS=:
33620       for p in $PATH; do
33621         if test -f "$p/$path" && test -x "$p/$path"; then
33622           new_path="$p/$path"
33623           break
33624         fi
33625       done
33626       IFS="$IFS_save"
33627     else
33628       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving DUMPBIN (as $path) failed, using $path directly." >&5
33629 $as_echo "$as_me: Resolving DUMPBIN (as $path) failed, using $path directly." >&6;}
33630       new_path="$path"
33631     fi
33632 
33633     if test "x$new_path" = x; then
33634       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
33635 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
33636       has_space=`$ECHO "$complete" | $GREP " "`
33637       if test "x$has_space" != x; then
33638         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33639 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33640       fi
33641       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
33642     fi
33643   fi
33644 
33645   # Now join together the path and the arguments once again
33646   if test "x$arguments" != xEOL; then
33647     new_complete="$new_path ${arguments% *}"
33648   else
33649     new_complete="$new_path"
33650   fi
33651 
33652   if test "x$complete" != "x$new_complete"; then
33653     DUMPBIN="$new_complete"
33654     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5
33655 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;}
33656   fi
33657 
33658 
33659       COMPILER_TYPE=CL
33660       # silence copyright notice and other headers.
33661       COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
33662 
33663 fi
33664 
33665 
33666 
33667   ac_ext=c
33668 ac_cpp='$CPP $CPPFLAGS'
33669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
33673 $as_echo_n "checking how to run the C preprocessor... " >&6; }
33674 # On Suns, sometimes $CPP names a directory.
33675 if test -n "$CPP" && test -d "$CPP"; then
33676   CPP=
33677 fi
33678 if test -z "$CPP"; then
33679   if ${ac_cv_prog_CPP+:} false; then :
33680   $as_echo_n "(cached) " >&6
33681 else
33682       # Double quotes because CPP needs to be expanded
33683     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
33684     do
33685       ac_preproc_ok=false
33686 for ac_c_preproc_warn_flag in '' yes
33687 do
33688   # Use a header file that comes with gcc, so configuring glibc
33689   # with a fresh cross-compiler works.
33690   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33691   # <limits.h> exists even on freestanding compilers.
33692   # On the NeXT, cc -E runs the code through the compiler's parser,
33693   # not just through cpp. "Syntax error" is here to catch this case.
33694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33695 /* end confdefs.h.  */
33696 #ifdef __STDC__
33697 # include <limits.h>
33698 #else
33699 # include <assert.h>
33700 #endif
33701                      Syntax error
33702 _ACEOF
33703 if ac_fn_c_try_cpp "$LINENO"; then :
33704 
33705 else
33706   # Broken: fails on valid input.
33707 continue
33708 fi
33709 rm -f conftest.err conftest.i conftest.$ac_ext
33710 
33711   # OK, works on sane cases.  Now check whether nonexistent headers
33712   # can be detected and how.
33713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33714 /* end confdefs.h.  */
33715 #include <ac_nonexistent.h>
33716 _ACEOF
33717 if ac_fn_c_try_cpp "$LINENO"; then :
33718   # Broken: success on invalid input.
33719 continue
33720 else
33721   # Passes both tests.
33722 ac_preproc_ok=:
33723 break
33724 fi
33725 rm -f conftest.err conftest.i conftest.$ac_ext
33726 
33727 done
33728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33729 rm -f conftest.i conftest.err conftest.$ac_ext
33730 if $ac_preproc_ok; then :
33731   break
33732 fi
33733 
33734     done
33735     ac_cv_prog_CPP=$CPP
33736 
33737 fi
33738   CPP=$ac_cv_prog_CPP
33739 else
33740   ac_cv_prog_CPP=$CPP
33741 fi
33742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
33743 $as_echo "$CPP" >&6; }
33744 ac_preproc_ok=false
33745 for ac_c_preproc_warn_flag in '' yes
33746 do
33747   # Use a header file that comes with gcc, so configuring glibc
33748   # with a fresh cross-compiler works.
33749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33750   # <limits.h> exists even on freestanding compilers.
33751   # On the NeXT, cc -E runs the code through the compiler's parser,
33752   # not just through cpp. "Syntax error" is here to catch this case.
33753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33754 /* end confdefs.h.  */
33755 #ifdef __STDC__
33756 # include <limits.h>
33757 #else
33758 # include <assert.h>
33759 #endif
33760                      Syntax error
33761 _ACEOF
33762 if ac_fn_c_try_cpp "$LINENO"; then :
33763 
33764 else
33765   # Broken: fails on valid input.
33766 continue
33767 fi
33768 rm -f conftest.err conftest.i conftest.$ac_ext
33769 
33770   # OK, works on sane cases.  Now check whether nonexistent headers
33771   # can be detected and how.
33772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33773 /* end confdefs.h.  */
33774 #include <ac_nonexistent.h>
33775 _ACEOF
33776 if ac_fn_c_try_cpp "$LINENO"; then :
33777   # Broken: success on invalid input.
33778 continue
33779 else
33780   # Passes both tests.
33781 ac_preproc_ok=:
33782 break
33783 fi
33784 rm -f conftest.err conftest.i conftest.$ac_ext
33785 
33786 done
33787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33788 rm -f conftest.i conftest.err conftest.$ac_ext
33789 if $ac_preproc_ok; then :
33790 
33791 else
33792   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33794 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
33795 See \`config.log' for more details" "$LINENO" 5; }
33796 fi
33797 
33798 ac_ext=cpp
33799 ac_cpp='$CXXCPP $CPPFLAGS'
33800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33803 
33804 
33805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33806 
33807   # First separate the path from the arguments. This will split at the first
33808   # space.
33809   complete="$CPP"
33810   path="${complete%% *}"
33811   tmp="$complete EOL"
33812   arguments="${tmp#* }"
33813 
33814   # Input might be given as Windows format, start by converting to
33815   # unix format.
33816   new_path=`$CYGPATH -u "$path"`
33817 
33818   # Now try to locate executable using which
33819   new_path=`$WHICH "$new_path" 2> /dev/null`
33820   # bat and cmd files are not always considered executable in cygwin causing which
33821   # to not find them
33822   if test "x$new_path" = x \
33823       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33824       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33825     new_path=`$CYGPATH -u "$path"`
33826   fi
33827   if test "x$new_path" = x; then
33828     # Oops. Which didn't find the executable.
33829     # The splitting of arguments from the executable at a space might have been incorrect,
33830     # since paths with space are more likely in Windows. Give it another try with the whole
33831     # argument.
33832     path="$complete"
33833     arguments="EOL"
33834     new_path=`$CYGPATH -u "$path"`
33835     new_path=`$WHICH "$new_path" 2> /dev/null`
33836     # bat and cmd files are not always considered executable in cygwin causing which
33837     # to not find them
33838     if test "x$new_path" = x \
33839         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33840         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33841       new_path=`$CYGPATH -u "$path"`
33842     fi
33843     if test "x$new_path" = x; then
33844       # It's still not found. Now this is an unrecoverable error.
33845       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
33846 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
33847       has_space=`$ECHO "$complete" | $GREP " "`
33848       if test "x$has_space" != x; then
33849         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33850 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33851       fi
33852       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
33853     fi
33854   fi
33855 
33856   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33857   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33858   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33859   # "foo.exe" is OK but "foo" is an error.
33860   #
33861   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33862   # It is also a way to make sure we got the proper file name for the real test later on.
33863   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33864   if test "x$test_shortpath" = x; then
33865     # Short path failed, file does not exist as specified.
33866     # Try adding .exe or .cmd
33867     if test -f "${new_path}.exe"; then
33868       input_to_shortpath="${new_path}.exe"
33869     elif test -f "${new_path}.cmd"; then
33870       input_to_shortpath="${new_path}.cmd"
33871     else
33872       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5
33873 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;}
33874       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33875 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33876       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
33877     fi
33878   else
33879     input_to_shortpath="$new_path"
33880   fi
33881 
33882   # Call helper function which possibly converts this using DOS-style short mode.
33883   # If so, the updated path is stored in $new_path.
33884   new_path="$input_to_shortpath"
33885 
33886   input_path="$input_to_shortpath"
33887   # Check if we need to convert this using DOS-style short mode. If the path
33888   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33889   # take no chances and rewrite it.
33890   # Note: m4 eats our [], so we need to use [ and ] instead.
33891   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33892   if test "x$has_forbidden_chars" != x; then
33893     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33894     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33895     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33896     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33897       # Going to short mode and back again did indeed matter. Since short mode is
33898       # case insensitive, let's make it lowercase to improve readability.
33899       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33900       # Now convert it back to Unix-stile (cygpath)
33901       input_path=`$CYGPATH -u "$shortmode_path"`
33902       new_path="$input_path"
33903     fi
33904   fi
33905 
33906   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33907   if test "x$test_cygdrive_prefix" = x; then
33908     # As a simple fix, exclude /usr/bin since it's not a real path.
33909     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33910       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33911       # a path prefixed by /cygdrive for fixpath to work.
33912       new_path="$CYGWIN_ROOT_PATH$input_path"
33913     fi
33914   fi
33915 
33916   # remove trailing .exe if any
33917   new_path="${new_path/%.exe/}"
33918 
33919   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33920 
33921   # First separate the path from the arguments. This will split at the first
33922   # space.
33923   complete="$CPP"
33924   path="${complete%% *}"
33925   tmp="$complete EOL"
33926   arguments="${tmp#* }"
33927 
33928   # Input might be given as Windows format, start by converting to
33929   # unix format.
33930   new_path="$path"
33931 
33932   windows_path="$new_path"
33933   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33934     unix_path=`$CYGPATH -u "$windows_path"`
33935     new_path="$unix_path"
33936   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33937     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33938     new_path="$unix_path"
33939   fi
33940 
33941 
33942   # Now try to locate executable using which
33943   new_path=`$WHICH "$new_path" 2> /dev/null`
33944 
33945   if test "x$new_path" = x; then
33946     # Oops. Which didn't find the executable.
33947     # The splitting of arguments from the executable at a space might have been incorrect,
33948     # since paths with space are more likely in Windows. Give it another try with the whole
33949     # argument.
33950     path="$complete"
33951     arguments="EOL"
33952     new_path="$path"
33953 
33954   windows_path="$new_path"
33955   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33956     unix_path=`$CYGPATH -u "$windows_path"`
33957     new_path="$unix_path"
33958   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33959     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33960     new_path="$unix_path"
33961   fi
33962 
33963 
33964     new_path=`$WHICH "$new_path" 2> /dev/null`
33965 
33966     if test "x$new_path" = x; then
33967       # It's still not found. Now this is an unrecoverable error.
33968       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
33969 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
33970       has_space=`$ECHO "$complete" | $GREP " "`
33971       if test "x$has_space" != x; then
33972         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33973 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33974       fi
33975       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
33976     fi
33977   fi
33978 
33979   # Now new_path has a complete unix path to the binary
33980   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33981     # Keep paths in /bin as-is, but remove trailing .exe if any
33982     new_path="${new_path/%.exe/}"
33983     # Do not save /bin paths to all_fixpath_prefixes!
33984   else
33985     # Not in mixed or Windows style, start by that.
33986     new_path=`cmd //c echo $new_path`
33987 
33988   input_path="$new_path"
33989   # Check if we need to convert this using DOS-style short mode. If the path
33990   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33991   # take no chances and rewrite it.
33992   # Note: m4 eats our [], so we need to use [ and ] instead.
33993   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33994   if test "x$has_forbidden_chars" != x; then
33995     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33996     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33997   fi
33998 
33999     # Output is in $new_path
34000 
34001   windows_path="$new_path"
34002   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34003     unix_path=`$CYGPATH -u "$windows_path"`
34004     new_path="$unix_path"
34005   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34006     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34007     new_path="$unix_path"
34008   fi
34009 
34010     # remove trailing .exe if any
34011     new_path="${new_path/%.exe/}"
34012 
34013     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34014     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34015   fi
34016 
34017   else
34018     # We're on a posix platform. Hooray! :)
34019     # First separate the path from the arguments. This will split at the first
34020     # space.
34021     complete="$CPP"
34022     path="${complete%% *}"
34023     tmp="$complete EOL"
34024     arguments="${tmp#* }"
34025 
34026     # Cannot rely on the command "which" here since it doesn't always work.
34027     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34028     if test -z "$is_absolute_path"; then
34029       # Path to executable is not absolute. Find it.
34030       IFS_save="$IFS"
34031       IFS=:
34032       for p in $PATH; do
34033         if test -f "$p/$path" && test -x "$p/$path"; then
34034           new_path="$p/$path"
34035           break
34036         fi
34037       done
34038       IFS="$IFS_save"
34039     else
34040       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CPP (as $path) failed, using $path directly." >&5
34041 $as_echo "$as_me: Resolving CPP (as $path) failed, using $path directly." >&6;}
34042       new_path="$path"
34043     fi
34044 
34045     if test "x$new_path" = x; then
34046       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
34047 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
34048       has_space=`$ECHO "$complete" | $GREP " "`
34049       if test "x$has_space" != x; then
34050         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34051 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34052       fi
34053       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
34054     fi
34055   fi
34056 
34057   # Now join together the path and the arguments once again
34058   if test "x$arguments" != xEOL; then
34059     new_complete="$new_path ${arguments% *}"
34060   else
34061     new_complete="$new_path"
34062   fi
34063 
34064   if test "x$complete" != "x$new_complete"; then
34065     CPP="$new_complete"
34066     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
34067 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
34068   fi
34069 
34070 
34071   ac_ext=cpp
34072 ac_cpp='$CXXCPP $CPPFLAGS'
34073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
34077 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
34078 if test -z "$CXXCPP"; then
34079   if ${ac_cv_prog_CXXCPP+:} false; then :
34080   $as_echo_n "(cached) " >&6
34081 else
34082       # Double quotes because CXXCPP needs to be expanded
34083     for CXXCPP in "$CXX -E" "/lib/cpp"
34084     do
34085       ac_preproc_ok=false
34086 for ac_cxx_preproc_warn_flag in '' yes
34087 do
34088   # Use a header file that comes with gcc, so configuring glibc
34089   # with a fresh cross-compiler works.
34090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34091   # <limits.h> exists even on freestanding compilers.
34092   # On the NeXT, cc -E runs the code through the compiler's parser,
34093   # not just through cpp. "Syntax error" is here to catch this case.
34094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34095 /* end confdefs.h.  */
34096 #ifdef __STDC__
34097 # include <limits.h>
34098 #else
34099 # include <assert.h>
34100 #endif
34101                      Syntax error
34102 _ACEOF
34103 if ac_fn_cxx_try_cpp "$LINENO"; then :
34104 
34105 else
34106   # Broken: fails on valid input.
34107 continue
34108 fi
34109 rm -f conftest.err conftest.i conftest.$ac_ext
34110 
34111   # OK, works on sane cases.  Now check whether nonexistent headers
34112   # can be detected and how.
34113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34114 /* end confdefs.h.  */
34115 #include <ac_nonexistent.h>
34116 _ACEOF
34117 if ac_fn_cxx_try_cpp "$LINENO"; then :
34118   # Broken: success on invalid input.
34119 continue
34120 else
34121   # Passes both tests.
34122 ac_preproc_ok=:
34123 break
34124 fi
34125 rm -f conftest.err conftest.i conftest.$ac_ext
34126 
34127 done
34128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
34129 rm -f conftest.i conftest.err conftest.$ac_ext
34130 if $ac_preproc_ok; then :
34131   break
34132 fi
34133 
34134     done
34135     ac_cv_prog_CXXCPP=$CXXCPP
34136 
34137 fi
34138   CXXCPP=$ac_cv_prog_CXXCPP
34139 else
34140   ac_cv_prog_CXXCPP=$CXXCPP
34141 fi
34142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
34143 $as_echo "$CXXCPP" >&6; }
34144 ac_preproc_ok=false
34145 for ac_cxx_preproc_warn_flag in '' yes
34146 do
34147   # Use a header file that comes with gcc, so configuring glibc
34148   # with a fresh cross-compiler works.
34149   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34150   # <limits.h> exists even on freestanding compilers.
34151   # On the NeXT, cc -E runs the code through the compiler's parser,
34152   # not just through cpp. "Syntax error" is here to catch this case.
34153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34154 /* end confdefs.h.  */
34155 #ifdef __STDC__
34156 # include <limits.h>
34157 #else
34158 # include <assert.h>
34159 #endif
34160                      Syntax error
34161 _ACEOF
34162 if ac_fn_cxx_try_cpp "$LINENO"; then :
34163 
34164 else
34165   # Broken: fails on valid input.
34166 continue
34167 fi
34168 rm -f conftest.err conftest.i conftest.$ac_ext
34169 
34170   # OK, works on sane cases.  Now check whether nonexistent headers
34171   # can be detected and how.
34172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34173 /* end confdefs.h.  */
34174 #include <ac_nonexistent.h>
34175 _ACEOF
34176 if ac_fn_cxx_try_cpp "$LINENO"; then :
34177   # Broken: success on invalid input.
34178 continue
34179 else
34180   # Passes both tests.
34181 ac_preproc_ok=:
34182 break
34183 fi
34184 rm -f conftest.err conftest.i conftest.$ac_ext
34185 
34186 done
34187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
34188 rm -f conftest.i conftest.err conftest.$ac_ext
34189 if $ac_preproc_ok; then :
34190 
34191 else
34192   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34194 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
34195 See \`config.log' for more details" "$LINENO" 5; }
34196 fi
34197 
34198 ac_ext=cpp
34199 ac_cpp='$CXXCPP $CPPFLAGS'
34200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34203 
34204 
34205   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34206 
34207   # First separate the path from the arguments. This will split at the first
34208   # space.
34209   complete="$CXXCPP"
34210   path="${complete%% *}"
34211   tmp="$complete EOL"
34212   arguments="${tmp#* }"
34213 
34214   # Input might be given as Windows format, start by converting to
34215   # unix format.
34216   new_path=`$CYGPATH -u "$path"`
34217 
34218   # Now try to locate executable using which
34219   new_path=`$WHICH "$new_path" 2> /dev/null`
34220   # bat and cmd files are not always considered executable in cygwin causing which
34221   # to not find them
34222   if test "x$new_path" = x \
34223       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34224       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34225     new_path=`$CYGPATH -u "$path"`
34226   fi
34227   if test "x$new_path" = x; then
34228     # Oops. Which didn't find the executable.
34229     # The splitting of arguments from the executable at a space might have been incorrect,
34230     # since paths with space are more likely in Windows. Give it another try with the whole
34231     # argument.
34232     path="$complete"
34233     arguments="EOL"
34234     new_path=`$CYGPATH -u "$path"`
34235     new_path=`$WHICH "$new_path" 2> /dev/null`
34236     # bat and cmd files are not always considered executable in cygwin causing which
34237     # to not find them
34238     if test "x$new_path" = x \
34239         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34240         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34241       new_path=`$CYGPATH -u "$path"`
34242     fi
34243     if test "x$new_path" = x; then
34244       # It's still not found. Now this is an unrecoverable error.
34245       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
34246 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
34247       has_space=`$ECHO "$complete" | $GREP " "`
34248       if test "x$has_space" != x; then
34249         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34250 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34251       fi
34252       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
34253     fi
34254   fi
34255 
34256   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34257   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34258   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34259   # "foo.exe" is OK but "foo" is an error.
34260   #
34261   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34262   # It is also a way to make sure we got the proper file name for the real test later on.
34263   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34264   if test "x$test_shortpath" = x; then
34265     # Short path failed, file does not exist as specified.
34266     # Try adding .exe or .cmd
34267     if test -f "${new_path}.exe"; then
34268       input_to_shortpath="${new_path}.exe"
34269     elif test -f "${new_path}.cmd"; then
34270       input_to_shortpath="${new_path}.cmd"
34271     else
34272       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5
34273 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;}
34274       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34275 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34276       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
34277     fi
34278   else
34279     input_to_shortpath="$new_path"
34280   fi
34281 
34282   # Call helper function which possibly converts this using DOS-style short mode.
34283   # If so, the updated path is stored in $new_path.
34284   new_path="$input_to_shortpath"
34285 
34286   input_path="$input_to_shortpath"
34287   # Check if we need to convert this using DOS-style short mode. If the path
34288   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34289   # take no chances and rewrite it.
34290   # Note: m4 eats our [], so we need to use [ and ] instead.
34291   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34292   if test "x$has_forbidden_chars" != x; then
34293     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34294     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34295     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34296     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34297       # Going to short mode and back again did indeed matter. Since short mode is
34298       # case insensitive, let's make it lowercase to improve readability.
34299       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34300       # Now convert it back to Unix-stile (cygpath)
34301       input_path=`$CYGPATH -u "$shortmode_path"`
34302       new_path="$input_path"
34303     fi
34304   fi
34305 
34306   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34307   if test "x$test_cygdrive_prefix" = x; then
34308     # As a simple fix, exclude /usr/bin since it's not a real path.
34309     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34310       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34311       # a path prefixed by /cygdrive for fixpath to work.
34312       new_path="$CYGWIN_ROOT_PATH$input_path"
34313     fi
34314   fi
34315 
34316   # remove trailing .exe if any
34317   new_path="${new_path/%.exe/}"
34318 
34319   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34320 
34321   # First separate the path from the arguments. This will split at the first
34322   # space.
34323   complete="$CXXCPP"
34324   path="${complete%% *}"
34325   tmp="$complete EOL"
34326   arguments="${tmp#* }"
34327 
34328   # Input might be given as Windows format, start by converting to
34329   # unix format.
34330   new_path="$path"
34331 
34332   windows_path="$new_path"
34333   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34334     unix_path=`$CYGPATH -u "$windows_path"`
34335     new_path="$unix_path"
34336   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34337     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34338     new_path="$unix_path"
34339   fi
34340 
34341 
34342   # Now try to locate executable using which
34343   new_path=`$WHICH "$new_path" 2> /dev/null`
34344 
34345   if test "x$new_path" = x; then
34346     # Oops. Which didn't find the executable.
34347     # The splitting of arguments from the executable at a space might have been incorrect,
34348     # since paths with space are more likely in Windows. Give it another try with the whole
34349     # argument.
34350     path="$complete"
34351     arguments="EOL"
34352     new_path="$path"
34353 
34354   windows_path="$new_path"
34355   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34356     unix_path=`$CYGPATH -u "$windows_path"`
34357     new_path="$unix_path"
34358   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34359     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34360     new_path="$unix_path"
34361   fi
34362 
34363 
34364     new_path=`$WHICH "$new_path" 2> /dev/null`
34365 
34366     if test "x$new_path" = x; then
34367       # It's still not found. Now this is an unrecoverable error.
34368       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
34369 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
34370       has_space=`$ECHO "$complete" | $GREP " "`
34371       if test "x$has_space" != x; then
34372         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34374       fi
34375       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
34376     fi
34377   fi
34378 
34379   # Now new_path has a complete unix path to the binary
34380   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34381     # Keep paths in /bin as-is, but remove trailing .exe if any
34382     new_path="${new_path/%.exe/}"
34383     # Do not save /bin paths to all_fixpath_prefixes!
34384   else
34385     # Not in mixed or Windows style, start by that.
34386     new_path=`cmd //c echo $new_path`
34387 
34388   input_path="$new_path"
34389   # Check if we need to convert this using DOS-style short mode. If the path
34390   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34391   # take no chances and rewrite it.
34392   # Note: m4 eats our [], so we need to use [ and ] instead.
34393   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34394   if test "x$has_forbidden_chars" != x; then
34395     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34396     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34397   fi
34398 
34399     # Output is in $new_path
34400 
34401   windows_path="$new_path"
34402   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34403     unix_path=`$CYGPATH -u "$windows_path"`
34404     new_path="$unix_path"
34405   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34406     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34407     new_path="$unix_path"
34408   fi
34409 
34410     # remove trailing .exe if any
34411     new_path="${new_path/%.exe/}"
34412 
34413     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34414     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34415   fi
34416 
34417   else
34418     # We're on a posix platform. Hooray! :)
34419     # First separate the path from the arguments. This will split at the first
34420     # space.
34421     complete="$CXXCPP"
34422     path="${complete%% *}"
34423     tmp="$complete EOL"
34424     arguments="${tmp#* }"
34425 
34426     # Cannot rely on the command "which" here since it doesn't always work.
34427     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34428     if test -z "$is_absolute_path"; then
34429       # Path to executable is not absolute. Find it.
34430       IFS_save="$IFS"
34431       IFS=:
34432       for p in $PATH; do
34433         if test -f "$p/$path" && test -x "$p/$path"; then
34434           new_path="$p/$path"
34435           break
34436         fi
34437       done
34438       IFS="$IFS_save"
34439     else
34440       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXXCPP (as $path) failed, using $path directly." >&5
34441 $as_echo "$as_me: Resolving CXXCPP (as $path) failed, using $path directly." >&6;}
34442       new_path="$path"
34443     fi
34444 
34445     if test "x$new_path" = x; then
34446       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
34447 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
34448       has_space=`$ECHO "$complete" | $GREP " "`
34449       if test "x$has_space" != x; then
34450         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34451 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34452       fi
34453       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
34454     fi
34455   fi
34456 
34457   # Now join together the path and the arguments once again
34458   if test "x$arguments" != xEOL; then
34459     new_complete="$new_path ${arguments% *}"
34460   else
34461     new_complete="$new_path"
34462   fi
34463 
34464   if test "x$complete" != "x$new_complete"; then
34465     CXXCPP="$new_complete"
34466     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5
34467 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;}
34468   fi
34469 
34470 
34471   if test "x$COMPILE_TYPE" != "xcross"; then
34472     # If we are not cross compiling, use the same compilers for
34473     # building the build platform executables. The cross-compilation
34474     # case needed to be done earlier, but this can only be done after
34475     # the native tools have been localized.
34476     BUILD_CC="$CC"
34477     BUILD_CXX="$CXX"
34478     BUILD_LD="$LD"
34479   fi
34480 
34481   # for solaris we really need solaris tools, and not gnu equivalent
34482   #   these seems to normally reside in /usr/ccs/bin so add that to path before
34483   #   starting to probe
34484   #
34485   #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
34486   #         so that it can be overriden --with-tools-dir
34487   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
34488     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
34489   fi
34490 
34491   # Find the right assembler.
34492   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
34493 
34494 
34495   # Publish this variable in the help.
34496 
34497 
34498   if test "x$AS" = x; then
34499     # The variable is not set by user, try to locate tool using the code snippet
34500     for ac_prog in as
34501 do
34502   # Extract the first word of "$ac_prog", so it can be a program name with args.
34503 set dummy $ac_prog; ac_word=$2
34504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34505 $as_echo_n "checking for $ac_word... " >&6; }
34506 if ${ac_cv_path_AS+:} false; then :
34507   $as_echo_n "(cached) " >&6
34508 else
34509   case $AS in
34510   [\\/]* | ?:[\\/]*)
34511   ac_cv_path_AS="$AS" # Let the user override the test with a path.
34512   ;;
34513   *)
34514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34515 for as_dir in $PATH
34516 do
34517   IFS=$as_save_IFS
34518   test -z "$as_dir" && as_dir=.
34519     for ac_exec_ext in '' $ac_executable_extensions; do
34520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34521     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
34522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34523     break 2
34524   fi
34525 done
34526   done
34527 IFS=$as_save_IFS
34528 
34529   ;;
34530 esac
34531 fi
34532 AS=$ac_cv_path_AS
34533 if test -n "$AS"; then
34534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
34535 $as_echo "$AS" >&6; }
34536 else
34537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34538 $as_echo "no" >&6; }
34539 fi
34540 
34541 
34542   test -n "$AS" && break
34543 done
34544 
34545   else
34546     # The variable is set, but is it from the command line or the environment?
34547 
34548     # Try to remove the string !AS! from our list.
34549     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/}
34550     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
34551       # If it failed, the variable was not from the command line. Ignore it,
34552       # but warn the user (except for BASH, which is always set by the calling BASH).
34553       if test "xAS" != xBASH; then
34554         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5
34555 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;}
34556       fi
34557       # Try to locate tool using the code snippet
34558       for ac_prog in as
34559 do
34560   # Extract the first word of "$ac_prog", so it can be a program name with args.
34561 set dummy $ac_prog; ac_word=$2
34562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34563 $as_echo_n "checking for $ac_word... " >&6; }
34564 if ${ac_cv_path_AS+:} false; then :
34565   $as_echo_n "(cached) " >&6
34566 else
34567   case $AS in
34568   [\\/]* | ?:[\\/]*)
34569   ac_cv_path_AS="$AS" # Let the user override the test with a path.
34570   ;;
34571   *)
34572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34573 for as_dir in $PATH
34574 do
34575   IFS=$as_save_IFS
34576   test -z "$as_dir" && as_dir=.
34577     for ac_exec_ext in '' $ac_executable_extensions; do
34578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34579     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
34580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34581     break 2
34582   fi
34583 done
34584   done
34585 IFS=$as_save_IFS
34586 
34587   ;;
34588 esac
34589 fi
34590 AS=$ac_cv_path_AS
34591 if test -n "$AS"; then
34592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
34593 $as_echo "$AS" >&6; }
34594 else
34595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34596 $as_echo "no" >&6; }
34597 fi
34598 
34599 
34600   test -n "$AS" && break
34601 done
34602 
34603     else
34604       # If it succeeded, then it was overridden by the user. We will use it
34605       # for the tool.
34606 
34607       # First remove it from the list of overridden variables, so we can test
34608       # for unknown variables in the end.
34609       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
34610 
34611       # Check if the provided tool contains a complete path.
34612       tool_specified="$AS"
34613       tool_basename="${tool_specified##*/}"
34614       if test "x$tool_basename" = "x$tool_specified"; then
34615         # A command without a complete path is provided, search $PATH.
34616         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5
34617 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;}
34618         # Extract the first word of "$tool_basename", so it can be a program name with args.
34619 set dummy $tool_basename; ac_word=$2
34620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34621 $as_echo_n "checking for $ac_word... " >&6; }
34622 if ${ac_cv_path_AS+:} false; then :
34623   $as_echo_n "(cached) " >&6
34624 else
34625   case $AS in
34626   [\\/]* | ?:[\\/]*)
34627   ac_cv_path_AS="$AS" # Let the user override the test with a path.
34628   ;;
34629   *)
34630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34631 for as_dir in $PATH
34632 do
34633   IFS=$as_save_IFS
34634   test -z "$as_dir" && as_dir=.
34635     for ac_exec_ext in '' $ac_executable_extensions; do
34636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34637     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
34638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34639     break 2
34640   fi
34641 done
34642   done
34643 IFS=$as_save_IFS
34644 
34645   ;;
34646 esac
34647 fi
34648 AS=$ac_cv_path_AS
34649 if test -n "$AS"; then
34650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
34651 $as_echo "$AS" >&6; }
34652 else
34653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34654 $as_echo "no" >&6; }
34655 fi
34656 
34657 
34658         if test "x$AS" = x; then
34659           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
34660         fi
34661       else
34662         # Otherwise we believe it is a complete path. Use it as it is.
34663         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5
34664 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;}
34665         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5
34666 $as_echo_n "checking for AS... " >&6; }
34667         if test ! -x "$tool_specified"; then
34668           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
34669 $as_echo "not found" >&6; }
34670           as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5
34671         fi
34672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
34673 $as_echo "$tool_specified" >&6; }
34674       fi
34675     fi
34676   fi
34677 
34678 
34679 
34680   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34681 
34682   # First separate the path from the arguments. This will split at the first
34683   # space.
34684   complete="$AS"
34685   path="${complete%% *}"
34686   tmp="$complete EOL"
34687   arguments="${tmp#* }"
34688 
34689   # Input might be given as Windows format, start by converting to
34690   # unix format.
34691   new_path=`$CYGPATH -u "$path"`
34692 
34693   # Now try to locate executable using which
34694   new_path=`$WHICH "$new_path" 2> /dev/null`
34695   # bat and cmd files are not always considered executable in cygwin causing which
34696   # to not find them
34697   if test "x$new_path" = x \
34698       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34699       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34700     new_path=`$CYGPATH -u "$path"`
34701   fi
34702   if test "x$new_path" = x; then
34703     # Oops. Which didn't find the executable.
34704     # The splitting of arguments from the executable at a space might have been incorrect,
34705     # since paths with space are more likely in Windows. Give it another try with the whole
34706     # argument.
34707     path="$complete"
34708     arguments="EOL"
34709     new_path=`$CYGPATH -u "$path"`
34710     new_path=`$WHICH "$new_path" 2> /dev/null`
34711     # bat and cmd files are not always considered executable in cygwin causing which
34712     # to not find them
34713     if test "x$new_path" = x \
34714         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34715         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34716       new_path=`$CYGPATH -u "$path"`
34717     fi
34718     if test "x$new_path" = x; then
34719       # It's still not found. Now this is an unrecoverable error.
34720       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
34721 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
34722       has_space=`$ECHO "$complete" | $GREP " "`
34723       if test "x$has_space" != x; then
34724         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34725 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34726       fi
34727       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
34728     fi
34729   fi
34730 
34731   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34732   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34733   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34734   # "foo.exe" is OK but "foo" is an error.
34735   #
34736   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34737   # It is also a way to make sure we got the proper file name for the real test later on.
34738   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34739   if test "x$test_shortpath" = x; then
34740     # Short path failed, file does not exist as specified.
34741     # Try adding .exe or .cmd
34742     if test -f "${new_path}.exe"; then
34743       input_to_shortpath="${new_path}.exe"
34744     elif test -f "${new_path}.cmd"; then
34745       input_to_shortpath="${new_path}.cmd"
34746     else
34747       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5
34748 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;}
34749       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34750 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34751       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
34752     fi
34753   else
34754     input_to_shortpath="$new_path"
34755   fi
34756 
34757   # Call helper function which possibly converts this using DOS-style short mode.
34758   # If so, the updated path is stored in $new_path.
34759   new_path="$input_to_shortpath"
34760 
34761   input_path="$input_to_shortpath"
34762   # Check if we need to convert this using DOS-style short mode. If the path
34763   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34764   # take no chances and rewrite it.
34765   # Note: m4 eats our [], so we need to use [ and ] instead.
34766   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34767   if test "x$has_forbidden_chars" != x; then
34768     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34769     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34770     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34771     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34772       # Going to short mode and back again did indeed matter. Since short mode is
34773       # case insensitive, let's make it lowercase to improve readability.
34774       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34775       # Now convert it back to Unix-stile (cygpath)
34776       input_path=`$CYGPATH -u "$shortmode_path"`
34777       new_path="$input_path"
34778     fi
34779   fi
34780 
34781   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34782   if test "x$test_cygdrive_prefix" = x; then
34783     # As a simple fix, exclude /usr/bin since it's not a real path.
34784     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34785       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34786       # a path prefixed by /cygdrive for fixpath to work.
34787       new_path="$CYGWIN_ROOT_PATH$input_path"
34788     fi
34789   fi
34790 
34791   # remove trailing .exe if any
34792   new_path="${new_path/%.exe/}"
34793 
34794   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34795 
34796   # First separate the path from the arguments. This will split at the first
34797   # space.
34798   complete="$AS"
34799   path="${complete%% *}"
34800   tmp="$complete EOL"
34801   arguments="${tmp#* }"
34802 
34803   # Input might be given as Windows format, start by converting to
34804   # unix format.
34805   new_path="$path"
34806 
34807   windows_path="$new_path"
34808   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34809     unix_path=`$CYGPATH -u "$windows_path"`
34810     new_path="$unix_path"
34811   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34812     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34813     new_path="$unix_path"
34814   fi
34815 
34816 
34817   # Now try to locate executable using which
34818   new_path=`$WHICH "$new_path" 2> /dev/null`
34819 
34820   if test "x$new_path" = x; then
34821     # Oops. Which didn't find the executable.
34822     # The splitting of arguments from the executable at a space might have been incorrect,
34823     # since paths with space are more likely in Windows. Give it another try with the whole
34824     # argument.
34825     path="$complete"
34826     arguments="EOL"
34827     new_path="$path"
34828 
34829   windows_path="$new_path"
34830   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34831     unix_path=`$CYGPATH -u "$windows_path"`
34832     new_path="$unix_path"
34833   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34834     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34835     new_path="$unix_path"
34836   fi
34837 
34838 
34839     new_path=`$WHICH "$new_path" 2> /dev/null`
34840 
34841     if test "x$new_path" = x; then
34842       # It's still not found. Now this is an unrecoverable error.
34843       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
34844 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
34845       has_space=`$ECHO "$complete" | $GREP " "`
34846       if test "x$has_space" != x; then
34847         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34848 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34849       fi
34850       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
34851     fi
34852   fi
34853 
34854   # Now new_path has a complete unix path to the binary
34855   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34856     # Keep paths in /bin as-is, but remove trailing .exe if any
34857     new_path="${new_path/%.exe/}"
34858     # Do not save /bin paths to all_fixpath_prefixes!
34859   else
34860     # Not in mixed or Windows style, start by that.
34861     new_path=`cmd //c echo $new_path`
34862 
34863   input_path="$new_path"
34864   # Check if we need to convert this using DOS-style short mode. If the path
34865   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34866   # take no chances and rewrite it.
34867   # Note: m4 eats our [], so we need to use [ and ] instead.
34868   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34869   if test "x$has_forbidden_chars" != x; then
34870     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34871     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34872   fi
34873 
34874     # Output is in $new_path
34875 
34876   windows_path="$new_path"
34877   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34878     unix_path=`$CYGPATH -u "$windows_path"`
34879     new_path="$unix_path"
34880   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34881     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34882     new_path="$unix_path"
34883   fi
34884 
34885     # remove trailing .exe if any
34886     new_path="${new_path/%.exe/}"
34887 
34888     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34889     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34890   fi
34891 
34892   else
34893     # We're on a posix platform. Hooray! :)
34894     # First separate the path from the arguments. This will split at the first
34895     # space.
34896     complete="$AS"
34897     path="${complete%% *}"
34898     tmp="$complete EOL"
34899     arguments="${tmp#* }"
34900 
34901     # Cannot rely on the command "which" here since it doesn't always work.
34902     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34903     if test -z "$is_absolute_path"; then
34904       # Path to executable is not absolute. Find it.
34905       IFS_save="$IFS"
34906       IFS=:
34907       for p in $PATH; do
34908         if test -f "$p/$path" && test -x "$p/$path"; then
34909           new_path="$p/$path"
34910           break
34911         fi
34912       done
34913       IFS="$IFS_save"
34914     else
34915       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AS (as $path) failed, using $path directly." >&5
34916 $as_echo "$as_me: Resolving AS (as $path) failed, using $path directly." >&6;}
34917       new_path="$path"
34918     fi
34919 
34920     if test "x$new_path" = x; then
34921       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
34922 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
34923       has_space=`$ECHO "$complete" | $GREP " "`
34924       if test "x$has_space" != x; then
34925         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34926 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34927       fi
34928       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
34929     fi
34930   fi
34931 
34932   # Now join together the path and the arguments once again
34933   if test "x$arguments" != xEOL; then
34934     new_complete="$new_path ${arguments% *}"
34935   else
34936     new_complete="$new_path"
34937   fi
34938 
34939   if test "x$complete" != "x$new_complete"; then
34940     AS="$new_complete"
34941     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
34942 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
34943   fi
34944 
34945   else
34946     AS="$CC -c"
34947   fi
34948 
34949 
34950   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
34951 
34952 
34953   # Publish this variable in the help.
34954 
34955 
34956   if test "x$NM" = x; then
34957     # The variable is not set by user, try to locate tool using the code snippet
34958     for ac_prog in nm
34959 do
34960   # Extract the first word of "$ac_prog", so it can be a program name with args.
34961 set dummy $ac_prog; ac_word=$2
34962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34963 $as_echo_n "checking for $ac_word... " >&6; }
34964 if ${ac_cv_path_NM+:} false; then :
34965   $as_echo_n "(cached) " >&6
34966 else
34967   case $NM in
34968   [\\/]* | ?:[\\/]*)
34969   ac_cv_path_NM="$NM" # Let the user override the test with a path.
34970   ;;
34971   *)
34972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34973 for as_dir in $PATH
34974 do
34975   IFS=$as_save_IFS
34976   test -z "$as_dir" && as_dir=.
34977     for ac_exec_ext in '' $ac_executable_extensions; do
34978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34979     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
34980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34981     break 2
34982   fi
34983 done
34984   done
34985 IFS=$as_save_IFS
34986 
34987   ;;
34988 esac
34989 fi
34990 NM=$ac_cv_path_NM
34991 if test -n "$NM"; then
34992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
34993 $as_echo "$NM" >&6; }
34994 else
34995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34996 $as_echo "no" >&6; }
34997 fi
34998 
34999 
35000   test -n "$NM" && break
35001 done
35002 
35003   else
35004     # The variable is set, but is it from the command line or the environment?
35005 
35006     # Try to remove the string !NM! from our list.
35007     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
35008     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35009       # If it failed, the variable was not from the command line. Ignore it,
35010       # but warn the user (except for BASH, which is always set by the calling BASH).
35011       if test "xNM" != xBASH; then
35012         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
35013 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
35014       fi
35015       # Try to locate tool using the code snippet
35016       for ac_prog in nm
35017 do
35018   # Extract the first word of "$ac_prog", so it can be a program name with args.
35019 set dummy $ac_prog; ac_word=$2
35020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35021 $as_echo_n "checking for $ac_word... " >&6; }
35022 if ${ac_cv_path_NM+:} false; then :
35023   $as_echo_n "(cached) " >&6
35024 else
35025   case $NM in
35026   [\\/]* | ?:[\\/]*)
35027   ac_cv_path_NM="$NM" # Let the user override the test with a path.
35028   ;;
35029   *)
35030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35031 for as_dir in $PATH
35032 do
35033   IFS=$as_save_IFS
35034   test -z "$as_dir" && as_dir=.
35035     for ac_exec_ext in '' $ac_executable_extensions; do
35036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35037     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
35038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35039     break 2
35040   fi
35041 done
35042   done
35043 IFS=$as_save_IFS
35044 
35045   ;;
35046 esac
35047 fi
35048 NM=$ac_cv_path_NM
35049 if test -n "$NM"; then
35050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
35051 $as_echo "$NM" >&6; }
35052 else
35053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35054 $as_echo "no" >&6; }
35055 fi
35056 
35057 
35058   test -n "$NM" && break
35059 done
35060 
35061     else
35062       # If it succeeded, then it was overridden by the user. We will use it
35063       # for the tool.
35064 
35065       # First remove it from the list of overridden variables, so we can test
35066       # for unknown variables in the end.
35067       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
35068 
35069       # Check if the provided tool contains a complete path.
35070       tool_specified="$NM"
35071       tool_basename="${tool_specified##*/}"
35072       if test "x$tool_basename" = "x$tool_specified"; then
35073         # A command without a complete path is provided, search $PATH.
35074         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
35075 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
35076         # Extract the first word of "$tool_basename", so it can be a program name with args.
35077 set dummy $tool_basename; ac_word=$2
35078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35079 $as_echo_n "checking for $ac_word... " >&6; }
35080 if ${ac_cv_path_NM+:} false; then :
35081   $as_echo_n "(cached) " >&6
35082 else
35083   case $NM in
35084   [\\/]* | ?:[\\/]*)
35085   ac_cv_path_NM="$NM" # Let the user override the test with a path.
35086   ;;
35087   *)
35088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35089 for as_dir in $PATH
35090 do
35091   IFS=$as_save_IFS
35092   test -z "$as_dir" && as_dir=.
35093     for ac_exec_ext in '' $ac_executable_extensions; do
35094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35095     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
35096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35097     break 2
35098   fi
35099 done
35100   done
35101 IFS=$as_save_IFS
35102 
35103   ;;
35104 esac
35105 fi
35106 NM=$ac_cv_path_NM
35107 if test -n "$NM"; then
35108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
35109 $as_echo "$NM" >&6; }
35110 else
35111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35112 $as_echo "no" >&6; }
35113 fi
35114 
35115 
35116         if test "x$NM" = x; then
35117           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
35118         fi
35119       else
35120         # Otherwise we believe it is a complete path. Use it as it is.
35121         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
35122 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
35123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
35124 $as_echo_n "checking for NM... " >&6; }
35125         if test ! -x "$tool_specified"; then
35126           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
35127 $as_echo "not found" >&6; }
35128           as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
35129         fi
35130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
35131 $as_echo "$tool_specified" >&6; }
35132       fi
35133     fi
35134   fi
35135 
35136 
35137 
35138   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35139 
35140   # First separate the path from the arguments. This will split at the first
35141   # space.
35142   complete="$NM"
35143   path="${complete%% *}"
35144   tmp="$complete EOL"
35145   arguments="${tmp#* }"
35146 
35147   # Input might be given as Windows format, start by converting to
35148   # unix format.
35149   new_path=`$CYGPATH -u "$path"`
35150 
35151   # Now try to locate executable using which
35152   new_path=`$WHICH "$new_path" 2> /dev/null`
35153   # bat and cmd files are not always considered executable in cygwin causing which
35154   # to not find them
35155   if test "x$new_path" = x \
35156       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35157       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35158     new_path=`$CYGPATH -u "$path"`
35159   fi
35160   if test "x$new_path" = x; then
35161     # Oops. Which didn't find the executable.
35162     # The splitting of arguments from the executable at a space might have been incorrect,
35163     # since paths with space are more likely in Windows. Give it another try with the whole
35164     # argument.
35165     path="$complete"
35166     arguments="EOL"
35167     new_path=`$CYGPATH -u "$path"`
35168     new_path=`$WHICH "$new_path" 2> /dev/null`
35169     # bat and cmd files are not always considered executable in cygwin causing which
35170     # to not find them
35171     if test "x$new_path" = x \
35172         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35173         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35174       new_path=`$CYGPATH -u "$path"`
35175     fi
35176     if test "x$new_path" = x; then
35177       # It's still not found. Now this is an unrecoverable error.
35178       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
35179 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
35180       has_space=`$ECHO "$complete" | $GREP " "`
35181       if test "x$has_space" != x; then
35182         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35183 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35184       fi
35185       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35186     fi
35187   fi
35188 
35189   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35190   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35191   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35192   # "foo.exe" is OK but "foo" is an error.
35193   #
35194   # This test is therefore slightly more accurate than "test -f" to check for file presence.
35195   # It is also a way to make sure we got the proper file name for the real test later on.
35196   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35197   if test "x$test_shortpath" = x; then
35198     # Short path failed, file does not exist as specified.
35199     # Try adding .exe or .cmd
35200     if test -f "${new_path}.exe"; then
35201       input_to_shortpath="${new_path}.exe"
35202     elif test -f "${new_path}.cmd"; then
35203       input_to_shortpath="${new_path}.cmd"
35204     else
35205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
35206 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
35207       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35208 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35209       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35210     fi
35211   else
35212     input_to_shortpath="$new_path"
35213   fi
35214 
35215   # Call helper function which possibly converts this using DOS-style short mode.
35216   # If so, the updated path is stored in $new_path.
35217   new_path="$input_to_shortpath"
35218 
35219   input_path="$input_to_shortpath"
35220   # Check if we need to convert this using DOS-style short mode. If the path
35221   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35222   # take no chances and rewrite it.
35223   # Note: m4 eats our [], so we need to use [ and ] instead.
35224   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35225   if test "x$has_forbidden_chars" != x; then
35226     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35227     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35228     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35229     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35230       # Going to short mode and back again did indeed matter. Since short mode is
35231       # case insensitive, let's make it lowercase to improve readability.
35232       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35233       # Now convert it back to Unix-stile (cygpath)
35234       input_path=`$CYGPATH -u "$shortmode_path"`
35235       new_path="$input_path"
35236     fi
35237   fi
35238 
35239   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35240   if test "x$test_cygdrive_prefix" = x; then
35241     # As a simple fix, exclude /usr/bin since it's not a real path.
35242     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35243       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35244       # a path prefixed by /cygdrive for fixpath to work.
35245       new_path="$CYGWIN_ROOT_PATH$input_path"
35246     fi
35247   fi
35248 
35249   # remove trailing .exe if any
35250   new_path="${new_path/%.exe/}"
35251 
35252   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35253 
35254   # First separate the path from the arguments. This will split at the first
35255   # space.
35256   complete="$NM"
35257   path="${complete%% *}"
35258   tmp="$complete EOL"
35259   arguments="${tmp#* }"
35260 
35261   # Input might be given as Windows format, start by converting to
35262   # unix format.
35263   new_path="$path"
35264 
35265   windows_path="$new_path"
35266   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35267     unix_path=`$CYGPATH -u "$windows_path"`
35268     new_path="$unix_path"
35269   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35270     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35271     new_path="$unix_path"
35272   fi
35273 
35274 
35275   # Now try to locate executable using which
35276   new_path=`$WHICH "$new_path" 2> /dev/null`
35277 
35278   if test "x$new_path" = x; then
35279     # Oops. Which didn't find the executable.
35280     # The splitting of arguments from the executable at a space might have been incorrect,
35281     # since paths with space are more likely in Windows. Give it another try with the whole
35282     # argument.
35283     path="$complete"
35284     arguments="EOL"
35285     new_path="$path"
35286 
35287   windows_path="$new_path"
35288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35289     unix_path=`$CYGPATH -u "$windows_path"`
35290     new_path="$unix_path"
35291   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35292     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35293     new_path="$unix_path"
35294   fi
35295 
35296 
35297     new_path=`$WHICH "$new_path" 2> /dev/null`
35298 
35299     if test "x$new_path" = x; then
35300       # It's still not found. Now this is an unrecoverable error.
35301       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
35302 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
35303       has_space=`$ECHO "$complete" | $GREP " "`
35304       if test "x$has_space" != x; then
35305         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35306 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35307       fi
35308       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35309     fi
35310   fi
35311 
35312   # Now new_path has a complete unix path to the binary
35313   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35314     # Keep paths in /bin as-is, but remove trailing .exe if any
35315     new_path="${new_path/%.exe/}"
35316     # Do not save /bin paths to all_fixpath_prefixes!
35317   else
35318     # Not in mixed or Windows style, start by that.
35319     new_path=`cmd //c echo $new_path`
35320 
35321   input_path="$new_path"
35322   # Check if we need to convert this using DOS-style short mode. If the path
35323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35324   # take no chances and rewrite it.
35325   # Note: m4 eats our [], so we need to use [ and ] instead.
35326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35327   if test "x$has_forbidden_chars" != x; then
35328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35329     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35330   fi
35331 
35332     # Output is in $new_path
35333 
35334   windows_path="$new_path"
35335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35336     unix_path=`$CYGPATH -u "$windows_path"`
35337     new_path="$unix_path"
35338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35340     new_path="$unix_path"
35341   fi
35342 
35343     # remove trailing .exe if any
35344     new_path="${new_path/%.exe/}"
35345 
35346     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35347     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35348   fi
35349 
35350   else
35351     # We're on a posix platform. Hooray! :)
35352     # First separate the path from the arguments. This will split at the first
35353     # space.
35354     complete="$NM"
35355     path="${complete%% *}"
35356     tmp="$complete EOL"
35357     arguments="${tmp#* }"
35358 
35359     # Cannot rely on the command "which" here since it doesn't always work.
35360     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35361     if test -z "$is_absolute_path"; then
35362       # Path to executable is not absolute. Find it.
35363       IFS_save="$IFS"
35364       IFS=:
35365       for p in $PATH; do
35366         if test -f "$p/$path" && test -x "$p/$path"; then
35367           new_path="$p/$path"
35368           break
35369         fi
35370       done
35371       IFS="$IFS_save"
35372     else
35373       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5
35374 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;}
35375       new_path="$path"
35376     fi
35377 
35378     if test "x$new_path" = x; then
35379       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
35380 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
35381       has_space=`$ECHO "$complete" | $GREP " "`
35382       if test "x$has_space" != x; then
35383         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35384 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35385       fi
35386       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35387     fi
35388   fi
35389 
35390   # Now join together the path and the arguments once again
35391   if test "x$arguments" != xEOL; then
35392     new_complete="$new_path ${arguments% *}"
35393   else
35394     new_complete="$new_path"
35395   fi
35396 
35397   if test "x$complete" != "x$new_complete"; then
35398     NM="$new_complete"
35399     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
35400 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
35401   fi
35402 
35403 
35404 
35405   # Publish this variable in the help.
35406 
35407 
35408   if test "x$GNM" = x; then
35409     # The variable is not set by user, try to locate tool using the code snippet
35410     for ac_prog in gnm
35411 do
35412   # Extract the first word of "$ac_prog", so it can be a program name with args.
35413 set dummy $ac_prog; ac_word=$2
35414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35415 $as_echo_n "checking for $ac_word... " >&6; }
35416 if ${ac_cv_path_GNM+:} false; then :
35417   $as_echo_n "(cached) " >&6
35418 else
35419   case $GNM in
35420   [\\/]* | ?:[\\/]*)
35421   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
35422   ;;
35423   *)
35424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35425 for as_dir in $PATH
35426 do
35427   IFS=$as_save_IFS
35428   test -z "$as_dir" && as_dir=.
35429     for ac_exec_ext in '' $ac_executable_extensions; do
35430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35431     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
35432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35433     break 2
35434   fi
35435 done
35436   done
35437 IFS=$as_save_IFS
35438 
35439   ;;
35440 esac
35441 fi
35442 GNM=$ac_cv_path_GNM
35443 if test -n "$GNM"; then
35444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
35445 $as_echo "$GNM" >&6; }
35446 else
35447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35448 $as_echo "no" >&6; }
35449 fi
35450 
35451 
35452   test -n "$GNM" && break
35453 done
35454 
35455   else
35456     # The variable is set, but is it from the command line or the environment?
35457 
35458     # Try to remove the string !GNM! from our list.
35459     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/}
35460     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35461       # If it failed, the variable was not from the command line. Ignore it,
35462       # but warn the user (except for BASH, which is always set by the calling BASH).
35463       if test "xGNM" != xBASH; then
35464         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5
35465 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;}
35466       fi
35467       # Try to locate tool using the code snippet
35468       for ac_prog in gnm
35469 do
35470   # Extract the first word of "$ac_prog", so it can be a program name with args.
35471 set dummy $ac_prog; ac_word=$2
35472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35473 $as_echo_n "checking for $ac_word... " >&6; }
35474 if ${ac_cv_path_GNM+:} false; then :
35475   $as_echo_n "(cached) " >&6
35476 else
35477   case $GNM in
35478   [\\/]* | ?:[\\/]*)
35479   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
35480   ;;
35481   *)
35482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35483 for as_dir in $PATH
35484 do
35485   IFS=$as_save_IFS
35486   test -z "$as_dir" && as_dir=.
35487     for ac_exec_ext in '' $ac_executable_extensions; do
35488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35489     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
35490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35491     break 2
35492   fi
35493 done
35494   done
35495 IFS=$as_save_IFS
35496 
35497   ;;
35498 esac
35499 fi
35500 GNM=$ac_cv_path_GNM
35501 if test -n "$GNM"; then
35502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
35503 $as_echo "$GNM" >&6; }
35504 else
35505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35506 $as_echo "no" >&6; }
35507 fi
35508 
35509 
35510   test -n "$GNM" && break
35511 done
35512 
35513     else
35514       # If it succeeded, then it was overridden by the user. We will use it
35515       # for the tool.
35516 
35517       # First remove it from the list of overridden variables, so we can test
35518       # for unknown variables in the end.
35519       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
35520 
35521       # Check if the provided tool contains a complete path.
35522       tool_specified="$GNM"
35523       tool_basename="${tool_specified##*/}"
35524       if test "x$tool_basename" = "x$tool_specified"; then
35525         # A command without a complete path is provided, search $PATH.
35526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5
35527 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;}
35528         # Extract the first word of "$tool_basename", so it can be a program name with args.
35529 set dummy $tool_basename; ac_word=$2
35530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35531 $as_echo_n "checking for $ac_word... " >&6; }
35532 if ${ac_cv_path_GNM+:} false; then :
35533   $as_echo_n "(cached) " >&6
35534 else
35535   case $GNM in
35536   [\\/]* | ?:[\\/]*)
35537   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
35538   ;;
35539   *)
35540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35541 for as_dir in $PATH
35542 do
35543   IFS=$as_save_IFS
35544   test -z "$as_dir" && as_dir=.
35545     for ac_exec_ext in '' $ac_executable_extensions; do
35546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35547     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
35548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35549     break 2
35550   fi
35551 done
35552   done
35553 IFS=$as_save_IFS
35554 
35555   ;;
35556 esac
35557 fi
35558 GNM=$ac_cv_path_GNM
35559 if test -n "$GNM"; then
35560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
35561 $as_echo "$GNM" >&6; }
35562 else
35563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35564 $as_echo "no" >&6; }
35565 fi
35566 
35567 
35568         if test "x$GNM" = x; then
35569           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
35570         fi
35571       else
35572         # Otherwise we believe it is a complete path. Use it as it is.
35573         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5
35574 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;}
35575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5
35576 $as_echo_n "checking for GNM... " >&6; }
35577         if test ! -x "$tool_specified"; then
35578           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
35579 $as_echo "not found" >&6; }
35580           as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5
35581         fi
35582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
35583 $as_echo "$tool_specified" >&6; }
35584       fi
35585     fi
35586   fi
35587 
35588 
35589 
35590   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35591 
35592   # First separate the path from the arguments. This will split at the first
35593   # space.
35594   complete="$GNM"
35595   path="${complete%% *}"
35596   tmp="$complete EOL"
35597   arguments="${tmp#* }"
35598 
35599   # Input might be given as Windows format, start by converting to
35600   # unix format.
35601   new_path=`$CYGPATH -u "$path"`
35602 
35603   # Now try to locate executable using which
35604   new_path=`$WHICH "$new_path" 2> /dev/null`
35605   # bat and cmd files are not always considered executable in cygwin causing which
35606   # to not find them
35607   if test "x$new_path" = x \
35608       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35609       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35610     new_path=`$CYGPATH -u "$path"`
35611   fi
35612   if test "x$new_path" = x; then
35613     # Oops. Which didn't find the executable.
35614     # The splitting of arguments from the executable at a space might have been incorrect,
35615     # since paths with space are more likely in Windows. Give it another try with the whole
35616     # argument.
35617     path="$complete"
35618     arguments="EOL"
35619     new_path=`$CYGPATH -u "$path"`
35620     new_path=`$WHICH "$new_path" 2> /dev/null`
35621     # bat and cmd files are not always considered executable in cygwin causing which
35622     # to not find them
35623     if test "x$new_path" = x \
35624         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35625         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35626       new_path=`$CYGPATH -u "$path"`
35627     fi
35628     if test "x$new_path" = x; then
35629       # It's still not found. Now this is an unrecoverable error.
35630       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
35631 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
35632       has_space=`$ECHO "$complete" | $GREP " "`
35633       if test "x$has_space" != x; then
35634         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35635 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35636       fi
35637       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35638     fi
35639   fi
35640 
35641   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35642   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35643   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35644   # "foo.exe" is OK but "foo" is an error.
35645   #
35646   # This test is therefore slightly more accurate than "test -f" to check for file presence.
35647   # It is also a way to make sure we got the proper file name for the real test later on.
35648   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35649   if test "x$test_shortpath" = x; then
35650     # Short path failed, file does not exist as specified.
35651     # Try adding .exe or .cmd
35652     if test -f "${new_path}.exe"; then
35653       input_to_shortpath="${new_path}.exe"
35654     elif test -f "${new_path}.cmd"; then
35655       input_to_shortpath="${new_path}.cmd"
35656     else
35657       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5
35658 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;}
35659       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35660 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35661       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35662     fi
35663   else
35664     input_to_shortpath="$new_path"
35665   fi
35666 
35667   # Call helper function which possibly converts this using DOS-style short mode.
35668   # If so, the updated path is stored in $new_path.
35669   new_path="$input_to_shortpath"
35670 
35671   input_path="$input_to_shortpath"
35672   # Check if we need to convert this using DOS-style short mode. If the path
35673   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35674   # take no chances and rewrite it.
35675   # Note: m4 eats our [], so we need to use [ and ] instead.
35676   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35677   if test "x$has_forbidden_chars" != x; then
35678     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35679     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35680     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35681     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35682       # Going to short mode and back again did indeed matter. Since short mode is
35683       # case insensitive, let's make it lowercase to improve readability.
35684       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35685       # Now convert it back to Unix-stile (cygpath)
35686       input_path=`$CYGPATH -u "$shortmode_path"`
35687       new_path="$input_path"
35688     fi
35689   fi
35690 
35691   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35692   if test "x$test_cygdrive_prefix" = x; then
35693     # As a simple fix, exclude /usr/bin since it's not a real path.
35694     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35695       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35696       # a path prefixed by /cygdrive for fixpath to work.
35697       new_path="$CYGWIN_ROOT_PATH$input_path"
35698     fi
35699   fi
35700 
35701   # remove trailing .exe if any
35702   new_path="${new_path/%.exe/}"
35703 
35704   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35705 
35706   # First separate the path from the arguments. This will split at the first
35707   # space.
35708   complete="$GNM"
35709   path="${complete%% *}"
35710   tmp="$complete EOL"
35711   arguments="${tmp#* }"
35712 
35713   # Input might be given as Windows format, start by converting to
35714   # unix format.
35715   new_path="$path"
35716 
35717   windows_path="$new_path"
35718   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35719     unix_path=`$CYGPATH -u "$windows_path"`
35720     new_path="$unix_path"
35721   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35722     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35723     new_path="$unix_path"
35724   fi
35725 
35726 
35727   # Now try to locate executable using which
35728   new_path=`$WHICH "$new_path" 2> /dev/null`
35729 
35730   if test "x$new_path" = x; then
35731     # Oops. Which didn't find the executable.
35732     # The splitting of arguments from the executable at a space might have been incorrect,
35733     # since paths with space are more likely in Windows. Give it another try with the whole
35734     # argument.
35735     path="$complete"
35736     arguments="EOL"
35737     new_path="$path"
35738 
35739   windows_path="$new_path"
35740   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35741     unix_path=`$CYGPATH -u "$windows_path"`
35742     new_path="$unix_path"
35743   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35744     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35745     new_path="$unix_path"
35746   fi
35747 
35748 
35749     new_path=`$WHICH "$new_path" 2> /dev/null`
35750 
35751     if test "x$new_path" = x; then
35752       # It's still not found. Now this is an unrecoverable error.
35753       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
35754 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
35755       has_space=`$ECHO "$complete" | $GREP " "`
35756       if test "x$has_space" != x; then
35757         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35758 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35759       fi
35760       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35761     fi
35762   fi
35763 
35764   # Now new_path has a complete unix path to the binary
35765   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35766     # Keep paths in /bin as-is, but remove trailing .exe if any
35767     new_path="${new_path/%.exe/}"
35768     # Do not save /bin paths to all_fixpath_prefixes!
35769   else
35770     # Not in mixed or Windows style, start by that.
35771     new_path=`cmd //c echo $new_path`
35772 
35773   input_path="$new_path"
35774   # Check if we need to convert this using DOS-style short mode. If the path
35775   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35776   # take no chances and rewrite it.
35777   # Note: m4 eats our [], so we need to use [ and ] instead.
35778   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35779   if test "x$has_forbidden_chars" != x; then
35780     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35781     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35782   fi
35783 
35784     # Output is in $new_path
35785 
35786   windows_path="$new_path"
35787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35788     unix_path=`$CYGPATH -u "$windows_path"`
35789     new_path="$unix_path"
35790   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35791     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35792     new_path="$unix_path"
35793   fi
35794 
35795     # remove trailing .exe if any
35796     new_path="${new_path/%.exe/}"
35797 
35798     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35799     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35800   fi
35801 
35802   else
35803     # We're on a posix platform. Hooray! :)
35804     # First separate the path from the arguments. This will split at the first
35805     # space.
35806     complete="$GNM"
35807     path="${complete%% *}"
35808     tmp="$complete EOL"
35809     arguments="${tmp#* }"
35810 
35811     # Cannot rely on the command "which" here since it doesn't always work.
35812     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35813     if test -z "$is_absolute_path"; then
35814       # Path to executable is not absolute. Find it.
35815       IFS_save="$IFS"
35816       IFS=:
35817       for p in $PATH; do
35818         if test -f "$p/$path" && test -x "$p/$path"; then
35819           new_path="$p/$path"
35820           break
35821         fi
35822       done
35823       IFS="$IFS_save"
35824     else
35825       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving GNM (as $path) failed, using $path directly." >&5
35826 $as_echo "$as_me: Resolving GNM (as $path) failed, using $path directly." >&6;}
35827       new_path="$path"
35828     fi
35829 
35830     if test "x$new_path" = x; then
35831       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
35832 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
35833       has_space=`$ECHO "$complete" | $GREP " "`
35834       if test "x$has_space" != x; then
35835         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35836 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35837       fi
35838       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35839     fi
35840   fi
35841 
35842   # Now join together the path and the arguments once again
35843   if test "x$arguments" != xEOL; then
35844     new_complete="$new_path ${arguments% *}"
35845   else
35846     new_complete="$new_path"
35847   fi
35848 
35849   if test "x$complete" != "x$new_complete"; then
35850     GNM="$new_complete"
35851     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
35852 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
35853   fi
35854 
35855 
35856 
35857   # Publish this variable in the help.
35858 
35859 
35860   if test "x$STRIP" = x; then
35861     # The variable is not set by user, try to locate tool using the code snippet
35862     for ac_prog in strip
35863 do
35864   # Extract the first word of "$ac_prog", so it can be a program name with args.
35865 set dummy $ac_prog; ac_word=$2
35866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35867 $as_echo_n "checking for $ac_word... " >&6; }
35868 if ${ac_cv_path_STRIP+:} false; then :
35869   $as_echo_n "(cached) " >&6
35870 else
35871   case $STRIP in
35872   [\\/]* | ?:[\\/]*)
35873   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
35874   ;;
35875   *)
35876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35877 for as_dir in $PATH
35878 do
35879   IFS=$as_save_IFS
35880   test -z "$as_dir" && as_dir=.
35881     for ac_exec_ext in '' $ac_executable_extensions; do
35882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35883     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
35884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35885     break 2
35886   fi
35887 done
35888   done
35889 IFS=$as_save_IFS
35890 
35891   ;;
35892 esac
35893 fi
35894 STRIP=$ac_cv_path_STRIP
35895 if test -n "$STRIP"; then
35896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
35897 $as_echo "$STRIP" >&6; }
35898 else
35899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35900 $as_echo "no" >&6; }
35901 fi
35902 
35903 
35904   test -n "$STRIP" && break
35905 done
35906 
35907   else
35908     # The variable is set, but is it from the command line or the environment?
35909 
35910     # Try to remove the string !STRIP! from our list.
35911     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
35912     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35913       # If it failed, the variable was not from the command line. Ignore it,
35914       # but warn the user (except for BASH, which is always set by the calling BASH).
35915       if test "xSTRIP" != xBASH; then
35916         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
35917 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
35918       fi
35919       # Try to locate tool using the code snippet
35920       for ac_prog in strip
35921 do
35922   # Extract the first word of "$ac_prog", so it can be a program name with args.
35923 set dummy $ac_prog; ac_word=$2
35924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35925 $as_echo_n "checking for $ac_word... " >&6; }
35926 if ${ac_cv_path_STRIP+:} false; then :
35927   $as_echo_n "(cached) " >&6
35928 else
35929   case $STRIP in
35930   [\\/]* | ?:[\\/]*)
35931   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
35932   ;;
35933   *)
35934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35935 for as_dir in $PATH
35936 do
35937   IFS=$as_save_IFS
35938   test -z "$as_dir" && as_dir=.
35939     for ac_exec_ext in '' $ac_executable_extensions; do
35940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35941     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
35942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35943     break 2
35944   fi
35945 done
35946   done
35947 IFS=$as_save_IFS
35948 
35949   ;;
35950 esac
35951 fi
35952 STRIP=$ac_cv_path_STRIP
35953 if test -n "$STRIP"; then
35954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
35955 $as_echo "$STRIP" >&6; }
35956 else
35957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35958 $as_echo "no" >&6; }
35959 fi
35960 
35961 
35962   test -n "$STRIP" && break
35963 done
35964 
35965     else
35966       # If it succeeded, then it was overridden by the user. We will use it
35967       # for the tool.
35968 
35969       # First remove it from the list of overridden variables, so we can test
35970       # for unknown variables in the end.
35971       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
35972 
35973       # Check if the provided tool contains a complete path.
35974       tool_specified="$STRIP"
35975       tool_basename="${tool_specified##*/}"
35976       if test "x$tool_basename" = "x$tool_specified"; then
35977         # A command without a complete path is provided, search $PATH.
35978         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
35979 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
35980         # Extract the first word of "$tool_basename", so it can be a program name with args.
35981 set dummy $tool_basename; ac_word=$2
35982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35983 $as_echo_n "checking for $ac_word... " >&6; }
35984 if ${ac_cv_path_STRIP+:} false; then :
35985   $as_echo_n "(cached) " >&6
35986 else
35987   case $STRIP in
35988   [\\/]* | ?:[\\/]*)
35989   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
35990   ;;
35991   *)
35992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35993 for as_dir in $PATH
35994 do
35995   IFS=$as_save_IFS
35996   test -z "$as_dir" && as_dir=.
35997     for ac_exec_ext in '' $ac_executable_extensions; do
35998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35999     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
36000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36001     break 2
36002   fi
36003 done
36004   done
36005 IFS=$as_save_IFS
36006 
36007   ;;
36008 esac
36009 fi
36010 STRIP=$ac_cv_path_STRIP
36011 if test -n "$STRIP"; then
36012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
36013 $as_echo "$STRIP" >&6; }
36014 else
36015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36016 $as_echo "no" >&6; }
36017 fi
36018 
36019 
36020         if test "x$STRIP" = x; then
36021           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36022         fi
36023       else
36024         # Otherwise we believe it is a complete path. Use it as it is.
36025         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
36026 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
36027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
36028 $as_echo_n "checking for STRIP... " >&6; }
36029         if test ! -x "$tool_specified"; then
36030           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36031 $as_echo "not found" >&6; }
36032           as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
36033         fi
36034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36035 $as_echo "$tool_specified" >&6; }
36036       fi
36037     fi
36038   fi
36039 
36040 
36041 
36042   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36043 
36044   # First separate the path from the arguments. This will split at the first
36045   # space.
36046   complete="$STRIP"
36047   path="${complete%% *}"
36048   tmp="$complete EOL"
36049   arguments="${tmp#* }"
36050 
36051   # Input might be given as Windows format, start by converting to
36052   # unix format.
36053   new_path=`$CYGPATH -u "$path"`
36054 
36055   # Now try to locate executable using which
36056   new_path=`$WHICH "$new_path" 2> /dev/null`
36057   # bat and cmd files are not always considered executable in cygwin causing which
36058   # to not find them
36059   if test "x$new_path" = x \
36060       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36061       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36062     new_path=`$CYGPATH -u "$path"`
36063   fi
36064   if test "x$new_path" = x; then
36065     # Oops. Which didn't find the executable.
36066     # The splitting of arguments from the executable at a space might have been incorrect,
36067     # since paths with space are more likely in Windows. Give it another try with the whole
36068     # argument.
36069     path="$complete"
36070     arguments="EOL"
36071     new_path=`$CYGPATH -u "$path"`
36072     new_path=`$WHICH "$new_path" 2> /dev/null`
36073     # bat and cmd files are not always considered executable in cygwin causing which
36074     # to not find them
36075     if test "x$new_path" = x \
36076         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36077         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36078       new_path=`$CYGPATH -u "$path"`
36079     fi
36080     if test "x$new_path" = x; then
36081       # It's still not found. Now this is an unrecoverable error.
36082       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
36083 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
36084       has_space=`$ECHO "$complete" | $GREP " "`
36085       if test "x$has_space" != x; then
36086         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36088       fi
36089       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36090     fi
36091   fi
36092 
36093   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36094   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36095   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36096   # "foo.exe" is OK but "foo" is an error.
36097   #
36098   # This test is therefore slightly more accurate than "test -f" to check for file presence.
36099   # It is also a way to make sure we got the proper file name for the real test later on.
36100   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36101   if test "x$test_shortpath" = x; then
36102     # Short path failed, file does not exist as specified.
36103     # Try adding .exe or .cmd
36104     if test -f "${new_path}.exe"; then
36105       input_to_shortpath="${new_path}.exe"
36106     elif test -f "${new_path}.cmd"; then
36107       input_to_shortpath="${new_path}.cmd"
36108     else
36109       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
36110 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
36111       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36112 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36113       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36114     fi
36115   else
36116     input_to_shortpath="$new_path"
36117   fi
36118 
36119   # Call helper function which possibly converts this using DOS-style short mode.
36120   # If so, the updated path is stored in $new_path.
36121   new_path="$input_to_shortpath"
36122 
36123   input_path="$input_to_shortpath"
36124   # Check if we need to convert this using DOS-style short mode. If the path
36125   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36126   # take no chances and rewrite it.
36127   # Note: m4 eats our [], so we need to use [ and ] instead.
36128   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36129   if test "x$has_forbidden_chars" != x; then
36130     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36131     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36132     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36133     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36134       # Going to short mode and back again did indeed matter. Since short mode is
36135       # case insensitive, let's make it lowercase to improve readability.
36136       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36137       # Now convert it back to Unix-stile (cygpath)
36138       input_path=`$CYGPATH -u "$shortmode_path"`
36139       new_path="$input_path"
36140     fi
36141   fi
36142 
36143   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36144   if test "x$test_cygdrive_prefix" = x; then
36145     # As a simple fix, exclude /usr/bin since it's not a real path.
36146     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36147       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36148       # a path prefixed by /cygdrive for fixpath to work.
36149       new_path="$CYGWIN_ROOT_PATH$input_path"
36150     fi
36151   fi
36152 
36153   # remove trailing .exe if any
36154   new_path="${new_path/%.exe/}"
36155 
36156   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36157 
36158   # First separate the path from the arguments. This will split at the first
36159   # space.
36160   complete="$STRIP"
36161   path="${complete%% *}"
36162   tmp="$complete EOL"
36163   arguments="${tmp#* }"
36164 
36165   # Input might be given as Windows format, start by converting to
36166   # unix format.
36167   new_path="$path"
36168 
36169   windows_path="$new_path"
36170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36171     unix_path=`$CYGPATH -u "$windows_path"`
36172     new_path="$unix_path"
36173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36174     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36175     new_path="$unix_path"
36176   fi
36177 
36178 
36179   # Now try to locate executable using which
36180   new_path=`$WHICH "$new_path" 2> /dev/null`
36181 
36182   if test "x$new_path" = x; then
36183     # Oops. Which didn't find the executable.
36184     # The splitting of arguments from the executable at a space might have been incorrect,
36185     # since paths with space are more likely in Windows. Give it another try with the whole
36186     # argument.
36187     path="$complete"
36188     arguments="EOL"
36189     new_path="$path"
36190 
36191   windows_path="$new_path"
36192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36193     unix_path=`$CYGPATH -u "$windows_path"`
36194     new_path="$unix_path"
36195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36197     new_path="$unix_path"
36198   fi
36199 
36200 
36201     new_path=`$WHICH "$new_path" 2> /dev/null`
36202 
36203     if test "x$new_path" = x; then
36204       # It's still not found. Now this is an unrecoverable error.
36205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
36206 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
36207       has_space=`$ECHO "$complete" | $GREP " "`
36208       if test "x$has_space" != x; then
36209         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36211       fi
36212       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36213     fi
36214   fi
36215 
36216   # Now new_path has a complete unix path to the binary
36217   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36218     # Keep paths in /bin as-is, but remove trailing .exe if any
36219     new_path="${new_path/%.exe/}"
36220     # Do not save /bin paths to all_fixpath_prefixes!
36221   else
36222     # Not in mixed or Windows style, start by that.
36223     new_path=`cmd //c echo $new_path`
36224 
36225   input_path="$new_path"
36226   # Check if we need to convert this using DOS-style short mode. If the path
36227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36228   # take no chances and rewrite it.
36229   # Note: m4 eats our [], so we need to use [ and ] instead.
36230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36231   if test "x$has_forbidden_chars" != x; then
36232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36233     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36234   fi
36235 
36236     # Output is in $new_path
36237 
36238   windows_path="$new_path"
36239   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36240     unix_path=`$CYGPATH -u "$windows_path"`
36241     new_path="$unix_path"
36242   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36243     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36244     new_path="$unix_path"
36245   fi
36246 
36247     # remove trailing .exe if any
36248     new_path="${new_path/%.exe/}"
36249 
36250     # Save the first 10 bytes of this path to the storage, so fixpath can work.
36251     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36252   fi
36253 
36254   else
36255     # We're on a posix platform. Hooray! :)
36256     # First separate the path from the arguments. This will split at the first
36257     # space.
36258     complete="$STRIP"
36259     path="${complete%% *}"
36260     tmp="$complete EOL"
36261     arguments="${tmp#* }"
36262 
36263     # Cannot rely on the command "which" here since it doesn't always work.
36264     is_absolute_path=`$ECHO "$path" | $GREP ^/`
36265     if test -z "$is_absolute_path"; then
36266       # Path to executable is not absolute. Find it.
36267       IFS_save="$IFS"
36268       IFS=:
36269       for p in $PATH; do
36270         if test -f "$p/$path" && test -x "$p/$path"; then
36271           new_path="$p/$path"
36272           break
36273         fi
36274       done
36275       IFS="$IFS_save"
36276     else
36277       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5
36278 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;}
36279       new_path="$path"
36280     fi
36281 
36282     if test "x$new_path" = x; then
36283       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
36284 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
36285       has_space=`$ECHO "$complete" | $GREP " "`
36286       if test "x$has_space" != x; then
36287         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36288 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36289       fi
36290       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36291     fi
36292   fi
36293 
36294   # Now join together the path and the arguments once again
36295   if test "x$arguments" != xEOL; then
36296     new_complete="$new_path ${arguments% *}"
36297   else
36298     new_complete="$new_path"
36299   fi
36300 
36301   if test "x$complete" != "x$new_complete"; then
36302     STRIP="$new_complete"
36303     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
36304 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
36305   fi
36306 
36307 
36308 
36309   # Publish this variable in the help.
36310 
36311 
36312   if test "x$MCS" = x; then
36313     # The variable is not set by user, try to locate tool using the code snippet
36314     for ac_prog in mcs
36315 do
36316   # Extract the first word of "$ac_prog", so it can be a program name with args.
36317 set dummy $ac_prog; ac_word=$2
36318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36319 $as_echo_n "checking for $ac_word... " >&6; }
36320 if ${ac_cv_path_MCS+:} false; then :
36321   $as_echo_n "(cached) " >&6
36322 else
36323   case $MCS in
36324   [\\/]* | ?:[\\/]*)
36325   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
36326   ;;
36327   *)
36328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36329 for as_dir in $PATH
36330 do
36331   IFS=$as_save_IFS
36332   test -z "$as_dir" && as_dir=.
36333     for ac_exec_ext in '' $ac_executable_extensions; do
36334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36335     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
36336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36337     break 2
36338   fi
36339 done
36340   done
36341 IFS=$as_save_IFS
36342 
36343   ;;
36344 esac
36345 fi
36346 MCS=$ac_cv_path_MCS
36347 if test -n "$MCS"; then
36348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
36349 $as_echo "$MCS" >&6; }
36350 else
36351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36352 $as_echo "no" >&6; }
36353 fi
36354 
36355 
36356   test -n "$MCS" && break
36357 done
36358 
36359   else
36360     # The variable is set, but is it from the command line or the environment?
36361 
36362     # Try to remove the string !MCS! from our list.
36363     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/}
36364     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36365       # If it failed, the variable was not from the command line. Ignore it,
36366       # but warn the user (except for BASH, which is always set by the calling BASH).
36367       if test "xMCS" != xBASH; then
36368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5
36369 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;}
36370       fi
36371       # Try to locate tool using the code snippet
36372       for ac_prog in mcs
36373 do
36374   # Extract the first word of "$ac_prog", so it can be a program name with args.
36375 set dummy $ac_prog; ac_word=$2
36376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36377 $as_echo_n "checking for $ac_word... " >&6; }
36378 if ${ac_cv_path_MCS+:} false; then :
36379   $as_echo_n "(cached) " >&6
36380 else
36381   case $MCS in
36382   [\\/]* | ?:[\\/]*)
36383   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
36384   ;;
36385   *)
36386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36387 for as_dir in $PATH
36388 do
36389   IFS=$as_save_IFS
36390   test -z "$as_dir" && as_dir=.
36391     for ac_exec_ext in '' $ac_executable_extensions; do
36392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36393     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
36394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36395     break 2
36396   fi
36397 done
36398   done
36399 IFS=$as_save_IFS
36400 
36401   ;;
36402 esac
36403 fi
36404 MCS=$ac_cv_path_MCS
36405 if test -n "$MCS"; then
36406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
36407 $as_echo "$MCS" >&6; }
36408 else
36409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36410 $as_echo "no" >&6; }
36411 fi
36412 
36413 
36414   test -n "$MCS" && break
36415 done
36416 
36417     else
36418       # If it succeeded, then it was overridden by the user. We will use it
36419       # for the tool.
36420 
36421       # First remove it from the list of overridden variables, so we can test
36422       # for unknown variables in the end.
36423       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36424 
36425       # Check if the provided tool contains a complete path.
36426       tool_specified="$MCS"
36427       tool_basename="${tool_specified##*/}"
36428       if test "x$tool_basename" = "x$tool_specified"; then
36429         # A command without a complete path is provided, search $PATH.
36430         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5
36431 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;}
36432         # Extract the first word of "$tool_basename", so it can be a program name with args.
36433 set dummy $tool_basename; ac_word=$2
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36435 $as_echo_n "checking for $ac_word... " >&6; }
36436 if ${ac_cv_path_MCS+:} false; then :
36437   $as_echo_n "(cached) " >&6
36438 else
36439   case $MCS in
36440   [\\/]* | ?:[\\/]*)
36441   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
36442   ;;
36443   *)
36444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36445 for as_dir in $PATH
36446 do
36447   IFS=$as_save_IFS
36448   test -z "$as_dir" && as_dir=.
36449     for ac_exec_ext in '' $ac_executable_extensions; do
36450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36451     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
36452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36453     break 2
36454   fi
36455 done
36456   done
36457 IFS=$as_save_IFS
36458 
36459   ;;
36460 esac
36461 fi
36462 MCS=$ac_cv_path_MCS
36463 if test -n "$MCS"; then
36464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
36465 $as_echo "$MCS" >&6; }
36466 else
36467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36468 $as_echo "no" >&6; }
36469 fi
36470 
36471 
36472         if test "x$MCS" = x; then
36473           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36474         fi
36475       else
36476         # Otherwise we believe it is a complete path. Use it as it is.
36477         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5
36478 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;}
36479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5
36480 $as_echo_n "checking for MCS... " >&6; }
36481         if test ! -x "$tool_specified"; then
36482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36483 $as_echo "not found" >&6; }
36484           as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5
36485         fi
36486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36487 $as_echo "$tool_specified" >&6; }
36488       fi
36489     fi
36490   fi
36491 
36492 
36493 
36494   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36495 
36496   # First separate the path from the arguments. This will split at the first
36497   # space.
36498   complete="$MCS"
36499   path="${complete%% *}"
36500   tmp="$complete EOL"
36501   arguments="${tmp#* }"
36502 
36503   # Input might be given as Windows format, start by converting to
36504   # unix format.
36505   new_path=`$CYGPATH -u "$path"`
36506 
36507   # Now try to locate executable using which
36508   new_path=`$WHICH "$new_path" 2> /dev/null`
36509   # bat and cmd files are not always considered executable in cygwin causing which
36510   # to not find them
36511   if test "x$new_path" = x \
36512       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36513       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36514     new_path=`$CYGPATH -u "$path"`
36515   fi
36516   if test "x$new_path" = x; then
36517     # Oops. Which didn't find the executable.
36518     # The splitting of arguments from the executable at a space might have been incorrect,
36519     # since paths with space are more likely in Windows. Give it another try with the whole
36520     # argument.
36521     path="$complete"
36522     arguments="EOL"
36523     new_path=`$CYGPATH -u "$path"`
36524     new_path=`$WHICH "$new_path" 2> /dev/null`
36525     # bat and cmd files are not always considered executable in cygwin causing which
36526     # to not find them
36527     if test "x$new_path" = x \
36528         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36529         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36530       new_path=`$CYGPATH -u "$path"`
36531     fi
36532     if test "x$new_path" = x; then
36533       # It's still not found. Now this is an unrecoverable error.
36534       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
36535 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
36536       has_space=`$ECHO "$complete" | $GREP " "`
36537       if test "x$has_space" != x; then
36538         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36539 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36540       fi
36541       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36542     fi
36543   fi
36544 
36545   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36546   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36547   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36548   # "foo.exe" is OK but "foo" is an error.
36549   #
36550   # This test is therefore slightly more accurate than "test -f" to check for file presence.
36551   # It is also a way to make sure we got the proper file name for the real test later on.
36552   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36553   if test "x$test_shortpath" = x; then
36554     # Short path failed, file does not exist as specified.
36555     # Try adding .exe or .cmd
36556     if test -f "${new_path}.exe"; then
36557       input_to_shortpath="${new_path}.exe"
36558     elif test -f "${new_path}.cmd"; then
36559       input_to_shortpath="${new_path}.cmd"
36560     else
36561       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5
36562 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;}
36563       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36564 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36565       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36566     fi
36567   else
36568     input_to_shortpath="$new_path"
36569   fi
36570 
36571   # Call helper function which possibly converts this using DOS-style short mode.
36572   # If so, the updated path is stored in $new_path.
36573   new_path="$input_to_shortpath"
36574 
36575   input_path="$input_to_shortpath"
36576   # Check if we need to convert this using DOS-style short mode. If the path
36577   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36578   # take no chances and rewrite it.
36579   # Note: m4 eats our [], so we need to use [ and ] instead.
36580   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36581   if test "x$has_forbidden_chars" != x; then
36582     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36583     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36584     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36585     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36586       # Going to short mode and back again did indeed matter. Since short mode is
36587       # case insensitive, let's make it lowercase to improve readability.
36588       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36589       # Now convert it back to Unix-stile (cygpath)
36590       input_path=`$CYGPATH -u "$shortmode_path"`
36591       new_path="$input_path"
36592     fi
36593   fi
36594 
36595   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36596   if test "x$test_cygdrive_prefix" = x; then
36597     # As a simple fix, exclude /usr/bin since it's not a real path.
36598     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36599       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36600       # a path prefixed by /cygdrive for fixpath to work.
36601       new_path="$CYGWIN_ROOT_PATH$input_path"
36602     fi
36603   fi
36604 
36605   # remove trailing .exe if any
36606   new_path="${new_path/%.exe/}"
36607 
36608   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36609 
36610   # First separate the path from the arguments. This will split at the first
36611   # space.
36612   complete="$MCS"
36613   path="${complete%% *}"
36614   tmp="$complete EOL"
36615   arguments="${tmp#* }"
36616 
36617   # Input might be given as Windows format, start by converting to
36618   # unix format.
36619   new_path="$path"
36620 
36621   windows_path="$new_path"
36622   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36623     unix_path=`$CYGPATH -u "$windows_path"`
36624     new_path="$unix_path"
36625   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36626     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36627     new_path="$unix_path"
36628   fi
36629 
36630 
36631   # Now try to locate executable using which
36632   new_path=`$WHICH "$new_path" 2> /dev/null`
36633 
36634   if test "x$new_path" = x; then
36635     # Oops. Which didn't find the executable.
36636     # The splitting of arguments from the executable at a space might have been incorrect,
36637     # since paths with space are more likely in Windows. Give it another try with the whole
36638     # argument.
36639     path="$complete"
36640     arguments="EOL"
36641     new_path="$path"
36642 
36643   windows_path="$new_path"
36644   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36645     unix_path=`$CYGPATH -u "$windows_path"`
36646     new_path="$unix_path"
36647   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36648     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36649     new_path="$unix_path"
36650   fi
36651 
36652 
36653     new_path=`$WHICH "$new_path" 2> /dev/null`
36654 
36655     if test "x$new_path" = x; then
36656       # It's still not found. Now this is an unrecoverable error.
36657       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
36658 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
36659       has_space=`$ECHO "$complete" | $GREP " "`
36660       if test "x$has_space" != x; then
36661         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36662 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36663       fi
36664       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36665     fi
36666   fi
36667 
36668   # Now new_path has a complete unix path to the binary
36669   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36670     # Keep paths in /bin as-is, but remove trailing .exe if any
36671     new_path="${new_path/%.exe/}"
36672     # Do not save /bin paths to all_fixpath_prefixes!
36673   else
36674     # Not in mixed or Windows style, start by that.
36675     new_path=`cmd //c echo $new_path`
36676 
36677   input_path="$new_path"
36678   # Check if we need to convert this using DOS-style short mode. If the path
36679   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36680   # take no chances and rewrite it.
36681   # Note: m4 eats our [], so we need to use [ and ] instead.
36682   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36683   if test "x$has_forbidden_chars" != x; then
36684     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36685     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36686   fi
36687 
36688     # Output is in $new_path
36689 
36690   windows_path="$new_path"
36691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36692     unix_path=`$CYGPATH -u "$windows_path"`
36693     new_path="$unix_path"
36694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36696     new_path="$unix_path"
36697   fi
36698 
36699     # remove trailing .exe if any
36700     new_path="${new_path/%.exe/}"
36701 
36702     # Save the first 10 bytes of this path to the storage, so fixpath can work.
36703     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36704   fi
36705 
36706   else
36707     # We're on a posix platform. Hooray! :)
36708     # First separate the path from the arguments. This will split at the first
36709     # space.
36710     complete="$MCS"
36711     path="${complete%% *}"
36712     tmp="$complete EOL"
36713     arguments="${tmp#* }"
36714 
36715     # Cannot rely on the command "which" here since it doesn't always work.
36716     is_absolute_path=`$ECHO "$path" | $GREP ^/`
36717     if test -z "$is_absolute_path"; then
36718       # Path to executable is not absolute. Find it.
36719       IFS_save="$IFS"
36720       IFS=:
36721       for p in $PATH; do
36722         if test -f "$p/$path" && test -x "$p/$path"; then
36723           new_path="$p/$path"
36724           break
36725         fi
36726       done
36727       IFS="$IFS_save"
36728     else
36729       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MCS (as $path) failed, using $path directly." >&5
36730 $as_echo "$as_me: Resolving MCS (as $path) failed, using $path directly." >&6;}
36731       new_path="$path"
36732     fi
36733 
36734     if test "x$new_path" = x; then
36735       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
36736 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
36737       has_space=`$ECHO "$complete" | $GREP " "`
36738       if test "x$has_space" != x; then
36739         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36740 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36741       fi
36742       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36743     fi
36744   fi
36745 
36746   # Now join together the path and the arguments once again
36747   if test "x$arguments" != xEOL; then
36748     new_complete="$new_path ${arguments% *}"
36749   else
36750     new_complete="$new_path"
36751   fi
36752 
36753   if test "x$complete" != "x$new_complete"; then
36754     MCS="$new_complete"
36755     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
36756 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
36757   fi
36758 
36759   elif test "x$OPENJDK_TARGET_OS" != xwindows; then
36760     # Extract the first word of "otool", so it can be a program name with args.
36761 set dummy otool; ac_word=$2
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36763 $as_echo_n "checking for $ac_word... " >&6; }
36764 if ${ac_cv_path_OTOOL+:} false; then :
36765   $as_echo_n "(cached) " >&6
36766 else
36767   case $OTOOL in
36768   [\\/]* | ?:[\\/]*)
36769   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
36770   ;;
36771   *)
36772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36773 for as_dir in $PATH
36774 do
36775   IFS=$as_save_IFS
36776   test -z "$as_dir" && as_dir=.
36777     for ac_exec_ext in '' $ac_executable_extensions; do
36778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36779     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
36780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36781     break 2
36782   fi
36783 done
36784   done
36785 IFS=$as_save_IFS
36786 
36787   ;;
36788 esac
36789 fi
36790 OTOOL=$ac_cv_path_OTOOL
36791 if test -n "$OTOOL"; then
36792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
36793 $as_echo "$OTOOL" >&6; }
36794 else
36795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36796 $as_echo "no" >&6; }
36797 fi
36798 
36799 
36800     if test "x$OTOOL" = "x"; then
36801       OTOOL="true"
36802     fi
36803 
36804 
36805   # Publish this variable in the help.
36806 
36807 
36808   if test "x$NM" = x; then
36809     # The variable is not set by user, try to locate tool using the code snippet
36810     if test -n "$ac_tool_prefix"; then
36811   for ac_prog in nm
36812   do
36813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36816 $as_echo_n "checking for $ac_word... " >&6; }
36817 if ${ac_cv_prog_NM+:} false; then :
36818   $as_echo_n "(cached) " >&6
36819 else
36820   if test -n "$NM"; then
36821   ac_cv_prog_NM="$NM" # Let the user override the test.
36822 else
36823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36824 for as_dir in $PATH
36825 do
36826   IFS=$as_save_IFS
36827   test -z "$as_dir" && as_dir=.
36828     for ac_exec_ext in '' $ac_executable_extensions; do
36829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36830     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
36831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36832     break 2
36833   fi
36834 done
36835   done
36836 IFS=$as_save_IFS
36837 
36838 fi
36839 fi
36840 NM=$ac_cv_prog_NM
36841 if test -n "$NM"; then
36842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36843 $as_echo "$NM" >&6; }
36844 else
36845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36846 $as_echo "no" >&6; }
36847 fi
36848 
36849 
36850     test -n "$NM" && break
36851   done
36852 fi
36853 if test -z "$NM"; then
36854   ac_ct_NM=$NM
36855   for ac_prog in nm
36856 do
36857   # Extract the first word of "$ac_prog", so it can be a program name with args.
36858 set dummy $ac_prog; ac_word=$2
36859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36860 $as_echo_n "checking for $ac_word... " >&6; }
36861 if ${ac_cv_prog_ac_ct_NM+:} false; then :
36862   $as_echo_n "(cached) " >&6
36863 else
36864   if test -n "$ac_ct_NM"; then
36865   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
36866 else
36867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36868 for as_dir in $PATH
36869 do
36870   IFS=$as_save_IFS
36871   test -z "$as_dir" && as_dir=.
36872     for ac_exec_ext in '' $ac_executable_extensions; do
36873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36874     ac_cv_prog_ac_ct_NM="$ac_prog"
36875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36876     break 2
36877   fi
36878 done
36879   done
36880 IFS=$as_save_IFS
36881 
36882 fi
36883 fi
36884 ac_ct_NM=$ac_cv_prog_ac_ct_NM
36885 if test -n "$ac_ct_NM"; then
36886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
36887 $as_echo "$ac_ct_NM" >&6; }
36888 else
36889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36890 $as_echo "no" >&6; }
36891 fi
36892 
36893 
36894   test -n "$ac_ct_NM" && break
36895 done
36896 
36897   if test "x$ac_ct_NM" = x; then
36898     NM=""
36899   else
36900     case $cross_compiling:$ac_tool_warned in
36901 yes:)
36902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36904 ac_tool_warned=yes ;;
36905 esac
36906     NM=$ac_ct_NM
36907   fi
36908 fi
36909 
36910   else
36911     # The variable is set, but is it from the command line or the environment?
36912 
36913     # Try to remove the string !NM! from our list.
36914     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
36915     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36916       # If it failed, the variable was not from the command line. Ignore it,
36917       # but warn the user (except for BASH, which is always set by the calling BASH).
36918       if test "xNM" != xBASH; then
36919         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
36920 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
36921       fi
36922       # Try to locate tool using the code snippet
36923       if test -n "$ac_tool_prefix"; then
36924   for ac_prog in nm
36925   do
36926     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36929 $as_echo_n "checking for $ac_word... " >&6; }
36930 if ${ac_cv_prog_NM+:} false; then :
36931   $as_echo_n "(cached) " >&6
36932 else
36933   if test -n "$NM"; then
36934   ac_cv_prog_NM="$NM" # Let the user override the test.
36935 else
36936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36937 for as_dir in $PATH
36938 do
36939   IFS=$as_save_IFS
36940   test -z "$as_dir" && as_dir=.
36941     for ac_exec_ext in '' $ac_executable_extensions; do
36942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36943     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
36944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36945     break 2
36946   fi
36947 done
36948   done
36949 IFS=$as_save_IFS
36950 
36951 fi
36952 fi
36953 NM=$ac_cv_prog_NM
36954 if test -n "$NM"; then
36955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36956 $as_echo "$NM" >&6; }
36957 else
36958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36959 $as_echo "no" >&6; }
36960 fi
36961 
36962 
36963     test -n "$NM" && break
36964   done
36965 fi
36966 if test -z "$NM"; then
36967   ac_ct_NM=$NM
36968   for ac_prog in nm
36969 do
36970   # Extract the first word of "$ac_prog", so it can be a program name with args.
36971 set dummy $ac_prog; ac_word=$2
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36973 $as_echo_n "checking for $ac_word... " >&6; }
36974 if ${ac_cv_prog_ac_ct_NM+:} false; then :
36975   $as_echo_n "(cached) " >&6
36976 else
36977   if test -n "$ac_ct_NM"; then
36978   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
36979 else
36980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36981 for as_dir in $PATH
36982 do
36983   IFS=$as_save_IFS
36984   test -z "$as_dir" && as_dir=.
36985     for ac_exec_ext in '' $ac_executable_extensions; do
36986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36987     ac_cv_prog_ac_ct_NM="$ac_prog"
36988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36989     break 2
36990   fi
36991 done
36992   done
36993 IFS=$as_save_IFS
36994 
36995 fi
36996 fi
36997 ac_ct_NM=$ac_cv_prog_ac_ct_NM
36998 if test -n "$ac_ct_NM"; then
36999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
37000 $as_echo "$ac_ct_NM" >&6; }
37001 else
37002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37003 $as_echo "no" >&6; }
37004 fi
37005 
37006 
37007   test -n "$ac_ct_NM" && break
37008 done
37009 
37010   if test "x$ac_ct_NM" = x; then
37011     NM=""
37012   else
37013     case $cross_compiling:$ac_tool_warned in
37014 yes:)
37015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37017 ac_tool_warned=yes ;;
37018 esac
37019     NM=$ac_ct_NM
37020   fi
37021 fi
37022 
37023     else
37024       # If it succeeded, then it was overridden by the user. We will use it
37025       # for the tool.
37026 
37027       # First remove it from the list of overridden variables, so we can test
37028       # for unknown variables in the end.
37029       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37030 
37031       # Check if the provided tool contains a complete path.
37032       tool_specified="$NM"
37033       tool_basename="${tool_specified##*/}"
37034       if test "x$tool_basename" = "x$tool_specified"; then
37035         # A command without a complete path is provided, search $PATH.
37036         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
37037 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
37038         # Extract the first word of "$tool_basename", so it can be a program name with args.
37039 set dummy $tool_basename; ac_word=$2
37040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37041 $as_echo_n "checking for $ac_word... " >&6; }
37042 if ${ac_cv_path_NM+:} false; then :
37043   $as_echo_n "(cached) " >&6
37044 else
37045   case $NM in
37046   [\\/]* | ?:[\\/]*)
37047   ac_cv_path_NM="$NM" # Let the user override the test with a path.
37048   ;;
37049   *)
37050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37051 for as_dir in $PATH
37052 do
37053   IFS=$as_save_IFS
37054   test -z "$as_dir" && as_dir=.
37055     for ac_exec_ext in '' $ac_executable_extensions; do
37056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37057     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
37058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37059     break 2
37060   fi
37061 done
37062   done
37063 IFS=$as_save_IFS
37064 
37065   ;;
37066 esac
37067 fi
37068 NM=$ac_cv_path_NM
37069 if test -n "$NM"; then
37070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
37071 $as_echo "$NM" >&6; }
37072 else
37073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37074 $as_echo "no" >&6; }
37075 fi
37076 
37077 
37078         if test "x$NM" = x; then
37079           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37080         fi
37081       else
37082         # Otherwise we believe it is a complete path. Use it as it is.
37083         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
37084 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
37085         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
37086 $as_echo_n "checking for NM... " >&6; }
37087         if test ! -x "$tool_specified"; then
37088           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37089 $as_echo "not found" >&6; }
37090           as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
37091         fi
37092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37093 $as_echo "$tool_specified" >&6; }
37094       fi
37095     fi
37096   fi
37097 
37098 
37099 
37100   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37101 
37102   # First separate the path from the arguments. This will split at the first
37103   # space.
37104   complete="$NM"
37105   path="${complete%% *}"
37106   tmp="$complete EOL"
37107   arguments="${tmp#* }"
37108 
37109   # Input might be given as Windows format, start by converting to
37110   # unix format.
37111   new_path=`$CYGPATH -u "$path"`
37112 
37113   # Now try to locate executable using which
37114   new_path=`$WHICH "$new_path" 2> /dev/null`
37115   # bat and cmd files are not always considered executable in cygwin causing which
37116   # to not find them
37117   if test "x$new_path" = x \
37118       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37119       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37120     new_path=`$CYGPATH -u "$path"`
37121   fi
37122   if test "x$new_path" = x; then
37123     # Oops. Which didn't find the executable.
37124     # The splitting of arguments from the executable at a space might have been incorrect,
37125     # since paths with space are more likely in Windows. Give it another try with the whole
37126     # argument.
37127     path="$complete"
37128     arguments="EOL"
37129     new_path=`$CYGPATH -u "$path"`
37130     new_path=`$WHICH "$new_path" 2> /dev/null`
37131     # bat and cmd files are not always considered executable in cygwin causing which
37132     # to not find them
37133     if test "x$new_path" = x \
37134         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37135         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37136       new_path=`$CYGPATH -u "$path"`
37137     fi
37138     if test "x$new_path" = x; then
37139       # It's still not found. Now this is an unrecoverable error.
37140       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
37141 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
37142       has_space=`$ECHO "$complete" | $GREP " "`
37143       if test "x$has_space" != x; then
37144         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37145 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37146       fi
37147       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37148     fi
37149   fi
37150 
37151   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37152   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37153   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37154   # "foo.exe" is OK but "foo" is an error.
37155   #
37156   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37157   # It is also a way to make sure we got the proper file name for the real test later on.
37158   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37159   if test "x$test_shortpath" = x; then
37160     # Short path failed, file does not exist as specified.
37161     # Try adding .exe or .cmd
37162     if test -f "${new_path}.exe"; then
37163       input_to_shortpath="${new_path}.exe"
37164     elif test -f "${new_path}.cmd"; then
37165       input_to_shortpath="${new_path}.cmd"
37166     else
37167       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
37168 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
37169       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37170 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37171       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37172     fi
37173   else
37174     input_to_shortpath="$new_path"
37175   fi
37176 
37177   # Call helper function which possibly converts this using DOS-style short mode.
37178   # If so, the updated path is stored in $new_path.
37179   new_path="$input_to_shortpath"
37180 
37181   input_path="$input_to_shortpath"
37182   # Check if we need to convert this using DOS-style short mode. If the path
37183   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37184   # take no chances and rewrite it.
37185   # Note: m4 eats our [], so we need to use [ and ] instead.
37186   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37187   if test "x$has_forbidden_chars" != x; then
37188     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37189     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37190     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37191     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37192       # Going to short mode and back again did indeed matter. Since short mode is
37193       # case insensitive, let's make it lowercase to improve readability.
37194       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37195       # Now convert it back to Unix-stile (cygpath)
37196       input_path=`$CYGPATH -u "$shortmode_path"`
37197       new_path="$input_path"
37198     fi
37199   fi
37200 
37201   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37202   if test "x$test_cygdrive_prefix" = x; then
37203     # As a simple fix, exclude /usr/bin since it's not a real path.
37204     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37205       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37206       # a path prefixed by /cygdrive for fixpath to work.
37207       new_path="$CYGWIN_ROOT_PATH$input_path"
37208     fi
37209   fi
37210 
37211   # remove trailing .exe if any
37212   new_path="${new_path/%.exe/}"
37213 
37214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37215 
37216   # First separate the path from the arguments. This will split at the first
37217   # space.
37218   complete="$NM"
37219   path="${complete%% *}"
37220   tmp="$complete EOL"
37221   arguments="${tmp#* }"
37222 
37223   # Input might be given as Windows format, start by converting to
37224   # unix format.
37225   new_path="$path"
37226 
37227   windows_path="$new_path"
37228   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37229     unix_path=`$CYGPATH -u "$windows_path"`
37230     new_path="$unix_path"
37231   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37232     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37233     new_path="$unix_path"
37234   fi
37235 
37236 
37237   # Now try to locate executable using which
37238   new_path=`$WHICH "$new_path" 2> /dev/null`
37239 
37240   if test "x$new_path" = x; then
37241     # Oops. Which didn't find the executable.
37242     # The splitting of arguments from the executable at a space might have been incorrect,
37243     # since paths with space are more likely in Windows. Give it another try with the whole
37244     # argument.
37245     path="$complete"
37246     arguments="EOL"
37247     new_path="$path"
37248 
37249   windows_path="$new_path"
37250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37251     unix_path=`$CYGPATH -u "$windows_path"`
37252     new_path="$unix_path"
37253   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37254     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37255     new_path="$unix_path"
37256   fi
37257 
37258 
37259     new_path=`$WHICH "$new_path" 2> /dev/null`
37260 
37261     if test "x$new_path" = x; then
37262       # It's still not found. Now this is an unrecoverable error.
37263       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
37264 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
37265       has_space=`$ECHO "$complete" | $GREP " "`
37266       if test "x$has_space" != x; then
37267         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37268 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37269       fi
37270       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37271     fi
37272   fi
37273 
37274   # Now new_path has a complete unix path to the binary
37275   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37276     # Keep paths in /bin as-is, but remove trailing .exe if any
37277     new_path="${new_path/%.exe/}"
37278     # Do not save /bin paths to all_fixpath_prefixes!
37279   else
37280     # Not in mixed or Windows style, start by that.
37281     new_path=`cmd //c echo $new_path`
37282 
37283   input_path="$new_path"
37284   # Check if we need to convert this using DOS-style short mode. If the path
37285   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37286   # take no chances and rewrite it.
37287   # Note: m4 eats our [], so we need to use [ and ] instead.
37288   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37289   if test "x$has_forbidden_chars" != x; then
37290     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37291     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37292   fi
37293 
37294     # Output is in $new_path
37295 
37296   windows_path="$new_path"
37297   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37298     unix_path=`$CYGPATH -u "$windows_path"`
37299     new_path="$unix_path"
37300   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37301     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37302     new_path="$unix_path"
37303   fi
37304 
37305     # remove trailing .exe if any
37306     new_path="${new_path/%.exe/}"
37307 
37308     # Save the first 10 bytes of this path to the storage, so fixpath can work.
37309     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37310   fi
37311 
37312   else
37313     # We're on a posix platform. Hooray! :)
37314     # First separate the path from the arguments. This will split at the first
37315     # space.
37316     complete="$NM"
37317     path="${complete%% *}"
37318     tmp="$complete EOL"
37319     arguments="${tmp#* }"
37320 
37321     # Cannot rely on the command "which" here since it doesn't always work.
37322     is_absolute_path=`$ECHO "$path" | $GREP ^/`
37323     if test -z "$is_absolute_path"; then
37324       # Path to executable is not absolute. Find it.
37325       IFS_save="$IFS"
37326       IFS=:
37327       for p in $PATH; do
37328         if test -f "$p/$path" && test -x "$p/$path"; then
37329           new_path="$p/$path"
37330           break
37331         fi
37332       done
37333       IFS="$IFS_save"
37334     else
37335       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5
37336 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;}
37337       new_path="$path"
37338     fi
37339 
37340     if test "x$new_path" = x; then
37341       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
37342 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
37343       has_space=`$ECHO "$complete" | $GREP " "`
37344       if test "x$has_space" != x; then
37345         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37346 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37347       fi
37348       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37349     fi
37350   fi
37351 
37352   # Now join together the path and the arguments once again
37353   if test "x$arguments" != xEOL; then
37354     new_complete="$new_path ${arguments% *}"
37355   else
37356     new_complete="$new_path"
37357   fi
37358 
37359   if test "x$complete" != "x$new_complete"; then
37360     NM="$new_complete"
37361     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
37362 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
37363   fi
37364 
37365     GNM="$NM"
37366 
37367 
37368 
37369   # Publish this variable in the help.
37370 
37371 
37372   if test "x$STRIP" = x; then
37373     # The variable is not set by user, try to locate tool using the code snippet
37374     if test -n "$ac_tool_prefix"; then
37375   for ac_prog in strip
37376   do
37377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37380 $as_echo_n "checking for $ac_word... " >&6; }
37381 if ${ac_cv_prog_STRIP+:} false; then :
37382   $as_echo_n "(cached) " >&6
37383 else
37384   if test -n "$STRIP"; then
37385   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37386 else
37387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37388 for as_dir in $PATH
37389 do
37390   IFS=$as_save_IFS
37391   test -z "$as_dir" && as_dir=.
37392     for ac_exec_ext in '' $ac_executable_extensions; do
37393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37394     ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
37395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37396     break 2
37397   fi
37398 done
37399   done
37400 IFS=$as_save_IFS
37401 
37402 fi
37403 fi
37404 STRIP=$ac_cv_prog_STRIP
37405 if test -n "$STRIP"; then
37406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37407 $as_echo "$STRIP" >&6; }
37408 else
37409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37410 $as_echo "no" >&6; }
37411 fi
37412 
37413 
37414     test -n "$STRIP" && break
37415   done
37416 fi
37417 if test -z "$STRIP"; then
37418   ac_ct_STRIP=$STRIP
37419   for ac_prog in strip
37420 do
37421   # Extract the first word of "$ac_prog", so it can be a program name with args.
37422 set dummy $ac_prog; ac_word=$2
37423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37424 $as_echo_n "checking for $ac_word... " >&6; }
37425 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
37426   $as_echo_n "(cached) " >&6
37427 else
37428   if test -n "$ac_ct_STRIP"; then
37429   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37430 else
37431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37432 for as_dir in $PATH
37433 do
37434   IFS=$as_save_IFS
37435   test -z "$as_dir" && as_dir=.
37436     for ac_exec_ext in '' $ac_executable_extensions; do
37437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37438     ac_cv_prog_ac_ct_STRIP="$ac_prog"
37439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37440     break 2
37441   fi
37442 done
37443   done
37444 IFS=$as_save_IFS
37445 
37446 fi
37447 fi
37448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37449 if test -n "$ac_ct_STRIP"; then
37450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
37451 $as_echo "$ac_ct_STRIP" >&6; }
37452 else
37453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37454 $as_echo "no" >&6; }
37455 fi
37456 
37457 
37458   test -n "$ac_ct_STRIP" && break
37459 done
37460 
37461   if test "x$ac_ct_STRIP" = x; then
37462     STRIP=""
37463   else
37464     case $cross_compiling:$ac_tool_warned in
37465 yes:)
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37468 ac_tool_warned=yes ;;
37469 esac
37470     STRIP=$ac_ct_STRIP
37471   fi
37472 fi
37473 
37474   else
37475     # The variable is set, but is it from the command line or the environment?
37476 
37477     # Try to remove the string !STRIP! from our list.
37478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
37479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37480       # If it failed, the variable was not from the command line. Ignore it,
37481       # but warn the user (except for BASH, which is always set by the calling BASH).
37482       if test "xSTRIP" != xBASH; then
37483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
37484 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
37485       fi
37486       # Try to locate tool using the code snippet
37487       if test -n "$ac_tool_prefix"; then
37488   for ac_prog in strip
37489   do
37490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37493 $as_echo_n "checking for $ac_word... " >&6; }
37494 if ${ac_cv_prog_STRIP+:} false; then :
37495   $as_echo_n "(cached) " >&6
37496 else
37497   if test -n "$STRIP"; then
37498   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37499 else
37500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37501 for as_dir in $PATH
37502 do
37503   IFS=$as_save_IFS
37504   test -z "$as_dir" && as_dir=.
37505     for ac_exec_ext in '' $ac_executable_extensions; do
37506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37507     ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
37508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37509     break 2
37510   fi
37511 done
37512   done
37513 IFS=$as_save_IFS
37514 
37515 fi
37516 fi
37517 STRIP=$ac_cv_prog_STRIP
37518 if test -n "$STRIP"; then
37519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37520 $as_echo "$STRIP" >&6; }
37521 else
37522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37523 $as_echo "no" >&6; }
37524 fi
37525 
37526 
37527     test -n "$STRIP" && break
37528   done
37529 fi
37530 if test -z "$STRIP"; then
37531   ac_ct_STRIP=$STRIP
37532   for ac_prog in strip
37533 do
37534   # Extract the first word of "$ac_prog", so it can be a program name with args.
37535 set dummy $ac_prog; ac_word=$2
37536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37537 $as_echo_n "checking for $ac_word... " >&6; }
37538 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
37539   $as_echo_n "(cached) " >&6
37540 else
37541   if test -n "$ac_ct_STRIP"; then
37542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37543 else
37544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37545 for as_dir in $PATH
37546 do
37547   IFS=$as_save_IFS
37548   test -z "$as_dir" && as_dir=.
37549     for ac_exec_ext in '' $ac_executable_extensions; do
37550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37551     ac_cv_prog_ac_ct_STRIP="$ac_prog"
37552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37553     break 2
37554   fi
37555 done
37556   done
37557 IFS=$as_save_IFS
37558 
37559 fi
37560 fi
37561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37562 if test -n "$ac_ct_STRIP"; then
37563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
37564 $as_echo "$ac_ct_STRIP" >&6; }
37565 else
37566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37567 $as_echo "no" >&6; }
37568 fi
37569 
37570 
37571   test -n "$ac_ct_STRIP" && break
37572 done
37573 
37574   if test "x$ac_ct_STRIP" = x; then
37575     STRIP=""
37576   else
37577     case $cross_compiling:$ac_tool_warned in
37578 yes:)
37579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37581 ac_tool_warned=yes ;;
37582 esac
37583     STRIP=$ac_ct_STRIP
37584   fi
37585 fi
37586 
37587     else
37588       # If it succeeded, then it was overridden by the user. We will use it
37589       # for the tool.
37590 
37591       # First remove it from the list of overridden variables, so we can test
37592       # for unknown variables in the end.
37593       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37594 
37595       # Check if the provided tool contains a complete path.
37596       tool_specified="$STRIP"
37597       tool_basename="${tool_specified##*/}"
37598       if test "x$tool_basename" = "x$tool_specified"; then
37599         # A command without a complete path is provided, search $PATH.
37600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
37601 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
37602         # Extract the first word of "$tool_basename", so it can be a program name with args.
37603 set dummy $tool_basename; ac_word=$2
37604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37605 $as_echo_n "checking for $ac_word... " >&6; }
37606 if ${ac_cv_path_STRIP+:} false; then :
37607   $as_echo_n "(cached) " >&6
37608 else
37609   case $STRIP in
37610   [\\/]* | ?:[\\/]*)
37611   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37612   ;;
37613   *)
37614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37615 for as_dir in $PATH
37616 do
37617   IFS=$as_save_IFS
37618   test -z "$as_dir" && as_dir=.
37619     for ac_exec_ext in '' $ac_executable_extensions; do
37620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37621     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37623     break 2
37624   fi
37625 done
37626   done
37627 IFS=$as_save_IFS
37628 
37629   ;;
37630 esac
37631 fi
37632 STRIP=$ac_cv_path_STRIP
37633 if test -n "$STRIP"; then
37634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37635 $as_echo "$STRIP" >&6; }
37636 else
37637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37638 $as_echo "no" >&6; }
37639 fi
37640 
37641 
37642         if test "x$STRIP" = x; then
37643           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37644         fi
37645       else
37646         # Otherwise we believe it is a complete path. Use it as it is.
37647         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
37648 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
37649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
37650 $as_echo_n "checking for STRIP... " >&6; }
37651         if test ! -x "$tool_specified"; then
37652           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37653 $as_echo "not found" >&6; }
37654           as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
37655         fi
37656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37657 $as_echo "$tool_specified" >&6; }
37658       fi
37659     fi
37660   fi
37661 
37662 
37663 
37664   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37665 
37666   # First separate the path from the arguments. This will split at the first
37667   # space.
37668   complete="$STRIP"
37669   path="${complete%% *}"
37670   tmp="$complete EOL"
37671   arguments="${tmp#* }"
37672 
37673   # Input might be given as Windows format, start by converting to
37674   # unix format.
37675   new_path=`$CYGPATH -u "$path"`
37676 
37677   # Now try to locate executable using which
37678   new_path=`$WHICH "$new_path" 2> /dev/null`
37679   # bat and cmd files are not always considered executable in cygwin causing which
37680   # to not find them
37681   if test "x$new_path" = x \
37682       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37683       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37684     new_path=`$CYGPATH -u "$path"`
37685   fi
37686   if test "x$new_path" = x; then
37687     # Oops. Which didn't find the executable.
37688     # The splitting of arguments from the executable at a space might have been incorrect,
37689     # since paths with space are more likely in Windows. Give it another try with the whole
37690     # argument.
37691     path="$complete"
37692     arguments="EOL"
37693     new_path=`$CYGPATH -u "$path"`
37694     new_path=`$WHICH "$new_path" 2> /dev/null`
37695     # bat and cmd files are not always considered executable in cygwin causing which
37696     # to not find them
37697     if test "x$new_path" = x \
37698         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37699         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37700       new_path=`$CYGPATH -u "$path"`
37701     fi
37702     if test "x$new_path" = x; then
37703       # It's still not found. Now this is an unrecoverable error.
37704       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37705 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37706       has_space=`$ECHO "$complete" | $GREP " "`
37707       if test "x$has_space" != x; then
37708         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37710       fi
37711       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37712     fi
37713   fi
37714 
37715   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37716   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37717   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37718   # "foo.exe" is OK but "foo" is an error.
37719   #
37720   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37721   # It is also a way to make sure we got the proper file name for the real test later on.
37722   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37723   if test "x$test_shortpath" = x; then
37724     # Short path failed, file does not exist as specified.
37725     # Try adding .exe or .cmd
37726     if test -f "${new_path}.exe"; then
37727       input_to_shortpath="${new_path}.exe"
37728     elif test -f "${new_path}.cmd"; then
37729       input_to_shortpath="${new_path}.cmd"
37730     else
37731       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
37732 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
37733       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37734 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37735       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37736     fi
37737   else
37738     input_to_shortpath="$new_path"
37739   fi
37740 
37741   # Call helper function which possibly converts this using DOS-style short mode.
37742   # If so, the updated path is stored in $new_path.
37743   new_path="$input_to_shortpath"
37744 
37745   input_path="$input_to_shortpath"
37746   # Check if we need to convert this using DOS-style short mode. If the path
37747   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37748   # take no chances and rewrite it.
37749   # Note: m4 eats our [], so we need to use [ and ] instead.
37750   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37751   if test "x$has_forbidden_chars" != x; then
37752     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37753     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37754     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37755     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37756       # Going to short mode and back again did indeed matter. Since short mode is
37757       # case insensitive, let's make it lowercase to improve readability.
37758       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37759       # Now convert it back to Unix-stile (cygpath)
37760       input_path=`$CYGPATH -u "$shortmode_path"`
37761       new_path="$input_path"
37762     fi
37763   fi
37764 
37765   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37766   if test "x$test_cygdrive_prefix" = x; then
37767     # As a simple fix, exclude /usr/bin since it's not a real path.
37768     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37769       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37770       # a path prefixed by /cygdrive for fixpath to work.
37771       new_path="$CYGWIN_ROOT_PATH$input_path"
37772     fi
37773   fi
37774 
37775   # remove trailing .exe if any
37776   new_path="${new_path/%.exe/}"
37777 
37778   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37779 
37780   # First separate the path from the arguments. This will split at the first
37781   # space.
37782   complete="$STRIP"
37783   path="${complete%% *}"
37784   tmp="$complete EOL"
37785   arguments="${tmp#* }"
37786 
37787   # Input might be given as Windows format, start by converting to
37788   # unix format.
37789   new_path="$path"
37790 
37791   windows_path="$new_path"
37792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37793     unix_path=`$CYGPATH -u "$windows_path"`
37794     new_path="$unix_path"
37795   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37796     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37797     new_path="$unix_path"
37798   fi
37799 
37800 
37801   # Now try to locate executable using which
37802   new_path=`$WHICH "$new_path" 2> /dev/null`
37803 
37804   if test "x$new_path" = x; then
37805     # Oops. Which didn't find the executable.
37806     # The splitting of arguments from the executable at a space might have been incorrect,
37807     # since paths with space are more likely in Windows. Give it another try with the whole
37808     # argument.
37809     path="$complete"
37810     arguments="EOL"
37811     new_path="$path"
37812 
37813   windows_path="$new_path"
37814   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37815     unix_path=`$CYGPATH -u "$windows_path"`
37816     new_path="$unix_path"
37817   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37818     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37819     new_path="$unix_path"
37820   fi
37821 
37822 
37823     new_path=`$WHICH "$new_path" 2> /dev/null`
37824 
37825     if test "x$new_path" = x; then
37826       # It's still not found. Now this is an unrecoverable error.
37827       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37828 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37829       has_space=`$ECHO "$complete" | $GREP " "`
37830       if test "x$has_space" != x; then
37831         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37832 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37833       fi
37834       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37835     fi
37836   fi
37837 
37838   # Now new_path has a complete unix path to the binary
37839   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37840     # Keep paths in /bin as-is, but remove trailing .exe if any
37841     new_path="${new_path/%.exe/}"
37842     # Do not save /bin paths to all_fixpath_prefixes!
37843   else
37844     # Not in mixed or Windows style, start by that.
37845     new_path=`cmd //c echo $new_path`
37846 
37847   input_path="$new_path"
37848   # Check if we need to convert this using DOS-style short mode. If the path
37849   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37850   # take no chances and rewrite it.
37851   # Note: m4 eats our [], so we need to use [ and ] instead.
37852   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37853   if test "x$has_forbidden_chars" != x; then
37854     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37855     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37856   fi
37857 
37858     # Output is in $new_path
37859 
37860   windows_path="$new_path"
37861   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37862     unix_path=`$CYGPATH -u "$windows_path"`
37863     new_path="$unix_path"
37864   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37865     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37866     new_path="$unix_path"
37867   fi
37868 
37869     # remove trailing .exe if any
37870     new_path="${new_path/%.exe/}"
37871 
37872     # Save the first 10 bytes of this path to the storage, so fixpath can work.
37873     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37874   fi
37875 
37876   else
37877     # We're on a posix platform. Hooray! :)
37878     # First separate the path from the arguments. This will split at the first
37879     # space.
37880     complete="$STRIP"
37881     path="${complete%% *}"
37882     tmp="$complete EOL"
37883     arguments="${tmp#* }"
37884 
37885     # Cannot rely on the command "which" here since it doesn't always work.
37886     is_absolute_path=`$ECHO "$path" | $GREP ^/`
37887     if test -z "$is_absolute_path"; then
37888       # Path to executable is not absolute. Find it.
37889       IFS_save="$IFS"
37890       IFS=:
37891       for p in $PATH; do
37892         if test -f "$p/$path" && test -x "$p/$path"; then
37893           new_path="$p/$path"
37894           break
37895         fi
37896       done
37897       IFS="$IFS_save"
37898     else
37899       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5
37900 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;}
37901       new_path="$path"
37902     fi
37903 
37904     if test "x$new_path" = x; then
37905       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37906 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37907       has_space=`$ECHO "$complete" | $GREP " "`
37908       if test "x$has_space" != x; then
37909         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37910 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37911       fi
37912       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37913     fi
37914   fi
37915 
37916   # Now join together the path and the arguments once again
37917   if test "x$arguments" != xEOL; then
37918     new_complete="$new_path ${arguments% *}"
37919   else
37920     new_complete="$new_path"
37921   fi
37922 
37923   if test "x$complete" != "x$new_complete"; then
37924     STRIP="$new_complete"
37925     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
37926 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
37927   fi
37928 
37929   fi
37930 
37931   # objcopy is used for moving debug symbols to separate files when
37932   # full debug symbols are enabled.
37933   if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
37934 
37935 
37936   # Publish this variable in the help.
37937 
37938 
37939   if test "x$OBJCOPY" = x; then
37940     # The variable is not set by user, try to locate tool using the code snippet
37941     if test -n "$ac_tool_prefix"; then
37942   for ac_prog in gobjcopy objcopy
37943   do
37944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37947 $as_echo_n "checking for $ac_word... " >&6; }
37948 if ${ac_cv_prog_OBJCOPY+:} false; then :
37949   $as_echo_n "(cached) " >&6
37950 else
37951   if test -n "$OBJCOPY"; then
37952   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
37953 else
37954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37955 for as_dir in $PATH
37956 do
37957   IFS=$as_save_IFS
37958   test -z "$as_dir" && as_dir=.
37959     for ac_exec_ext in '' $ac_executable_extensions; do
37960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37961     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
37962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37963     break 2
37964   fi
37965 done
37966   done
37967 IFS=$as_save_IFS
37968 
37969 fi
37970 fi
37971 OBJCOPY=$ac_cv_prog_OBJCOPY
37972 if test -n "$OBJCOPY"; then
37973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
37974 $as_echo "$OBJCOPY" >&6; }
37975 else
37976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37977 $as_echo "no" >&6; }
37978 fi
37979 
37980 
37981     test -n "$OBJCOPY" && break
37982   done
37983 fi
37984 if test -z "$OBJCOPY"; then
37985   ac_ct_OBJCOPY=$OBJCOPY
37986   for ac_prog in gobjcopy objcopy
37987 do
37988   # Extract the first word of "$ac_prog", so it can be a program name with args.
37989 set dummy $ac_prog; ac_word=$2
37990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37991 $as_echo_n "checking for $ac_word... " >&6; }
37992 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
37993   $as_echo_n "(cached) " >&6
37994 else
37995   if test -n "$ac_ct_OBJCOPY"; then
37996   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
37997 else
37998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37999 for as_dir in $PATH
38000 do
38001   IFS=$as_save_IFS
38002   test -z "$as_dir" && as_dir=.
38003     for ac_exec_ext in '' $ac_executable_extensions; do
38004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38005     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
38006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38007     break 2
38008   fi
38009 done
38010   done
38011 IFS=$as_save_IFS
38012 
38013 fi
38014 fi
38015 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
38016 if test -n "$ac_ct_OBJCOPY"; then
38017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
38018 $as_echo "$ac_ct_OBJCOPY" >&6; }
38019 else
38020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38021 $as_echo "no" >&6; }
38022 fi
38023 
38024 
38025   test -n "$ac_ct_OBJCOPY" && break
38026 done
38027 
38028   if test "x$ac_ct_OBJCOPY" = x; then
38029     OBJCOPY=""
38030   else
38031     case $cross_compiling:$ac_tool_warned in
38032 yes:)
38033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38035 ac_tool_warned=yes ;;
38036 esac
38037     OBJCOPY=$ac_ct_OBJCOPY
38038   fi
38039 fi
38040 
38041   else
38042     # The variable is set, but is it from the command line or the environment?
38043 
38044     # Try to remove the string !OBJCOPY! from our list.
38045     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/}
38046     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38047       # If it failed, the variable was not from the command line. Ignore it,
38048       # but warn the user (except for BASH, which is always set by the calling BASH).
38049       if test "xOBJCOPY" != xBASH; then
38050         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5
38051 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;}
38052       fi
38053       # Try to locate tool using the code snippet
38054       if test -n "$ac_tool_prefix"; then
38055   for ac_prog in gobjcopy objcopy
38056   do
38057     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38060 $as_echo_n "checking for $ac_word... " >&6; }
38061 if ${ac_cv_prog_OBJCOPY+:} false; then :
38062   $as_echo_n "(cached) " >&6
38063 else
38064   if test -n "$OBJCOPY"; then
38065   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
38066 else
38067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38068 for as_dir in $PATH
38069 do
38070   IFS=$as_save_IFS
38071   test -z "$as_dir" && as_dir=.
38072     for ac_exec_ext in '' $ac_executable_extensions; do
38073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38074     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
38075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38076     break 2
38077   fi
38078 done
38079   done
38080 IFS=$as_save_IFS
38081 
38082 fi
38083 fi
38084 OBJCOPY=$ac_cv_prog_OBJCOPY
38085 if test -n "$OBJCOPY"; then
38086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
38087 $as_echo "$OBJCOPY" >&6; }
38088 else
38089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38090 $as_echo "no" >&6; }
38091 fi
38092 
38093 
38094     test -n "$OBJCOPY" && break
38095   done
38096 fi
38097 if test -z "$OBJCOPY"; then
38098   ac_ct_OBJCOPY=$OBJCOPY
38099   for ac_prog in gobjcopy objcopy
38100 do
38101   # Extract the first word of "$ac_prog", so it can be a program name with args.
38102 set dummy $ac_prog; ac_word=$2
38103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38104 $as_echo_n "checking for $ac_word... " >&6; }
38105 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
38106   $as_echo_n "(cached) " >&6
38107 else
38108   if test -n "$ac_ct_OBJCOPY"; then
38109   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
38110 else
38111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38112 for as_dir in $PATH
38113 do
38114   IFS=$as_save_IFS
38115   test -z "$as_dir" && as_dir=.
38116     for ac_exec_ext in '' $ac_executable_extensions; do
38117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38118     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
38119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38120     break 2
38121   fi
38122 done
38123   done
38124 IFS=$as_save_IFS
38125 
38126 fi
38127 fi
38128 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
38129 if test -n "$ac_ct_OBJCOPY"; then
38130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
38131 $as_echo "$ac_ct_OBJCOPY" >&6; }
38132 else
38133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38134 $as_echo "no" >&6; }
38135 fi
38136 
38137 
38138   test -n "$ac_ct_OBJCOPY" && break
38139 done
38140 
38141   if test "x$ac_ct_OBJCOPY" = x; then
38142     OBJCOPY=""
38143   else
38144     case $cross_compiling:$ac_tool_warned in
38145 yes:)
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38148 ac_tool_warned=yes ;;
38149 esac
38150     OBJCOPY=$ac_ct_OBJCOPY
38151   fi
38152 fi
38153 
38154     else
38155       # If it succeeded, then it was overridden by the user. We will use it
38156       # for the tool.
38157 
38158       # First remove it from the list of overridden variables, so we can test
38159       # for unknown variables in the end.
38160       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38161 
38162       # Check if the provided tool contains a complete path.
38163       tool_specified="$OBJCOPY"
38164       tool_basename="${tool_specified##*/}"
38165       if test "x$tool_basename" = "x$tool_specified"; then
38166         # A command without a complete path is provided, search $PATH.
38167         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5
38168 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;}
38169         # Extract the first word of "$tool_basename", so it can be a program name with args.
38170 set dummy $tool_basename; ac_word=$2
38171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38172 $as_echo_n "checking for $ac_word... " >&6; }
38173 if ${ac_cv_path_OBJCOPY+:} false; then :
38174   $as_echo_n "(cached) " >&6
38175 else
38176   case $OBJCOPY in
38177   [\\/]* | ?:[\\/]*)
38178   ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
38179   ;;
38180   *)
38181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38182 for as_dir in $PATH
38183 do
38184   IFS=$as_save_IFS
38185   test -z "$as_dir" && as_dir=.
38186     for ac_exec_ext in '' $ac_executable_extensions; do
38187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38188     ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
38189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38190     break 2
38191   fi
38192 done
38193   done
38194 IFS=$as_save_IFS
38195 
38196   ;;
38197 esac
38198 fi
38199 OBJCOPY=$ac_cv_path_OBJCOPY
38200 if test -n "$OBJCOPY"; then
38201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
38202 $as_echo "$OBJCOPY" >&6; }
38203 else
38204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38205 $as_echo "no" >&6; }
38206 fi
38207 
38208 
38209         if test "x$OBJCOPY" = x; then
38210           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
38211         fi
38212       else
38213         # Otherwise we believe it is a complete path. Use it as it is.
38214         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5
38215 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;}
38216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5
38217 $as_echo_n "checking for OBJCOPY... " >&6; }
38218         if test ! -x "$tool_specified"; then
38219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
38220 $as_echo "not found" >&6; }
38221           as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5
38222         fi
38223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
38224 $as_echo "$tool_specified" >&6; }
38225       fi
38226     fi
38227   fi
38228 
38229 
38230     # Only call fixup if objcopy was found.
38231     if test -n "$OBJCOPY"; then
38232 
38233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38234 
38235   # First separate the path from the arguments. This will split at the first
38236   # space.
38237   complete="$OBJCOPY"
38238   path="${complete%% *}"
38239   tmp="$complete EOL"
38240   arguments="${tmp#* }"
38241 
38242   # Input might be given as Windows format, start by converting to
38243   # unix format.
38244   new_path=`$CYGPATH -u "$path"`
38245 
38246   # Now try to locate executable using which
38247   new_path=`$WHICH "$new_path" 2> /dev/null`
38248   # bat and cmd files are not always considered executable in cygwin causing which
38249   # to not find them
38250   if test "x$new_path" = x \
38251       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38252       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38253     new_path=`$CYGPATH -u "$path"`
38254   fi
38255   if test "x$new_path" = x; then
38256     # Oops. Which didn't find the executable.
38257     # The splitting of arguments from the executable at a space might have been incorrect,
38258     # since paths with space are more likely in Windows. Give it another try with the whole
38259     # argument.
38260     path="$complete"
38261     arguments="EOL"
38262     new_path=`$CYGPATH -u "$path"`
38263     new_path=`$WHICH "$new_path" 2> /dev/null`
38264     # bat and cmd files are not always considered executable in cygwin causing which
38265     # to not find them
38266     if test "x$new_path" = x \
38267         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38268         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38269       new_path=`$CYGPATH -u "$path"`
38270     fi
38271     if test "x$new_path" = x; then
38272       # It's still not found. Now this is an unrecoverable error.
38273       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
38274 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
38275       has_space=`$ECHO "$complete" | $GREP " "`
38276       if test "x$has_space" != x; then
38277         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38278 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38279       fi
38280       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38281     fi
38282   fi
38283 
38284   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
38285   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
38286   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
38287   # "foo.exe" is OK but "foo" is an error.
38288   #
38289   # This test is therefore slightly more accurate than "test -f" to check for file presence.
38290   # It is also a way to make sure we got the proper file name for the real test later on.
38291   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
38292   if test "x$test_shortpath" = x; then
38293     # Short path failed, file does not exist as specified.
38294     # Try adding .exe or .cmd
38295     if test -f "${new_path}.exe"; then
38296       input_to_shortpath="${new_path}.exe"
38297     elif test -f "${new_path}.cmd"; then
38298       input_to_shortpath="${new_path}.cmd"
38299     else
38300       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5
38301 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;}
38302       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
38303 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
38304       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38305     fi
38306   else
38307     input_to_shortpath="$new_path"
38308   fi
38309 
38310   # Call helper function which possibly converts this using DOS-style short mode.
38311   # If so, the updated path is stored in $new_path.
38312   new_path="$input_to_shortpath"
38313 
38314   input_path="$input_to_shortpath"
38315   # Check if we need to convert this using DOS-style short mode. If the path
38316   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38317   # take no chances and rewrite it.
38318   # Note: m4 eats our [], so we need to use [ and ] instead.
38319   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38320   if test "x$has_forbidden_chars" != x; then
38321     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38322     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38323     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38324     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38325       # Going to short mode and back again did indeed matter. Since short mode is
38326       # case insensitive, let's make it lowercase to improve readability.
38327       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38328       # Now convert it back to Unix-stile (cygpath)
38329       input_path=`$CYGPATH -u "$shortmode_path"`
38330       new_path="$input_path"
38331     fi
38332   fi
38333 
38334   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38335   if test "x$test_cygdrive_prefix" = x; then
38336     # As a simple fix, exclude /usr/bin since it's not a real path.
38337     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38338       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38339       # a path prefixed by /cygdrive for fixpath to work.
38340       new_path="$CYGWIN_ROOT_PATH$input_path"
38341     fi
38342   fi
38343 
38344   # remove trailing .exe if any
38345   new_path="${new_path/%.exe/}"
38346 
38347   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38348 
38349   # First separate the path from the arguments. This will split at the first
38350   # space.
38351   complete="$OBJCOPY"
38352   path="${complete%% *}"
38353   tmp="$complete EOL"
38354   arguments="${tmp#* }"
38355 
38356   # Input might be given as Windows format, start by converting to
38357   # unix format.
38358   new_path="$path"
38359 
38360   windows_path="$new_path"
38361   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38362     unix_path=`$CYGPATH -u "$windows_path"`
38363     new_path="$unix_path"
38364   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38365     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38366     new_path="$unix_path"
38367   fi
38368 
38369 
38370   # Now try to locate executable using which
38371   new_path=`$WHICH "$new_path" 2> /dev/null`
38372 
38373   if test "x$new_path" = x; then
38374     # Oops. Which didn't find the executable.
38375     # The splitting of arguments from the executable at a space might have been incorrect,
38376     # since paths with space are more likely in Windows. Give it another try with the whole
38377     # argument.
38378     path="$complete"
38379     arguments="EOL"
38380     new_path="$path"
38381 
38382   windows_path="$new_path"
38383   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38384     unix_path=`$CYGPATH -u "$windows_path"`
38385     new_path="$unix_path"
38386   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38387     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38388     new_path="$unix_path"
38389   fi
38390 
38391 
38392     new_path=`$WHICH "$new_path" 2> /dev/null`
38393 
38394     if test "x$new_path" = x; then
38395       # It's still not found. Now this is an unrecoverable error.
38396       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
38397 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
38398       has_space=`$ECHO "$complete" | $GREP " "`
38399       if test "x$has_space" != x; then
38400         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38401 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38402       fi
38403       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38404     fi
38405   fi
38406 
38407   # Now new_path has a complete unix path to the binary
38408   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38409     # Keep paths in /bin as-is, but remove trailing .exe if any
38410     new_path="${new_path/%.exe/}"
38411     # Do not save /bin paths to all_fixpath_prefixes!
38412   else
38413     # Not in mixed or Windows style, start by that.
38414     new_path=`cmd //c echo $new_path`
38415 
38416   input_path="$new_path"
38417   # Check if we need to convert this using DOS-style short mode. If the path
38418   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38419   # take no chances and rewrite it.
38420   # Note: m4 eats our [], so we need to use [ and ] instead.
38421   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38422   if test "x$has_forbidden_chars" != x; then
38423     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38424     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38425   fi
38426 
38427     # Output is in $new_path
38428 
38429   windows_path="$new_path"
38430   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38431     unix_path=`$CYGPATH -u "$windows_path"`
38432     new_path="$unix_path"
38433   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38434     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38435     new_path="$unix_path"
38436   fi
38437 
38438     # remove trailing .exe if any
38439     new_path="${new_path/%.exe/}"
38440 
38441     # Save the first 10 bytes of this path to the storage, so fixpath can work.
38442     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38443   fi
38444 
38445   else
38446     # We're on a posix platform. Hooray! :)
38447     # First separate the path from the arguments. This will split at the first
38448     # space.
38449     complete="$OBJCOPY"
38450     path="${complete%% *}"
38451     tmp="$complete EOL"
38452     arguments="${tmp#* }"
38453 
38454     # Cannot rely on the command "which" here since it doesn't always work.
38455     is_absolute_path=`$ECHO "$path" | $GREP ^/`
38456     if test -z "$is_absolute_path"; then
38457       # Path to executable is not absolute. Find it.
38458       IFS_save="$IFS"
38459       IFS=:
38460       for p in $PATH; do
38461         if test -f "$p/$path" && test -x "$p/$path"; then
38462           new_path="$p/$path"
38463           break
38464         fi
38465       done
38466       IFS="$IFS_save"
38467     else
38468       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJCOPY (as $path) failed, using $path directly." >&5
38469 $as_echo "$as_me: Resolving OBJCOPY (as $path) failed, using $path directly." >&6;}
38470       new_path="$path"
38471     fi
38472 
38473     if test "x$new_path" = x; then
38474       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
38475 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
38476       has_space=`$ECHO "$complete" | $GREP " "`
38477       if test "x$has_space" != x; then
38478         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38479 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38480       fi
38481       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38482     fi
38483   fi
38484 
38485   # Now join together the path and the arguments once again
38486   if test "x$arguments" != xEOL; then
38487     new_complete="$new_path ${arguments% *}"
38488   else
38489     new_complete="$new_path"
38490   fi
38491 
38492   if test "x$complete" != "x$new_complete"; then
38493     OBJCOPY="$new_complete"
38494     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
38495 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
38496   fi
38497 
38498     fi
38499   fi
38500 
38501 
38502 
38503   # Publish this variable in the help.
38504 
38505 
38506   if test "x$OBJDUMP" = x; then
38507     # The variable is not set by user, try to locate tool using the code snippet
38508     if test -n "$ac_tool_prefix"; then
38509   for ac_prog in gobjdump objdump
38510   do
38511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38514 $as_echo_n "checking for $ac_word... " >&6; }
38515 if ${ac_cv_prog_OBJDUMP+:} false; then :
38516   $as_echo_n "(cached) " >&6
38517 else
38518   if test -n "$OBJDUMP"; then
38519   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
38520 else
38521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38522 for as_dir in $PATH
38523 do
38524   IFS=$as_save_IFS
38525   test -z "$as_dir" && as_dir=.
38526     for ac_exec_ext in '' $ac_executable_extensions; do
38527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38528     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
38529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38530     break 2
38531   fi
38532 done
38533   done
38534 IFS=$as_save_IFS
38535 
38536 fi
38537 fi
38538 OBJDUMP=$ac_cv_prog_OBJDUMP
38539 if test -n "$OBJDUMP"; then
38540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
38541 $as_echo "$OBJDUMP" >&6; }
38542 else
38543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38544 $as_echo "no" >&6; }
38545 fi
38546 
38547 
38548     test -n "$OBJDUMP" && break
38549   done
38550 fi
38551 if test -z "$OBJDUMP"; then
38552   ac_ct_OBJDUMP=$OBJDUMP
38553   for ac_prog in gobjdump objdump
38554 do
38555   # Extract the first word of "$ac_prog", so it can be a program name with args.
38556 set dummy $ac_prog; ac_word=$2
38557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38558 $as_echo_n "checking for $ac_word... " >&6; }
38559 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
38560   $as_echo_n "(cached) " >&6
38561 else
38562   if test -n "$ac_ct_OBJDUMP"; then
38563   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
38564 else
38565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38566 for as_dir in $PATH
38567 do
38568   IFS=$as_save_IFS
38569   test -z "$as_dir" && as_dir=.
38570     for ac_exec_ext in '' $ac_executable_extensions; do
38571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38572     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
38573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38574     break 2
38575   fi
38576 done
38577   done
38578 IFS=$as_save_IFS
38579 
38580 fi
38581 fi
38582 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
38583 if test -n "$ac_ct_OBJDUMP"; then
38584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
38585 $as_echo "$ac_ct_OBJDUMP" >&6; }
38586 else
38587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38588 $as_echo "no" >&6; }
38589 fi
38590 
38591 
38592   test -n "$ac_ct_OBJDUMP" && break
38593 done
38594 
38595   if test "x$ac_ct_OBJDUMP" = x; then
38596     OBJDUMP=""
38597   else
38598     case $cross_compiling:$ac_tool_warned in
38599 yes:)
38600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38602 ac_tool_warned=yes ;;
38603 esac
38604     OBJDUMP=$ac_ct_OBJDUMP
38605   fi
38606 fi
38607 
38608   else
38609     # The variable is set, but is it from the command line or the environment?
38610 
38611     # Try to remove the string !OBJDUMP! from our list.
38612     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/}
38613     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38614       # If it failed, the variable was not from the command line. Ignore it,
38615       # but warn the user (except for BASH, which is always set by the calling BASH).
38616       if test "xOBJDUMP" != xBASH; then
38617         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5
38618 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;}
38619       fi
38620       # Try to locate tool using the code snippet
38621       if test -n "$ac_tool_prefix"; then
38622   for ac_prog in gobjdump objdump
38623   do
38624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38627 $as_echo_n "checking for $ac_word... " >&6; }
38628 if ${ac_cv_prog_OBJDUMP+:} false; then :
38629   $as_echo_n "(cached) " >&6
38630 else
38631   if test -n "$OBJDUMP"; then
38632   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
38633 else
38634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38635 for as_dir in $PATH
38636 do
38637   IFS=$as_save_IFS
38638   test -z "$as_dir" && as_dir=.
38639     for ac_exec_ext in '' $ac_executable_extensions; do
38640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38641     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
38642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38643     break 2
38644   fi
38645 done
38646   done
38647 IFS=$as_save_IFS
38648 
38649 fi
38650 fi
38651 OBJDUMP=$ac_cv_prog_OBJDUMP
38652 if test -n "$OBJDUMP"; then
38653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
38654 $as_echo "$OBJDUMP" >&6; }
38655 else
38656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38657 $as_echo "no" >&6; }
38658 fi
38659 
38660 
38661     test -n "$OBJDUMP" && break
38662   done
38663 fi
38664 if test -z "$OBJDUMP"; then
38665   ac_ct_OBJDUMP=$OBJDUMP
38666   for ac_prog in gobjdump objdump
38667 do
38668   # Extract the first word of "$ac_prog", so it can be a program name with args.
38669 set dummy $ac_prog; ac_word=$2
38670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38671 $as_echo_n "checking for $ac_word... " >&6; }
38672 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
38673   $as_echo_n "(cached) " >&6
38674 else
38675   if test -n "$ac_ct_OBJDUMP"; then
38676   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
38677 else
38678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38679 for as_dir in $PATH
38680 do
38681   IFS=$as_save_IFS
38682   test -z "$as_dir" && as_dir=.
38683     for ac_exec_ext in '' $ac_executable_extensions; do
38684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38685     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
38686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38687     break 2
38688   fi
38689 done
38690   done
38691 IFS=$as_save_IFS
38692 
38693 fi
38694 fi
38695 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
38696 if test -n "$ac_ct_OBJDUMP"; then
38697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
38698 $as_echo "$ac_ct_OBJDUMP" >&6; }
38699 else
38700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38701 $as_echo "no" >&6; }
38702 fi
38703 
38704 
38705   test -n "$ac_ct_OBJDUMP" && break
38706 done
38707 
38708   if test "x$ac_ct_OBJDUMP" = x; then
38709     OBJDUMP=""
38710   else
38711     case $cross_compiling:$ac_tool_warned in
38712 yes:)
38713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38715 ac_tool_warned=yes ;;
38716 esac
38717     OBJDUMP=$ac_ct_OBJDUMP
38718   fi
38719 fi
38720 
38721     else
38722       # If it succeeded, then it was overridden by the user. We will use it
38723       # for the tool.
38724 
38725       # First remove it from the list of overridden variables, so we can test
38726       # for unknown variables in the end.
38727       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38728 
38729       # Check if the provided tool contains a complete path.
38730       tool_specified="$OBJDUMP"
38731       tool_basename="${tool_specified##*/}"
38732       if test "x$tool_basename" = "x$tool_specified"; then
38733         # A command without a complete path is provided, search $PATH.
38734         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5
38735 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;}
38736         # Extract the first word of "$tool_basename", so it can be a program name with args.
38737 set dummy $tool_basename; ac_word=$2
38738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38739 $as_echo_n "checking for $ac_word... " >&6; }
38740 if ${ac_cv_path_OBJDUMP+:} false; then :
38741   $as_echo_n "(cached) " >&6
38742 else
38743   case $OBJDUMP in
38744   [\\/]* | ?:[\\/]*)
38745   ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path.
38746   ;;
38747   *)
38748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38749 for as_dir in $PATH
38750 do
38751   IFS=$as_save_IFS
38752   test -z "$as_dir" && as_dir=.
38753     for ac_exec_ext in '' $ac_executable_extensions; do
38754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38755     ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext"
38756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38757     break 2
38758   fi
38759 done
38760   done
38761 IFS=$as_save_IFS
38762 
38763   ;;
38764 esac
38765 fi
38766 OBJDUMP=$ac_cv_path_OBJDUMP
38767 if test -n "$OBJDUMP"; then
38768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
38769 $as_echo "$OBJDUMP" >&6; }
38770 else
38771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38772 $as_echo "no" >&6; }
38773 fi
38774 
38775 
38776         if test "x$OBJDUMP" = x; then
38777           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
38778         fi
38779       else
38780         # Otherwise we believe it is a complete path. Use it as it is.
38781         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5
38782 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;}
38783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5
38784 $as_echo_n "checking for OBJDUMP... " >&6; }
38785         if test ! -x "$tool_specified"; then
38786           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
38787 $as_echo "not found" >&6; }
38788           as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5
38789         fi
38790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
38791 $as_echo "$tool_specified" >&6; }
38792       fi
38793     fi
38794   fi
38795 
38796 
38797   if test "x$OBJDUMP" != x; then
38798     # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing.
38799 
38800   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38801 
38802   # First separate the path from the arguments. This will split at the first
38803   # space.
38804   complete="$OBJDUMP"
38805   path="${complete%% *}"
38806   tmp="$complete EOL"
38807   arguments="${tmp#* }"
38808 
38809   # Input might be given as Windows format, start by converting to
38810   # unix format.
38811   new_path=`$CYGPATH -u "$path"`
38812 
38813   # Now try to locate executable using which
38814   new_path=`$WHICH "$new_path" 2> /dev/null`
38815   # bat and cmd files are not always considered executable in cygwin causing which
38816   # to not find them
38817   if test "x$new_path" = x \
38818       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38819       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38820     new_path=`$CYGPATH -u "$path"`
38821   fi
38822   if test "x$new_path" = x; then
38823     # Oops. Which didn't find the executable.
38824     # The splitting of arguments from the executable at a space might have been incorrect,
38825     # since paths with space are more likely in Windows. Give it another try with the whole
38826     # argument.
38827     path="$complete"
38828     arguments="EOL"
38829     new_path=`$CYGPATH -u "$path"`
38830     new_path=`$WHICH "$new_path" 2> /dev/null`
38831     # bat and cmd files are not always considered executable in cygwin causing which
38832     # to not find them
38833     if test "x$new_path" = x \
38834         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38835         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38836       new_path=`$CYGPATH -u "$path"`
38837     fi
38838     if test "x$new_path" = x; then
38839       # It's still not found. Now this is an unrecoverable error.
38840       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
38841 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
38842       has_space=`$ECHO "$complete" | $GREP " "`
38843       if test "x$has_space" != x; then
38844         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38846       fi
38847       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38848     fi
38849   fi
38850 
38851   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
38852   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
38853   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
38854   # "foo.exe" is OK but "foo" is an error.
38855   #
38856   # This test is therefore slightly more accurate than "test -f" to check for file presence.
38857   # It is also a way to make sure we got the proper file name for the real test later on.
38858   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
38859   if test "x$test_shortpath" = x; then
38860     # Short path failed, file does not exist as specified.
38861     # Try adding .exe or .cmd
38862     if test -f "${new_path}.exe"; then
38863       input_to_shortpath="${new_path}.exe"
38864     elif test -f "${new_path}.cmd"; then
38865       input_to_shortpath="${new_path}.cmd"
38866     else
38867       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5
38868 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;}
38869       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
38870 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
38871       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38872     fi
38873   else
38874     input_to_shortpath="$new_path"
38875   fi
38876 
38877   # Call helper function which possibly converts this using DOS-style short mode.
38878   # If so, the updated path is stored in $new_path.
38879   new_path="$input_to_shortpath"
38880 
38881   input_path="$input_to_shortpath"
38882   # Check if we need to convert this using DOS-style short mode. If the path
38883   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38884   # take no chances and rewrite it.
38885   # Note: m4 eats our [], so we need to use [ and ] instead.
38886   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38887   if test "x$has_forbidden_chars" != x; then
38888     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38889     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38890     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38891     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38892       # Going to short mode and back again did indeed matter. Since short mode is
38893       # case insensitive, let's make it lowercase to improve readability.
38894       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38895       # Now convert it back to Unix-stile (cygpath)
38896       input_path=`$CYGPATH -u "$shortmode_path"`
38897       new_path="$input_path"
38898     fi
38899   fi
38900 
38901   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38902   if test "x$test_cygdrive_prefix" = x; then
38903     # As a simple fix, exclude /usr/bin since it's not a real path.
38904     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38905       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38906       # a path prefixed by /cygdrive for fixpath to work.
38907       new_path="$CYGWIN_ROOT_PATH$input_path"
38908     fi
38909   fi
38910 
38911   # remove trailing .exe if any
38912   new_path="${new_path/%.exe/}"
38913 
38914   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38915 
38916   # First separate the path from the arguments. This will split at the first
38917   # space.
38918   complete="$OBJDUMP"
38919   path="${complete%% *}"
38920   tmp="$complete EOL"
38921   arguments="${tmp#* }"
38922 
38923   # Input might be given as Windows format, start by converting to
38924   # unix format.
38925   new_path="$path"
38926 
38927   windows_path="$new_path"
38928   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38929     unix_path=`$CYGPATH -u "$windows_path"`
38930     new_path="$unix_path"
38931   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38932     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38933     new_path="$unix_path"
38934   fi
38935 
38936 
38937   # Now try to locate executable using which
38938   new_path=`$WHICH "$new_path" 2> /dev/null`
38939 
38940   if test "x$new_path" = x; then
38941     # Oops. Which didn't find the executable.
38942     # The splitting of arguments from the executable at a space might have been incorrect,
38943     # since paths with space are more likely in Windows. Give it another try with the whole
38944     # argument.
38945     path="$complete"
38946     arguments="EOL"
38947     new_path="$path"
38948 
38949   windows_path="$new_path"
38950   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38951     unix_path=`$CYGPATH -u "$windows_path"`
38952     new_path="$unix_path"
38953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38954     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38955     new_path="$unix_path"
38956   fi
38957 
38958 
38959     new_path=`$WHICH "$new_path" 2> /dev/null`
38960 
38961     if test "x$new_path" = x; then
38962       # It's still not found. Now this is an unrecoverable error.
38963       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
38964 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
38965       has_space=`$ECHO "$complete" | $GREP " "`
38966       if test "x$has_space" != x; then
38967         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38968 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38969       fi
38970       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38971     fi
38972   fi
38973 
38974   # Now new_path has a complete unix path to the binary
38975   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38976     # Keep paths in /bin as-is, but remove trailing .exe if any
38977     new_path="${new_path/%.exe/}"
38978     # Do not save /bin paths to all_fixpath_prefixes!
38979   else
38980     # Not in mixed or Windows style, start by that.
38981     new_path=`cmd //c echo $new_path`
38982 
38983   input_path="$new_path"
38984   # Check if we need to convert this using DOS-style short mode. If the path
38985   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38986   # take no chances and rewrite it.
38987   # Note: m4 eats our [], so we need to use [ and ] instead.
38988   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38989   if test "x$has_forbidden_chars" != x; then
38990     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38991     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38992   fi
38993 
38994     # Output is in $new_path
38995 
38996   windows_path="$new_path"
38997   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38998     unix_path=`$CYGPATH -u "$windows_path"`
38999     new_path="$unix_path"
39000   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39001     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39002     new_path="$unix_path"
39003   fi
39004 
39005     # remove trailing .exe if any
39006     new_path="${new_path/%.exe/}"
39007 
39008     # Save the first 10 bytes of this path to the storage, so fixpath can work.
39009     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39010   fi
39011 
39012   else
39013     # We're on a posix platform. Hooray! :)
39014     # First separate the path from the arguments. This will split at the first
39015     # space.
39016     complete="$OBJDUMP"
39017     path="${complete%% *}"
39018     tmp="$complete EOL"
39019     arguments="${tmp#* }"
39020 
39021     # Cannot rely on the command "which" here since it doesn't always work.
39022     is_absolute_path=`$ECHO "$path" | $GREP ^/`
39023     if test -z "$is_absolute_path"; then
39024       # Path to executable is not absolute. Find it.
39025       IFS_save="$IFS"
39026       IFS=:
39027       for p in $PATH; do
39028         if test -f "$p/$path" && test -x "$p/$path"; then
39029           new_path="$p/$path"
39030           break
39031         fi
39032       done
39033       IFS="$IFS_save"
39034     else
39035       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJDUMP (as $path) failed, using $path directly." >&5
39036 $as_echo "$as_me: Resolving OBJDUMP (as $path) failed, using $path directly." >&6;}
39037       new_path="$path"
39038     fi
39039 
39040     if test "x$new_path" = x; then
39041       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
39042 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
39043       has_space=`$ECHO "$complete" | $GREP " "`
39044       if test "x$has_space" != x; then
39045         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39046 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39047       fi
39048       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
39049     fi
39050   fi
39051 
39052   # Now join together the path and the arguments once again
39053   if test "x$arguments" != xEOL; then
39054     new_complete="$new_path ${arguments% *}"
39055   else
39056     new_complete="$new_path"
39057   fi
39058 
39059   if test "x$complete" != "x$new_complete"; then
39060     OBJDUMP="$new_complete"
39061     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
39062 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
39063   fi
39064 
39065   fi
39066 
39067 
39068 
39069   # Restore old path without tools dir
39070   PATH="$OLD_PATH"
39071 
39072 
39073 # FIXME: Currently we must test this after paths but before flags. Fix!
39074 
39075 # And we can test some aspects on the target using configure macros.
39076 
39077 
39078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
39079 $as_echo_n "checking for ANSI C header files... " >&6; }
39080 if ${ac_cv_header_stdc+:} false; then :
39081   $as_echo_n "(cached) " >&6
39082 else
39083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39084 /* end confdefs.h.  */
39085 #include <stdlib.h>
39086 #include <stdarg.h>
39087 #include <string.h>
39088 #include <float.h>
39089 
39090 int
39091 main ()
39092 {
39093 
39094   ;
39095   return 0;
39096 }
39097 _ACEOF
39098 if ac_fn_cxx_try_compile "$LINENO"; then :
39099   ac_cv_header_stdc=yes
39100 else
39101   ac_cv_header_stdc=no
39102 fi
39103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39104 
39105 if test $ac_cv_header_stdc = yes; then
39106   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
39107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39108 /* end confdefs.h.  */
39109 #include <string.h>
39110 
39111 _ACEOF
39112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39113   $EGREP "memchr" >/dev/null 2>&1; then :
39114 
39115 else
39116   ac_cv_header_stdc=no
39117 fi
39118 rm -f conftest*
39119 
39120 fi
39121 
39122 if test $ac_cv_header_stdc = yes; then
39123   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
39124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39125 /* end confdefs.h.  */
39126 #include <stdlib.h>
39127 
39128 _ACEOF
39129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39130   $EGREP "free" >/dev/null 2>&1; then :
39131 
39132 else
39133   ac_cv_header_stdc=no
39134 fi
39135 rm -f conftest*
39136 
39137 fi
39138 
39139 if test $ac_cv_header_stdc = yes; then
39140   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
39141   if test "$cross_compiling" = yes; then :
39142   :
39143 else
39144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39145 /* end confdefs.h.  */
39146 #include <ctype.h>
39147 #include <stdlib.h>
39148 #if ((' ' & 0x0FF) == 0x020)
39149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
39150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
39151 #else
39152 # define ISLOWER(c) \
39153                    (('a' <= (c) && (c) <= 'i') \
39154                      || ('j' <= (c) && (c) <= 'r') \
39155                      || ('s' <= (c) && (c) <= 'z'))
39156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
39157 #endif
39158 
39159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
39160 int
39161 main ()
39162 {
39163   int i;
39164   for (i = 0; i < 256; i++)
39165     if (XOR (islower (i), ISLOWER (i))
39166         || toupper (i) != TOUPPER (i))
39167       return 2;
39168   return 0;
39169 }
39170 _ACEOF
39171 if ac_fn_cxx_try_run "$LINENO"; then :
39172 
39173 else
39174   ac_cv_header_stdc=no
39175 fi
39176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39177   conftest.$ac_objext conftest.beam conftest.$ac_ext
39178 fi
39179 
39180 fi
39181 fi
39182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
39183 $as_echo "$ac_cv_header_stdc" >&6; }
39184 if test $ac_cv_header_stdc = yes; then
39185 
39186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
39187 
39188 fi
39189 
39190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
39191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
39192                   inttypes.h stdint.h unistd.h
39193 do :
39194   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39195 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
39196 "
39197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39198   cat >>confdefs.h <<_ACEOF
39199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39200 _ACEOF
39201 
39202 fi
39203 
39204 done
39205 
39206 
39207 
39208   ###############################################################################
39209   #
39210   # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
39211   # (The JVM can use 32 or 64 bit Java pointers but that decision
39212   # is made at runtime.)
39213   #
39214 
39215   if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
39216     # Always specify -m flag on Solaris
39217     # And -q on AIX because otherwise the compiler produces 32-bit objects by default
39218 
39219   # When we add flags to the "official" CFLAGS etc, we need to
39220   # keep track of these additions in ADDED_CFLAGS etc. These
39221   # will later be checked to make sure only controlled additions
39222   # have been made to CFLAGS etc.
39223   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39224   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39225   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39226 
39227   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
39228   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
39229   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
39230 
39231   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
39232   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
39233   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
39234 
39235   elif test "x$COMPILE_TYPE" = xreduced; then
39236     if test "x$OPENJDK_TARGET_OS" != xwindows; then
39237       # Specify -m if running reduced on other Posix platforms
39238 
39239   # When we add flags to the "official" CFLAGS etc, we need to
39240   # keep track of these additions in ADDED_CFLAGS etc. These
39241   # will later be checked to make sure only controlled additions
39242   # have been made to CFLAGS etc.
39243   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39244   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39245   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39246 
39247   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
39248   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
39249   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
39250 
39251   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
39252   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
39253   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
39254 
39255     fi
39256   fi
39257 
39258   # Make compilation sanity check
39259   for ac_header in stdio.h
39260 do :
39261   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
39262 if test "x$ac_cv_header_stdio_h" = xyes; then :
39263   cat >>confdefs.h <<_ACEOF
39264 #define HAVE_STDIO_H 1
39265 _ACEOF
39266 
39267 else
39268 
39269     { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
39270 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
39271     if test "x$COMPILE_TYPE" = xreduced; then
39272       { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
39273 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
39274     elif test "x$COMPILE_TYPE" = xcross; then
39275       { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
39276 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
39277     fi
39278     as_fn_error $? "Cannot continue." "$LINENO" 5
39279 
39280 fi
39281 
39282 done
39283 
39284 
39285   # The cast to long int works around a bug in the HP C Compiler
39286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39288 # This bug is HP SR number 8606223364.
39289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
39290 $as_echo_n "checking size of int *... " >&6; }
39291 if ${ac_cv_sizeof_int_p+:} false; then :
39292   $as_echo_n "(cached) " >&6
39293 else
39294   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
39295 
39296 else
39297   if test "$ac_cv_type_int_p" = yes; then
39298      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39300 as_fn_error 77 "cannot compute sizeof (int *)
39301 See \`config.log' for more details" "$LINENO" 5; }
39302    else
39303      ac_cv_sizeof_int_p=0
39304    fi
39305 fi
39306 
39307 fi
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
39309 $as_echo "$ac_cv_sizeof_int_p" >&6; }
39310 
39311 
39312 
39313 cat >>confdefs.h <<_ACEOF
39314 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
39315 _ACEOF
39316 
39317 
39318 
39319   # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*'
39320   if test "x$ac_cv_sizeof_int_p" = x; then
39321     # The test failed, lets stick to the assumed value.
39322     { $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
39323 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;}
39324   else
39325     TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
39326 
39327     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
39328       # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects
39329       # Let's try to implicitely set the compilers target architecture and retry the test
39330       { $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
39331 $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;}
39332       { $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
39333 $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;}
39334 
39335   # When we add flags to the "official" CFLAGS etc, we need to
39336   # keep track of these additions in ADDED_CFLAGS etc. These
39337   # will later be checked to make sure only controlled additions
39338   # have been made to CFLAGS etc.
39339   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39340   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39341   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
39342 
39343   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
39344   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
39345   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
39346 
39347   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
39348   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
39349   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
39350 
39351 
39352       # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value!
39353       unset ac_cv_sizeof_int_p
39354       # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF
39355       cat >>confdefs.h <<_ACEOF
39356 #undef SIZEOF_INT_P
39357 _ACEOF
39358 
39359       # The cast to long int works around a bug in the HP C Compiler
39360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39362 # This bug is HP SR number 8606223364.
39363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
39364 $as_echo_n "checking size of int *... " >&6; }
39365 if ${ac_cv_sizeof_int_p+:} false; then :
39366   $as_echo_n "(cached) " >&6
39367 else
39368   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
39369 
39370 else
39371   if test "$ac_cv_type_int_p" = yes; then
39372      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39374 as_fn_error 77 "cannot compute sizeof (int *)
39375 See \`config.log' for more details" "$LINENO" 5; }
39376    else
39377      ac_cv_sizeof_int_p=0
39378    fi
39379 fi
39380 
39381 fi
39382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
39383 $as_echo "$ac_cv_sizeof_int_p" >&6; }
39384 
39385 
39386 
39387 cat >>confdefs.h <<_ACEOF
39388 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
39389 _ACEOF
39390 
39391 
39392 
39393       TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
39394 
39395       if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
39396         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
39397       fi
39398     fi
39399   fi
39400 
39401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
39402 $as_echo_n "checking for target address size... " >&6; }
39403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
39404 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
39405 
39406 
39407   ###############################################################################
39408   #
39409   # Is the target little of big endian?
39410   #
39411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39412 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
39413 if ${ac_cv_c_bigendian+:} false; then :
39414   $as_echo_n "(cached) " >&6
39415 else
39416   ac_cv_c_bigendian=unknown
39417     # See if we're dealing with a universal compiler.
39418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39419 /* end confdefs.h.  */
39420 #ifndef __APPLE_CC__
39421                not a universal capable compiler
39422              #endif
39423              typedef int dummy;
39424 
39425 _ACEOF
39426 if ac_fn_cxx_try_compile "$LINENO"; then :
39427 
39428         # Check for potential -arch flags.  It is not universal unless
39429         # there are at least two -arch flags with different values.
39430         ac_arch=
39431         ac_prev=
39432         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
39433          if test -n "$ac_prev"; then
39434            case $ac_word in
39435              i?86 | x86_64 | ppc | ppc64)
39436                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
39437                  ac_arch=$ac_word
39438                else
39439                  ac_cv_c_bigendian=universal
39440                  break
39441                fi
39442                ;;
39443            esac
39444            ac_prev=
39445          elif test "x$ac_word" = "x-arch"; then
39446            ac_prev=arch
39447          fi
39448        done
39449 fi
39450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39451     if test $ac_cv_c_bigendian = unknown; then
39452       # See if sys/param.h defines the BYTE_ORDER macro.
39453       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39454 /* end confdefs.h.  */
39455 #include <sys/types.h>
39456              #include <sys/param.h>
39457 
39458 int
39459 main ()
39460 {
39461 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
39462                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
39463                      && LITTLE_ENDIAN)
39464               bogus endian macros
39465              #endif
39466 
39467   ;
39468   return 0;
39469 }
39470 _ACEOF
39471 if ac_fn_cxx_try_compile "$LINENO"; then :
39472   # It does; now see whether it defined to BIG_ENDIAN or not.
39473          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39474 /* end confdefs.h.  */
39475 #include <sys/types.h>
39476                 #include <sys/param.h>
39477 
39478 int
39479 main ()
39480 {
39481 #if BYTE_ORDER != BIG_ENDIAN
39482                  not big endian
39483                 #endif
39484 
39485   ;
39486   return 0;
39487 }
39488 _ACEOF
39489 if ac_fn_cxx_try_compile "$LINENO"; then :
39490   ac_cv_c_bigendian=yes
39491 else
39492   ac_cv_c_bigendian=no
39493 fi
39494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39495 fi
39496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39497     fi
39498     if test $ac_cv_c_bigendian = unknown; then
39499       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
39500       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39501 /* end confdefs.h.  */
39502 #include <limits.h>
39503 
39504 int
39505 main ()
39506 {
39507 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
39508               bogus endian macros
39509              #endif
39510 
39511   ;
39512   return 0;
39513 }
39514 _ACEOF
39515 if ac_fn_cxx_try_compile "$LINENO"; then :
39516   # It does; now see whether it defined to _BIG_ENDIAN or not.
39517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39518 /* end confdefs.h.  */
39519 #include <limits.h>
39520 
39521 int
39522 main ()
39523 {
39524 #ifndef _BIG_ENDIAN
39525                  not big endian
39526                 #endif
39527 
39528   ;
39529   return 0;
39530 }
39531 _ACEOF
39532 if ac_fn_cxx_try_compile "$LINENO"; then :
39533   ac_cv_c_bigendian=yes
39534 else
39535   ac_cv_c_bigendian=no
39536 fi
39537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39538 fi
39539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39540     fi
39541     if test $ac_cv_c_bigendian = unknown; then
39542       # Compile a test program.
39543       if test "$cross_compiling" = yes; then :
39544   # Try to guess by grepping values from an object file.
39545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39546 /* end confdefs.h.  */
39547 short int ascii_mm[] =
39548                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39549                 short int ascii_ii[] =
39550                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39551                 int use_ascii (int i) {
39552                   return ascii_mm[i] + ascii_ii[i];
39553                 }
39554                 short int ebcdic_ii[] =
39555                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39556                 short int ebcdic_mm[] =
39557                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39558                 int use_ebcdic (int i) {
39559                   return ebcdic_mm[i] + ebcdic_ii[i];
39560                 }
39561                 extern int foo;
39562 
39563 int
39564 main ()
39565 {
39566 return use_ascii (foo) == use_ebcdic (foo);
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 if ac_fn_cxx_try_compile "$LINENO"; then :
39572   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
39573               ac_cv_c_bigendian=yes
39574             fi
39575             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39576               if test "$ac_cv_c_bigendian" = unknown; then
39577                 ac_cv_c_bigendian=no
39578               else
39579                 # finding both strings is unlikely to happen, but who knows?
39580                 ac_cv_c_bigendian=unknown
39581               fi
39582             fi
39583 fi
39584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39585 else
39586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39587 /* end confdefs.h.  */
39588 $ac_includes_default
39589 int
39590 main ()
39591 {
39592 
39593              /* Are we little or big endian?  From Harbison&Steele.  */
39594              union
39595              {
39596                long int l;
39597                char c[sizeof (long int)];
39598              } u;
39599              u.l = 1;
39600              return u.c[sizeof (long int) - 1] == 1;
39601 
39602   ;
39603   return 0;
39604 }
39605 _ACEOF
39606 if ac_fn_cxx_try_run "$LINENO"; then :
39607   ac_cv_c_bigendian=no
39608 else
39609   ac_cv_c_bigendian=yes
39610 fi
39611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39612   conftest.$ac_objext conftest.beam conftest.$ac_ext
39613 fi
39614 
39615     fi
39616 fi
39617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39618 $as_echo "$ac_cv_c_bigendian" >&6; }
39619  case $ac_cv_c_bigendian in #(
39620    yes)
39621      ENDIAN="big";; #(
39622    no)
39623      ENDIAN="little" ;; #(
39624    universal)
39625      ENDIAN="universal_endianness"
39626      ;; #(
39627    *)
39628      ENDIAN="unknown" ;;
39629  esac
39630 
39631 
39632   if test "x$ENDIAN" = xuniversal_endianness; then
39633     as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5
39634   fi
39635   if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then
39636     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
39637   fi
39638 
39639 
39640 # Configure flags for the tools
39641 
39642 
39643   ###############################################################################
39644   #
39645   # How to compile shared libraries.
39646   #
39647 
39648   if test "x$GCC" = xyes; then
39649     COMPILER_NAME=gcc
39650     PICFLAG="-fPIC"
39651     LIBRARY_PREFIX=lib
39652     SHARED_LIBRARY='lib$1.so'
39653     STATIC_LIBRARY='lib$1.a'
39654     SHARED_LIBRARY_FLAGS="-shared"
39655     SHARED_LIBRARY_SUFFIX='.so'
39656     STATIC_LIBRARY_SUFFIX='.a'
39657     OBJ_SUFFIX='.o'
39658     EXE_SUFFIX=''
39659     SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
39660     SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
39661     C_FLAG_REORDER=''
39662     CXX_FLAG_REORDER=''
39663     SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
39664     SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
39665     LD="$CC"
39666     LDEXE="$CC"
39667     LDCXX="$CXX"
39668     LDEXECXX="$CXX"
39669     POST_STRIP_CMD="$STRIP -g"
39670 
39671     # Linking is different on MacOSX
39672     if test "x$OPENJDK_TARGET_OS" = xmacosx; then
39673       # Might change in the future to clang.
39674       COMPILER_NAME=gcc
39675       SHARED_LIBRARY='lib$1.dylib'
39676       SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
39677       SHARED_LIBRARY_SUFFIX='.dylib'
39678       EXE_SUFFIX=''
39679       SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
39680       SET_SHARED_LIBRARY_MAPFILE=''
39681       SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
39682       SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
39683       POST_STRIP_CMD="$STRIP -S"
39684     fi
39685   else
39686     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
39687       # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
39688       COMPILER_NAME=ossc
39689       PICFLAG="-KPIC"
39690       LIBRARY_PREFIX=lib
39691       SHARED_LIBRARY='lib$1.so'
39692       STATIC_LIBRARY='lib$1.a'
39693       SHARED_LIBRARY_FLAGS="-G"
39694       SHARED_LIBRARY_SUFFIX='.so'
39695       STATIC_LIBRARY_SUFFIX='.a'
39696       OBJ_SUFFIX='.o'
39697       EXE_SUFFIX=''
39698       SET_SHARED_LIBRARY_NAME=''
39699       SET_SHARED_LIBRARY_MAPFILE='-M$1'
39700       C_FLAG_REORDER='-xF'
39701       CXX_FLAG_REORDER='-xF'
39702       SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
39703       SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
39704       CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
39705       CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
39706       CFLAGS_JDKLIB_EXTRA='-xstrconst'
39707       POST_STRIP_CMD="$STRIP -x"
39708       POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
39709     fi
39710     if test "x$OPENJDK_TARGET_OS" = xaix; then
39711         COMPILER_NAME=xlc
39712         PICFLAG="-qpic=large"
39713         LIBRARY_PREFIX=lib
39714         SHARED_LIBRARY='lib$1.so'
39715         STATIC_LIBRARY='lib$1.a'
39716         SHARED_LIBRARY_FLAGS="-qmkshrobj"
39717         SHARED_LIBRARY_SUFFIX='.so'
39718         STATIC_LIBRARY_SUFFIX='.a'
39719         OBJ_SUFFIX='.o'
39720         EXE_SUFFIX=''
39721         SET_SHARED_LIBRARY_NAME=''
39722         SET_SHARED_LIBRARY_MAPFILE=''
39723         C_FLAG_REORDER=''
39724         CXX_FLAG_REORDER=''
39725         SET_SHARED_LIBRARY_ORIGIN=''
39726         SET_EXECUTABLE_ORIGIN=""
39727         CFLAGS_JDK=""
39728         CXXFLAGS_JDK=""
39729         CFLAGS_JDKLIB_EXTRA=''
39730         POST_STRIP_CMD="$STRIP -X32_64"
39731         POST_MCS_CMD=""
39732     fi
39733     if test "x$OPENJDK_TARGET_OS" = xwindows; then
39734       # If it is not gcc, then assume it is the MS Visual Studio compiler
39735       COMPILER_NAME=cl
39736       PICFLAG=""
39737       LIBRARY_PREFIX=
39738       SHARED_LIBRARY='$1.dll'
39739       STATIC_LIBRARY='$1.lib'
39740       SHARED_LIBRARY_FLAGS="-LD"
39741       SHARED_LIBRARY_SUFFIX='.dll'
39742       STATIC_LIBRARY_SUFFIX='.lib'
39743       OBJ_SUFFIX='.obj'
39744       EXE_SUFFIX='.exe'
39745       SET_SHARED_LIBRARY_NAME=''
39746       SET_SHARED_LIBRARY_MAPFILE=''
39747       SET_SHARED_LIBRARY_ORIGIN=''
39748       SET_EXECUTABLE_ORIGIN=''
39749     fi
39750   fi
39751 
39752 
39753 
39754 
39755 
39756 
39757 
39758 
39759 
39760 
39761 
39762 
39763 
39764 
39765 
39766 
39767 
39768 
39769 
39770   # The (cross) compiler is now configured, we can now test capabilities
39771   # of the target platform.
39772 
39773 
39774 
39775   ###############################################################################
39776   #
39777   # Setup the opt flags for different compilers
39778   # and different operating systems.
39779   #
39780 
39781   #
39782   # NOTE: check for -mstackrealign needs to be below potential addition of -m32
39783   #
39784   if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then
39785     # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
39786     # While waiting for a better solution, the current workaround is to use -mstackrealign.
39787     CFLAGS="$CFLAGS -mstackrealign"
39788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
39789 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
39790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791 /* end confdefs.h.  */
39792 int main() { return 0; }
39793 _ACEOF
39794 if ac_fn_cxx_try_link "$LINENO"; then :
39795 
39796           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39797 $as_echo "yes" >&6; }
39798 
39799 else
39800 
39801           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39802 $as_echo "no" >&6; }
39803           as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
39804 
39805 
39806 fi
39807 rm -f core conftest.err conftest.$ac_objext \
39808     conftest$ac_exeext conftest.$ac_ext
39809   fi
39810 
39811   C_FLAG_DEPS="-MMD -MF"
39812   CXX_FLAG_DEPS="-MMD -MF"
39813 
39814   case $COMPILER_TYPE in
39815     CC )
39816       case $COMPILER_NAME in
39817         gcc )
39818           case $OPENJDK_TARGET_OS in
39819             macosx )
39820               # On MacOSX we optimize for size, something
39821               # we should do for all platforms?
39822               C_O_FLAG_HI="-Os"
39823               C_O_FLAG_NORM="-Os"
39824               C_O_FLAG_NONE=""
39825               ;;
39826             *)
39827               C_O_FLAG_HI="-O3"
39828               C_O_FLAG_NORM="-O2"
39829               C_O_FLAG_NONE="-O0"
39830               ;;
39831           esac
39832           CXX_O_FLAG_HI="$C_O_FLAG_HI"
39833           CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
39834           CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
39835           CFLAGS_DEBUG_SYMBOLS="-g"
39836           CXXFLAGS_DEBUG_SYMBOLS="-g"
39837           if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
39838             CFLAGS_DEBUG_SYMBOLS="-g1"
39839             CXXFLAGS_DEBUG_SYMBOLS="-g1"
39840           fi
39841           ;;
39842         ossc )
39843           #
39844           # Forte has different names for this with their C++ compiler...
39845           #
39846           C_FLAG_DEPS="-xMMD -xMF"
39847           CXX_FLAG_DEPS="-xMMD -xMF"
39848 
39849           # Extra options used with HIGHEST
39850           #
39851           # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
39852           #          done with care, there are some assumptions below that need to
39853           #          be understood about the use of pointers, and IEEE behavior.
39854           #
39855           # Use non-standard floating point mode (not IEEE 754)
39856           CC_HIGHEST="$CC_HIGHEST -fns"
39857           # Do some simplification of floating point arithmetic (not IEEE 754)
39858           CC_HIGHEST="$CC_HIGHEST -fsimple"
39859           # Use single precision floating point with 'float'
39860           CC_HIGHEST="$CC_HIGHEST -fsingle"
39861           # Assume memory references via basic pointer types do not alias
39862           #   (Source with excessing pointer casting and data access with mixed
39863           #    pointer types are not recommended)
39864           CC_HIGHEST="$CC_HIGHEST -xalias_level=basic"
39865           # Use intrinsic or inline versions for math/std functions
39866           #   (If you expect perfect errno behavior, do not use this)
39867           CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all"
39868           # Loop data dependency optimizations (need -xO3 or higher)
39869           CC_HIGHEST="$CC_HIGHEST -xdepend"
39870           # Pointer parameters to functions do not overlap
39871           #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
39872           #    If you pass in multiple pointers to the same data, do not use this)
39873           CC_HIGHEST="$CC_HIGHEST -xrestrict"
39874           # Inline some library routines
39875           #   (If you expect perfect errno behavior, do not use this)
39876           CC_HIGHEST="$CC_HIGHEST -xlibmil"
39877           # Use optimized math routines
39878           #   (If you expect perfect errno behavior, do not use this)
39879           #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
39880           #CC_HIGHEST="$CC_HIGHEST -xlibmopt"
39881 
39882           if test "x$OPENJDK_TARGET_CPU" = xsparc; then
39883             CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
39884             CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
39885           fi
39886 
39887           case $OPENJDK_TARGET_CPU_ARCH in
39888             x86)
39889               C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr"
39890               C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr"
39891               C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr"
39892               C_O_FLAG_NONE="-xregs=no%frameptr"
39893               CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr"
39894               CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr"
39895               CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr"
39896               CXX_O_FLAG_NONE="-xregs=no%frameptr"
39897               if test "x$OPENJDK_TARGET_CPU" = xx86; then
39898                 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
39899                 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
39900               fi
39901               ;;
39902             sparc)
39903               CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
39904               CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
39905               C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
39906               C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
39907               C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
39908               C_O_FLAG_NONE=""
39909               CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
39910               CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
39911               CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
39912               CXX_O_FLAG_NONE=""
39913               ;;
39914           esac
39915 
39916           CFLAGS_DEBUG_SYMBOLS="-g -xs"
39917           CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
39918           ;;
39919         xlc )
39920           C_FLAG_DEPS="-qmakedep=gcc -MF"
39921           CXX_FLAG_DEPS="-qmakedep=gcc -MF"
39922           C_O_FLAG_HIGHEST="-O3"
39923           C_O_FLAG_HI="-O3 -qstrict"
39924           C_O_FLAG_NORM="-O2"
39925           C_O_FLAG_NONE=""
39926           CXX_O_FLAG_HIGHEST="-O3"
39927           CXX_O_FLAG_HI="-O3 -qstrict"
39928           CXX_O_FLAG_NORM="-O2"
39929           CXX_O_FLAG_NONE=""
39930           CFLAGS_DEBUG_SYMBOLS="-g"
39931           CXXFLAGS_DEBUG_SYMBOLS="-g"
39932           LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
39933           CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
39934           CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
39935           ;;
39936       esac
39937       ;;
39938     CL )
39939       C_O_FLAG_HIGHEST="-O2"
39940       C_O_FLAG_HI="-O1"
39941       C_O_FLAG_NORM="-O1"
39942       C_O_FLAG_NONE="-Od"
39943       CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
39944       CXX_O_FLAG_HI="$C_O_FLAG_HI"
39945       CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
39946       CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
39947       ;;
39948   esac
39949 
39950   if test -z "$C_O_FLAG_HIGHEST"; then
39951     C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
39952   fi
39953 
39954   if test -z "$CXX_O_FLAG_HIGHEST"; then
39955     CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
39956   fi
39957 
39958 
39959 
39960 
39961 
39962 
39963 
39964 
39965 
39966 
39967 
39968 
39969 
39970 
39971   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
39972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
39973 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
39974   fi
39975 
39976   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
39977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
39978 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
39979   fi
39980 
39981   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
39982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
39983 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
39984   fi
39985 
39986 
39987 # Check whether --with-extra-cflags was given.
39988 if test "${with_extra_cflags+set}" = set; then :
39989   withval=$with_extra_cflags;
39990 fi
39991 
39992 
39993 
39994 # Check whether --with-extra-cxxflags was given.
39995 if test "${with_extra_cxxflags+set}" = set; then :
39996   withval=$with_extra_cxxflags;
39997 fi
39998 
39999 
40000 
40001 # Check whether --with-extra-ldflags was given.
40002 if test "${with_extra_ldflags+set}" = set; then :
40003   withval=$with_extra_ldflags;
40004 fi
40005 
40006 
40007   CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags"
40008   CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags"
40009   LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags"
40010 
40011   # Hotspot needs these set in their legacy form
40012   LEGACY_EXTRA_CFLAGS=$with_extra_cflags
40013   LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags
40014   LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags
40015 
40016 
40017 
40018 
40019 
40020   ###############################################################################
40021   #
40022   # Now setup the CFLAGS and LDFLAGS for the JDK build.
40023   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
40024   #    CFLAGS_JDK    - C Compiler flags
40025   #    CXXFLAGS_JDK  - C++ Compiler flags
40026   #    COMMON_CCXXFLAGS_JDK - common to C and C++
40027   #
40028   case $COMPILER_NAME in
40029     gcc )
40030       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
40031       -pipe \
40032       -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
40033       CXXSTD_CXXFLAG="-std=gnu++98"
40034 
40035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG $CFLAGS_WARNINGS_ARE_ERRORS\"" >&5
40036 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG $CFLAGS_WARNINGS_ARE_ERRORS\"... " >&6; }
40037   supports=yes
40038 
40039   saved_cxxflags="$CXXFLAGS"
40040   CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG $CFLAGS_WARNINGS_ARE_ERRORS"
40041   ac_ext=cpp
40042 ac_cpp='$CXXCPP $CPPFLAGS'
40043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40046 
40047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40048 /* end confdefs.h.  */
40049 int i;
40050 _ACEOF
40051 if ac_fn_cxx_try_compile "$LINENO"; then :
40052 
40053 else
40054   supports=no
40055 fi
40056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40057   ac_ext=cpp
40058 ac_cpp='$CXXCPP $CPPFLAGS'
40059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40062 
40063   CXXFLAGS="$saved_cxxflags"
40064 
40065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40066 $as_echo "$supports" >&6; }
40067   if test "x$supports" = "xyes" ; then
40068     :
40069   else
40070     CXXSTD_CXXFLAG=""
40071   fi
40072 
40073       CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}"
40074 
40075       case $OPENJDK_TARGET_CPU_ARCH in
40076         arm )
40077           # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
40078           CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
40079           ;;
40080         ppc )
40081           # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing
40082           ;;
40083         * )
40084           COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
40085           CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
40086           ;;
40087       esac
40088 
40089   REFERENCE_VERSION=6
40090 
40091   if  [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then
40092     as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5
40093   fi
40094 
40095   if  [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then
40096     as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5
40097   fi
40098 
40099   # Version comparison method inspired by http://stackoverflow.com/a/24067243
40100   COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"`
40101 
40102   if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then
40103 
40104   # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code
40105   # runs afoul of the more aggressive versions of these optimisations.
40106   # Notably, value range propagation now assumes that the this pointer of C++
40107   # member functions is non-null.
40108   NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
40109 
40110 
40111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
40112 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
40113   supports=yes
40114 
40115   saved_cflags="$CFLAGS"
40116   CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror"
40117   ac_ext=c
40118 ac_cpp='$CPP $CPPFLAGS'
40119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40122 
40123 
40124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40125 /* end confdefs.h.  */
40126 int i;
40127 _ACEOF
40128 if ac_fn_c_try_compile "$LINENO"; then :
40129 
40130 else
40131   supports=no
40132 fi
40133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40134   ac_ext=cpp
40135 ac_cpp='$CXXCPP $CPPFLAGS'
40136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40139 
40140   CFLAGS="$saved_cflags"
40141 
40142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40143 $as_echo "$supports" >&6; }
40144   if test "x$supports" = "xyes" ; then
40145     C_COMP_SUPPORTS="yes"
40146   else
40147     C_COMP_SUPPORTS="no"
40148   fi
40149 
40150 
40151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
40152 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
40153   supports=yes
40154 
40155   saved_cxxflags="$CXXFLAGS"
40156   CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror"
40157   ac_ext=cpp
40158 ac_cpp='$CXXCPP $CPPFLAGS'
40159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40162 
40163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40164 /* end confdefs.h.  */
40165 int i;
40166 _ACEOF
40167 if ac_fn_cxx_try_compile "$LINENO"; then :
40168 
40169 else
40170   supports=no
40171 fi
40172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40173   ac_ext=cpp
40174 ac_cpp='$CXXCPP $CPPFLAGS'
40175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40178 
40179   CXXFLAGS="$saved_cxxflags"
40180 
40181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40182 $as_echo "$supports" >&6; }
40183   if test "x$supports" = "xyes" ; then
40184     CXX_COMP_SUPPORTS="yes"
40185   else
40186     CXX_COMP_SUPPORTS="no"
40187   fi
40188 
40189 
40190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
40191 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
40192   supports=no
40193   if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
40194 
40195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40196 $as_echo "$supports" >&6; }
40197   if test "x$supports" = "xyes" ; then
40198     :
40199   else
40200     NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""
40201   fi
40202 
40203 
40204   NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
40205 
40206 
40207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
40208 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
40209   supports=yes
40210 
40211   saved_cflags="$CFLAGS"
40212   CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror"
40213   ac_ext=c
40214 ac_cpp='$CPP $CPPFLAGS'
40215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40218 
40219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40220 /* end confdefs.h.  */
40221 int i;
40222 _ACEOF
40223 if ac_fn_c_try_compile "$LINENO"; then :
40224 
40225 else
40226   supports=no
40227 fi
40228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40229   ac_ext=cpp
40230 ac_cpp='$CXXCPP $CPPFLAGS'
40231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40234 
40235   CFLAGS="$saved_cflags"
40236 
40237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40238 $as_echo "$supports" >&6; }
40239   if test "x$supports" = "xyes" ; then
40240     C_COMP_SUPPORTS="yes"
40241   else
40242     C_COMP_SUPPORTS="no"
40243   fi
40244 
40245 
40246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
40247 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
40248   supports=yes
40249 
40250   saved_cxxflags="$CXXFLAGS"
40251   CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror"
40252   ac_ext=cpp
40253 ac_cpp='$CXXCPP $CPPFLAGS'
40254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40257 
40258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40259 /* end confdefs.h.  */
40260 int i;
40261 _ACEOF
40262 if ac_fn_cxx_try_compile "$LINENO"; then :
40263 
40264 else
40265   supports=no
40266 fi
40267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40268   ac_ext=cpp
40269 ac_cpp='$CXXCPP $CPPFLAGS'
40270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40273 
40274   CXXFLAGS="$saved_cxxflags"
40275 
40276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40277 $as_echo "$supports" >&6; }
40278   if test "x$supports" = "xyes" ; then
40279     CXX_COMP_SUPPORTS="yes"
40280   else
40281     CXX_COMP_SUPPORTS="no"
40282   fi
40283 
40284 
40285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
40286 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
40287   supports=no
40288   if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
40289 
40290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40291 $as_echo "$supports" >&6; }
40292   if test "x$supports" = "xyes" ; then
40293     :
40294   else
40295     NO_LIFETIME_DSE_CFLAG=""
40296   fi
40297 
40298   CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}"
40299 
40300 
40301 
40302   else
40303     :
40304   fi
40305 
40306       ;;
40307     ossc )
40308       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
40309       case $OPENJDK_TARGET_CPU_ARCH in
40310         x86 )
40311           COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
40312           CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
40313           ;;
40314       esac
40315 
40316       CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
40317       CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
40318 
40319       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
40320       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
40321       ;;
40322     xlc )
40323       CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
40324       CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
40325 
40326       LDFLAGS_JDK="$LDFLAGS_JDK"
40327       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK"
40328       ;;
40329     cl )
40330       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
40331       -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
40332       -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
40333       -DWIN32 -DIAL"
40334       case $OPENJDK_TARGET_CPU in
40335         x86 )
40336           COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"
40337           ;;
40338         x86_64 )
40339           COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"
40340           ;;
40341       esac
40342       ;;
40343   esac
40344 
40345   ###############################################################################
40346 
40347   # Adjust flags according to debug level.
40348   case $DEBUG_LEVEL in
40349     fastdebug )
40350       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
40351       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
40352       C_O_FLAG_HI="$C_O_FLAG_NORM"
40353       C_O_FLAG_NORM="$C_O_FLAG_NORM"
40354       CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
40355       CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
40356       JAVAC_FLAGS="$JAVAC_FLAGS -g"
40357       ;;
40358     slowdebug )
40359       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
40360       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
40361       C_O_FLAG_HI="$C_O_FLAG_NONE"
40362       C_O_FLAG_NORM="$C_O_FLAG_NONE"
40363       CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
40364       CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
40365       JAVAC_FLAGS="$JAVAC_FLAGS -g"
40366       ;;
40367   esac
40368 
40369   COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64"
40370 
40371   # The package path is used only on macosx?
40372   PACKAGE_PATH=/opt/local
40373 
40374 
40375   if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then
40376     # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the
40377     #   Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN
40378     #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
40379     #   Note: -Dmacro         is the same as    #define macro 1
40380     #         -Dmacro=        is the same as    #define macro
40381     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
40382       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
40383     else
40384       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
40385     fi
40386   else
40387     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN"
40388   fi
40389   if test "x$OPENJDK_TARGET_OS" = xlinux; then
40390     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DLINUX"
40391   fi
40392   if test "x$OPENJDK_TARGET_OS" = xwindows; then
40393     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DWINDOWS"
40394   fi
40395   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
40396     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DSOLARIS"
40397   fi
40398   if test "x$OPENJDK_TARGET_OS" = xaix; then
40399     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DAIX -DPPC64"
40400   fi
40401   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
40402     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
40403     # Setting these parameters makes it an error to link to macosx APIs that are
40404     # newer than the given OS version and makes the linked binaries compatible even
40405     # if built on a newer version of the OS.
40406     # The expected format is X.Y.Z
40407     MACOSX_VERSION_MIN=10.7.0
40408 
40409     # The macro takes the version with no dots, ex: 1070
40410     # Let the flags variables get resolved in make for easier override on make
40411     # command line.
40412     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
40413     LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
40414   fi
40415   if test "x$OPENJDK_TARGET_OS" = xbsd; then
40416     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
40417   fi
40418   if test "x$DEBUG_LEVEL" = xrelease; then
40419     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG"
40420   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
40421     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED"
40422   fi
40423   else
40424     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG"
40425   fi
40426 
40427   COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
40428   COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'"
40429 
40430   COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \
40431       -I${JDK_OUTPUTDIR}/include \
40432       -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \
40433       -I${JDK_TOPDIR}/src/share/javavm/export \
40434       -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \
40435       -I${JDK_TOPDIR}/src/share/native/common \
40436       -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common"
40437 
40438   # The shared libraries are compiled using the picflag.
40439   CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
40440   CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
40441 
40442   # Executable flags
40443   CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK"
40444   CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK"
40445 
40446   # Now this is odd. The JDK native libraries have to link against libjvm.so
40447   # On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
40448   # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
40449   # is identical for client and server? Yes. Which is picked at runtime (client or server)?
40450   # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
40451   # libraries will link to whatever is in memory. Yuck.
40452   #
40453   # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
40454   if test "x$COMPILER_NAME" = xcl; then
40455     LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no"
40456     if test "x$OPENJDK_TARGET_CPU" = xx86; then
40457       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
40458     fi
40459     # TODO: make -debug optional "--disable-full-debug-symbols"
40460     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
40461     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
40462     LDFLAGS_JDKLIB_SUFFIX=""
40463     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
40464       LDFLAGS_STACK_SIZE=1048576
40465     else
40466       LDFLAGS_STACK_SIZE=327680
40467     fi
40468     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
40469   else
40470     if test "x$COMPILER_NAME" = xgcc; then
40471       # If this is a --hash-style=gnu system, use --hash-style=both, why?
40472       HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
40473       if test -n "$HAS_GNU_HASH"; then
40474         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
40475       fi
40476       if test "x$OPENJDK_TARGET_OS" = xlinux; then
40477         # And since we now know that the linker is gnu, then add:
40478         #   -z defs, to forbid undefined symbols in object files
40479         #   -z noexecstack, to mark stack regions as non-executable
40480         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack"
40481         if test "x$DEBUG_LEVEL" = "xrelease"; then
40482           # When building release libraries, tell the linker optimize them.
40483           # Should this be supplied to the OSS linker as well?
40484           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
40485         fi
40486       fi
40487     fi
40488     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
40489         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
40490 
40491     # On some platforms (mac) the linker warns about non existing -L dirs.
40492     # Add server first if available. Linking aginst client does not always produce the same results.
40493     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
40494     # Default to server for other variants.
40495     if test "x$JVM_VARIANT_SERVER" = xtrue; then
40496       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
40497     elif test "x$JVM_VARIANT_CLIENT" = xtrue; then
40498       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client"
40499     elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
40500       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal"
40501     else
40502       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
40503     fi
40504 
40505     LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm"
40506     if test "x$COMPILER_NAME" = xossc; then
40507       LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
40508     fi
40509 
40510     LDFLAGS_JDKEXE="${LDFLAGS_JDK}"
40511     if test "x$OPENJDK_TARGET_OS" = xlinux; then
40512       LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
40513     fi
40514   fi
40515 
40516 
40517 
40518 
40519 
40520 
40521 
40522 
40523 
40524 
40525 
40526 
40527 
40528 
40529   # Some Zero and Shark settings.
40530   # ZERO_ARCHFLAG tells the compiler which mode to build for
40531   case "${OPENJDK_TARGET_CPU}" in
40532     s390)
40533       ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31"
40534       ;;
40535     *)
40536       ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40537   esac
40538 
40539 
40540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5
40541 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
40542   supports=yes
40543 
40544   saved_cflags="$CFLAGS"
40545   CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
40546   ac_ext=c
40547 ac_cpp='$CPP $CPPFLAGS'
40548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40551 
40552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40553 /* end confdefs.h.  */
40554 int i;
40555 _ACEOF
40556 if ac_fn_c_try_compile "$LINENO"; then :
40557 
40558 else
40559   supports=no
40560 fi
40561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40562   ac_ext=cpp
40563 ac_cpp='$CXXCPP $CPPFLAGS'
40564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40567 
40568   CFLAGS="$saved_cflags"
40569 
40570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40571 $as_echo "$supports" >&6; }
40572   if test "x$supports" = "xyes" ; then
40573     C_COMP_SUPPORTS="yes"
40574   else
40575     C_COMP_SUPPORTS="no"
40576   fi
40577 
40578 
40579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5
40580 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
40581   supports=yes
40582 
40583   saved_cxxflags="$CXXFLAGS"
40584   CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG"
40585   ac_ext=cpp
40586 ac_cpp='$CXXCPP $CPPFLAGS'
40587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40590 
40591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40592 /* end confdefs.h.  */
40593 int i;
40594 _ACEOF
40595 if ac_fn_cxx_try_compile "$LINENO"; then :
40596 
40597 else
40598   supports=no
40599 fi
40600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40601   ac_ext=cpp
40602 ac_cpp='$CXXCPP $CPPFLAGS'
40603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40606 
40607   CXXFLAGS="$saved_cxxflags"
40608 
40609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40610 $as_echo "$supports" >&6; }
40611   if test "x$supports" = "xyes" ; then
40612     CXX_COMP_SUPPORTS="yes"
40613   else
40614     CXX_COMP_SUPPORTS="no"
40615   fi
40616 
40617 
40618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5
40619 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; }
40620   supports=no
40621   if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
40622 
40623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40624 $as_echo "$supports" >&6; }
40625   if test "x$supports" = "xyes" ; then
40626     :
40627   else
40628     ZERO_ARCHFLAG=""
40629   fi
40630 
40631 
40632 
40633   # Check that the compiler supports -mX (or -qX on AIX) flags
40634   # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
40635 
40636 
40637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
40638 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
40639   supports=yes
40640 
40641   saved_cflags="$CFLAGS"
40642   CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40643   ac_ext=c
40644 ac_cpp='$CPP $CPPFLAGS'
40645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40648 
40649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40650 /* end confdefs.h.  */
40651 int i;
40652 _ACEOF
40653 if ac_fn_c_try_compile "$LINENO"; then :
40654 
40655 else
40656   supports=no
40657 fi
40658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40659   ac_ext=cpp
40660 ac_cpp='$CXXCPP $CPPFLAGS'
40661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40664 
40665   CFLAGS="$saved_cflags"
40666 
40667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40668 $as_echo "$supports" >&6; }
40669   if test "x$supports" = "xyes" ; then
40670     C_COMP_SUPPORTS="yes"
40671   else
40672     C_COMP_SUPPORTS="no"
40673   fi
40674 
40675 
40676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
40677 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
40678   supports=yes
40679 
40680   saved_cxxflags="$CXXFLAGS"
40681   CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40682   ac_ext=cpp
40683 ac_cpp='$CXXCPP $CPPFLAGS'
40684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40687 
40688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40689 /* end confdefs.h.  */
40690 int i;
40691 _ACEOF
40692 if ac_fn_cxx_try_compile "$LINENO"; then :
40693 
40694 else
40695   supports=no
40696 fi
40697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40698   ac_ext=cpp
40699 ac_cpp='$CXXCPP $CPPFLAGS'
40700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40703 
40704   CXXFLAGS="$saved_cxxflags"
40705 
40706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40707 $as_echo "$supports" >&6; }
40708   if test "x$supports" = "xyes" ; then
40709     CXX_COMP_SUPPORTS="yes"
40710   else
40711     CXX_COMP_SUPPORTS="no"
40712   fi
40713 
40714 
40715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
40716 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
40717   supports=no
40718   if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
40719 
40720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
40721 $as_echo "$supports" >&6; }
40722   if test "x$supports" = "xyes" ; then
40723     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
40724   else
40725     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
40726   fi
40727 
40728 
40729 
40730 
40731   # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed in executable.'
40732   USING_BROKEN_SUSE_LD=no
40733   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$GCC" = xyes; then
40734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5
40735 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; }
40736     echo "SUNWprivate_1.1 { local: *; };" > version-script.map
40737     echo "int main() { }" > main.c
40738     if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then
40739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40740 $as_echo "no" >&6; }
40741       USING_BROKEN_SUSE_LD=no
40742     else
40743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40744 $as_echo "yes" >&6; }
40745       USING_BROKEN_SUSE_LD=yes
40746     fi
40747     rm -rf version-script.map main.c
40748   fi
40749 
40750 
40751 
40752 # Setup debug symbols (need objcopy from the toolchain for that)
40753 
40754   #
40755   # ENABLE_DEBUG_SYMBOLS
40756   # This must be done after the toolchain is setup, since we're looking at objcopy.
40757   #
40758   # Check whether --enable-debug-symbols was given.
40759 if test "${enable_debug_symbols+set}" = set; then :
40760   enableval=$enable_debug_symbols;
40761 fi
40762 
40763 
40764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
40765 $as_echo_n "checking if we should generate debug symbols... " >&6; }
40766 
40767   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
40768     # explicit enabling of enable-debug-symbols and can't find objcopy
40769     #   this is an error
40770     as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
40771   fi
40772 
40773   if test "x$enable_debug_symbols" = "xyes"; then
40774     ENABLE_DEBUG_SYMBOLS=true
40775   elif test "x$enable_debug_symbols" = "xno"; then
40776     ENABLE_DEBUG_SYMBOLS=false
40777   else
40778     # Default is on if objcopy is found
40779     if test "x$OBJCOPY" != x; then
40780       ENABLE_DEBUG_SYMBOLS=true
40781     # MacOS X and Windows don't use objcopy but default is on for those OSes
40782     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
40783       ENABLE_DEBUG_SYMBOLS=true
40784     else
40785       ENABLE_DEBUG_SYMBOLS=false
40786     fi
40787   fi
40788 
40789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
40790 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
40791 
40792   #
40793   # ZIP_DEBUGINFO_FILES
40794   #
40795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
40796 $as_echo_n "checking if we should zip debug-info files... " >&6; }
40797   # Check whether --enable-zip-debug-info was given.
40798 if test "${enable_zip_debug_info+set}" = set; then :
40799   enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}"
40800 else
40801   enable_zip_debug_info="yes"
40802 fi
40803 
40804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
40805 $as_echo "${enable_zip_debug_info}" >&6; }
40806 
40807   if test "x${enable_zip_debug_info}" = "xno"; then
40808     ZIP_DEBUGINFO_FILES=false
40809   else
40810     ZIP_DEBUGINFO_FILES=true
40811   fi
40812 
40813 
40814 
40815 
40816 
40817 
40818 
40819 ###############################################################################
40820 #
40821 # Check dependencies for external and internal libraries.
40822 #
40823 ###############################################################################
40824 
40825 # After we have toolchain, we can compile fixpath. It's needed by the lib checks.
40826 
40827   # When using cygwin or msys, we need a wrapper binary that renames
40828   # /cygdrive/c/ arguments into c:/ arguments and peeks into
40829   # @files and rewrites these too! This wrapper binary is
40830   # called fixpath.
40831   FIXPATH=
40832   if test "x$OPENJDK_BUILD_OS" = xwindows; then
40833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
40834 $as_echo_n "checking if fixpath can be created... " >&6; }
40835     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
40836     FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe"
40837     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
40838       FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC`
40839       FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN`
40840       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
40841       FIXPATH="$OUTPUT_ROOT/fixpath.exe -c"
40842     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
40843       FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC`
40844       FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN`
40845 
40846       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
40847       # @ was chosen as separator to minimize risk of other tools messing around with it
40848       all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq`
40849       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
40850 
40851       FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list"
40852     fi
40853     rm -f $OUTPUT_ROOT/fixpath*
40854     cd $OUTPUT_ROOT
40855     $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1
40856     cd $CURDIR
40857 
40858     if test ! -x $OUTPUT_ROOT/fixpath.exe; then
40859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40860 $as_echo "no" >&6; }
40861       cat $OUTPUT_ROOT/fixpath1.log
40862       as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5
40863     fi
40864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40865 $as_echo "yes" >&6; }
40866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
40867 $as_echo_n "checking if fixpath.exe works... " >&6; }
40868     cd $OUTPUT_ROOT
40869     $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1
40870     cd $CURDIR
40871     if test ! -x $OUTPUT_ROOT/fixpath2.exe; then
40872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40873 $as_echo "no" >&6; }
40874       cat $OUTPUT_ROOT/fixpath2.log
40875       as_fn_error $? "fixpath did not work!" "$LINENO" 5
40876     fi
40877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40878 $as_echo "yes" >&6; }
40879     rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj
40880   fi
40881 
40882 
40883 
40884 
40885 
40886 
40887   ###############################################################################
40888   #
40889   # OS specific settings that we never will need to probe.
40890   #
40891   if test "x$OPENJDK_TARGET_OS" = xlinux; then
40892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
40893 $as_echo_n "checking what is not needed on Linux?... " >&6; }
40894     PULSE_NOT_NEEDED=yes
40895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
40896 $as_echo "pulse" >&6; }
40897   fi
40898 
40899   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
40900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
40901 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
40902     ALSA_NOT_NEEDED=yes
40903     PULSE_NOT_NEEDED=yes
40904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
40905 $as_echo "alsa pulse" >&6; }
40906   fi
40907 
40908   if test "x$OPENJDK_TARGET_OS" = xaix; then
40909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5
40910 $as_echo_n "checking what is not needed on AIX?... " >&6; }
40911     ALSA_NOT_NEEDED=yes
40912     PULSE_NOT_NEEDED=yes
40913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
40914 $as_echo "alsa pulse" >&6; }
40915   fi
40916 
40917 
40918   if test "x$OPENJDK_TARGET_OS" = xwindows; then
40919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
40920 $as_echo_n "checking what is not needed on Windows?... " >&6; }
40921     CUPS_NOT_NEEDED=yes
40922     ALSA_NOT_NEEDED=yes
40923     PULSE_NOT_NEEDED=yes
40924     X11_NOT_NEEDED=yes
40925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
40926 $as_echo "alsa cups pulse x11" >&6; }
40927   fi
40928 
40929   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
40930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
40931 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
40932     ALSA_NOT_NEEDED=yes
40933     PULSE_NOT_NEEDED=yes
40934     X11_NOT_NEEDED=yes
40935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
40936 $as_echo "alsa pulse x11" >&6; }
40937   fi
40938 
40939   if test "x$OPENJDK_TARGET_OS" = xbsd; then
40940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
40941 $as_echo_n "checking what is not needed on bsd?... " >&6; }
40942     ALSA_NOT_NEEDED=yes
40943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
40944 $as_echo "alsa" >&6; }
40945   fi
40946 
40947   if test "x$OPENJDK" = "xfalse"; then
40948     FREETYPE_NOT_NEEDED=yes
40949   fi
40950 
40951   if test "x$SUPPORT_HEADFUL" = xno; then
40952     X11_NOT_NEEDED=yes
40953   fi
40954 
40955   # Deprecated and now ignored
40956 
40957   # Check whether --enable-macosx-runtime-support was given.
40958 if test "${enable_macosx_runtime_support+set}" = set; then :
40959   enableval=$enable_macosx_runtime_support;
40960 fi
40961 
40962   if test "x$enable_macosx_runtime_support" != x; then
40963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5
40964 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;}
40965   fi
40966 
40967 
40968 
40969 
40970   ###############################################################################
40971   #
40972   # Check for X Windows
40973   #
40974 
40975   # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
40976   # Make a simple check for the libraries at the sysroot, and setup --x-includes and
40977   # --x-libraries for the sysroot, if that seems to be correct.
40978   if test "x$SYS_ROOT" != "x/"; then
40979     if test "x$x_includes" = xNONE; then
40980       if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
40981         x_includes="$SYS_ROOT/usr/X11R6/include"
40982       elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
40983         x_includes="$SYS_ROOT/usr/include"
40984       fi
40985     fi
40986     if test "x$x_libraries" = xNONE; then
40987       if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
40988         x_libraries="$SYS_ROOT/usr/X11R6/lib"
40989       elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
40990         x_libraries="$SYS_ROOT/usr/lib64"
40991       elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then
40992         x_libraries="$SYS_ROOT/usr/lib"
40993       fi
40994     fi
40995   fi
40996 
40997   # Now let autoconf do it's magic
40998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
40999 $as_echo_n "checking for X... " >&6; }
41000 
41001 
41002 # Check whether --with-x was given.
41003 if test "${with_x+set}" = set; then :
41004   withval=$with_x;
41005 fi
41006 
41007 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
41008 if test "x$with_x" = xno; then
41009   # The user explicitly disabled X.
41010   have_x=disabled
41011 else
41012   case $x_includes,$x_libraries in #(
41013     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
41014     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
41015   $as_echo_n "(cached) " >&6
41016 else
41017   # One or both of the vars are not set, and there is no cached value.
41018 ac_x_includes=no ac_x_libraries=no
41019 rm -f -r conftest.dir
41020 if mkdir conftest.dir; then
41021   cd conftest.dir
41022   cat >Imakefile <<'_ACEOF'
41023 incroot:
41024         @echo incroot='${INCROOT}'
41025 usrlibdir:
41026         @echo usrlibdir='${USRLIBDIR}'
41027 libdir:
41028         @echo libdir='${LIBDIR}'
41029 _ACEOF
41030   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
41031     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
41032     for ac_var in incroot usrlibdir libdir; do
41033       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
41034     done
41035     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
41036     for ac_extension in a so sl dylib la dll; do
41037       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
41038          test -f "$ac_im_libdir/libX11.$ac_extension"; then
41039         ac_im_usrlibdir=$ac_im_libdir; break
41040       fi
41041     done
41042     # Screen out bogus values from the imake configuration.  They are
41043     # bogus both because they are the default anyway, and because
41044     # using them would break gcc on systems where it needs fixed includes.
41045     case $ac_im_incroot in
41046         /usr/include) ac_x_includes= ;;
41047         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
41048     esac
41049     case $ac_im_usrlibdir in
41050         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
41051         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
41052     esac
41053   fi
41054   cd ..
41055   rm -f -r conftest.dir
41056 fi
41057 
41058 # Standard set of common directories for X headers.
41059 # Check X11 before X11Rn because it is often a symlink to the current release.
41060 ac_x_header_dirs='
41061 /usr/X11/include
41062 /usr/X11R7/include
41063 /usr/X11R6/include
41064 /usr/X11R5/include
41065 /usr/X11R4/include
41066 
41067 /usr/include/X11
41068 /usr/include/X11R7
41069 /usr/include/X11R6
41070 /usr/include/X11R5
41071 /usr/include/X11R4
41072 
41073 /usr/local/X11/include
41074 /usr/local/X11R7/include
41075 /usr/local/X11R6/include
41076 /usr/local/X11R5/include
41077 /usr/local/X11R4/include
41078 
41079 /usr/local/include/X11
41080 /usr/local/include/X11R7
41081 /usr/local/include/X11R6
41082 /usr/local/include/X11R5
41083 /usr/local/include/X11R4
41084 
41085 /usr/X386/include
41086 /usr/x386/include
41087 /usr/XFree86/include/X11
41088 
41089 /usr/include
41090 /usr/local/include
41091 /usr/unsupported/include
41092 /usr/athena/include
41093 /usr/local/x11r5/include
41094 /usr/lpp/Xamples/include
41095 
41096 /usr/openwin/include
41097 /usr/openwin/share/include'
41098 
41099 if test "$ac_x_includes" = no; then
41100   # Guess where to find include files, by looking for Xlib.h.
41101   # First, try using that file with no special directory specified.
41102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41103 /* end confdefs.h.  */
41104 #include <X11/Xlib.h>
41105 _ACEOF
41106 if ac_fn_cxx_try_cpp "$LINENO"; then :
41107   # We can compile using X headers with no special include directory.
41108 ac_x_includes=
41109 else
41110   for ac_dir in $ac_x_header_dirs; do
41111   if test -r "$ac_dir/X11/Xlib.h"; then
41112     ac_x_includes=$ac_dir
41113     break
41114   fi
41115 done
41116 fi
41117 rm -f conftest.err conftest.i conftest.$ac_ext
41118 fi # $ac_x_includes = no
41119 
41120 if test "$ac_x_libraries" = no; then
41121   # Check for the libraries.
41122   # See if we find them without any special options.
41123   # Don't add to $LIBS permanently.
41124   ac_save_LIBS=$LIBS
41125   LIBS="-lX11 $LIBS"
41126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41127 /* end confdefs.h.  */
41128 #include <X11/Xlib.h>
41129 int
41130 main ()
41131 {
41132 XrmInitialize ()
41133   ;
41134   return 0;
41135 }
41136 _ACEOF
41137 if ac_fn_cxx_try_link "$LINENO"; then :
41138   LIBS=$ac_save_LIBS
41139 # We can link X programs with no special library path.
41140 ac_x_libraries=
41141 else
41142   LIBS=$ac_save_LIBS
41143 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
41144 do
41145   # Don't even attempt the hair of trying to link an X program!
41146   for ac_extension in a so sl dylib la dll; do
41147     if test -r "$ac_dir/libX11.$ac_extension"; then
41148       ac_x_libraries=$ac_dir
41149       break 2
41150     fi
41151   done
41152 done
41153 fi
41154 rm -f core conftest.err conftest.$ac_objext \
41155     conftest$ac_exeext conftest.$ac_ext
41156 fi # $ac_x_libraries = no
41157 
41158 case $ac_x_includes,$ac_x_libraries in #(
41159   no,* | *,no | *\'*)
41160     # Didn't find X, or a directory has "'" in its name.
41161     ac_cv_have_x="have_x=no";; #(
41162   *)
41163     # Record where we found X for the cache.
41164     ac_cv_have_x="have_x=yes\
41165         ac_x_includes='$ac_x_includes'\
41166         ac_x_libraries='$ac_x_libraries'"
41167 esac
41168 fi
41169 ;; #(
41170     *) have_x=yes;;
41171   esac
41172   eval "$ac_cv_have_x"
41173 fi # $with_x != no
41174 
41175 if test "$have_x" != yes; then
41176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
41177 $as_echo "$have_x" >&6; }
41178   no_x=yes
41179 else
41180   # If each of the values was on the command line, it overrides each guess.
41181   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
41182   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
41183   # Update the cache value to reflect the command line values.
41184   ac_cv_have_x="have_x=yes\
41185         ac_x_includes='$x_includes'\
41186         ac_x_libraries='$x_libraries'"
41187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
41188 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
41189 fi
41190 
41191   if test "$no_x" = yes; then
41192   # Not all programs may use this symbol, but it does not hurt to define it.
41193 
41194 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
41195 
41196   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
41197 else
41198   if test -n "$x_includes"; then
41199     X_CFLAGS="$X_CFLAGS -I$x_includes"
41200   fi
41201 
41202   # It would also be nice to do this for all -L options, not just this one.
41203   if test -n "$x_libraries"; then
41204     X_LIBS="$X_LIBS -L$x_libraries"
41205     # For Solaris; some versions of Sun CC require a space after -R and
41206     # others require no space.  Words are not sufficient . . . .
41207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
41208 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
41209     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
41210     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
41211     ac_cxx_werror_flag=yes
41212     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41213 /* end confdefs.h.  */
41214 
41215 int
41216 main ()
41217 {
41218 
41219   ;
41220   return 0;
41221 }
41222 _ACEOF
41223 if ac_fn_cxx_try_link "$LINENO"; then :
41224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41225 $as_echo "no" >&6; }
41226        X_LIBS="$X_LIBS -R$x_libraries"
41227 else
41228   LIBS="$ac_xsave_LIBS -R $x_libraries"
41229        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41230 /* end confdefs.h.  */
41231 
41232 int
41233 main ()
41234 {
41235 
41236   ;
41237   return 0;
41238 }
41239 _ACEOF
41240 if ac_fn_cxx_try_link "$LINENO"; then :
41241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41242 $as_echo "yes" >&6; }
41243           X_LIBS="$X_LIBS -R $x_libraries"
41244 else
41245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
41246 $as_echo "neither works" >&6; }
41247 fi
41248 rm -f core conftest.err conftest.$ac_objext \
41249     conftest$ac_exeext conftest.$ac_ext
41250 fi
41251 rm -f core conftest.err conftest.$ac_objext \
41252     conftest$ac_exeext conftest.$ac_ext
41253     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
41254     LIBS=$ac_xsave_LIBS
41255   fi
41256 
41257   # Check for system-dependent libraries X programs must link with.
41258   # Do this before checking for the system-independent R6 libraries
41259   # (-lICE), since we may need -lsocket or whatever for X linking.
41260 
41261   if test "$ISC" = yes; then
41262     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
41263   else
41264     # Martyn Johnson says this is needed for Ultrix, if the X
41265     # libraries were built with DECnet support.  And Karl Berry says
41266     # the Alpha needs dnet_stub (dnet does not exist).
41267     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
41268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41269 /* end confdefs.h.  */
41270 
41271 /* Override any GCC internal prototype to avoid an error.
41272    Use char because int might match the return type of a GCC
41273    builtin and then its argument prototype would still apply.  */
41274 #ifdef __cplusplus
41275 extern "C"
41276 #endif
41277 char XOpenDisplay ();
41278 int
41279 main ()
41280 {
41281 return XOpenDisplay ();
41282   ;
41283   return 0;
41284 }
41285 _ACEOF
41286 if ac_fn_cxx_try_link "$LINENO"; then :
41287 
41288 else
41289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
41290 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
41291 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
41292   $as_echo_n "(cached) " >&6
41293 else
41294   ac_check_lib_save_LIBS=$LIBS
41295 LIBS="-ldnet  $LIBS"
41296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41297 /* end confdefs.h.  */
41298 
41299 /* Override any GCC internal prototype to avoid an error.
41300    Use char because int might match the return type of a GCC
41301    builtin and then its argument prototype would still apply.  */
41302 #ifdef __cplusplus
41303 extern "C"
41304 #endif
41305 char dnet_ntoa ();
41306 int
41307 main ()
41308 {
41309 return dnet_ntoa ();
41310   ;
41311   return 0;
41312 }
41313 _ACEOF
41314 if ac_fn_cxx_try_link "$LINENO"; then :
41315   ac_cv_lib_dnet_dnet_ntoa=yes
41316 else
41317   ac_cv_lib_dnet_dnet_ntoa=no
41318 fi
41319 rm -f core conftest.err conftest.$ac_objext \
41320     conftest$ac_exeext conftest.$ac_ext
41321 LIBS=$ac_check_lib_save_LIBS
41322 fi
41323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
41324 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
41325 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
41326   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
41327 fi
41328 
41329     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
41330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
41331 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
41332 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
41333   $as_echo_n "(cached) " >&6
41334 else
41335   ac_check_lib_save_LIBS=$LIBS
41336 LIBS="-ldnet_stub  $LIBS"
41337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41338 /* end confdefs.h.  */
41339 
41340 /* Override any GCC internal prototype to avoid an error.
41341    Use char because int might match the return type of a GCC
41342    builtin and then its argument prototype would still apply.  */
41343 #ifdef __cplusplus
41344 extern "C"
41345 #endif
41346 char dnet_ntoa ();
41347 int
41348 main ()
41349 {
41350 return dnet_ntoa ();
41351   ;
41352   return 0;
41353 }
41354 _ACEOF
41355 if ac_fn_cxx_try_link "$LINENO"; then :
41356   ac_cv_lib_dnet_stub_dnet_ntoa=yes
41357 else
41358   ac_cv_lib_dnet_stub_dnet_ntoa=no
41359 fi
41360 rm -f core conftest.err conftest.$ac_objext \
41361     conftest$ac_exeext conftest.$ac_ext
41362 LIBS=$ac_check_lib_save_LIBS
41363 fi
41364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
41365 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
41366 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
41367   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
41368 fi
41369 
41370     fi
41371 fi
41372 rm -f core conftest.err conftest.$ac_objext \
41373     conftest$ac_exeext conftest.$ac_ext
41374     LIBS="$ac_xsave_LIBS"
41375 
41376     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
41377     # to get the SysV transport functions.
41378     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
41379     # needs -lnsl.
41380     # The nsl library prevents programs from opening the X display
41381     # on Irix 5.2, according to T.E. Dickey.
41382     # The functions gethostbyname, getservbyname, and inet_addr are
41383     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
41384     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
41385 if test "x$ac_cv_func_gethostbyname" = xyes; then :
41386 
41387 fi
41388 
41389     if test $ac_cv_func_gethostbyname = no; then
41390       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
41391 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
41392 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
41393   $as_echo_n "(cached) " >&6
41394 else
41395   ac_check_lib_save_LIBS=$LIBS
41396 LIBS="-lnsl  $LIBS"
41397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41398 /* end confdefs.h.  */
41399 
41400 /* Override any GCC internal prototype to avoid an error.
41401    Use char because int might match the return type of a GCC
41402    builtin and then its argument prototype would still apply.  */
41403 #ifdef __cplusplus
41404 extern "C"
41405 #endif
41406 char gethostbyname ();
41407 int
41408 main ()
41409 {
41410 return gethostbyname ();
41411   ;
41412   return 0;
41413 }
41414 _ACEOF
41415 if ac_fn_cxx_try_link "$LINENO"; then :
41416   ac_cv_lib_nsl_gethostbyname=yes
41417 else
41418   ac_cv_lib_nsl_gethostbyname=no
41419 fi
41420 rm -f core conftest.err conftest.$ac_objext \
41421     conftest$ac_exeext conftest.$ac_ext
41422 LIBS=$ac_check_lib_save_LIBS
41423 fi
41424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
41425 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
41426 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
41427   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
41428 fi
41429 
41430       if test $ac_cv_lib_nsl_gethostbyname = no; then
41431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
41432 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
41433 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
41434   $as_echo_n "(cached) " >&6
41435 else
41436   ac_check_lib_save_LIBS=$LIBS
41437 LIBS="-lbsd  $LIBS"
41438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41439 /* end confdefs.h.  */
41440 
41441 /* Override any GCC internal prototype to avoid an error.
41442    Use char because int might match the return type of a GCC
41443    builtin and then its argument prototype would still apply.  */
41444 #ifdef __cplusplus
41445 extern "C"
41446 #endif
41447 char gethostbyname ();
41448 int
41449 main ()
41450 {
41451 return gethostbyname ();
41452   ;
41453   return 0;
41454 }
41455 _ACEOF
41456 if ac_fn_cxx_try_link "$LINENO"; then :
41457   ac_cv_lib_bsd_gethostbyname=yes
41458 else
41459   ac_cv_lib_bsd_gethostbyname=no
41460 fi
41461 rm -f core conftest.err conftest.$ac_objext \
41462     conftest$ac_exeext conftest.$ac_ext
41463 LIBS=$ac_check_lib_save_LIBS
41464 fi
41465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
41466 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
41467 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
41468   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
41469 fi
41470 
41471       fi
41472     fi
41473 
41474     # lieder@skyler.mavd.honeywell.com says without -lsocket,
41475     # socket/setsockopt and other routines are undefined under SCO ODT
41476     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
41477     # on later versions), says Simon Leinen: it contains gethostby*
41478     # variants that don't use the name server (or something).  -lsocket
41479     # must be given before -lnsl if both are needed.  We assume that
41480     # if connect needs -lnsl, so does gethostbyname.
41481     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
41482 if test "x$ac_cv_func_connect" = xyes; then :
41483 
41484 fi
41485 
41486     if test $ac_cv_func_connect = no; then
41487       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
41488 $as_echo_n "checking for connect in -lsocket... " >&6; }
41489 if ${ac_cv_lib_socket_connect+:} false; then :
41490   $as_echo_n "(cached) " >&6
41491 else
41492   ac_check_lib_save_LIBS=$LIBS
41493 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
41494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41495 /* end confdefs.h.  */
41496 
41497 /* Override any GCC internal prototype to avoid an error.
41498    Use char because int might match the return type of a GCC
41499    builtin and then its argument prototype would still apply.  */
41500 #ifdef __cplusplus
41501 extern "C"
41502 #endif
41503 char connect ();
41504 int
41505 main ()
41506 {
41507 return connect ();
41508   ;
41509   return 0;
41510 }
41511 _ACEOF
41512 if ac_fn_cxx_try_link "$LINENO"; then :
41513   ac_cv_lib_socket_connect=yes
41514 else
41515   ac_cv_lib_socket_connect=no
41516 fi
41517 rm -f core conftest.err conftest.$ac_objext \
41518     conftest$ac_exeext conftest.$ac_ext
41519 LIBS=$ac_check_lib_save_LIBS
41520 fi
41521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
41522 $as_echo "$ac_cv_lib_socket_connect" >&6; }
41523 if test "x$ac_cv_lib_socket_connect" = xyes; then :
41524   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
41525 fi
41526 
41527     fi
41528 
41529     # Guillermo Gomez says -lposix is necessary on A/UX.
41530     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
41531 if test "x$ac_cv_func_remove" = xyes; then :
41532 
41533 fi
41534 
41535     if test $ac_cv_func_remove = no; then
41536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
41537 $as_echo_n "checking for remove in -lposix... " >&6; }
41538 if ${ac_cv_lib_posix_remove+:} false; then :
41539   $as_echo_n "(cached) " >&6
41540 else
41541   ac_check_lib_save_LIBS=$LIBS
41542 LIBS="-lposix  $LIBS"
41543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41544 /* end confdefs.h.  */
41545 
41546 /* Override any GCC internal prototype to avoid an error.
41547    Use char because int might match the return type of a GCC
41548    builtin and then its argument prototype would still apply.  */
41549 #ifdef __cplusplus
41550 extern "C"
41551 #endif
41552 char remove ();
41553 int
41554 main ()
41555 {
41556 return remove ();
41557   ;
41558   return 0;
41559 }
41560 _ACEOF
41561 if ac_fn_cxx_try_link "$LINENO"; then :
41562   ac_cv_lib_posix_remove=yes
41563 else
41564   ac_cv_lib_posix_remove=no
41565 fi
41566 rm -f core conftest.err conftest.$ac_objext \
41567     conftest$ac_exeext conftest.$ac_ext
41568 LIBS=$ac_check_lib_save_LIBS
41569 fi
41570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
41571 $as_echo "$ac_cv_lib_posix_remove" >&6; }
41572 if test "x$ac_cv_lib_posix_remove" = xyes; then :
41573   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
41574 fi
41575 
41576     fi
41577 
41578     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
41579     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
41580 if test "x$ac_cv_func_shmat" = xyes; then :
41581 
41582 fi
41583 
41584     if test $ac_cv_func_shmat = no; then
41585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
41586 $as_echo_n "checking for shmat in -lipc... " >&6; }
41587 if ${ac_cv_lib_ipc_shmat+:} false; then :
41588   $as_echo_n "(cached) " >&6
41589 else
41590   ac_check_lib_save_LIBS=$LIBS
41591 LIBS="-lipc  $LIBS"
41592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41593 /* end confdefs.h.  */
41594 
41595 /* Override any GCC internal prototype to avoid an error.
41596    Use char because int might match the return type of a GCC
41597    builtin and then its argument prototype would still apply.  */
41598 #ifdef __cplusplus
41599 extern "C"
41600 #endif
41601 char shmat ();
41602 int
41603 main ()
41604 {
41605 return shmat ();
41606   ;
41607   return 0;
41608 }
41609 _ACEOF
41610 if ac_fn_cxx_try_link "$LINENO"; then :
41611   ac_cv_lib_ipc_shmat=yes
41612 else
41613   ac_cv_lib_ipc_shmat=no
41614 fi
41615 rm -f core conftest.err conftest.$ac_objext \
41616     conftest$ac_exeext conftest.$ac_ext
41617 LIBS=$ac_check_lib_save_LIBS
41618 fi
41619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
41620 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
41621 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
41622   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
41623 fi
41624 
41625     fi
41626   fi
41627 
41628   # Check for libraries that X11R6 Xt/Xaw programs need.
41629   ac_save_LDFLAGS=$LDFLAGS
41630   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
41631   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
41632   # check for ICE first), but we must link in the order -lSM -lICE or
41633   # we get undefined symbols.  So assume we have SM if we have ICE.
41634   # These have to be linked with before -lX11, unlike the other
41635   # libraries we check for below, so use a different variable.
41636   # John Interrante, Karl Berry
41637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
41638 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
41639 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
41640   $as_echo_n "(cached) " >&6
41641 else
41642   ac_check_lib_save_LIBS=$LIBS
41643 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
41644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41645 /* end confdefs.h.  */
41646 
41647 /* Override any GCC internal prototype to avoid an error.
41648    Use char because int might match the return type of a GCC
41649    builtin and then its argument prototype would still apply.  */
41650 #ifdef __cplusplus
41651 extern "C"
41652 #endif
41653 char IceConnectionNumber ();
41654 int
41655 main ()
41656 {
41657 return IceConnectionNumber ();
41658   ;
41659   return 0;
41660 }
41661 _ACEOF
41662 if ac_fn_cxx_try_link "$LINENO"; then :
41663   ac_cv_lib_ICE_IceConnectionNumber=yes
41664 else
41665   ac_cv_lib_ICE_IceConnectionNumber=no
41666 fi
41667 rm -f core conftest.err conftest.$ac_objext \
41668     conftest$ac_exeext conftest.$ac_ext
41669 LIBS=$ac_check_lib_save_LIBS
41670 fi
41671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
41672 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
41673 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
41674   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
41675 fi
41676 
41677   LDFLAGS=$ac_save_LDFLAGS
41678 
41679 fi
41680 
41681 
41682   # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
41683   # this doesn't make sense so we remove it.
41684   if test "x$COMPILE_TYPE" = xcross; then
41685     X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
41686   fi
41687 
41688   if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
41689 
41690   # Print a helpful message on how to acquire the necessary build dependency.
41691   # x11 is the help tag: freetype, cups, pulse, alsa etc
41692   MISSING_DEPENDENCY=x11
41693 
41694   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
41695     cygwin_help $MISSING_DEPENDENCY
41696   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
41697     msys_help $MISSING_DEPENDENCY
41698   else
41699     PKGHANDLER_COMMAND=
41700 
41701     case $PKGHANDLER in
41702       apt-get)
41703         apt_help     $MISSING_DEPENDENCY ;;
41704       yum)
41705         yum_help     $MISSING_DEPENDENCY ;;
41706       port)
41707         port_help    $MISSING_DEPENDENCY ;;
41708       pkgutil)
41709         pkgutil_help $MISSING_DEPENDENCY ;;
41710       pkgadd)
41711         pkgadd_help  $MISSING_DEPENDENCY ;;
41712     esac
41713 
41714     if test "x$PKGHANDLER_COMMAND" != x; then
41715       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
41716     fi
41717   fi
41718 
41719     as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
41720   fi
41721 
41722   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41723     OPENWIN_HOME="/usr/openwin"
41724   fi
41725 
41726 
41727 
41728   #
41729   # Weird Sol10 something check...TODO change to try compile
41730   #
41731   if test "x${OPENJDK_TARGET_OS}" = xsolaris; then
41732     if test "`uname -r`" = "5.10"; then
41733       if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then
41734         X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS"
41735       fi
41736     fi
41737   fi
41738 
41739   ac_ext=c
41740 ac_cpp='$CPP $CPPFLAGS'
41741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41744 
41745   OLD_CFLAGS="$CFLAGS"
41746   CFLAGS="$CFLAGS $X_CFLAGS"
41747 
41748   # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
41749   for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h
41750 do :
41751   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
41753         # include <X11/Xlib.h>
41754         # include <X11/Xutil.h>
41755 
41756 
41757 "
41758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41759   cat >>confdefs.h <<_ACEOF
41760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41761 _ACEOF
41762  X11_A_OK=yes
41763 else
41764   X11_A_OK=no; break
41765 fi
41766 
41767 done
41768 
41769 
41770   CFLAGS="$OLD_CFLAGS"
41771   ac_ext=cpp
41772 ac_cpp='$CXXCPP $CPPFLAGS'
41773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41776 
41777 
41778   if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
41779 
41780   # Print a helpful message on how to acquire the necessary build dependency.
41781   # x11 is the help tag: freetype, cups, pulse, alsa etc
41782   MISSING_DEPENDENCY=x11
41783 
41784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
41785     cygwin_help $MISSING_DEPENDENCY
41786   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
41787     msys_help $MISSING_DEPENDENCY
41788   else
41789     PKGHANDLER_COMMAND=
41790 
41791     case $PKGHANDLER in
41792       apt-get)
41793         apt_help     $MISSING_DEPENDENCY ;;
41794       yum)
41795         yum_help     $MISSING_DEPENDENCY ;;
41796       port)
41797         port_help    $MISSING_DEPENDENCY ;;
41798       pkgutil)
41799         pkgutil_help $MISSING_DEPENDENCY ;;
41800       pkgadd)
41801         pkgadd_help  $MISSING_DEPENDENCY ;;
41802     esac
41803 
41804     if test "x$PKGHANDLER_COMMAND" != x; then
41805       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
41806     fi
41807   fi
41808 
41809     as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5
41810   fi
41811 
41812 
41813 
41814 
41815 
41816 
41817   ###############################################################################
41818   #
41819   # The common unix printing system cups is used to print from java.
41820   #
41821 
41822 # Check whether --with-cups was given.
41823 if test "${with_cups+set}" = set; then :
41824   withval=$with_cups;
41825 fi
41826 
41827 
41828 # Check whether --with-cups-include was given.
41829 if test "${with_cups_include+set}" = set; then :
41830   withval=$with_cups_include;
41831 fi
41832 
41833 
41834   if test "x$CUPS_NOT_NEEDED" = xyes; then
41835     if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then
41836       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
41837 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
41838     fi
41839     CUPS_CFLAGS=
41840   else
41841     CUPS_FOUND=no
41842 
41843     if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then
41844       as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
41845     fi
41846 
41847     if test "x${with_cups}" != x; then
41848       CUPS_CFLAGS="-I${with_cups}/include"
41849       CUPS_FOUND=yes
41850     fi
41851     if test "x${with_cups_include}" != x; then
41852       CUPS_CFLAGS="-I${with_cups_include}"
41853       CUPS_FOUND=yes
41854     fi
41855     if test "x$CUPS_FOUND" = xno; then
41856 
41857 
41858   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
41859     # Source the builddeps file again, to make sure it uses the latest variables!
41860     . $builddepsfile
41861     # Look for a target and build machine specific resource!
41862     eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
41863     if test "x$resource" = x; then
41864       # Ok, lets instead look for a target specific resource
41865       eval resource=\${builddep_cups_TARGET_${rewritten_target_var}}
41866     fi
41867     if test "x$resource" = x; then
41868       # Ok, lets instead look for a build specific resource
41869       eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
41870     fi
41871     if test "x$resource" = x; then
41872       # Ok, lets instead look for a generic resource
41873       # (The cups comes from M4 and not the shell, thus no need for eval here.)
41874       resource=${builddep_cups}
41875     fi
41876     if test "x$resource" != x; then
41877       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
41878 $as_echo "$as_me: Using builddeps $resource for cups" >&6;}
41879       # If the resource in the builddeps.conf file is an existing directory,
41880       # for example /java/linux/cups
41881       if test -d ${resource}; then
41882         depdir=${resource}
41883       else
41884 
41885   # cups is for example mymodule
41886   # $resource is for example libs/general/libmymod_1_2_3.zip
41887   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
41888   # $with_builddeps_dir is for example /localhome/builddeps
41889   # depdir is the name of the variable into which we store the depdir, eg MYMOD
41890   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
41891   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
41892   filename=`basename $resource`
41893   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
41894   filebase=${filename%%.*}
41895   extension=${filename#*.}
41896   installdir=$with_builddeps_dir/$filebase
41897   if test ! -f $installdir/$filename.unpacked; then
41898     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
41899 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
41900     if test ! -d $installdir; then
41901       mkdir -p $installdir
41902     fi
41903     if test ! -d $installdir; then
41904       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
41905     fi
41906     tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
41907     touch $tmpfile
41908     if test ! -f $tmpfile; then
41909       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
41910     fi
41911 
41912   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
41913   # $tmpfile is the local file name for the downloaded file.
41914   VALID_TOOL=no
41915   if test "x$BDEPS_FTP" = xwget; then
41916     VALID_TOOL=yes
41917     wget -O $tmpfile $with_builddeps_server/$resource
41918   fi
41919   if test "x$BDEPS_FTP" = xlftp; then
41920     VALID_TOOL=yes
41921     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
41922   fi
41923   if test "x$BDEPS_FTP" = xftp; then
41924     VALID_TOOL=yes
41925     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
41926     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
41927     FTPUSERPWD=${FTPSERVER%%@*}
41928     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
41929       FTPUSER=${userpwd%%:*}
41930       FTPPWD=${userpwd#*@}
41931       FTPSERVER=${FTPSERVER#*@}
41932     else
41933       FTPUSER=ftp
41934       FTPPWD=ftp
41935     fi
41936     # the "pass" command does not work on some
41937     # ftp clients (read ftp.exe) but if it works,
41938     # passive mode is better!
41939     ( \
41940         echo "user $FTPUSER $FTPPWD"        ; \
41941         echo "pass"                         ; \
41942         echo "bin"                          ; \
41943         echo "get $FTPPATH $tmpfile"              ; \
41944     ) | ftp -in $FTPSERVER
41945   fi
41946   if test "x$VALID_TOOL" != xyes; then
41947     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
41948   fi
41949 
41950     mv $tmpfile $installdir/$filename
41951     if test ! -s $installdir/$filename; then
41952       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
41953     fi
41954     case "$extension" in
41955       zip)  echo "Unzipping $installdir/$filename..."
41956         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
41957         ;;
41958       tar.gz) echo "Untaring $installdir/$filename..."
41959         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
41960         ;;
41961       tgz) echo "Untaring $installdir/$filename..."
41962         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
41963         ;;
41964       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
41965         ;;
41966     esac
41967   fi
41968   if test -f $installdir/$filename.unpacked; then
41969     depdir=$installdir
41970   fi
41971 
41972       fi
41973       # Source the builddeps file again, because in the previous command, the depdir
41974       # was updated to point at the current build dependency install directory.
41975       . $builddepsfile
41976       # Now extract variables from the builddeps.conf files.
41977       theroot=${builddep_cups_ROOT}
41978       thecflags=${builddep_cups_CFLAGS}
41979       thelibs=${builddep_cups_LIBS}
41980       if test "x$depdir" = x; then
41981         as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
41982       fi
41983       CUPS=$depdir
41984       if test "x$theroot" != x; then
41985         CUPS="$theroot"
41986       fi
41987       if test "x$thecflags" != x; then
41988         CUPS_CFLAGS="$thecflags"
41989       fi
41990       if test "x$thelibs" != x; then
41991         CUPS_LIBS="$thelibs"
41992       fi
41993       CUPS_FOUND=yes
41994 
41995     fi
41996 
41997   fi
41998 
41999     fi
42000     if test "x$CUPS_FOUND" = xno; then
42001       # Are the cups headers installed in the default /usr/include location?
42002       for ac_header in cups/cups.h cups/ppd.h
42003 do :
42004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42005 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
42006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42007   cat >>confdefs.h <<_ACEOF
42008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42009 _ACEOF
42010 
42011             CUPS_FOUND=yes
42012             CUPS_CFLAGS=
42013             DEFAULT_CUPS=yes
42014 
42015 
42016 fi
42017 
42018 done
42019 
42020     fi
42021     if test "x$CUPS_FOUND" = xno; then
42022       # Getting nervous now? Lets poke around for standard Solaris third-party
42023       # package installation locations.
42024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5
42025 $as_echo_n "checking for cups headers... " >&6; }
42026       if test -s /opt/sfw/cups/include/cups/cups.h; then
42027         # An SFW package seems to be installed!
42028         CUPS_FOUND=yes
42029         CUPS_CFLAGS="-I/opt/sfw/cups/include"
42030       elif test -s /opt/csw/include/cups/cups.h; then
42031         # A CSW package seems to be installed!
42032         CUPS_FOUND=yes
42033         CUPS_CFLAGS="-I/opt/csw/include"
42034       fi
42035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
42036 $as_echo "$CUPS_FOUND" >&6; }
42037     fi
42038     if test "x$CUPS_FOUND" = xno; then
42039 
42040   # Print a helpful message on how to acquire the necessary build dependency.
42041   # cups is the help tag: freetype, cups, pulse, alsa etc
42042   MISSING_DEPENDENCY=cups
42043 
42044   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42045     cygwin_help $MISSING_DEPENDENCY
42046   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42047     msys_help $MISSING_DEPENDENCY
42048   else
42049     PKGHANDLER_COMMAND=
42050 
42051     case $PKGHANDLER in
42052       apt-get)
42053         apt_help     $MISSING_DEPENDENCY ;;
42054       yum)
42055         yum_help     $MISSING_DEPENDENCY ;;
42056       port)
42057         port_help    $MISSING_DEPENDENCY ;;
42058       pkgutil)
42059         pkgutil_help $MISSING_DEPENDENCY ;;
42060       pkgadd)
42061         pkgadd_help  $MISSING_DEPENDENCY ;;
42062     esac
42063 
42064     if test "x$PKGHANDLER_COMMAND" != x; then
42065       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
42066     fi
42067   fi
42068 
42069       as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
42070     fi
42071   fi
42072 
42073 
42074 
42075 
42076 
42077 
42078   ###############################################################################
42079   #
42080   # The ubiquitous freetype library is used to render fonts.
42081   #
42082 
42083 # Check whether --with-freetype was given.
42084 if test "${with_freetype+set}" = set; then :
42085   withval=$with_freetype;
42086 fi
42087 
42088 
42089 # Check whether --with-freetype-include was given.
42090 if test "${with_freetype_include+set}" = set; then :
42091   withval=$with_freetype_include;
42092 fi
42093 
42094 
42095 # Check whether --with-freetype-lib was given.
42096 if test "${with_freetype_lib+set}" = set; then :
42097   withval=$with_freetype_lib;
42098 fi
42099 
42100   # Check whether --enable-freetype-bundling was given.
42101 if test "${enable_freetype_bundling+set}" = set; then :
42102   enableval=$enable_freetype_bundling;
42103 fi
42104 
42105 
42106   FREETYPE_CFLAGS=
42107   FREETYPE_LIBS=
42108   FREETYPE_BUNDLE_LIB_PATH=
42109 
42110   if test "x$FREETYPE_NOT_NEEDED" = xyes; then
42111     if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
42112       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
42113 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
42114     fi
42115     if test "x$enable_freetype_bundling" != x; then
42116       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5
42117 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;}
42118     fi
42119   else
42120     # freetype is needed to build; go get it!
42121 
42122     BUNDLE_FREETYPE="$enable_freetype_bundling"
42123 
42124     if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
42125       # User has specified settings
42126 
42127       if test "x$BUNDLE_FREETYPE" = x; then
42128         # If not specified, default is to bundle freetype
42129         BUNDLE_FREETYPE=yes
42130       fi
42131 
42132       if test "x$with_freetype" != x; then
42133         POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include"
42134         POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib"
42135       fi
42136 
42137       # Allow --with-freetype-lib and --with-freetype-include to override
42138       if test "x$with_freetype_include" != x; then
42139         POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include"
42140       fi
42141       if test "x$with_freetype_lib" != x; then
42142         POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib"
42143       fi
42144 
42145       if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then
42146         # Okay, we got it. Check that it works.
42147 
42148   POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42149   POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
42150   METHOD="--with-freetype"
42151 
42152   # First check if the files exists.
42153   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
42154     # We found an arbitrary include file. That's a good sign.
42155     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
42156 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
42157     FOUND_FREETYPE=yes
42158 
42159     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
42160     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
42161       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
42162 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
42163       FOUND_FREETYPE=no
42164     else
42165       if test "x$OPENJDK_TARGET_OS" = xwindows; then
42166         # On Windows, we will need both .lib and .dll file.
42167         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
42168           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
42169 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
42170           FOUND_FREETYPE=no
42171         fi
42172       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
42173         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
42174         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
42175       fi
42176     fi
42177   fi
42178 
42179   if test "x$FOUND_FREETYPE" = xyes; then
42180 
42181   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42182 
42183   # Input might be given as Windows format, start by converting to
42184   # unix format.
42185   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42186   new_path=`$CYGPATH -u "$path"`
42187 
42188   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
42189   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
42190   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
42191   # "foo.exe" is OK but "foo" is an error.
42192   #
42193   # This test is therefore slightly more accurate than "test -f" to check for file precense.
42194   # It is also a way to make sure we got the proper file name for the real test later on.
42195   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
42196   if test "x$test_shortpath" = x; then
42197     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
42198 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
42199     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
42200   fi
42201 
42202   # Call helper function which possibly converts this using DOS-style short mode.
42203   # If so, the updated path is stored in $new_path.
42204 
42205   input_path="$new_path"
42206   # Check if we need to convert this using DOS-style short mode. If the path
42207   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42208   # take no chances and rewrite it.
42209   # Note: m4 eats our [], so we need to use [ and ] instead.
42210   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
42211   if test "x$has_forbidden_chars" != x; then
42212     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42213     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
42214     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
42215     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
42216       # Going to short mode and back again did indeed matter. Since short mode is
42217       # case insensitive, let's make it lowercase to improve readability.
42218       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42219       # Now convert it back to Unix-stile (cygpath)
42220       input_path=`$CYGPATH -u "$shortmode_path"`
42221       new_path="$input_path"
42222     fi
42223   fi
42224 
42225   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
42226   if test "x$test_cygdrive_prefix" = x; then
42227     # As a simple fix, exclude /usr/bin since it's not a real path.
42228     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
42229       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
42230       # a path prefixed by /cygdrive for fixpath to work.
42231       new_path="$CYGWIN_ROOT_PATH$input_path"
42232     fi
42233   fi
42234 
42235 
42236   if test "x$path" != "x$new_path"; then
42237     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
42238     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
42239 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
42240   fi
42241 
42242   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42243 
42244   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42245   has_colon=`$ECHO $path | $GREP ^.:`
42246   new_path="$path"
42247   if test "x$has_colon" = x; then
42248     # Not in mixed or Windows style, start by that.
42249     new_path=`cmd //c echo $path`
42250   fi
42251 
42252 
42253   input_path="$new_path"
42254   # Check if we need to convert this using DOS-style short mode. If the path
42255   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42256   # take no chances and rewrite it.
42257   # Note: m4 eats our [], so we need to use [ and ] instead.
42258   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
42259   if test "x$has_forbidden_chars" != x; then
42260     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42261     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42262   fi
42263 
42264 
42265   windows_path="$new_path"
42266   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42267     unix_path=`$CYGPATH -u "$windows_path"`
42268     new_path="$unix_path"
42269   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42270     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
42271     new_path="$unix_path"
42272   fi
42273 
42274   if test "x$path" != "x$new_path"; then
42275     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
42276     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
42277 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
42278   fi
42279 
42280   # Save the first 10 bytes of this path to the storage, so fixpath can work.
42281   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
42282 
42283   else
42284     # We're on a posix platform. Hooray! :)
42285     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42286     has_space=`$ECHO "$path" | $GREP " "`
42287     if test "x$has_space" != x; then
42288       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
42289 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
42290       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
42291     fi
42292 
42293     # Use eval to expand a potential ~
42294     eval path="$path"
42295     if test ! -f "$path" && test ! -d "$path"; then
42296       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
42297     fi
42298 
42299     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
42300   fi
42301 
42302 
42303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42304 
42305   # Input might be given as Windows format, start by converting to
42306   # unix format.
42307   path="$POTENTIAL_FREETYPE_LIB_PATH"
42308   new_path=`$CYGPATH -u "$path"`
42309 
42310   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
42311   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
42312   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
42313   # "foo.exe" is OK but "foo" is an error.
42314   #
42315   # This test is therefore slightly more accurate than "test -f" to check for file precense.
42316   # It is also a way to make sure we got the proper file name for the real test later on.
42317   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
42318   if test "x$test_shortpath" = x; then
42319     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
42320 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
42321     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
42322   fi
42323 
42324   # Call helper function which possibly converts this using DOS-style short mode.
42325   # If so, the updated path is stored in $new_path.
42326 
42327   input_path="$new_path"
42328   # Check if we need to convert this using DOS-style short mode. If the path
42329   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42330   # take no chances and rewrite it.
42331   # Note: m4 eats our [], so we need to use [ and ] instead.
42332   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
42333   if test "x$has_forbidden_chars" != x; then
42334     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42335     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
42336     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
42337     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
42338       # Going to short mode and back again did indeed matter. Since short mode is
42339       # case insensitive, let's make it lowercase to improve readability.
42340       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42341       # Now convert it back to Unix-stile (cygpath)
42342       input_path=`$CYGPATH -u "$shortmode_path"`
42343       new_path="$input_path"
42344     fi
42345   fi
42346 
42347   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
42348   if test "x$test_cygdrive_prefix" = x; then
42349     # As a simple fix, exclude /usr/bin since it's not a real path.
42350     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
42351       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
42352       # a path prefixed by /cygdrive for fixpath to work.
42353       new_path="$CYGWIN_ROOT_PATH$input_path"
42354     fi
42355   fi
42356 
42357 
42358   if test "x$path" != "x$new_path"; then
42359     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
42360     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
42361 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
42362   fi
42363 
42364   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42365 
42366   path="$POTENTIAL_FREETYPE_LIB_PATH"
42367   has_colon=`$ECHO $path | $GREP ^.:`
42368   new_path="$path"
42369   if test "x$has_colon" = x; then
42370     # Not in mixed or Windows style, start by that.
42371     new_path=`cmd //c echo $path`
42372   fi
42373 
42374 
42375   input_path="$new_path"
42376   # Check if we need to convert this using DOS-style short mode. If the path
42377   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42378   # take no chances and rewrite it.
42379   # Note: m4 eats our [], so we need to use [ and ] instead.
42380   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
42381   if test "x$has_forbidden_chars" != x; then
42382     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42383     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42384   fi
42385 
42386 
42387   windows_path="$new_path"
42388   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42389     unix_path=`$CYGPATH -u "$windows_path"`
42390     new_path="$unix_path"
42391   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42392     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
42393     new_path="$unix_path"
42394   fi
42395 
42396   if test "x$path" != "x$new_path"; then
42397     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
42398     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
42399 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
42400   fi
42401 
42402   # Save the first 10 bytes of this path to the storage, so fixpath can work.
42403   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
42404 
42405   else
42406     # We're on a posix platform. Hooray! :)
42407     path="$POTENTIAL_FREETYPE_LIB_PATH"
42408     has_space=`$ECHO "$path" | $GREP " "`
42409     if test "x$has_space" != x; then
42410       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
42411 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
42412       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
42413     fi
42414 
42415     # Use eval to expand a potential ~
42416     eval path="$path"
42417     if test ! -f "$path" && test ! -d "$path"; then
42418       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
42419     fi
42420 
42421     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
42422   fi
42423 
42424 
42425     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
42427 $as_echo_n "checking for freetype includes... " >&6; }
42428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
42429 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
42430     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
42431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
42432 $as_echo_n "checking for freetype libraries... " >&6; }
42433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
42434 $as_echo "$FREETYPE_LIB_PATH" >&6; }
42435   fi
42436 
42437         if test "x$FOUND_FREETYPE" != xyes; then
42438           as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5
42439         fi
42440       else
42441         # User specified only one of lib or include. This is an error.
42442         if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then
42443           { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5
42444 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;}
42445           as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
42446         else
42447           { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5
42448 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;}
42449           as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
42450         fi
42451       fi
42452     else
42453       # User did not specify settings, but we need freetype. Try to locate it.
42454 
42455       if test "x$BUNDLE_FREETYPE" = x; then
42456         # If not specified, default is to bundle freetype only on windows
42457         if test "x$OPENJDK_TARGET_OS" = xwindows; then
42458           BUNDLE_FREETYPE=yes
42459         else
42460           BUNDLE_FREETYPE=no
42461         fi
42462       fi
42463 
42464       if test "x$FOUND_FREETYPE" != xyes; then
42465         # Check builddeps
42466 
42467 
42468   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
42469     # Source the builddeps file again, to make sure it uses the latest variables!
42470     . $builddepsfile
42471     # Look for a target and build machine specific resource!
42472     eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
42473     if test "x$resource" = x; then
42474       # Ok, lets instead look for a target specific resource
42475       eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}}
42476     fi
42477     if test "x$resource" = x; then
42478       # Ok, lets instead look for a build specific resource
42479       eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
42480     fi
42481     if test "x$resource" = x; then
42482       # Ok, lets instead look for a generic resource
42483       # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
42484       resource=${builddep_freetype2}
42485     fi
42486     if test "x$resource" != x; then
42487       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
42488 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
42489       # If the resource in the builddeps.conf file is an existing directory,
42490       # for example /java/linux/cups
42491       if test -d ${resource}; then
42492         depdir=${resource}
42493       else
42494 
42495   # freetype2 is for example mymodule
42496   # $resource is for example libs/general/libmymod_1_2_3.zip
42497   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
42498   # $with_builddeps_dir is for example /localhome/builddeps
42499   # depdir is the name of the variable into which we store the depdir, eg MYMOD
42500   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
42501   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
42502   filename=`basename $resource`
42503   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
42504   filebase=${filename%%.*}
42505   extension=${filename#*.}
42506   installdir=$with_builddeps_dir/$filebase
42507   if test ! -f $installdir/$filename.unpacked; then
42508     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
42509 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
42510     if test ! -d $installdir; then
42511       mkdir -p $installdir
42512     fi
42513     if test ! -d $installdir; then
42514       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
42515     fi
42516     tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
42517     touch $tmpfile
42518     if test ! -f $tmpfile; then
42519       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
42520     fi
42521 
42522   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
42523   # $tmpfile is the local file name for the downloaded file.
42524   VALID_TOOL=no
42525   if test "x$BDEPS_FTP" = xwget; then
42526     VALID_TOOL=yes
42527     wget -O $tmpfile $with_builddeps_server/$resource
42528   fi
42529   if test "x$BDEPS_FTP" = xlftp; then
42530     VALID_TOOL=yes
42531     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
42532   fi
42533   if test "x$BDEPS_FTP" = xftp; then
42534     VALID_TOOL=yes
42535     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
42536     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
42537     FTPUSERPWD=${FTPSERVER%%@*}
42538     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
42539       FTPUSER=${userpwd%%:*}
42540       FTPPWD=${userpwd#*@}
42541       FTPSERVER=${FTPSERVER#*@}
42542     else
42543       FTPUSER=ftp
42544       FTPPWD=ftp
42545     fi
42546     # the "pass" command does not work on some
42547     # ftp clients (read ftp.exe) but if it works,
42548     # passive mode is better!
42549     ( \
42550         echo "user $FTPUSER $FTPPWD"        ; \
42551         echo "pass"                         ; \
42552         echo "bin"                          ; \
42553         echo "get $FTPPATH $tmpfile"              ; \
42554     ) | ftp -in $FTPSERVER
42555   fi
42556   if test "x$VALID_TOOL" != xyes; then
42557     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
42558   fi
42559 
42560     mv $tmpfile $installdir/$filename
42561     if test ! -s $installdir/$filename; then
42562       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
42563     fi
42564     case "$extension" in
42565       zip)  echo "Unzipping $installdir/$filename..."
42566         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
42567         ;;
42568       tar.gz) echo "Untaring $installdir/$filename..."
42569         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
42570         ;;
42571       tgz) echo "Untaring $installdir/$filename..."
42572         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
42573         ;;
42574       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
42575         ;;
42576     esac
42577   fi
42578   if test -f $installdir/$filename.unpacked; then
42579     depdir=$installdir
42580   fi
42581 
42582       fi
42583       # Source the builddeps file again, because in the previous command, the depdir
42584       # was updated to point at the current build dependency install directory.
42585       . $builddepsfile
42586       # Now extract variables from the builddeps.conf files.
42587       theroot=${builddep_freetype2_ROOT}
42588       thecflags=${builddep_freetype2_CFLAGS}
42589       thelibs=${builddep_freetype2_LIBS}
42590       if test "x$depdir" = x; then
42591         as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
42592       fi
42593       FREETYPE=$depdir
42594       if test "x$theroot" != x; then
42595         FREETYPE="$theroot"
42596       fi
42597       if test "x$thecflags" != x; then
42598         FREETYPE_CFLAGS="$thecflags"
42599       fi
42600       if test "x$thelibs" != x; then
42601         FREETYPE_LIBS="$thelibs"
42602       fi
42603       FOUND_FREETYPE=yes
42604       else FOUND_FREETYPE=no
42605 
42606     fi
42607     else FOUND_FREETYPE=no
42608 
42609   fi
42610 
42611         # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
42612         if test "x$FOUND_FREETYPE" = xyes; then
42613           if test "x$BUNDLE_FREETYPE" = xyes; then
42614             { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5
42615 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;}
42616             FOUND_FREETYPE=no
42617           else
42618             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
42619 $as_echo_n "checking for freetype... " >&6; }
42620             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5
42621 $as_echo "yes (using builddeps)" >&6; }
42622           fi
42623         fi
42624       fi
42625 
42626       if test "x$FOUND_FREETYPE" != xyes; then
42627         # Check modules using pkg-config, but only if we have it (ugly output results otherwise)
42628         if test "x$PKG_CONFIG" != x; then
42629 
42630 pkg_failed=no
42631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
42632 $as_echo_n "checking for FREETYPE... " >&6; }
42633 
42634 if test -n "$FREETYPE_CFLAGS"; then
42635     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
42636  elif test -n "$PKG_CONFIG"; then
42637     if test -n "$PKG_CONFIG" && \
42638     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
42639   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
42640   ac_status=$?
42641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42642   test $ac_status = 0; }; then
42643   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
42644 else
42645   pkg_failed=yes
42646 fi
42647  else
42648     pkg_failed=untried
42649 fi
42650 if test -n "$FREETYPE_LIBS"; then
42651     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
42652  elif test -n "$PKG_CONFIG"; then
42653     if test -n "$PKG_CONFIG" && \
42654     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
42655   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
42656   ac_status=$?
42657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42658   test $ac_status = 0; }; then
42659   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
42660 else
42661   pkg_failed=yes
42662 fi
42663  else
42664     pkg_failed=untried
42665 fi
42666 
42667 
42668 
42669 if test $pkg_failed = yes; then
42670 
42671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42672         _pkg_short_errors_supported=yes
42673 else
42674         _pkg_short_errors_supported=no
42675 fi
42676         if test $_pkg_short_errors_supported = yes; then
42677                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
42678         else
42679                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
42680         fi
42681         # Put the nasty error message in config.log where it belongs
42682         echo "$FREETYPE_PKG_ERRORS" >&5
42683 
42684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42685 $as_echo "no" >&6; }
42686                 FOUND_FREETYPE=no
42687 elif test $pkg_failed = untried; then
42688         FOUND_FREETYPE=no
42689 else
42690         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
42691         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
42692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42693 $as_echo "yes" >&6; }
42694         FOUND_FREETYPE=yes
42695 fi
42696           if test "x$FOUND_FREETYPE" = xyes; then
42697             # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us.
42698             FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'`
42699             # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64
42700             if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
42701               FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'`
42702             fi
42703             # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
42704             if test "x$BUNDLE_FREETYPE" = xyes; then
42705               { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5
42706 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;}
42707               FOUND_FREETYPE=no
42708             else
42709               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
42710 $as_echo_n "checking for freetype... " >&6; }
42711               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5
42712 $as_echo "yes (using pkg-config)" >&6; }
42713             fi
42714           fi
42715         fi
42716       fi
42717 
42718       if test "x$FOUND_FREETYPE" != xyes; then
42719         # Check in well-known locations
42720         if test "x$OPENJDK_TARGET_OS" = xwindows; then
42721           FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32"
42722 
42723   windows_path="$FREETYPE_BASE_DIR"
42724   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42725     unix_path=`$CYGPATH -u "$windows_path"`
42726     FREETYPE_BASE_DIR="$unix_path"
42727   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42728     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
42729     FREETYPE_BASE_DIR="$unix_path"
42730   fi
42731 
42732 
42733   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
42734   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
42735   METHOD="well-known location"
42736 
42737   # First check if the files exists.
42738   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
42739     # We found an arbitrary include file. That's a good sign.
42740     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
42741 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
42742     FOUND_FREETYPE=yes
42743 
42744     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
42745     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
42746       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
42747 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
42748       FOUND_FREETYPE=no
42749     else
42750       if test "x$OPENJDK_TARGET_OS" = xwindows; then
42751         # On Windows, we will need both .lib and .dll file.
42752         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
42753           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
42754 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
42755           FOUND_FREETYPE=no
42756         fi
42757       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
42758         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
42759         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
42760       fi
42761     fi
42762   fi
42763 
42764   if test "x$FOUND_FREETYPE" = xyes; then
42765 
42766   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42767 
42768   # Input might be given as Windows format, start by converting to
42769   # unix format.
42770   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42771   new_path=`$CYGPATH -u "$path"`
42772 
42773   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
42774   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
42775   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
42776   # "foo.exe" is OK but "foo" is an error.
42777   #
42778   # This test is therefore slightly more accurate than "test -f" to check for file precense.
42779   # It is also a way to make sure we got the proper file name for the real test later on.
42780   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
42781   if test "x$test_shortpath" = x; then
42782     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
42783 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
42784     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
42785   fi
42786 
42787   # Call helper function which possibly converts this using DOS-style short mode.
42788   # If so, the updated path is stored in $new_path.
42789 
42790   input_path="$new_path"
42791   # Check if we need to convert this using DOS-style short mode. If the path
42792   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42793   # take no chances and rewrite it.
42794   # Note: m4 eats our [], so we need to use [ and ] instead.
42795   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
42796   if test "x$has_forbidden_chars" != x; then
42797     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42798     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
42799     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
42800     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
42801       # Going to short mode and back again did indeed matter. Since short mode is
42802       # case insensitive, let's make it lowercase to improve readability.
42803       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42804       # Now convert it back to Unix-stile (cygpath)
42805       input_path=`$CYGPATH -u "$shortmode_path"`
42806       new_path="$input_path"
42807     fi
42808   fi
42809 
42810   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
42811   if test "x$test_cygdrive_prefix" = x; then
42812     # As a simple fix, exclude /usr/bin since it's not a real path.
42813     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
42814       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
42815       # a path prefixed by /cygdrive for fixpath to work.
42816       new_path="$CYGWIN_ROOT_PATH$input_path"
42817     fi
42818   fi
42819 
42820 
42821   if test "x$path" != "x$new_path"; then
42822     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
42823     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
42824 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
42825   fi
42826 
42827   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42828 
42829   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42830   has_colon=`$ECHO $path | $GREP ^.:`
42831   new_path="$path"
42832   if test "x$has_colon" = x; then
42833     # Not in mixed or Windows style, start by that.
42834     new_path=`cmd //c echo $path`
42835   fi
42836 
42837 
42838   input_path="$new_path"
42839   # Check if we need to convert this using DOS-style short mode. If the path
42840   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42841   # take no chances and rewrite it.
42842   # Note: m4 eats our [], so we need to use [ and ] instead.
42843   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
42844   if test "x$has_forbidden_chars" != x; then
42845     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42846     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42847   fi
42848 
42849 
42850   windows_path="$new_path"
42851   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42852     unix_path=`$CYGPATH -u "$windows_path"`
42853     new_path="$unix_path"
42854   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42855     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
42856     new_path="$unix_path"
42857   fi
42858 
42859   if test "x$path" != "x$new_path"; then
42860     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
42861     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
42862 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
42863   fi
42864 
42865   # Save the first 10 bytes of this path to the storage, so fixpath can work.
42866   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
42867 
42868   else
42869     # We're on a posix platform. Hooray! :)
42870     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
42871     has_space=`$ECHO "$path" | $GREP " "`
42872     if test "x$has_space" != x; then
42873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
42874 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
42875       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
42876     fi
42877 
42878     # Use eval to expand a potential ~
42879     eval path="$path"
42880     if test ! -f "$path" && test ! -d "$path"; then
42881       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
42882     fi
42883 
42884     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
42885   fi
42886 
42887 
42888   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42889 
42890   # Input might be given as Windows format, start by converting to
42891   # unix format.
42892   path="$POTENTIAL_FREETYPE_LIB_PATH"
42893   new_path=`$CYGPATH -u "$path"`
42894 
42895   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
42896   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
42897   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
42898   # "foo.exe" is OK but "foo" is an error.
42899   #
42900   # This test is therefore slightly more accurate than "test -f" to check for file precense.
42901   # It is also a way to make sure we got the proper file name for the real test later on.
42902   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
42903   if test "x$test_shortpath" = x; then
42904     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
42905 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
42906     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
42907   fi
42908 
42909   # Call helper function which possibly converts this using DOS-style short mode.
42910   # If so, the updated path is stored in $new_path.
42911 
42912   input_path="$new_path"
42913   # Check if we need to convert this using DOS-style short mode. If the path
42914   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42915   # take no chances and rewrite it.
42916   # Note: m4 eats our [], so we need to use [ and ] instead.
42917   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
42918   if test "x$has_forbidden_chars" != x; then
42919     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42920     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
42921     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
42922     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
42923       # Going to short mode and back again did indeed matter. Since short mode is
42924       # case insensitive, let's make it lowercase to improve readability.
42925       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42926       # Now convert it back to Unix-stile (cygpath)
42927       input_path=`$CYGPATH -u "$shortmode_path"`
42928       new_path="$input_path"
42929     fi
42930   fi
42931 
42932   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
42933   if test "x$test_cygdrive_prefix" = x; then
42934     # As a simple fix, exclude /usr/bin since it's not a real path.
42935     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
42936       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
42937       # a path prefixed by /cygdrive for fixpath to work.
42938       new_path="$CYGWIN_ROOT_PATH$input_path"
42939     fi
42940   fi
42941 
42942 
42943   if test "x$path" != "x$new_path"; then
42944     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
42945     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
42946 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
42947   fi
42948 
42949   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42950 
42951   path="$POTENTIAL_FREETYPE_LIB_PATH"
42952   has_colon=`$ECHO $path | $GREP ^.:`
42953   new_path="$path"
42954   if test "x$has_colon" = x; then
42955     # Not in mixed or Windows style, start by that.
42956     new_path=`cmd //c echo $path`
42957   fi
42958 
42959 
42960   input_path="$new_path"
42961   # Check if we need to convert this using DOS-style short mode. If the path
42962   # contains just simple characters, use it. Otherwise (spaces, weird characters),
42963   # take no chances and rewrite it.
42964   # Note: m4 eats our [], so we need to use [ and ] instead.
42965   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
42966   if test "x$has_forbidden_chars" != x; then
42967     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
42968     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
42969   fi
42970 
42971 
42972   windows_path="$new_path"
42973   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
42974     unix_path=`$CYGPATH -u "$windows_path"`
42975     new_path="$unix_path"
42976   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
42977     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
42978     new_path="$unix_path"
42979   fi
42980 
42981   if test "x$path" != "x$new_path"; then
42982     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
42983     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
42984 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
42985   fi
42986 
42987   # Save the first 10 bytes of this path to the storage, so fixpath can work.
42988   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
42989 
42990   else
42991     # We're on a posix platform. Hooray! :)
42992     path="$POTENTIAL_FREETYPE_LIB_PATH"
42993     has_space=`$ECHO "$path" | $GREP " "`
42994     if test "x$has_space" != x; then
42995       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
42996 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
42997       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
42998     fi
42999 
43000     # Use eval to expand a potential ~
43001     eval path="$path"
43002     if test ! -f "$path" && test ! -d "$path"; then
43003       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43004     fi
43005 
43006     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43007   fi
43008 
43009 
43010     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43012 $as_echo_n "checking for freetype includes... " >&6; }
43013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43014 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43015     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43017 $as_echo_n "checking for freetype libraries... " >&6; }
43018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43019 $as_echo "$FREETYPE_LIB_PATH" >&6; }
43020   fi
43021 
43022           if test "x$FOUND_FREETYPE" != xyes; then
43023             FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32"
43024 
43025   windows_path="$FREETYPE_BASE_DIR"
43026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43027     unix_path=`$CYGPATH -u "$windows_path"`
43028     FREETYPE_BASE_DIR="$unix_path"
43029   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43030     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43031     FREETYPE_BASE_DIR="$unix_path"
43032   fi
43033 
43034 
43035   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
43036   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
43037   METHOD="well-known location"
43038 
43039   # First check if the files exists.
43040   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43041     # We found an arbitrary include file. That's a good sign.
43042     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43043 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43044     FOUND_FREETYPE=yes
43045 
43046     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43047     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43048       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43049 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43050       FOUND_FREETYPE=no
43051     else
43052       if test "x$OPENJDK_TARGET_OS" = xwindows; then
43053         # On Windows, we will need both .lib and .dll file.
43054         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43055           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43056 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43057           FOUND_FREETYPE=no
43058         fi
43059       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
43060         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43061         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43062       fi
43063     fi
43064   fi
43065 
43066   if test "x$FOUND_FREETYPE" = xyes; then
43067 
43068   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43069 
43070   # Input might be given as Windows format, start by converting to
43071   # unix format.
43072   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43073   new_path=`$CYGPATH -u "$path"`
43074 
43075   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43076   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43077   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43078   # "foo.exe" is OK but "foo" is an error.
43079   #
43080   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43081   # It is also a way to make sure we got the proper file name for the real test later on.
43082   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43083   if test "x$test_shortpath" = x; then
43084     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43085 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43086     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43087   fi
43088 
43089   # Call helper function which possibly converts this using DOS-style short mode.
43090   # If so, the updated path is stored in $new_path.
43091 
43092   input_path="$new_path"
43093   # Check if we need to convert this using DOS-style short mode. If the path
43094   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43095   # take no chances and rewrite it.
43096   # Note: m4 eats our [], so we need to use [ and ] instead.
43097   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43098   if test "x$has_forbidden_chars" != x; then
43099     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43100     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43101     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43102     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43103       # Going to short mode and back again did indeed matter. Since short mode is
43104       # case insensitive, let's make it lowercase to improve readability.
43105       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43106       # Now convert it back to Unix-stile (cygpath)
43107       input_path=`$CYGPATH -u "$shortmode_path"`
43108       new_path="$input_path"
43109     fi
43110   fi
43111 
43112   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43113   if test "x$test_cygdrive_prefix" = x; then
43114     # As a simple fix, exclude /usr/bin since it's not a real path.
43115     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43116       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43117       # a path prefixed by /cygdrive for fixpath to work.
43118       new_path="$CYGWIN_ROOT_PATH$input_path"
43119     fi
43120   fi
43121 
43122 
43123   if test "x$path" != "x$new_path"; then
43124     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43125     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43126 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43127   fi
43128 
43129   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43130 
43131   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43132   has_colon=`$ECHO $path | $GREP ^.:`
43133   new_path="$path"
43134   if test "x$has_colon" = x; then
43135     # Not in mixed or Windows style, start by that.
43136     new_path=`cmd //c echo $path`
43137   fi
43138 
43139 
43140   input_path="$new_path"
43141   # Check if we need to convert this using DOS-style short mode. If the path
43142   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43143   # take no chances and rewrite it.
43144   # Note: m4 eats our [], so we need to use [ and ] instead.
43145   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43146   if test "x$has_forbidden_chars" != x; then
43147     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43148     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43149   fi
43150 
43151 
43152   windows_path="$new_path"
43153   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43154     unix_path=`$CYGPATH -u "$windows_path"`
43155     new_path="$unix_path"
43156   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43157     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43158     new_path="$unix_path"
43159   fi
43160 
43161   if test "x$path" != "x$new_path"; then
43162     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43163     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43164 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43165   fi
43166 
43167   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43168   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43169 
43170   else
43171     # We're on a posix platform. Hooray! :)
43172     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43173     has_space=`$ECHO "$path" | $GREP " "`
43174     if test "x$has_space" != x; then
43175       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43176 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43177       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43178     fi
43179 
43180     # Use eval to expand a potential ~
43181     eval path="$path"
43182     if test ! -f "$path" && test ! -d "$path"; then
43183       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43184     fi
43185 
43186     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
43187   fi
43188 
43189 
43190   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43191 
43192   # Input might be given as Windows format, start by converting to
43193   # unix format.
43194   path="$POTENTIAL_FREETYPE_LIB_PATH"
43195   new_path=`$CYGPATH -u "$path"`
43196 
43197   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43198   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43199   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43200   # "foo.exe" is OK but "foo" is an error.
43201   #
43202   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43203   # It is also a way to make sure we got the proper file name for the real test later on.
43204   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43205   if test "x$test_shortpath" = x; then
43206     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43207 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43208     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
43209   fi
43210 
43211   # Call helper function which possibly converts this using DOS-style short mode.
43212   # If so, the updated path is stored in $new_path.
43213 
43214   input_path="$new_path"
43215   # Check if we need to convert this using DOS-style short mode. If the path
43216   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43217   # take no chances and rewrite it.
43218   # Note: m4 eats our [], so we need to use [ and ] instead.
43219   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43220   if test "x$has_forbidden_chars" != x; then
43221     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43222     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43223     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43224     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43225       # Going to short mode and back again did indeed matter. Since short mode is
43226       # case insensitive, let's make it lowercase to improve readability.
43227       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43228       # Now convert it back to Unix-stile (cygpath)
43229       input_path=`$CYGPATH -u "$shortmode_path"`
43230       new_path="$input_path"
43231     fi
43232   fi
43233 
43234   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43235   if test "x$test_cygdrive_prefix" = x; then
43236     # As a simple fix, exclude /usr/bin since it's not a real path.
43237     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43238       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43239       # a path prefixed by /cygdrive for fixpath to work.
43240       new_path="$CYGWIN_ROOT_PATH$input_path"
43241     fi
43242   fi
43243 
43244 
43245   if test "x$path" != "x$new_path"; then
43246     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43247     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43248 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43249   fi
43250 
43251   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43252 
43253   path="$POTENTIAL_FREETYPE_LIB_PATH"
43254   has_colon=`$ECHO $path | $GREP ^.:`
43255   new_path="$path"
43256   if test "x$has_colon" = x; then
43257     # Not in mixed or Windows style, start by that.
43258     new_path=`cmd //c echo $path`
43259   fi
43260 
43261 
43262   input_path="$new_path"
43263   # Check if we need to convert this using DOS-style short mode. If the path
43264   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43265   # take no chances and rewrite it.
43266   # Note: m4 eats our [], so we need to use [ and ] instead.
43267   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43268   if test "x$has_forbidden_chars" != x; then
43269     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43270     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43271   fi
43272 
43273 
43274   windows_path="$new_path"
43275   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43276     unix_path=`$CYGPATH -u "$windows_path"`
43277     new_path="$unix_path"
43278   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43279     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43280     new_path="$unix_path"
43281   fi
43282 
43283   if test "x$path" != "x$new_path"; then
43284     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43285     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43286 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43287   fi
43288 
43289   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43290   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43291 
43292   else
43293     # We're on a posix platform. Hooray! :)
43294     path="$POTENTIAL_FREETYPE_LIB_PATH"
43295     has_space=`$ECHO "$path" | $GREP " "`
43296     if test "x$has_space" != x; then
43297       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43298 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43299       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43300     fi
43301 
43302     # Use eval to expand a potential ~
43303     eval path="$path"
43304     if test ! -f "$path" && test ! -d "$path"; then
43305       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43306     fi
43307 
43308     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43309   fi
43310 
43311 
43312     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43314 $as_echo_n "checking for freetype includes... " >&6; }
43315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43316 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43317     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43319 $as_echo_n "checking for freetype libraries... " >&6; }
43320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43321 $as_echo "$FREETYPE_LIB_PATH" >&6; }
43322   fi
43323 
43324           fi
43325         else
43326           if test "x$SYS_ROOT" = "x/"; then
43327             FREETYPE_ROOT=
43328           else
43329             FREETYPE_ROOT="$SYS_ROOT"
43330           fi
43331           FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr"
43332 
43333   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
43334   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
43335   METHOD="well-known location"
43336 
43337   # First check if the files exists.
43338   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43339     # We found an arbitrary include file. That's a good sign.
43340     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43341 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43342     FOUND_FREETYPE=yes
43343 
43344     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43345     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43346       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43347 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43348       FOUND_FREETYPE=no
43349     else
43350       if test "x$OPENJDK_TARGET_OS" = xwindows; then
43351         # On Windows, we will need both .lib and .dll file.
43352         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43353           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43354 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43355           FOUND_FREETYPE=no
43356         fi
43357       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
43358         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43359         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43360       fi
43361     fi
43362   fi
43363 
43364   if test "x$FOUND_FREETYPE" = xyes; then
43365 
43366   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43367 
43368   # Input might be given as Windows format, start by converting to
43369   # unix format.
43370   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43371   new_path=`$CYGPATH -u "$path"`
43372 
43373   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43374   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43375   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43376   # "foo.exe" is OK but "foo" is an error.
43377   #
43378   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43379   # It is also a way to make sure we got the proper file name for the real test later on.
43380   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43381   if test "x$test_shortpath" = x; then
43382     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43383 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43384     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43385   fi
43386 
43387   # Call helper function which possibly converts this using DOS-style short mode.
43388   # If so, the updated path is stored in $new_path.
43389 
43390   input_path="$new_path"
43391   # Check if we need to convert this using DOS-style short mode. If the path
43392   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43393   # take no chances and rewrite it.
43394   # Note: m4 eats our [], so we need to use [ and ] instead.
43395   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43396   if test "x$has_forbidden_chars" != x; then
43397     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43398     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43399     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43400     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43401       # Going to short mode and back again did indeed matter. Since short mode is
43402       # case insensitive, let's make it lowercase to improve readability.
43403       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43404       # Now convert it back to Unix-stile (cygpath)
43405       input_path=`$CYGPATH -u "$shortmode_path"`
43406       new_path="$input_path"
43407     fi
43408   fi
43409 
43410   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43411   if test "x$test_cygdrive_prefix" = x; then
43412     # As a simple fix, exclude /usr/bin since it's not a real path.
43413     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43414       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43415       # a path prefixed by /cygdrive for fixpath to work.
43416       new_path="$CYGWIN_ROOT_PATH$input_path"
43417     fi
43418   fi
43419 
43420 
43421   if test "x$path" != "x$new_path"; then
43422     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43423     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43424 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43425   fi
43426 
43427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43428 
43429   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43430   has_colon=`$ECHO $path | $GREP ^.:`
43431   new_path="$path"
43432   if test "x$has_colon" = x; then
43433     # Not in mixed or Windows style, start by that.
43434     new_path=`cmd //c echo $path`
43435   fi
43436 
43437 
43438   input_path="$new_path"
43439   # Check if we need to convert this using DOS-style short mode. If the path
43440   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43441   # take no chances and rewrite it.
43442   # Note: m4 eats our [], so we need to use [ and ] instead.
43443   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43444   if test "x$has_forbidden_chars" != x; then
43445     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43446     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43447   fi
43448 
43449 
43450   windows_path="$new_path"
43451   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43452     unix_path=`$CYGPATH -u "$windows_path"`
43453     new_path="$unix_path"
43454   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43455     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43456     new_path="$unix_path"
43457   fi
43458 
43459   if test "x$path" != "x$new_path"; then
43460     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43461     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43462 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43463   fi
43464 
43465   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43466   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43467 
43468   else
43469     # We're on a posix platform. Hooray! :)
43470     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43471     has_space=`$ECHO "$path" | $GREP " "`
43472     if test "x$has_space" != x; then
43473       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43474 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43475       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43476     fi
43477 
43478     # Use eval to expand a potential ~
43479     eval path="$path"
43480     if test ! -f "$path" && test ! -d "$path"; then
43481       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43482     fi
43483 
43484     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
43485   fi
43486 
43487 
43488   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43489 
43490   # Input might be given as Windows format, start by converting to
43491   # unix format.
43492   path="$POTENTIAL_FREETYPE_LIB_PATH"
43493   new_path=`$CYGPATH -u "$path"`
43494 
43495   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43496   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43497   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43498   # "foo.exe" is OK but "foo" is an error.
43499   #
43500   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43501   # It is also a way to make sure we got the proper file name for the real test later on.
43502   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43503   if test "x$test_shortpath" = x; then
43504     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43505 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43506     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
43507   fi
43508 
43509   # Call helper function which possibly converts this using DOS-style short mode.
43510   # If so, the updated path is stored in $new_path.
43511 
43512   input_path="$new_path"
43513   # Check if we need to convert this using DOS-style short mode. If the path
43514   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43515   # take no chances and rewrite it.
43516   # Note: m4 eats our [], so we need to use [ and ] instead.
43517   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43518   if test "x$has_forbidden_chars" != x; then
43519     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43520     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43521     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43522     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43523       # Going to short mode and back again did indeed matter. Since short mode is
43524       # case insensitive, let's make it lowercase to improve readability.
43525       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43526       # Now convert it back to Unix-stile (cygpath)
43527       input_path=`$CYGPATH -u "$shortmode_path"`
43528       new_path="$input_path"
43529     fi
43530   fi
43531 
43532   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43533   if test "x$test_cygdrive_prefix" = x; then
43534     # As a simple fix, exclude /usr/bin since it's not a real path.
43535     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43536       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43537       # a path prefixed by /cygdrive for fixpath to work.
43538       new_path="$CYGWIN_ROOT_PATH$input_path"
43539     fi
43540   fi
43541 
43542 
43543   if test "x$path" != "x$new_path"; then
43544     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43545     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43546 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43547   fi
43548 
43549   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43550 
43551   path="$POTENTIAL_FREETYPE_LIB_PATH"
43552   has_colon=`$ECHO $path | $GREP ^.:`
43553   new_path="$path"
43554   if test "x$has_colon" = x; then
43555     # Not in mixed or Windows style, start by that.
43556     new_path=`cmd //c echo $path`
43557   fi
43558 
43559 
43560   input_path="$new_path"
43561   # Check if we need to convert this using DOS-style short mode. If the path
43562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43563   # take no chances and rewrite it.
43564   # Note: m4 eats our [], so we need to use [ and ] instead.
43565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43566   if test "x$has_forbidden_chars" != x; then
43567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43568     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43569   fi
43570 
43571 
43572   windows_path="$new_path"
43573   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43574     unix_path=`$CYGPATH -u "$windows_path"`
43575     new_path="$unix_path"
43576   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43577     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43578     new_path="$unix_path"
43579   fi
43580 
43581   if test "x$path" != "x$new_path"; then
43582     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43583     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43584 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43585   fi
43586 
43587   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43588   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43589 
43590   else
43591     # We're on a posix platform. Hooray! :)
43592     path="$POTENTIAL_FREETYPE_LIB_PATH"
43593     has_space=`$ECHO "$path" | $GREP " "`
43594     if test "x$has_space" != x; then
43595       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43596 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43597       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43598     fi
43599 
43600     # Use eval to expand a potential ~
43601     eval path="$path"
43602     if test ! -f "$path" && test ! -d "$path"; then
43603       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43604     fi
43605 
43606     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43607   fi
43608 
43609 
43610     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43612 $as_echo_n "checking for freetype includes... " >&6; }
43613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43614 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43615     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43617 $as_echo_n "checking for freetype libraries... " >&6; }
43618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43619 $as_echo "$FREETYPE_LIB_PATH" >&6; }
43620   fi
43621 
43622 
43623           if test "x$FOUND_FREETYPE" != xyes; then
43624             FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11"
43625 
43626   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
43627   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
43628   METHOD="well-known location"
43629 
43630   # First check if the files exists.
43631   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43632     # We found an arbitrary include file. That's a good sign.
43633     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43634 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43635     FOUND_FREETYPE=yes
43636 
43637     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43638     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43639       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43640 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43641       FOUND_FREETYPE=no
43642     else
43643       if test "x$OPENJDK_TARGET_OS" = xwindows; then
43644         # On Windows, we will need both .lib and .dll file.
43645         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43646           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43647 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43648           FOUND_FREETYPE=no
43649         fi
43650       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
43651         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43652         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43653       fi
43654     fi
43655   fi
43656 
43657   if test "x$FOUND_FREETYPE" = xyes; then
43658 
43659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43660 
43661   # Input might be given as Windows format, start by converting to
43662   # unix format.
43663   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43664   new_path=`$CYGPATH -u "$path"`
43665 
43666   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43667   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43668   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43669   # "foo.exe" is OK but "foo" is an error.
43670   #
43671   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43672   # It is also a way to make sure we got the proper file name for the real test later on.
43673   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43674   if test "x$test_shortpath" = x; then
43675     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43676 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43677     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43678   fi
43679 
43680   # Call helper function which possibly converts this using DOS-style short mode.
43681   # If so, the updated path is stored in $new_path.
43682 
43683   input_path="$new_path"
43684   # Check if we need to convert this using DOS-style short mode. If the path
43685   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43686   # take no chances and rewrite it.
43687   # Note: m4 eats our [], so we need to use [ and ] instead.
43688   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43689   if test "x$has_forbidden_chars" != x; then
43690     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43691     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43692     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43693     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43694       # Going to short mode and back again did indeed matter. Since short mode is
43695       # case insensitive, let's make it lowercase to improve readability.
43696       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43697       # Now convert it back to Unix-stile (cygpath)
43698       input_path=`$CYGPATH -u "$shortmode_path"`
43699       new_path="$input_path"
43700     fi
43701   fi
43702 
43703   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43704   if test "x$test_cygdrive_prefix" = x; then
43705     # As a simple fix, exclude /usr/bin since it's not a real path.
43706     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43707       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43708       # a path prefixed by /cygdrive for fixpath to work.
43709       new_path="$CYGWIN_ROOT_PATH$input_path"
43710     fi
43711   fi
43712 
43713 
43714   if test "x$path" != "x$new_path"; then
43715     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43716     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43717 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43718   fi
43719 
43720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43721 
43722   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43723   has_colon=`$ECHO $path | $GREP ^.:`
43724   new_path="$path"
43725   if test "x$has_colon" = x; then
43726     # Not in mixed or Windows style, start by that.
43727     new_path=`cmd //c echo $path`
43728   fi
43729 
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     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43740   fi
43741 
43742 
43743   windows_path="$new_path"
43744   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43745     unix_path=`$CYGPATH -u "$windows_path"`
43746     new_path="$unix_path"
43747   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43748     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43749     new_path="$unix_path"
43750   fi
43751 
43752   if test "x$path" != "x$new_path"; then
43753     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43754     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43755 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43756   fi
43757 
43758   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43759   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43760 
43761   else
43762     # We're on a posix platform. Hooray! :)
43763     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43764     has_space=`$ECHO "$path" | $GREP " "`
43765     if test "x$has_space" != x; then
43766       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43767 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43768       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43769     fi
43770 
43771     # Use eval to expand a potential ~
43772     eval path="$path"
43773     if test ! -f "$path" && test ! -d "$path"; then
43774       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43775     fi
43776 
43777     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
43778   fi
43779 
43780 
43781   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43782 
43783   # Input might be given as Windows format, start by converting to
43784   # unix format.
43785   path="$POTENTIAL_FREETYPE_LIB_PATH"
43786   new_path=`$CYGPATH -u "$path"`
43787 
43788   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43789   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43790   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43791   # "foo.exe" is OK but "foo" is an error.
43792   #
43793   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43794   # It is also a way to make sure we got the proper file name for the real test later on.
43795   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43796   if test "x$test_shortpath" = x; then
43797     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43798 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43799     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
43800   fi
43801 
43802   # Call helper function which possibly converts this using DOS-style short mode.
43803   # If so, the updated path is stored in $new_path.
43804 
43805   input_path="$new_path"
43806   # Check if we need to convert this using DOS-style short mode. If the path
43807   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43808   # take no chances and rewrite it.
43809   # Note: m4 eats our [], so we need to use [ and ] instead.
43810   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43811   if test "x$has_forbidden_chars" != x; then
43812     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43813     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43814     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43815     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43816       # Going to short mode and back again did indeed matter. Since short mode is
43817       # case insensitive, let's make it lowercase to improve readability.
43818       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43819       # Now convert it back to Unix-stile (cygpath)
43820       input_path=`$CYGPATH -u "$shortmode_path"`
43821       new_path="$input_path"
43822     fi
43823   fi
43824 
43825   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43826   if test "x$test_cygdrive_prefix" = x; then
43827     # As a simple fix, exclude /usr/bin since it's not a real path.
43828     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43829       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43830       # a path prefixed by /cygdrive for fixpath to work.
43831       new_path="$CYGWIN_ROOT_PATH$input_path"
43832     fi
43833   fi
43834 
43835 
43836   if test "x$path" != "x$new_path"; then
43837     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43838     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43839 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43840   fi
43841 
43842   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43843 
43844   path="$POTENTIAL_FREETYPE_LIB_PATH"
43845   has_colon=`$ECHO $path | $GREP ^.:`
43846   new_path="$path"
43847   if test "x$has_colon" = x; then
43848     # Not in mixed or Windows style, start by that.
43849     new_path=`cmd //c echo $path`
43850   fi
43851 
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     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43862   fi
43863 
43864 
43865   windows_path="$new_path"
43866   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43867     unix_path=`$CYGPATH -u "$windows_path"`
43868     new_path="$unix_path"
43869   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43870     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43871     new_path="$unix_path"
43872   fi
43873 
43874   if test "x$path" != "x$new_path"; then
43875     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43876     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43877 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43878   fi
43879 
43880   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43881   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43882 
43883   else
43884     # We're on a posix platform. Hooray! :)
43885     path="$POTENTIAL_FREETYPE_LIB_PATH"
43886     has_space=`$ECHO "$path" | $GREP " "`
43887     if test "x$has_space" != x; then
43888       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43889 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43890       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43891     fi
43892 
43893     # Use eval to expand a potential ~
43894     eval path="$path"
43895     if test ! -f "$path" && test ! -d "$path"; then
43896       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43897     fi
43898 
43899     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43900   fi
43901 
43902 
43903     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43905 $as_echo_n "checking for freetype includes... " >&6; }
43906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43907 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43908     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43910 $as_echo_n "checking for freetype libraries... " >&6; }
43911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43912 $as_echo "$FREETYPE_LIB_PATH" >&6; }
43913   fi
43914 
43915           fi
43916 
43917           if test "x$FOUND_FREETYPE" != xyes; then
43918             FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr"
43919             if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
43920 
43921   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
43922   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu"
43923   METHOD="well-known location"
43924 
43925   # First check if the files exists.
43926   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43927     # We found an arbitrary include file. That's a good sign.
43928     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43929 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43930     FOUND_FREETYPE=yes
43931 
43932     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43933     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43934       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43935 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43936       FOUND_FREETYPE=no
43937     else
43938       if test "x$OPENJDK_TARGET_OS" = xwindows; then
43939         # On Windows, we will need both .lib and .dll file.
43940         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43941           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43942 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43943           FOUND_FREETYPE=no
43944         fi
43945       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
43946         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43947         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43948       fi
43949     fi
43950   fi
43951 
43952   if test "x$FOUND_FREETYPE" = xyes; then
43953 
43954   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43955 
43956   # Input might be given as Windows format, start by converting to
43957   # unix format.
43958   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43959   new_path=`$CYGPATH -u "$path"`
43960 
43961   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43962   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43963   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43964   # "foo.exe" is OK but "foo" is an error.
43965   #
43966   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43967   # It is also a way to make sure we got the proper file name for the real test later on.
43968   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43969   if test "x$test_shortpath" = x; then
43970     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43971 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43972     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43973   fi
43974 
43975   # Call helper function which possibly converts this using DOS-style short mode.
43976   # If so, the updated path is stored in $new_path.
43977 
43978   input_path="$new_path"
43979   # Check if we need to convert this using DOS-style short mode. If the path
43980   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43981   # take no chances and rewrite it.
43982   # Note: m4 eats our [], so we need to use [ and ] instead.
43983   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43984   if test "x$has_forbidden_chars" != x; then
43985     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43986     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43987     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43988     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43989       # Going to short mode and back again did indeed matter. Since short mode is
43990       # case insensitive, let's make it lowercase to improve readability.
43991       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43992       # Now convert it back to Unix-stile (cygpath)
43993       input_path=`$CYGPATH -u "$shortmode_path"`
43994       new_path="$input_path"
43995     fi
43996   fi
43997 
43998   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43999   if test "x$test_cygdrive_prefix" = x; then
44000     # As a simple fix, exclude /usr/bin since it's not a real path.
44001     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44002       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44003       # a path prefixed by /cygdrive for fixpath to work.
44004       new_path="$CYGWIN_ROOT_PATH$input_path"
44005     fi
44006   fi
44007 
44008 
44009   if test "x$path" != "x$new_path"; then
44010     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44011     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44012 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44013   fi
44014 
44015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44016 
44017   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44018   has_colon=`$ECHO $path | $GREP ^.:`
44019   new_path="$path"
44020   if test "x$has_colon" = x; then
44021     # Not in mixed or Windows style, start by that.
44022     new_path=`cmd //c echo $path`
44023   fi
44024 
44025 
44026   input_path="$new_path"
44027   # Check if we need to convert this using DOS-style short mode. If the path
44028   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44029   # take no chances and rewrite it.
44030   # Note: m4 eats our [], so we need to use [ and ] instead.
44031   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44032   if test "x$has_forbidden_chars" != x; then
44033     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44034     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44035   fi
44036 
44037 
44038   windows_path="$new_path"
44039   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44040     unix_path=`$CYGPATH -u "$windows_path"`
44041     new_path="$unix_path"
44042   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44043     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44044     new_path="$unix_path"
44045   fi
44046 
44047   if test "x$path" != "x$new_path"; then
44048     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44049     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44050 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44051   fi
44052 
44053   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44054   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44055 
44056   else
44057     # We're on a posix platform. Hooray! :)
44058     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44059     has_space=`$ECHO "$path" | $GREP " "`
44060     if test "x$has_space" != x; then
44061       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44062 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44063       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44064     fi
44065 
44066     # Use eval to expand a potential ~
44067     eval path="$path"
44068     if test ! -f "$path" && test ! -d "$path"; then
44069       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44070     fi
44071 
44072     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44073   fi
44074 
44075 
44076   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44077 
44078   # Input might be given as Windows format, start by converting to
44079   # unix format.
44080   path="$POTENTIAL_FREETYPE_LIB_PATH"
44081   new_path=`$CYGPATH -u "$path"`
44082 
44083   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44084   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44085   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44086   # "foo.exe" is OK but "foo" is an error.
44087   #
44088   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44089   # It is also a way to make sure we got the proper file name for the real test later on.
44090   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44091   if test "x$test_shortpath" = x; then
44092     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44093 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44094     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44095   fi
44096 
44097   # Call helper function which possibly converts this using DOS-style short mode.
44098   # If so, the updated path is stored in $new_path.
44099 
44100   input_path="$new_path"
44101   # Check if we need to convert this using DOS-style short mode. If the path
44102   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44103   # take no chances and rewrite it.
44104   # Note: m4 eats our [], so we need to use [ and ] instead.
44105   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44106   if test "x$has_forbidden_chars" != x; then
44107     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44108     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44109     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44110     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44111       # Going to short mode and back again did indeed matter. Since short mode is
44112       # case insensitive, let's make it lowercase to improve readability.
44113       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44114       # Now convert it back to Unix-stile (cygpath)
44115       input_path=`$CYGPATH -u "$shortmode_path"`
44116       new_path="$input_path"
44117     fi
44118   fi
44119 
44120   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44121   if test "x$test_cygdrive_prefix" = x; then
44122     # As a simple fix, exclude /usr/bin since it's not a real path.
44123     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44124       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44125       # a path prefixed by /cygdrive for fixpath to work.
44126       new_path="$CYGWIN_ROOT_PATH$input_path"
44127     fi
44128   fi
44129 
44130 
44131   if test "x$path" != "x$new_path"; then
44132     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44133     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44134 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44135   fi
44136 
44137   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44138 
44139   path="$POTENTIAL_FREETYPE_LIB_PATH"
44140   has_colon=`$ECHO $path | $GREP ^.:`
44141   new_path="$path"
44142   if test "x$has_colon" = x; then
44143     # Not in mixed or Windows style, start by that.
44144     new_path=`cmd //c echo $path`
44145   fi
44146 
44147 
44148   input_path="$new_path"
44149   # Check if we need to convert this using DOS-style short mode. If the path
44150   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44151   # take no chances and rewrite it.
44152   # Note: m4 eats our [], so we need to use [ and ] instead.
44153   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44154   if test "x$has_forbidden_chars" != x; then
44155     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44156     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44157   fi
44158 
44159 
44160   windows_path="$new_path"
44161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44162     unix_path=`$CYGPATH -u "$windows_path"`
44163     new_path="$unix_path"
44164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44166     new_path="$unix_path"
44167   fi
44168 
44169   if test "x$path" != "x$new_path"; then
44170     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44171     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44172 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44173   fi
44174 
44175   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44176   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44177 
44178   else
44179     # We're on a posix platform. Hooray! :)
44180     path="$POTENTIAL_FREETYPE_LIB_PATH"
44181     has_space=`$ECHO "$path" | $GREP " "`
44182     if test "x$has_space" != x; then
44183       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44184 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44185       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44186     fi
44187 
44188     # Use eval to expand a potential ~
44189     eval path="$path"
44190     if test ! -f "$path" && test ! -d "$path"; then
44191       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44192     fi
44193 
44194     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44195   fi
44196 
44197 
44198     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44200 $as_echo_n "checking for freetype includes... " >&6; }
44201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44202 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44203     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44205 $as_echo_n "checking for freetype libraries... " >&6; }
44206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44207 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44208   fi
44209 
44210             else
44211 
44212   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44213   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu"
44214   METHOD="well-known location"
44215 
44216   # First check if the files exists.
44217   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44218     # We found an arbitrary include file. That's a good sign.
44219     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44220 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44221     FOUND_FREETYPE=yes
44222 
44223     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44224     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44225       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44226 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44227       FOUND_FREETYPE=no
44228     else
44229       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44230         # On Windows, we will need both .lib and .dll file.
44231         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44232           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44233 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44234           FOUND_FREETYPE=no
44235         fi
44236       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
44237         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44238         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44239       fi
44240     fi
44241   fi
44242 
44243   if test "x$FOUND_FREETYPE" = xyes; then
44244 
44245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44246 
44247   # Input might be given as Windows format, start by converting to
44248   # unix format.
44249   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44250   new_path=`$CYGPATH -u "$path"`
44251 
44252   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44253   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44254   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44255   # "foo.exe" is OK but "foo" is an error.
44256   #
44257   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44258   # It is also a way to make sure we got the proper file name for the real test later on.
44259   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44260   if test "x$test_shortpath" = x; then
44261     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44262 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44263     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44264   fi
44265 
44266   # Call helper function which possibly converts this using DOS-style short mode.
44267   # If so, the updated path is stored in $new_path.
44268 
44269   input_path="$new_path"
44270   # Check if we need to convert this using DOS-style short mode. If the path
44271   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44272   # take no chances and rewrite it.
44273   # Note: m4 eats our [], so we need to use [ and ] instead.
44274   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44275   if test "x$has_forbidden_chars" != x; then
44276     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44277     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44278     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44279     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44280       # Going to short mode and back again did indeed matter. Since short mode is
44281       # case insensitive, let's make it lowercase to improve readability.
44282       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44283       # Now convert it back to Unix-stile (cygpath)
44284       input_path=`$CYGPATH -u "$shortmode_path"`
44285       new_path="$input_path"
44286     fi
44287   fi
44288 
44289   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44290   if test "x$test_cygdrive_prefix" = x; then
44291     # As a simple fix, exclude /usr/bin since it's not a real path.
44292     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44293       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44294       # a path prefixed by /cygdrive for fixpath to work.
44295       new_path="$CYGWIN_ROOT_PATH$input_path"
44296     fi
44297   fi
44298 
44299 
44300   if test "x$path" != "x$new_path"; then
44301     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44302     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44303 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44304   fi
44305 
44306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44307 
44308   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44309   has_colon=`$ECHO $path | $GREP ^.:`
44310   new_path="$path"
44311   if test "x$has_colon" = x; then
44312     # Not in mixed or Windows style, start by that.
44313     new_path=`cmd //c echo $path`
44314   fi
44315 
44316 
44317   input_path="$new_path"
44318   # Check if we need to convert this using DOS-style short mode. If the path
44319   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44320   # take no chances and rewrite it.
44321   # Note: m4 eats our [], so we need to use [ and ] instead.
44322   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44323   if test "x$has_forbidden_chars" != x; then
44324     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44325     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44326   fi
44327 
44328 
44329   windows_path="$new_path"
44330   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44331     unix_path=`$CYGPATH -u "$windows_path"`
44332     new_path="$unix_path"
44333   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44334     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44335     new_path="$unix_path"
44336   fi
44337 
44338   if test "x$path" != "x$new_path"; then
44339     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44340     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44341 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44342   fi
44343 
44344   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44345   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44346 
44347   else
44348     # We're on a posix platform. Hooray! :)
44349     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44350     has_space=`$ECHO "$path" | $GREP " "`
44351     if test "x$has_space" != x; then
44352       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44353 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44354       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44355     fi
44356 
44357     # Use eval to expand a potential ~
44358     eval path="$path"
44359     if test ! -f "$path" && test ! -d "$path"; then
44360       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44361     fi
44362 
44363     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44364   fi
44365 
44366 
44367   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44368 
44369   # Input might be given as Windows format, start by converting to
44370   # unix format.
44371   path="$POTENTIAL_FREETYPE_LIB_PATH"
44372   new_path=`$CYGPATH -u "$path"`
44373 
44374   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44375   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44376   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44377   # "foo.exe" is OK but "foo" is an error.
44378   #
44379   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44380   # It is also a way to make sure we got the proper file name for the real test later on.
44381   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44382   if test "x$test_shortpath" = x; then
44383     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44384 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44385     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44386   fi
44387 
44388   # Call helper function which possibly converts this using DOS-style short mode.
44389   # If so, the updated path is stored in $new_path.
44390 
44391   input_path="$new_path"
44392   # Check if we need to convert this using DOS-style short mode. If the path
44393   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44394   # take no chances and rewrite it.
44395   # Note: m4 eats our [], so we need to use [ and ] instead.
44396   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44397   if test "x$has_forbidden_chars" != x; then
44398     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44399     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44400     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44401     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44402       # Going to short mode and back again did indeed matter. Since short mode is
44403       # case insensitive, let's make it lowercase to improve readability.
44404       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44405       # Now convert it back to Unix-stile (cygpath)
44406       input_path=`$CYGPATH -u "$shortmode_path"`
44407       new_path="$input_path"
44408     fi
44409   fi
44410 
44411   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44412   if test "x$test_cygdrive_prefix" = x; then
44413     # As a simple fix, exclude /usr/bin since it's not a real path.
44414     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44415       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44416       # a path prefixed by /cygdrive for fixpath to work.
44417       new_path="$CYGWIN_ROOT_PATH$input_path"
44418     fi
44419   fi
44420 
44421 
44422   if test "x$path" != "x$new_path"; then
44423     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44424     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44425 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44426   fi
44427 
44428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44429 
44430   path="$POTENTIAL_FREETYPE_LIB_PATH"
44431   has_colon=`$ECHO $path | $GREP ^.:`
44432   new_path="$path"
44433   if test "x$has_colon" = x; then
44434     # Not in mixed or Windows style, start by that.
44435     new_path=`cmd //c echo $path`
44436   fi
44437 
44438 
44439   input_path="$new_path"
44440   # Check if we need to convert this using DOS-style short mode. If the path
44441   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44442   # take no chances and rewrite it.
44443   # Note: m4 eats our [], so we need to use [ and ] instead.
44444   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44445   if test "x$has_forbidden_chars" != x; then
44446     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44447     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44448   fi
44449 
44450 
44451   windows_path="$new_path"
44452   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44453     unix_path=`$CYGPATH -u "$windows_path"`
44454     new_path="$unix_path"
44455   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44456     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44457     new_path="$unix_path"
44458   fi
44459 
44460   if test "x$path" != "x$new_path"; then
44461     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44462     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44463 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44464   fi
44465 
44466   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44467   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44468 
44469   else
44470     # We're on a posix platform. Hooray! :)
44471     path="$POTENTIAL_FREETYPE_LIB_PATH"
44472     has_space=`$ECHO "$path" | $GREP " "`
44473     if test "x$has_space" != x; then
44474       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44475 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44476       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44477     fi
44478 
44479     # Use eval to expand a potential ~
44480     eval path="$path"
44481     if test ! -f "$path" && test ! -d "$path"; then
44482       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44483     fi
44484 
44485     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44486   fi
44487 
44488 
44489     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44491 $as_echo_n "checking for freetype includes... " >&6; }
44492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44493 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44494     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44496 $as_echo_n "checking for freetype libraries... " >&6; }
44497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44498 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44499   fi
44500 
44501               if test "x$FOUND_FREETYPE" != xyes; then
44502 
44503   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44504   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32"
44505   METHOD="well-known location"
44506 
44507   # First check if the files exists.
44508   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44509     # We found an arbitrary include file. That's a good sign.
44510     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44511 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44512     FOUND_FREETYPE=yes
44513 
44514     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44515     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44516       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44517 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44518       FOUND_FREETYPE=no
44519     else
44520       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44521         # On Windows, we will need both .lib and .dll file.
44522         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44523           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44524 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44525           FOUND_FREETYPE=no
44526         fi
44527       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
44528         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44529         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44530       fi
44531     fi
44532   fi
44533 
44534   if test "x$FOUND_FREETYPE" = xyes; then
44535 
44536   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44537 
44538   # Input might be given as Windows format, start by converting to
44539   # unix format.
44540   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44541   new_path=`$CYGPATH -u "$path"`
44542 
44543   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44544   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44545   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44546   # "foo.exe" is OK but "foo" is an error.
44547   #
44548   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44549   # It is also a way to make sure we got the proper file name for the real test later on.
44550   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44551   if test "x$test_shortpath" = x; then
44552     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44553 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44554     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44555   fi
44556 
44557   # Call helper function which possibly converts this using DOS-style short mode.
44558   # If so, the updated path is stored in $new_path.
44559 
44560   input_path="$new_path"
44561   # Check if we need to convert this using DOS-style short mode. If the path
44562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44563   # take no chances and rewrite it.
44564   # Note: m4 eats our [], so we need to use [ and ] instead.
44565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44566   if test "x$has_forbidden_chars" != x; then
44567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44568     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44569     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44570     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44571       # Going to short mode and back again did indeed matter. Since short mode is
44572       # case insensitive, let's make it lowercase to improve readability.
44573       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44574       # Now convert it back to Unix-stile (cygpath)
44575       input_path=`$CYGPATH -u "$shortmode_path"`
44576       new_path="$input_path"
44577     fi
44578   fi
44579 
44580   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44581   if test "x$test_cygdrive_prefix" = x; then
44582     # As a simple fix, exclude /usr/bin since it's not a real path.
44583     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44584       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44585       # a path prefixed by /cygdrive for fixpath to work.
44586       new_path="$CYGWIN_ROOT_PATH$input_path"
44587     fi
44588   fi
44589 
44590 
44591   if test "x$path" != "x$new_path"; then
44592     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44593     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44594 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44595   fi
44596 
44597   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44598 
44599   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44600   has_colon=`$ECHO $path | $GREP ^.:`
44601   new_path="$path"
44602   if test "x$has_colon" = x; then
44603     # Not in mixed or Windows style, start by that.
44604     new_path=`cmd //c echo $path`
44605   fi
44606 
44607 
44608   input_path="$new_path"
44609   # Check if we need to convert this using DOS-style short mode. If the path
44610   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44611   # take no chances and rewrite it.
44612   # Note: m4 eats our [], so we need to use [ and ] instead.
44613   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44614   if test "x$has_forbidden_chars" != x; then
44615     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44616     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44617   fi
44618 
44619 
44620   windows_path="$new_path"
44621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44622     unix_path=`$CYGPATH -u "$windows_path"`
44623     new_path="$unix_path"
44624   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44625     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44626     new_path="$unix_path"
44627   fi
44628 
44629   if test "x$path" != "x$new_path"; then
44630     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44631     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44632 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44633   fi
44634 
44635   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44636   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44637 
44638   else
44639     # We're on a posix platform. Hooray! :)
44640     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44641     has_space=`$ECHO "$path" | $GREP " "`
44642     if test "x$has_space" != x; then
44643       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44644 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44645       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44646     fi
44647 
44648     # Use eval to expand a potential ~
44649     eval path="$path"
44650     if test ! -f "$path" && test ! -d "$path"; then
44651       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44652     fi
44653 
44654     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44655   fi
44656 
44657 
44658   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44659 
44660   # Input might be given as Windows format, start by converting to
44661   # unix format.
44662   path="$POTENTIAL_FREETYPE_LIB_PATH"
44663   new_path=`$CYGPATH -u "$path"`
44664 
44665   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44666   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44667   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44668   # "foo.exe" is OK but "foo" is an error.
44669   #
44670   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44671   # It is also a way to make sure we got the proper file name for the real test later on.
44672   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44673   if test "x$test_shortpath" = x; then
44674     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44675 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44676     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44677   fi
44678 
44679   # Call helper function which possibly converts this using DOS-style short mode.
44680   # If so, the updated path is stored in $new_path.
44681 
44682   input_path="$new_path"
44683   # Check if we need to convert this using DOS-style short mode. If the path
44684   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44685   # take no chances and rewrite it.
44686   # Note: m4 eats our [], so we need to use [ and ] instead.
44687   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44688   if test "x$has_forbidden_chars" != x; then
44689     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44690     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44691     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44692     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44693       # Going to short mode and back again did indeed matter. Since short mode is
44694       # case insensitive, let's make it lowercase to improve readability.
44695       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44696       # Now convert it back to Unix-stile (cygpath)
44697       input_path=`$CYGPATH -u "$shortmode_path"`
44698       new_path="$input_path"
44699     fi
44700   fi
44701 
44702   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44703   if test "x$test_cygdrive_prefix" = x; then
44704     # As a simple fix, exclude /usr/bin since it's not a real path.
44705     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44706       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44707       # a path prefixed by /cygdrive for fixpath to work.
44708       new_path="$CYGWIN_ROOT_PATH$input_path"
44709     fi
44710   fi
44711 
44712 
44713   if test "x$path" != "x$new_path"; then
44714     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44715     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44716 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44717   fi
44718 
44719   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44720 
44721   path="$POTENTIAL_FREETYPE_LIB_PATH"
44722   has_colon=`$ECHO $path | $GREP ^.:`
44723   new_path="$path"
44724   if test "x$has_colon" = x; then
44725     # Not in mixed or Windows style, start by that.
44726     new_path=`cmd //c echo $path`
44727   fi
44728 
44729 
44730   input_path="$new_path"
44731   # Check if we need to convert this using DOS-style short mode. If the path
44732   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44733   # take no chances and rewrite it.
44734   # Note: m4 eats our [], so we need to use [ and ] instead.
44735   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44736   if test "x$has_forbidden_chars" != x; then
44737     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44738     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44739   fi
44740 
44741 
44742   windows_path="$new_path"
44743   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44744     unix_path=`$CYGPATH -u "$windows_path"`
44745     new_path="$unix_path"
44746   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44747     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44748     new_path="$unix_path"
44749   fi
44750 
44751   if test "x$path" != "x$new_path"; then
44752     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44753     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44754 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44755   fi
44756 
44757   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44758   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44759 
44760   else
44761     # We're on a posix platform. Hooray! :)
44762     path="$POTENTIAL_FREETYPE_LIB_PATH"
44763     has_space=`$ECHO "$path" | $GREP " "`
44764     if test "x$has_space" != x; then
44765       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44766 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44767       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44768     fi
44769 
44770     # Use eval to expand a potential ~
44771     eval path="$path"
44772     if test ! -f "$path" && test ! -d "$path"; then
44773       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44774     fi
44775 
44776     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44777   fi
44778 
44779 
44780     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44782 $as_echo_n "checking for freetype includes... " >&6; }
44783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44784 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44785     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44787 $as_echo_n "checking for freetype libraries... " >&6; }
44788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44789 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44790   fi
44791 
44792               fi
44793             fi
44794           fi
44795         fi
44796       fi # end check in well-known locations
44797 
44798       if test "x$FOUND_FREETYPE" != xyes; then
44799 
44800   # Print a helpful message on how to acquire the necessary build dependency.
44801   # freetype is the help tag: freetype, cups, pulse, alsa etc
44802   MISSING_DEPENDENCY=freetype
44803 
44804   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44805     cygwin_help $MISSING_DEPENDENCY
44806   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44807     msys_help $MISSING_DEPENDENCY
44808   else
44809     PKGHANDLER_COMMAND=
44810 
44811     case $PKGHANDLER in
44812       apt-get)
44813         apt_help     $MISSING_DEPENDENCY ;;
44814       yum)
44815         yum_help     $MISSING_DEPENDENCY ;;
44816       port)
44817         port_help    $MISSING_DEPENDENCY ;;
44818       pkgutil)
44819         pkgutil_help $MISSING_DEPENDENCY ;;
44820       pkgadd)
44821         pkgadd_help  $MISSING_DEPENDENCY ;;
44822     esac
44823 
44824     if test "x$PKGHANDLER_COMMAND" != x; then
44825       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
44826     fi
44827   fi
44828 
44829         as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5
44830       fi
44831     fi # end user specified settings
44832 
44833     # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir.
44834     if test "x$FREETYPE_CFLAGS" = x; then
44835 
44836   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44837 
44838   # Input might be given as Windows format, start by converting to
44839   # unix format.
44840   path="$FREETYPE_INCLUDE_PATH"
44841   new_path=`$CYGPATH -u "$path"`
44842 
44843   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44844   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44845   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44846   # "foo.exe" is OK but "foo" is an error.
44847   #
44848   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44849   # It is also a way to make sure we got the proper file name for the real test later on.
44850   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44851   if test "x$test_shortpath" = x; then
44852     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44853 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44854     as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5
44855   fi
44856 
44857   # Call helper function which possibly converts this using DOS-style short mode.
44858   # If so, the updated path is stored in $new_path.
44859 
44860   input_path="$new_path"
44861   # Check if we need to convert this using DOS-style short mode. If the path
44862   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44863   # take no chances and rewrite it.
44864   # Note: m4 eats our [], so we need to use [ and ] instead.
44865   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44866   if test "x$has_forbidden_chars" != x; then
44867     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44868     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44869     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44870     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44871       # Going to short mode and back again did indeed matter. Since short mode is
44872       # case insensitive, let's make it lowercase to improve readability.
44873       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44874       # Now convert it back to Unix-stile (cygpath)
44875       input_path=`$CYGPATH -u "$shortmode_path"`
44876       new_path="$input_path"
44877     fi
44878   fi
44879 
44880   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44881   if test "x$test_cygdrive_prefix" = x; then
44882     # As a simple fix, exclude /usr/bin since it's not a real path.
44883     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44884       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44885       # a path prefixed by /cygdrive for fixpath to work.
44886       new_path="$CYGWIN_ROOT_PATH$input_path"
44887     fi
44888   fi
44889 
44890 
44891   if test "x$path" != "x$new_path"; then
44892     FREETYPE_INCLUDE_PATH="$new_path"
44893     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44894 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44895   fi
44896 
44897   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44898 
44899   path="$FREETYPE_INCLUDE_PATH"
44900   has_colon=`$ECHO $path | $GREP ^.:`
44901   new_path="$path"
44902   if test "x$has_colon" = x; then
44903     # Not in mixed or Windows style, start by that.
44904     new_path=`cmd //c echo $path`
44905   fi
44906 
44907 
44908   input_path="$new_path"
44909   # Check if we need to convert this using DOS-style short mode. If the path
44910   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44911   # take no chances and rewrite it.
44912   # Note: m4 eats our [], so we need to use [ and ] instead.
44913   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44914   if test "x$has_forbidden_chars" != x; then
44915     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44916     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44917   fi
44918 
44919 
44920   windows_path="$new_path"
44921   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44922     unix_path=`$CYGPATH -u "$windows_path"`
44923     new_path="$unix_path"
44924   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44925     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44926     new_path="$unix_path"
44927   fi
44928 
44929   if test "x$path" != "x$new_path"; then
44930     FREETYPE_INCLUDE_PATH="$new_path"
44931     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44932 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44933   fi
44934 
44935   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44936   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44937 
44938   else
44939     # We're on a posix platform. Hooray! :)
44940     path="$FREETYPE_INCLUDE_PATH"
44941     has_space=`$ECHO "$path" | $GREP " "`
44942     if test "x$has_space" != x; then
44943       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44944 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44945       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44946     fi
44947 
44948     # Use eval to expand a potential ~
44949     eval path="$path"
44950     if test ! -f "$path" && test ! -d "$path"; then
44951       as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44952     fi
44953 
44954     FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44955   fi
44956 
44957       if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then
44958         FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH"
44959       else
44960         FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH"
44961       fi
44962     fi
44963 
44964     if test "x$FREETYPE_LIBS" = x; then
44965 
44966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44967 
44968   # Input might be given as Windows format, start by converting to
44969   # unix format.
44970   path="$FREETYPE_LIB_PATH"
44971   new_path=`$CYGPATH -u "$path"`
44972 
44973   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44974   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44975   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44976   # "foo.exe" is OK but "foo" is an error.
44977   #
44978   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44979   # It is also a way to make sure we got the proper file name for the real test later on.
44980   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44981   if test "x$test_shortpath" = x; then
44982     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44983 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44984     as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5
44985   fi
44986 
44987   # Call helper function which possibly converts this using DOS-style short mode.
44988   # If so, the updated path is stored in $new_path.
44989 
44990   input_path="$new_path"
44991   # Check if we need to convert this using DOS-style short mode. If the path
44992   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44993   # take no chances and rewrite it.
44994   # Note: m4 eats our [], so we need to use [ and ] instead.
44995   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44996   if test "x$has_forbidden_chars" != x; then
44997     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44998     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44999     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45000     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45001       # Going to short mode and back again did indeed matter. Since short mode is
45002       # case insensitive, let's make it lowercase to improve readability.
45003       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45004       # Now convert it back to Unix-stile (cygpath)
45005       input_path=`$CYGPATH -u "$shortmode_path"`
45006       new_path="$input_path"
45007     fi
45008   fi
45009 
45010   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45011   if test "x$test_cygdrive_prefix" = x; then
45012     # As a simple fix, exclude /usr/bin since it's not a real path.
45013     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45014       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45015       # a path prefixed by /cygdrive for fixpath to work.
45016       new_path="$CYGWIN_ROOT_PATH$input_path"
45017     fi
45018   fi
45019 
45020 
45021   if test "x$path" != "x$new_path"; then
45022     FREETYPE_LIB_PATH="$new_path"
45023     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
45024 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45025   fi
45026 
45027   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45028 
45029   path="$FREETYPE_LIB_PATH"
45030   has_colon=`$ECHO $path | $GREP ^.:`
45031   new_path="$path"
45032   if test "x$has_colon" = x; then
45033     # Not in mixed or Windows style, start by that.
45034     new_path=`cmd //c echo $path`
45035   fi
45036 
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     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45047   fi
45048 
45049 
45050   windows_path="$new_path"
45051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45052     unix_path=`$CYGPATH -u "$windows_path"`
45053     new_path="$unix_path"
45054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45056     new_path="$unix_path"
45057   fi
45058 
45059   if test "x$path" != "x$new_path"; then
45060     FREETYPE_LIB_PATH="$new_path"
45061     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
45062 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45063   fi
45064 
45065   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45066   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45067 
45068   else
45069     # We're on a posix platform. Hooray! :)
45070     path="$FREETYPE_LIB_PATH"
45071     has_space=`$ECHO "$path" | $GREP " "`
45072     if test "x$has_space" != x; then
45073       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45074 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45075       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45076     fi
45077 
45078     # Use eval to expand a potential ~
45079     eval path="$path"
45080     if test ! -f "$path" && test ! -d "$path"; then
45081       as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45082     fi
45083 
45084     FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45085   fi
45086 
45087       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45088         FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib"
45089       else
45090         FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype"
45091       fi
45092     fi
45093 
45094     # Try to compile it
45095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5
45096 $as_echo_n "checking if we can compile and link with freetype... " >&6; }
45097     ac_ext=cpp
45098 ac_cpp='$CXXCPP $CPPFLAGS'
45099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45102 
45103     PREV_CXXCFLAGS="$CXXFLAGS"
45104     PREV_LIBS="$LIBS"
45105     PREV_CXX="$CXX"
45106     CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS"
45107     LIBS="$LIBS $FREETYPE_LIBS"
45108     CXX="$FIXPATH $CXX"
45109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45110 /* end confdefs.h.  */
45111 
45112           #include<ft2build.h>
45113           #include FT_FREETYPE_H
45114           int main () {
45115             FT_Init_FreeType(NULL);
45116             return 0;
45117           }
45118 
45119 _ACEOF
45120 if ac_fn_cxx_try_link "$LINENO"; then :
45121 
45122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45123 $as_echo "yes" >&6; }
45124 
45125 else
45126 
45127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45128 $as_echo "no" >&6; }
45129           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5
45130 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;}
45131           { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5
45132 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;}
45133 
45134 
45135   # Print a helpful message on how to acquire the necessary build dependency.
45136   # freetype is the help tag: freetype, cups, pulse, alsa etc
45137   MISSING_DEPENDENCY=freetype
45138 
45139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45140     cygwin_help $MISSING_DEPENDENCY
45141   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45142     msys_help $MISSING_DEPENDENCY
45143   else
45144     PKGHANDLER_COMMAND=
45145 
45146     case $PKGHANDLER in
45147       apt-get)
45148         apt_help     $MISSING_DEPENDENCY ;;
45149       yum)
45150         yum_help     $MISSING_DEPENDENCY ;;
45151       port)
45152         port_help    $MISSING_DEPENDENCY ;;
45153       pkgutil)
45154         pkgutil_help $MISSING_DEPENDENCY ;;
45155       pkgadd)
45156         pkgadd_help  $MISSING_DEPENDENCY ;;
45157     esac
45158 
45159     if test "x$PKGHANDLER_COMMAND" != x; then
45160       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
45161     fi
45162   fi
45163 
45164 
45165           as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5
45166 
45167 
45168 fi
45169 rm -f core conftest.err conftest.$ac_objext \
45170     conftest$ac_exeext conftest.$ac_ext
45171     CXXCFLAGS="$PREV_CXXFLAGS"
45172     LIBS="$PREV_LIBS"
45173     CXX="$PREV_CXX"
45174     ac_ext=cpp
45175 ac_cpp='$CXXCPP $CPPFLAGS'
45176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45179 
45180 
45181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5
45182 $as_echo_n "checking if we should bundle freetype... " >&6; }
45183     if test "x$BUNDLE_FREETYPE" = xyes; then
45184       FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH"
45185     fi
45186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5
45187 $as_echo "$BUNDLE_FREETYPE" >&6; }
45188 
45189   fi # end freetype needed
45190 
45191 
45192 
45193 
45194 
45195 
45196 
45197   ###############################################################################
45198   #
45199   # Check for alsa headers and libraries. Used on Linux/GNU systems.
45200   #
45201 
45202 # Check whether --with-alsa was given.
45203 if test "${with_alsa+set}" = set; then :
45204   withval=$with_alsa;
45205 fi
45206 
45207 
45208 # Check whether --with-alsa-include was given.
45209 if test "${with_alsa_include+set}" = set; then :
45210   withval=$with_alsa_include;
45211 fi
45212 
45213 
45214 # Check whether --with-alsa-lib was given.
45215 if test "${with_alsa_lib+set}" = set; then :
45216   withval=$with_alsa_lib;
45217 fi
45218 
45219 
45220   if test "x$ALSA_NOT_NEEDED" = xyes; then
45221     if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then
45222       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
45223 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
45224     fi
45225     ALSA_CFLAGS=
45226     ALSA_LIBS=
45227   else
45228     ALSA_FOUND=no
45229 
45230     if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then
45231       as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
45232     fi
45233 
45234     if test "x${with_alsa}" != x; then
45235       ALSA_LIBS="-L${with_alsa}/lib -lasound"
45236       ALSA_CFLAGS="-I${with_alsa}/include"
45237       ALSA_FOUND=yes
45238     fi
45239     if test "x${with_alsa_include}" != x; then
45240       ALSA_CFLAGS="-I${with_alsa_include}"
45241       ALSA_FOUND=yes
45242     fi
45243     if test "x${with_alsa_lib}" != x; then
45244       ALSA_LIBS="-L${with_alsa_lib} -lasound"
45245       ALSA_FOUND=yes
45246     fi
45247     if test "x$ALSA_FOUND" = xno; then
45248 
45249 
45250   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
45251     # Source the builddeps file again, to make sure it uses the latest variables!
45252     . $builddepsfile
45253     # Look for a target and build machine specific resource!
45254     eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
45255     if test "x$resource" = x; then
45256       # Ok, lets instead look for a target specific resource
45257       eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}}
45258     fi
45259     if test "x$resource" = x; then
45260       # Ok, lets instead look for a build specific resource
45261       eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
45262     fi
45263     if test "x$resource" = x; then
45264       # Ok, lets instead look for a generic resource
45265       # (The alsa comes from M4 and not the shell, thus no need for eval here.)
45266       resource=${builddep_alsa}
45267     fi
45268     if test "x$resource" != x; then
45269       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
45270 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
45271       # If the resource in the builddeps.conf file is an existing directory,
45272       # for example /java/linux/cups
45273       if test -d ${resource}; then
45274         depdir=${resource}
45275       else
45276 
45277   # alsa is for example mymodule
45278   # $resource is for example libs/general/libmymod_1_2_3.zip
45279   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
45280   # $with_builddeps_dir is for example /localhome/builddeps
45281   # depdir is the name of the variable into which we store the depdir, eg MYMOD
45282   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
45283   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
45284   filename=`basename $resource`
45285   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
45286   filebase=${filename%%.*}
45287   extension=${filename#*.}
45288   installdir=$with_builddeps_dir/$filebase
45289   if test ! -f $installdir/$filename.unpacked; then
45290     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
45291 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
45292     if test ! -d $installdir; then
45293       mkdir -p $installdir
45294     fi
45295     if test ! -d $installdir; then
45296       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
45297     fi
45298     tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
45299     touch $tmpfile
45300     if test ! -f $tmpfile; then
45301       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
45302     fi
45303 
45304   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
45305   # $tmpfile is the local file name for the downloaded file.
45306   VALID_TOOL=no
45307   if test "x$BDEPS_FTP" = xwget; then
45308     VALID_TOOL=yes
45309     wget -O $tmpfile $with_builddeps_server/$resource
45310   fi
45311   if test "x$BDEPS_FTP" = xlftp; then
45312     VALID_TOOL=yes
45313     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
45314   fi
45315   if test "x$BDEPS_FTP" = xftp; then
45316     VALID_TOOL=yes
45317     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
45318     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
45319     FTPUSERPWD=${FTPSERVER%%@*}
45320     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
45321       FTPUSER=${userpwd%%:*}
45322       FTPPWD=${userpwd#*@}
45323       FTPSERVER=${FTPSERVER#*@}
45324     else
45325       FTPUSER=ftp
45326       FTPPWD=ftp
45327     fi
45328     # the "pass" command does not work on some
45329     # ftp clients (read ftp.exe) but if it works,
45330     # passive mode is better!
45331     ( \
45332         echo "user $FTPUSER $FTPPWD"        ; \
45333         echo "pass"                         ; \
45334         echo "bin"                          ; \
45335         echo "get $FTPPATH $tmpfile"              ; \
45336     ) | ftp -in $FTPSERVER
45337   fi
45338   if test "x$VALID_TOOL" != xyes; then
45339     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
45340   fi
45341 
45342     mv $tmpfile $installdir/$filename
45343     if test ! -s $installdir/$filename; then
45344       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
45345     fi
45346     case "$extension" in
45347       zip)  echo "Unzipping $installdir/$filename..."
45348         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
45349         ;;
45350       tar.gz) echo "Untaring $installdir/$filename..."
45351         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
45352         ;;
45353       tgz) echo "Untaring $installdir/$filename..."
45354         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
45355         ;;
45356       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
45357         ;;
45358     esac
45359   fi
45360   if test -f $installdir/$filename.unpacked; then
45361     depdir=$installdir
45362   fi
45363 
45364       fi
45365       # Source the builddeps file again, because in the previous command, the depdir
45366       # was updated to point at the current build dependency install directory.
45367       . $builddepsfile
45368       # Now extract variables from the builddeps.conf files.
45369       theroot=${builddep_alsa_ROOT}
45370       thecflags=${builddep_alsa_CFLAGS}
45371       thelibs=${builddep_alsa_LIBS}
45372       if test "x$depdir" = x; then
45373         as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
45374       fi
45375       ALSA=$depdir
45376       if test "x$theroot" != x; then
45377         ALSA="$theroot"
45378       fi
45379       if test "x$thecflags" != x; then
45380         ALSA_CFLAGS="$thecflags"
45381       fi
45382       if test "x$thelibs" != x; then
45383         ALSA_LIBS="$thelibs"
45384       fi
45385       ALSA_FOUND=yes
45386       else ALSA_FOUND=no
45387 
45388     fi
45389     else ALSA_FOUND=no
45390 
45391   fi
45392 
45393     fi
45394     if test "x$ALSA_FOUND" = xno; then
45395 
45396 pkg_failed=no
45397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
45398 $as_echo_n "checking for ALSA... " >&6; }
45399 
45400 if test -n "$ALSA_CFLAGS"; then
45401     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
45402  elif test -n "$PKG_CONFIG"; then
45403     if test -n "$PKG_CONFIG" && \
45404     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
45405   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
45406   ac_status=$?
45407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45408   test $ac_status = 0; }; then
45409   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
45410 else
45411   pkg_failed=yes
45412 fi
45413  else
45414     pkg_failed=untried
45415 fi
45416 if test -n "$ALSA_LIBS"; then
45417     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
45418  elif test -n "$PKG_CONFIG"; then
45419     if test -n "$PKG_CONFIG" && \
45420     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
45421   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
45422   ac_status=$?
45423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45424   test $ac_status = 0; }; then
45425   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
45426 else
45427   pkg_failed=yes
45428 fi
45429  else
45430     pkg_failed=untried
45431 fi
45432 
45433 
45434 
45435 if test $pkg_failed = yes; then
45436 
45437 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45438         _pkg_short_errors_supported=yes
45439 else
45440         _pkg_short_errors_supported=no
45441 fi
45442         if test $_pkg_short_errors_supported = yes; then
45443                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
45444         else
45445                 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
45446         fi
45447         # Put the nasty error message in config.log where it belongs
45448         echo "$ALSA_PKG_ERRORS" >&5
45449 
45450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45451 $as_echo "no" >&6; }
45452                 ALSA_FOUND=no
45453 elif test $pkg_failed = untried; then
45454         ALSA_FOUND=no
45455 else
45456         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
45457         ALSA_LIBS=$pkg_cv_ALSA_LIBS
45458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45459 $as_echo "yes" >&6; }
45460         ALSA_FOUND=yes
45461 fi
45462     fi
45463     if test "x$ALSA_FOUND" = xno; then
45464       for ac_header in alsa/asoundlib.h
45465 do :
45466   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
45467 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
45468   cat >>confdefs.h <<_ACEOF
45469 #define HAVE_ALSA_ASOUNDLIB_H 1
45470 _ACEOF
45471 
45472             ALSA_FOUND=yes
45473             ALSA_CFLAGS=-Iignoreme
45474             ALSA_LIBS=-lasound
45475             DEFAULT_ALSA=yes
45476 
45477 else
45478   ALSA_FOUND=no
45479 fi
45480 
45481 done
45482 
45483     fi
45484     if test "x$ALSA_FOUND" = xno; then
45485 
45486   # Print a helpful message on how to acquire the necessary build dependency.
45487   # alsa is the help tag: freetype, cups, pulse, alsa etc
45488   MISSING_DEPENDENCY=alsa
45489 
45490   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45491     cygwin_help $MISSING_DEPENDENCY
45492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45493     msys_help $MISSING_DEPENDENCY
45494   else
45495     PKGHANDLER_COMMAND=
45496 
45497     case $PKGHANDLER in
45498       apt-get)
45499         apt_help     $MISSING_DEPENDENCY ;;
45500       yum)
45501         yum_help     $MISSING_DEPENDENCY ;;
45502       port)
45503         port_help    $MISSING_DEPENDENCY ;;
45504       pkgutil)
45505         pkgutil_help $MISSING_DEPENDENCY ;;
45506       pkgadd)
45507         pkgadd_help  $MISSING_DEPENDENCY ;;
45508     esac
45509 
45510     if test "x$PKGHANDLER_COMMAND" != x; then
45511       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
45512     fi
45513   fi
45514 
45515       as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
45516     fi
45517   fi
45518 
45519 
45520 
45521 
45522 
45523 
45524   ###############################################################################
45525   #
45526   # Check for the jpeg library
45527   #
45528 
45529   USE_EXTERNAL_LIBJPEG=true
45530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
45531 $as_echo_n "checking for main in -ljpeg... " >&6; }
45532 if ${ac_cv_lib_jpeg_main+:} false; then :
45533   $as_echo_n "(cached) " >&6
45534 else
45535   ac_check_lib_save_LIBS=$LIBS
45536 LIBS="-ljpeg  $LIBS"
45537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45538 /* end confdefs.h.  */
45539 
45540 
45541 int
45542 main ()
45543 {
45544 return main ();
45545   ;
45546   return 0;
45547 }
45548 _ACEOF
45549 if ac_fn_cxx_try_link "$LINENO"; then :
45550   ac_cv_lib_jpeg_main=yes
45551 else
45552   ac_cv_lib_jpeg_main=no
45553 fi
45554 rm -f core conftest.err conftest.$ac_objext \
45555     conftest$ac_exeext conftest.$ac_ext
45556 LIBS=$ac_check_lib_save_LIBS
45557 fi
45558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
45559 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
45560 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
45561   cat >>confdefs.h <<_ACEOF
45562 #define HAVE_LIBJPEG 1
45563 _ACEOF
45564 
45565   LIBS="-ljpeg $LIBS"
45566 
45567 else
45568    USE_EXTERNAL_LIBJPEG=false
45569       { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
45570 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
45571 
45572 fi
45573 
45574 
45575 
45576   ###############################################################################
45577   #
45578   # Check for the gif library
45579   #
45580 
45581 
45582 # Check whether --with-giflib was given.
45583 if test "${with_giflib+set}" = set; then :
45584   withval=$with_giflib;
45585 fi
45586 
45587 
45588 
45589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
45590 $as_echo_n "checking for which giflib to use... " >&6; }
45591 
45592   # default is bundled
45593   DEFAULT_GIFLIB=bundled
45594 
45595   #
45596   # if user didn't specify, use DEFAULT_GIFLIB
45597   #
45598   if test "x${with_giflib}" = "x"; then
45599     with_giflib=${DEFAULT_GIFLIB}
45600   fi
45601 
45602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
45603 $as_echo "${with_giflib}" >&6; }
45604 
45605   if test "x${with_giflib}" = "xbundled"; then
45606     USE_EXTERNAL_LIBGIF=false
45607   elif test "x${with_giflib}" = "xsystem"; then
45608     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
45609 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
45610 
45611 else
45612    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
45613 fi
45614 
45615 
45616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
45617 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
45618 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
45619   $as_echo_n "(cached) " >&6
45620 else
45621   ac_check_lib_save_LIBS=$LIBS
45622 LIBS="-lgif  $LIBS"
45623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45624 /* end confdefs.h.  */
45625 
45626 /* Override any GCC internal prototype to avoid an error.
45627    Use char because int might match the return type of a GCC
45628    builtin and then its argument prototype would still apply.  */
45629 #ifdef __cplusplus
45630 extern "C"
45631 #endif
45632 char DGifGetCode ();
45633 int
45634 main ()
45635 {
45636 return DGifGetCode ();
45637   ;
45638   return 0;
45639 }
45640 _ACEOF
45641 if ac_fn_cxx_try_link "$LINENO"; then :
45642   ac_cv_lib_gif_DGifGetCode=yes
45643 else
45644   ac_cv_lib_gif_DGifGetCode=no
45645 fi
45646 rm -f core conftest.err conftest.$ac_objext \
45647     conftest$ac_exeext conftest.$ac_ext
45648 LIBS=$ac_check_lib_save_LIBS
45649 fi
45650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
45651 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
45652 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
45653   cat >>confdefs.h <<_ACEOF
45654 #define HAVE_LIBGIF 1
45655 _ACEOF
45656 
45657   LIBS="-lgif $LIBS"
45658 
45659 else
45660    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
45661 fi
45662 
45663 
45664     USE_EXTERNAL_LIBGIF=true
45665   else
45666     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
45667   fi
45668 
45669 
45670   ###############################################################################
45671   #
45672   # Check for the zlib library
45673   #
45674 
45675 
45676 # Check whether --with-zlib was given.
45677 if test "${with_zlib+set}" = set; then :
45678   withval=$with_zlib;
45679 fi
45680 
45681 
45682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
45683 $as_echo_n "checking for compress in -lz... " >&6; }
45684 if ${ac_cv_lib_z_compress+:} false; then :
45685   $as_echo_n "(cached) " >&6
45686 else
45687   ac_check_lib_save_LIBS=$LIBS
45688 LIBS="-lz  $LIBS"
45689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45690 /* end confdefs.h.  */
45691 
45692 /* Override any GCC internal prototype to avoid an error.
45693    Use char because int might match the return type of a GCC
45694    builtin and then its argument prototype would still apply.  */
45695 #ifdef __cplusplus
45696 extern "C"
45697 #endif
45698 char compress ();
45699 int
45700 main ()
45701 {
45702 return compress ();
45703   ;
45704   return 0;
45705 }
45706 _ACEOF
45707 if ac_fn_cxx_try_link "$LINENO"; then :
45708   ac_cv_lib_z_compress=yes
45709 else
45710   ac_cv_lib_z_compress=no
45711 fi
45712 rm -f core conftest.err conftest.$ac_objext \
45713     conftest$ac_exeext conftest.$ac_ext
45714 LIBS=$ac_check_lib_save_LIBS
45715 fi
45716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
45717 $as_echo "$ac_cv_lib_z_compress" >&6; }
45718 if test "x$ac_cv_lib_z_compress" = xyes; then :
45719    ZLIB_FOUND=yes
45720 else
45721    ZLIB_FOUND=no
45722 fi
45723 
45724 
45725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
45726 $as_echo_n "checking for which zlib to use... " >&6; }
45727 
45728   DEFAULT_ZLIB=bundled
45729   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
45730     #
45731     # On macosx default is system...on others default is
45732     #
45733     DEFAULT_ZLIB=system
45734   fi
45735 
45736   if test "x${ZLIB_FOUND}" != "xyes"; then
45737     #
45738     # If we don't find any system...set default to bundled
45739     #
45740     DEFAULT_ZLIB=bundled
45741   fi
45742 
45743   #
45744   # If user didn't specify, use DEFAULT_ZLIB
45745   #
45746   if test "x${with_zlib}" = "x"; then
45747     with_zlib=${DEFAULT_ZLIB}
45748   fi
45749 
45750   if test "x${with_zlib}" = "xbundled"; then
45751     USE_EXTERNAL_LIBZ=false
45752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
45753 $as_echo "bundled" >&6; }
45754   elif test "x${with_zlib}" = "xsystem"; then
45755     if test "x${ZLIB_FOUND}" = "xyes"; then
45756       USE_EXTERNAL_LIBZ=true
45757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
45758 $as_echo "system" >&6; }
45759     else
45760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
45761 $as_echo "system not found" >&6; }
45762       as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5
45763     fi
45764   else
45765     as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5
45766   fi
45767 
45768 
45769 
45770   ###############################################################################
45771   LIBZIP_CAN_USE_MMAP=true
45772 
45773 
45774 
45775   ###############################################################################
45776   #
45777   # Check if altzone exists in time.h
45778   #
45779 
45780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45781 /* end confdefs.h.  */
45782 #include <time.h>
45783 int
45784 main ()
45785 {
45786 return (int)altzone;
45787   ;
45788   return 0;
45789 }
45790 _ACEOF
45791 if ac_fn_cxx_try_link "$LINENO"; then :
45792   has_altzone=yes
45793 else
45794   has_altzone=no
45795 fi
45796 rm -f core conftest.err conftest.$ac_objext \
45797     conftest$ac_exeext conftest.$ac_ext
45798   if test "x$has_altzone" = xyes; then
45799 
45800 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
45801 
45802   fi
45803 
45804   ###############################################################################
45805   #
45806   # Check the maths library
45807   #
45808 
45809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
45810 $as_echo_n "checking for cos in -lm... " >&6; }
45811 if ${ac_cv_lib_m_cos+:} false; then :
45812   $as_echo_n "(cached) " >&6
45813 else
45814   ac_check_lib_save_LIBS=$LIBS
45815 LIBS="-lm  $LIBS"
45816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45817 /* end confdefs.h.  */
45818 
45819 /* Override any GCC internal prototype to avoid an error.
45820    Use char because int might match the return type of a GCC
45821    builtin and then its argument prototype would still apply.  */
45822 #ifdef __cplusplus
45823 extern "C"
45824 #endif
45825 char cos ();
45826 int
45827 main ()
45828 {
45829 return cos ();
45830   ;
45831   return 0;
45832 }
45833 _ACEOF
45834 if ac_fn_cxx_try_link "$LINENO"; then :
45835   ac_cv_lib_m_cos=yes
45836 else
45837   ac_cv_lib_m_cos=no
45838 fi
45839 rm -f core conftest.err conftest.$ac_objext \
45840     conftest$ac_exeext conftest.$ac_ext
45841 LIBS=$ac_check_lib_save_LIBS
45842 fi
45843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
45844 $as_echo "$ac_cv_lib_m_cos" >&6; }
45845 if test "x$ac_cv_lib_m_cos" = xyes; then :
45846   cat >>confdefs.h <<_ACEOF
45847 #define HAVE_LIBM 1
45848 _ACEOF
45849 
45850   LIBS="-lm $LIBS"
45851 
45852 else
45853 
45854         { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
45855 $as_echo "$as_me: Maths library was not found" >&6;}
45856 
45857 
45858 fi
45859 
45860 
45861 
45862   ###############################################################################
45863   #
45864   # Check for libdl.so
45865 
45866   save_LIBS="$LIBS"
45867   LIBS=""
45868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
45869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
45870 if ${ac_cv_lib_dl_dlopen+:} false; then :
45871   $as_echo_n "(cached) " >&6
45872 else
45873   ac_check_lib_save_LIBS=$LIBS
45874 LIBS="-ldl  $LIBS"
45875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45876 /* end confdefs.h.  */
45877 
45878 /* Override any GCC internal prototype to avoid an error.
45879    Use char because int might match the return type of a GCC
45880    builtin and then its argument prototype would still apply.  */
45881 #ifdef __cplusplus
45882 extern "C"
45883 #endif
45884 char dlopen ();
45885 int
45886 main ()
45887 {
45888 return dlopen ();
45889   ;
45890   return 0;
45891 }
45892 _ACEOF
45893 if ac_fn_cxx_try_link "$LINENO"; then :
45894   ac_cv_lib_dl_dlopen=yes
45895 else
45896   ac_cv_lib_dl_dlopen=no
45897 fi
45898 rm -f core conftest.err conftest.$ac_objext \
45899     conftest$ac_exeext conftest.$ac_ext
45900 LIBS=$ac_check_lib_save_LIBS
45901 fi
45902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
45903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
45904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
45905   cat >>confdefs.h <<_ACEOF
45906 #define HAVE_LIBDL 1
45907 _ACEOF
45908 
45909   LIBS="-ldl $LIBS"
45910 
45911 fi
45912 
45913   LIBDL="$LIBS"
45914 
45915   LIBS="$save_LIBS"
45916 
45917 
45918   ###############################################################################
45919   #
45920   # statically link libstdc++ before C++ ABI is stablized on Linux unless
45921   # dynamic build is configured on command line.
45922   #
45923 
45924 # Check whether --with-stdc++lib was given.
45925 if test "${with_stdc__lib+set}" = set; then :
45926   withval=$with_stdc__lib;
45927         if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \
45928                 && test "x$with_stdc__lib" != xdefault; then
45929           as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5
45930         fi
45931 
45932 else
45933   with_stdc__lib=default
45934 
45935 fi
45936 
45937 
45938   if test "x$OPENJDK_TARGET_OS" = xlinux; then
45939     # Test if -lstdc++ works.
45940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
45941 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
45942     ac_ext=cpp
45943 ac_cpp='$CXXCPP $CPPFLAGS'
45944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45947 
45948     OLD_CXXFLAGS="$CXXFLAGS"
45949     CXXFLAGS="$CXXFLAGS -lstdc++"
45950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45951 /* end confdefs.h.  */
45952 
45953 int
45954 main ()
45955 {
45956 return 0;
45957   ;
45958   return 0;
45959 }
45960 _ACEOF
45961 if ac_fn_cxx_try_link "$LINENO"; then :
45962   has_dynamic_libstdcxx=yes
45963 else
45964   has_dynamic_libstdcxx=no
45965 fi
45966 rm -f core conftest.err conftest.$ac_objext \
45967     conftest$ac_exeext conftest.$ac_ext
45968     CXXFLAGS="$OLD_CXXFLAGS"
45969     ac_ext=cpp
45970 ac_cpp='$CXXCPP $CPPFLAGS'
45971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45974 
45975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
45976 $as_echo "$has_dynamic_libstdcxx" >&6; }
45977 
45978     # Test if stdc++ can be linked statically.
45979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
45980 $as_echo_n "checking if static link of stdc++ is possible... " >&6; }
45981     STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
45982     ac_ext=cpp
45983 ac_cpp='$CXXCPP $CPPFLAGS'
45984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45987 
45988     OLD_LIBS="$LIBS"
45989     OLD_CXX="$CXX"
45990     LIBS="$STATIC_STDCXX_FLAGS"
45991     CXX="$CC"
45992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45993 /* end confdefs.h.  */
45994 
45995 int
45996 main ()
45997 {
45998 return 0;
45999   ;
46000   return 0;
46001 }
46002 _ACEOF
46003 if ac_fn_cxx_try_link "$LINENO"; then :
46004   has_static_libstdcxx=yes
46005 else
46006   has_static_libstdcxx=no
46007 fi
46008 rm -f core conftest.err conftest.$ac_objext \
46009     conftest$ac_exeext conftest.$ac_ext
46010     LIBS="$OLD_LIBS"
46011     CXX="$OLD_CXX"
46012     ac_ext=cpp
46013 ac_cpp='$CXXCPP $CPPFLAGS'
46014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46017 
46018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
46019 $as_echo "$has_static_libstdcxx" >&6; }
46020 
46021     if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
46022       as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5
46023     fi
46024 
46025     if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
46026       as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5
46027     fi
46028 
46029     if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
46030       as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5
46031     fi
46032 
46033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
46034 $as_echo_n "checking how to link with libstdc++... " >&6; }
46035     # If dynamic was requested, it's available since it would fail above otherwise.
46036     # If dynamic wasn't requested, go with static unless it isn't available.
46037     if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
46038       LIBCXX="$LIBCXX -lstdc++"
46039       LDCXX="$CXX"
46040       STATIC_CXX_SETTING="STATIC_CXX=false"
46041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
46042 $as_echo "dynamic" >&6; }
46043     else
46044       LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
46045       LDCXX="$CC"
46046       STATIC_CXX_SETTING="STATIC_CXX=true"
46047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
46048 $as_echo "static" >&6; }
46049     fi
46050   fi
46051 
46052 
46053   if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
46054     # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS
46055 
46056 pkg_failed=no
46057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
46058 $as_echo_n "checking for LIBFFI... " >&6; }
46059 
46060 if test -n "$LIBFFI_CFLAGS"; then
46061     pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
46062  elif test -n "$PKG_CONFIG"; then
46063     if test -n "$PKG_CONFIG" && \
46064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
46065   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
46066   ac_status=$?
46067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46068   test $ac_status = 0; }; then
46069   pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
46070 else
46071   pkg_failed=yes
46072 fi
46073  else
46074     pkg_failed=untried
46075 fi
46076 if test -n "$LIBFFI_LIBS"; then
46077     pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
46078  elif test -n "$PKG_CONFIG"; then
46079     if test -n "$PKG_CONFIG" && \
46080     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
46081   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
46082   ac_status=$?
46083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46084   test $ac_status = 0; }; then
46085   pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
46086 else
46087   pkg_failed=yes
46088 fi
46089  else
46090     pkg_failed=untried
46091 fi
46092 
46093 
46094 
46095 if test $pkg_failed = yes; then
46096 
46097 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46098         _pkg_short_errors_supported=yes
46099 else
46100         _pkg_short_errors_supported=no
46101 fi
46102         if test $_pkg_short_errors_supported = yes; then
46103                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
46104         else
46105                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
46106         fi
46107         # Put the nasty error message in config.log where it belongs
46108         echo "$LIBFFI_PKG_ERRORS" >&5
46109 
46110         as_fn_error $? "Package requirements (libffi) were not met:
46111 
46112 $LIBFFI_PKG_ERRORS
46113 
46114 Consider adjusting the PKG_CONFIG_PATH environment variable if you
46115 installed software in a non-standard prefix.
46116 
46117 Alternatively, you may set the environment variables LIBFFI_CFLAGS
46118 and LIBFFI_LIBS to avoid the need to call pkg-config.
46119 See the pkg-config man page for more details.
46120 " "$LINENO" 5
46121 elif test $pkg_failed = untried; then
46122         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46124 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
46125 is in your PATH or set the PKG_CONFIG environment variable to the full
46126 path to pkg-config.
46127 
46128 Alternatively, you may set the environment variables LIBFFI_CFLAGS
46129 and LIBFFI_LIBS to avoid the need to call pkg-config.
46130 See the pkg-config man page for more details.
46131 
46132 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
46133 See \`config.log' for more details" "$LINENO" 5; }
46134 else
46135         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
46136         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
46137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46138 $as_echo "yes" >&6; }
46139         :
46140 fi
46141 
46142   fi
46143 
46144   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
46145     # Extract the first word of "llvm-config", so it can be a program name with args.
46146 set dummy llvm-config; ac_word=$2
46147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46148 $as_echo_n "checking for $ac_word... " >&6; }
46149 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
46150   $as_echo_n "(cached) " >&6
46151 else
46152   if test -n "$LLVM_CONFIG"; then
46153   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
46154 else
46155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46156 for as_dir in $PATH
46157 do
46158   IFS=$as_save_IFS
46159   test -z "$as_dir" && as_dir=.
46160     for ac_exec_ext in '' $ac_executable_extensions; do
46161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46162     ac_cv_prog_LLVM_CONFIG="llvm-config"
46163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46164     break 2
46165   fi
46166 done
46167   done
46168 IFS=$as_save_IFS
46169 
46170 fi
46171 fi
46172 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
46173 if test -n "$LLVM_CONFIG"; then
46174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
46175 $as_echo "$LLVM_CONFIG" >&6; }
46176 else
46177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46178 $as_echo "no" >&6; }
46179 fi
46180 
46181 
46182 
46183     if test "x$LLVM_CONFIG" != xllvm-config; then
46184       as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5
46185     fi
46186 
46187     llvm_components="jit mcjit engine nativecodegen native"
46188     unset LLVM_CFLAGS
46189     for flag in $("$LLVM_CONFIG" --cxxflags); do
46190       if echo "${flag}" | grep -q '^-[ID]'; then
46191         if test "${flag}" != "-D_DEBUG" ; then
46192           if test "${LLVM_CFLAGS}" != "" ; then
46193             LLVM_CFLAGS="${LLVM_CFLAGS} "
46194           fi
46195           LLVM_CFLAGS="${LLVM_CFLAGS}${flag}"
46196         fi
46197       fi
46198     done
46199     llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//')
46200     LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}"
46201 
46202     unset LLVM_LDFLAGS
46203     for flag in $("${LLVM_CONFIG}" --ldflags); do
46204       if echo "${flag}" | grep -q '^-L'; then
46205         if test "${LLVM_LDFLAGS}" != ""; then
46206           LLVM_LDFLAGS="${LLVM_LDFLAGS} "
46207         fi
46208         LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}"
46209       fi
46210     done
46211 
46212     unset LLVM_LIBS
46213     for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do
46214       if echo "${flag}" | grep -q '^-l'; then
46215         if test "${LLVM_LIBS}" != ""; then
46216           LLVM_LIBS="${LLVM_LIBS} "
46217         fi
46218         LLVM_LIBS="${LLVM_LIBS}${flag}"
46219       fi
46220     done
46221 
46222 
46223 
46224 
46225   fi
46226 
46227   # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
46228   if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then
46229     LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
46230   fi
46231 
46232   # TODO better (platform agnostic) test
46233   if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then
46234     LIBCXX="-lstdc++"
46235   fi
46236 
46237 
46238 
46239 
46240 
46241 ###############################################################################
46242 #
46243 # We need to do some final tweaking, when everything else is done.
46244 #
46245 ###############################################################################
46246 
46247 
46248   HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
46249 
46250 
46251   # The name of the Service Agent jar.
46252   SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
46253   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
46254     SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
46255   fi
46256 
46257 
46258 
46259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5
46260 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; }
46261 
46262     if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then
46263       ENABLE_INTREE_EC=yes
46264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46265 $as_echo "yes" >&6; }
46266     else
46267       ENABLE_INTREE_EC=no
46268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46269 $as_echo "no" >&6; }
46270     fi
46271 
46272 
46273 
46274 
46275 ###############################################################################
46276 #
46277 # Configure parts of the build that only affect the build performance,
46278 # not the result.
46279 #
46280 ###############################################################################
46281 
46282 
46283   # How many cores do we have on this build system?
46284 
46285 # Check whether --with-num-cores was given.
46286 if test "${with_num_cores+set}" = set; then :
46287   withval=$with_num_cores;
46288 fi
46289 
46290   if test "x$with_num_cores" = x; then
46291     # The number of cores were not specified, try to probe them.
46292 
46293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
46294 $as_echo_n "checking for number of cores... " >&6; }
46295   NUM_CORES=1
46296   FOUND_CORES=no
46297 
46298   if test -f /proc/cpuinfo; then
46299     # Looks like a Linux (or cygwin) system
46300     NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
46301     FOUND_CORES=yes
46302   elif test -x /usr/sbin/psrinfo; then
46303     # Looks like a Solaris system
46304     NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
46305     FOUND_CORES=yes
46306   elif test -x /usr/sbin/system_profiler; then
46307     # Looks like a MacOSX system
46308     NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
46309     FOUND_CORES=yes
46310   elif test "x$OPENJDK_BUILD_OS" = xaix ; then
46311     NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'`
46312     FOUND_CORES=yes
46313   elif test -n "$NUMBER_OF_PROCESSORS"; then
46314     # On windows, look in the env
46315     NUM_CORES=$NUMBER_OF_PROCESSORS
46316     FOUND_CORES=yes
46317   fi
46318 
46319   if test "x$FOUND_CORES" = xyes; then
46320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
46321 $as_echo "$NUM_CORES" >&6; }
46322   else
46323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
46324 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
46325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
46326 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
46327   fi
46328 
46329   else
46330     NUM_CORES=$with_num_cores
46331   fi
46332 
46333 
46334 
46335   # How much memory do we have on this build system?
46336 
46337 # Check whether --with-memory-size was given.
46338 if test "${with_memory_size+set}" = set; then :
46339   withval=$with_memory_size;
46340 fi
46341 
46342   if test "x$with_memory_size" = x; then
46343     # The memory size was not specified, try to probe it.
46344 
46345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
46346 $as_echo_n "checking for memory size... " >&6; }
46347   # Default to 1024 MB
46348   MEMORY_SIZE=1024
46349   FOUND_MEM=no
46350 
46351   if test -f /proc/meminfo; then
46352     # Looks like a Linux (or cygwin) system
46353     MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
46354     MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
46355     FOUND_MEM=yes
46356   elif test -x /usr/sbin/prtconf; then
46357     # Looks like a Solaris or AIX system
46358     MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'`
46359     FOUND_MEM=yes
46360   elif test -x /usr/sbin/system_profiler; then
46361     # Looks like a MacOSX system
46362     MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
46363     MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
46364     FOUND_MEM=yes
46365   elif test "x$OPENJDK_BUILD_OS" = xwindows; then
46366     # Windows, but without cygwin
46367     MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
46368     MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
46369     FOUND_MEM=yes
46370   fi
46371 
46372   if test "x$FOUND_MEM" = xyes; then
46373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
46374 $as_echo "$MEMORY_SIZE MB" >&6; }
46375   else
46376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
46377 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
46378     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5
46379 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;}
46380   fi
46381 
46382   else
46383     MEMORY_SIZE=$with_memory_size
46384   fi
46385 
46386 
46387 
46388   # Provide a decent default number of parallel jobs for make depending on
46389   # number of cores, amount of memory and machine architecture.
46390 
46391 # Check whether --with-jobs was given.
46392 if test "${with_jobs+set}" = set; then :
46393   withval=$with_jobs;
46394 fi
46395 
46396   if test "x$with_jobs" = x; then
46397     # Number of jobs was not specified, calculate.
46398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5
46399 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; }
46400     # Approximate memory in GB, rounding up a bit.
46401     memory_gb=`expr $MEMORY_SIZE / 1100`
46402     # Pick the lowest of memory in gb and number of cores.
46403     if test "$memory_gb" -lt "$NUM_CORES"; then
46404       JOBS="$memory_gb"
46405     else
46406       JOBS="$NUM_CORES"
46407       # On bigger machines, leave some room for other processes to run
46408       if test "$JOBS" -gt "4"; then
46409         JOBS=`expr $JOBS '*' 90 / 100`
46410       fi
46411     fi
46412     # Cap number of jobs to 16
46413     if test "$JOBS" -gt "16"; then
46414       JOBS=16
46415     fi
46416     if test "$JOBS" -eq "0"; then
46417       JOBS=1
46418     fi
46419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5
46420 $as_echo "$JOBS" >&6; }
46421   else
46422     JOBS=$with_jobs
46423   fi
46424 
46425 
46426 
46427 # Setup smart javac (after cores and memory have been setup)
46428 
46429 
46430 # Check whether --with-sjavac-server-java was given.
46431 if test "${with_sjavac_server_java+set}" = set; then :
46432   withval=$with_sjavac_server_java;
46433 fi
46434 
46435 
46436   if test "x$with_sjavac_server_java" != x; then
46437     SJAVAC_SERVER_JAVA="$with_sjavac_server_java"
46438     FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""`
46439     if test "x$FOUND_VERSION" = x; then
46440       as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5
46441     fi
46442   else
46443     SJAVAC_SERVER_JAVA=""
46444     # Hotspot specific options.
46445 
46446   $ECHO "Check if jvm arg is ok: -verbosegc" >&5
46447   $ECHO "Command: $JAVA -verbosegc -version" >&5
46448   OUTPUT=`$JAVA -verbosegc -version 2>&1`
46449   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46450   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46451   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46452     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc"
46453     JVM_ARG_OK=true
46454   else
46455     $ECHO "Arg failed:" >&5
46456     $ECHO "$OUTPUT" >&5
46457     JVM_ARG_OK=false
46458   fi
46459 
46460     # JRockit specific options.
46461 
46462   $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5
46463   $ECHO "Command: $JAVA -Xverbose:gc -version" >&5
46464   OUTPUT=`$JAVA -Xverbose:gc -version 2>&1`
46465   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46466   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46467   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46468     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc"
46469     JVM_ARG_OK=true
46470   else
46471     $ECHO "Arg failed:" >&5
46472     $ECHO "$OUTPUT" >&5
46473     JVM_ARG_OK=false
46474   fi
46475 
46476     SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA"
46477   fi
46478 
46479 
46480   if test "$MEMORY_SIZE" -gt "2500"; then
46481 
46482   $ECHO "Check if jvm arg is ok: -d64" >&5
46483   $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5
46484   OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1`
46485   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46486   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46487   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46488     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64"
46489     JVM_ARG_OK=true
46490   else
46491     $ECHO "Arg failed:" >&5
46492     $ECHO "$OUTPUT" >&5
46493     JVM_ARG_OK=false
46494   fi
46495 
46496     if test "$JVM_ARG_OK" = true; then
46497       JVM_64BIT=true
46498       JVM_ARG_OK=false
46499     fi
46500   fi
46501 
46502   if test "$JVM_64BIT" = true; then
46503     if test "$MEMORY_SIZE" -gt "17000"; then
46504 
46505   $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5
46506   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5
46507   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1`
46508   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46509   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46510   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46511     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G"
46512     JVM_ARG_OK=true
46513   else
46514     $ECHO "Arg failed:" >&5
46515     $ECHO "$OUTPUT" >&5
46516     JVM_ARG_OK=false
46517   fi
46518 
46519     fi
46520     if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then
46521 
46522   $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5
46523   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5
46524   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1`
46525   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46526   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46527   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46528     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G"
46529     JVM_ARG_OK=true
46530   else
46531     $ECHO "Arg failed:" >&5
46532     $ECHO "$OUTPUT" >&5
46533     JVM_ARG_OK=false
46534   fi
46535 
46536     fi
46537     if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then
46538 
46539   $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5
46540   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5
46541   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1`
46542   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46543   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46544   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46545     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G"
46546     JVM_ARG_OK=true
46547   else
46548     $ECHO "Arg failed:" >&5
46549     $ECHO "$OUTPUT" >&5
46550     JVM_ARG_OK=false
46551   fi
46552 
46553     fi
46554     if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then
46555 
46556   $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5
46557   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5
46558   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1`
46559   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46560   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46561   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46562     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M"
46563     JVM_ARG_OK=true
46564   else
46565     $ECHO "Arg failed:" >&5
46566     $ECHO "$OUTPUT" >&5
46567     JVM_ARG_OK=false
46568   fi
46569 
46570     fi
46571   fi
46572   if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then
46573 
46574   $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5
46575   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5
46576   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1`
46577   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46578   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46579   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46580     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M"
46581     JVM_ARG_OK=true
46582   else
46583     $ECHO "Arg failed:" >&5
46584     $ECHO "$OUTPUT" >&5
46585     JVM_ARG_OK=false
46586   fi
46587 
46588   fi
46589   if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then
46590 
46591   $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5
46592   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5
46593   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1`
46594   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46595   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46596   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46597     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M"
46598     JVM_ARG_OK=true
46599   else
46600     $ECHO "Arg failed:" >&5
46601     $ECHO "$OUTPUT" >&5
46602     JVM_ARG_OK=false
46603   fi
46604 
46605   fi
46606   if test "$JVM_ARG_OK" = false; then
46607 
46608   $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5
46609   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5
46610   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1`
46611   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
46612   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
46613   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
46614     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M"
46615     JVM_ARG_OK=true
46616   else
46617     $ECHO "Arg failed:" >&5
46618     $ECHO "$OUTPUT" >&5
46619     JVM_ARG_OK=false
46620   fi
46621 
46622   fi
46623 
46624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
46625 $as_echo_n "checking whether to use sjavac... " >&6; }
46626   # Check whether --enable-sjavac was given.
46627 if test "${enable_sjavac+set}" = set; then :
46628   enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
46629 else
46630   ENABLE_SJAVAC='no'
46631 fi
46632 
46633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
46634 $as_echo "$ENABLE_SJAVAC" >&6; }
46635 
46636 
46637   if test "x$ENABLE_SJAVAC" = xyes; then
46638     SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers"
46639   else
46640     SJAVAC_SERVER_DIR=
46641   fi
46642 
46643 
46644 
46645 # Can the C/C++ compiler use precompiled headers?
46646 
46647 
46648   ###############################################################################
46649   #
46650   # Can the C/C++ compiler use precompiled headers?
46651   #
46652   # Check whether --enable-precompiled-headers was given.
46653 if test "${enable_precompiled_headers+set}" = set; then :
46654   enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers}
46655 else
46656   ENABLE_PRECOMPH=yes
46657 fi
46658 
46659 
46660   USE_PRECOMPILED_HEADER=1
46661   if test "x$ENABLE_PRECOMPH" = xno; then
46662     USE_PRECOMPILED_HEADER=0
46663   fi
46664 
46665   if test "x$ENABLE_PRECOMPH" = xyes; then
46666     # Check that the compiler actually supports precomp headers.
46667     if test "x$GCC" = xyes; then
46668       { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
46669 $as_echo_n "checking that precompiled headers work... " >&6; }
46670       echo "int alfa();" > conftest.h
46671       $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5
46672       if test ! -f conftest.hpp.gch; then
46673         USE_PRECOMPILED_HEADER=0
46674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46675 $as_echo "no" >&6; }
46676       else
46677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46678 $as_echo "yes" >&6; }
46679       fi
46680       rm -f conftest.h conftest.hpp.gch
46681     fi
46682   fi
46683 
46684 
46685 
46686 
46687 # Setup use of ccache, if available
46688 
46689   # Check whether --enable-ccache was given.
46690 if test "${enable_ccache+set}" = set; then :
46691   enableval=$enable_ccache;
46692 fi
46693 
46694 
46695   CCACHE=
46696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
46697 $as_echo_n "checking is ccache enabled... " >&6; }
46698   ENABLE_CCACHE=$enable_ccache
46699   if test "x$enable_ccache" = xyes; then
46700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46701 $as_echo "yes" >&6; }
46702     OLD_PATH="$PATH"
46703     if test "x$TOOLS_DIR" != x; then
46704       PATH=$TOOLS_DIR:$PATH
46705     fi
46706 
46707 
46708 
46709   # Publish this variable in the help.
46710 
46711 
46712   if test "x$CCACHE" = x; then
46713     # The variable is not set by user, try to locate tool using the code snippet
46714     for ac_prog in ccache
46715 do
46716   # Extract the first word of "$ac_prog", so it can be a program name with args.
46717 set dummy $ac_prog; ac_word=$2
46718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46719 $as_echo_n "checking for $ac_word... " >&6; }
46720 if ${ac_cv_path_CCACHE+:} false; then :
46721   $as_echo_n "(cached) " >&6
46722 else
46723   case $CCACHE in
46724   [\\/]* | ?:[\\/]*)
46725   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
46726   ;;
46727   *)
46728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46729 for as_dir in $PATH
46730 do
46731   IFS=$as_save_IFS
46732   test -z "$as_dir" && as_dir=.
46733     for ac_exec_ext in '' $ac_executable_extensions; do
46734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46735     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
46736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46737     break 2
46738   fi
46739 done
46740   done
46741 IFS=$as_save_IFS
46742 
46743   ;;
46744 esac
46745 fi
46746 CCACHE=$ac_cv_path_CCACHE
46747 if test -n "$CCACHE"; then
46748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
46749 $as_echo "$CCACHE" >&6; }
46750 else
46751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46752 $as_echo "no" >&6; }
46753 fi
46754 
46755 
46756   test -n "$CCACHE" && break
46757 done
46758 
46759   else
46760     # The variable is set, but is it from the command line or the environment?
46761 
46762     # Try to remove the string !CCACHE! from our list.
46763     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/}
46764     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
46765       # If it failed, the variable was not from the command line. Ignore it,
46766       # but warn the user (except for BASH, which is always set by the calling BASH).
46767       if test "xCCACHE" != xBASH; then
46768         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5
46769 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;}
46770       fi
46771       # Try to locate tool using the code snippet
46772       for ac_prog in ccache
46773 do
46774   # Extract the first word of "$ac_prog", so it can be a program name with args.
46775 set dummy $ac_prog; ac_word=$2
46776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46777 $as_echo_n "checking for $ac_word... " >&6; }
46778 if ${ac_cv_path_CCACHE+:} false; then :
46779   $as_echo_n "(cached) " >&6
46780 else
46781   case $CCACHE in
46782   [\\/]* | ?:[\\/]*)
46783   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
46784   ;;
46785   *)
46786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46787 for as_dir in $PATH
46788 do
46789   IFS=$as_save_IFS
46790   test -z "$as_dir" && as_dir=.
46791     for ac_exec_ext in '' $ac_executable_extensions; do
46792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46793     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
46794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46795     break 2
46796   fi
46797 done
46798   done
46799 IFS=$as_save_IFS
46800 
46801   ;;
46802 esac
46803 fi
46804 CCACHE=$ac_cv_path_CCACHE
46805 if test -n "$CCACHE"; then
46806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
46807 $as_echo "$CCACHE" >&6; }
46808 else
46809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46810 $as_echo "no" >&6; }
46811 fi
46812 
46813 
46814   test -n "$CCACHE" && break
46815 done
46816 
46817     else
46818       # If it succeeded, then it was overridden by the user. We will use it
46819       # for the tool.
46820 
46821       # First remove it from the list of overridden variables, so we can test
46822       # for unknown variables in the end.
46823       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
46824 
46825       # Check if the provided tool contains a complete path.
46826       tool_specified="$CCACHE"
46827       tool_basename="${tool_specified##*/}"
46828       if test "x$tool_basename" = "x$tool_specified"; then
46829         # A command without a complete path is provided, search $PATH.
46830         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5
46831 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;}
46832         # Extract the first word of "$tool_basename", so it can be a program name with args.
46833 set dummy $tool_basename; ac_word=$2
46834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46835 $as_echo_n "checking for $ac_word... " >&6; }
46836 if ${ac_cv_path_CCACHE+:} false; then :
46837   $as_echo_n "(cached) " >&6
46838 else
46839   case $CCACHE in
46840   [\\/]* | ?:[\\/]*)
46841   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
46842   ;;
46843   *)
46844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46845 for as_dir in $PATH
46846 do
46847   IFS=$as_save_IFS
46848   test -z "$as_dir" && as_dir=.
46849     for ac_exec_ext in '' $ac_executable_extensions; do
46850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46851     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
46852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46853     break 2
46854   fi
46855 done
46856   done
46857 IFS=$as_save_IFS
46858 
46859   ;;
46860 esac
46861 fi
46862 CCACHE=$ac_cv_path_CCACHE
46863 if test -n "$CCACHE"; then
46864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
46865 $as_echo "$CCACHE" >&6; }
46866 else
46867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46868 $as_echo "no" >&6; }
46869 fi
46870 
46871 
46872         if test "x$CCACHE" = x; then
46873           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
46874         fi
46875       else
46876         # Otherwise we believe it is a complete path. Use it as it is.
46877         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5
46878 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;}
46879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5
46880 $as_echo_n "checking for CCACHE... " >&6; }
46881         if test ! -x "$tool_specified"; then
46882           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
46883 $as_echo "not found" >&6; }
46884           as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5
46885         fi
46886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
46887 $as_echo "$tool_specified" >&6; }
46888       fi
46889     fi
46890   fi
46891 
46892 
46893 
46894   if test "x$CCACHE" = x; then
46895     as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5
46896   fi
46897 
46898 
46899     CCACHE_STATUS="enabled"
46900     PATH="$OLD_PATH"
46901   elif test "x$enable_ccache" = xno; then
46902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
46903 $as_echo "no, explicitly disabled" >&6; }
46904   elif test "x$enable_ccache" = x; then
46905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46906 $as_echo "no" >&6; }
46907   else
46908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
46909 $as_echo "unknown" >&6; }
46910     as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
46911   fi
46912 
46913 
46914 
46915 # Check whether --with-ccache-dir was given.
46916 if test "${with_ccache_dir+set}" = set; then :
46917   withval=$with_ccache_dir;
46918 fi
46919 
46920 
46921   if test "x$with_ccache_dir" != x; then
46922     # When using a non home ccache directory, assume the use is to share ccache files
46923     # with other users. Thus change the umask.
46924     SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
46925     if test "x$CCACHE" = x; then
46926       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
46927 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
46928     fi
46929   fi
46930 
46931   if test "x$CCACHE" != x; then
46932 
46933   if test "x$CCACHE" != x; then
46934     # Only use ccache if it is 3.1.4 or later, which supports
46935     # precompiled headers.
46936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
46937 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
46938     HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
46939     if test "x$HAS_GOOD_CCACHE" = x; then
46940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
46941 $as_echo "no, disabling ccache" >&6; }
46942       CCACHE=
46943       CCACHE_STATUS="disabled"
46944     else
46945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46946 $as_echo "yes" >&6; }
46947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
46948 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
46949       PUSHED_FLAGS="$CXXFLAGS"
46950       CXXFLAGS="-fpch-preprocess $CXXFLAGS"
46951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46952 /* end confdefs.h.  */
46953 
46954 int
46955 main ()
46956 {
46957 
46958   ;
46959   return 0;
46960 }
46961 _ACEOF
46962 if ac_fn_cxx_try_compile "$LINENO"; then :
46963   CC_KNOWS_CCACHE_TRICK=yes
46964 else
46965   CC_KNOWS_CCACHE_TRICK=no
46966 fi
46967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46968       CXXFLAGS="$PUSHED_FLAGS"
46969       if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
46970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46971 $as_echo "yes" >&6; }
46972       else
46973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
46974 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
46975         CCACHE=
46976         CCACHE_STATUS="disabled"
46977       fi
46978     fi
46979   fi
46980 
46981   if test "x$CCACHE" != x; then
46982     CCACHE_SLOPPINESS=time_macros
46983     CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
46984     CCACHE_FLAGS=-fpch-preprocess
46985 
46986     if test "x$SET_CCACHE_DIR" != x; then
46987       mkdir -p $CCACHE_DIR > /dev/null 2>&1
46988       chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
46989     fi
46990   fi
46991 
46992   fi
46993 
46994 
46995 ###############################################################################
46996 #
46997 # And now the finish...
46998 #
46999 ###############################################################################
47000 
47001 # Check for some common pitfalls
47002 
47003   if test x"$OPENJDK_BUILD_OS" = xwindows; then
47004     file_to_test="$SRC_ROOT/LICENSE"
47005     if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
47006       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
47007     fi
47008   fi
47009 
47010 
47011   # Did user specify any unknown variables?
47012 
47013   if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
47014     # Replace the separating ! with spaces before presenting for end user.
47015     unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
47016     as_fn_error $? "The following variables are unknown to configure: $unknown_variables" "$LINENO" 5
47017   fi
47018 
47019 
47020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5
47021 $as_echo_n "checking if build directory is on local disk... " >&6; }
47022 
47023   # df -l lists only local disks; if the given directory is not found then
47024   # a non-zero exit code is given
47025   if test "x$DF" = x; then
47026     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
47027       # msys does not have df; use Windows "net use" instead.
47028       IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:`
47029       if test "x$IS_NETWORK_DISK" = x; then
47030         OUTPUT_DIR_IS_LOCAL="yes"
47031       else
47032         OUTPUT_DIR_IS_LOCAL="no"
47033       fi
47034     else
47035       # No df here, say it's local
47036       OUTPUT_DIR_IS_LOCAL="yes"
47037     fi
47038   else
47039     if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then
47040       OUTPUT_DIR_IS_LOCAL="yes"
47041     else
47042       OUTPUT_DIR_IS_LOCAL="no"
47043     fi
47044   fi
47045 
47046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5
47047 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; }
47048 
47049 
47050 
47051   # Check if the user has any old-style ALT_ variables set.
47052   FOUND_ALT_VARIABLES=`env | grep ^ALT_`
47053 
47054   # Before generating output files, test if they exist. If they do, this is a reconfigure.
47055   # Since we can't properly handle the dependencies for this, warn the user about the situation
47056   if test -e $OUTPUT_ROOT/spec.gmk; then
47057     IS_RECONFIGURE=yes
47058   else
47059     IS_RECONFIGURE=no
47060   fi
47061 
47062 
47063 # At the end, call the custom hook. (Dummy macro if no custom sources available)
47064 
47065 
47066 # We're messing a bit with internal autoconf variables to put the config.status
47067 # in the output directory instead of the current directory.
47068 CONFIG_STATUS="$OUTPUT_ROOT/config.status"
47069 
47070 # Create the actual output files. Now the main work of configure is done.
47071 cat >confcache <<\_ACEOF
47072 # This file is a shell script that caches the results of configure
47073 # tests run on this system so they can be shared between configure
47074 # scripts and configure runs, see configure's option --config-cache.
47075 # It is not useful on other systems.  If it contains results you don't
47076 # want to keep, you may remove or edit it.
47077 #
47078 # config.status only pays attention to the cache file if you give it
47079 # the --recheck option to rerun configure.
47080 #
47081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
47082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
47083 # following values.
47084 
47085 _ACEOF
47086 
47087 # The following way of writing the cache mishandles newlines in values,
47088 # but we know of no workaround that is simple, portable, and efficient.
47089 # So, we kill variables containing newlines.
47090 # Ultrix sh set writes to stderr and can't be redirected directly,
47091 # and sets the high bit in the cache file unless we assign to the vars.
47092 (
47093   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
47094     eval ac_val=\$$ac_var
47095     case $ac_val in #(
47096     *${as_nl}*)
47097       case $ac_var in #(
47098       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
47100       esac
47101       case $ac_var in #(
47102       _ | IFS | as_nl) ;; #(
47103       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
47104       *) { eval $ac_var=; unset $ac_var;} ;;
47105       esac ;;
47106     esac
47107   done
47108 
47109   (set) 2>&1 |
47110     case $as_nl`(ac_space=' '; set) 2>&1` in #(
47111     *${as_nl}ac_space=\ *)
47112       # `set' does not quote correctly, so add quotes: double-quote
47113       # substitution turns \\\\ into \\, and sed turns \\ into \.
47114       sed -n \
47115         "s/'/'\\\\''/g;
47116           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47117       ;; #(
47118     *)
47119       # `set' quotes correctly as required by POSIX, so do not add quotes.
47120       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47121       ;;
47122     esac |
47123     sort
47124 ) |
47125   sed '
47126      /^ac_cv_env_/b end
47127      t clear
47128      :clear
47129      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47130      t end
47131      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47132      :end' >>confcache
47133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47134   if test -w "$cache_file"; then
47135     if test "x$cache_file" != "x/dev/null"; then
47136       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47137 $as_echo "$as_me: updating cache $cache_file" >&6;}
47138       if test ! -f "$cache_file" || test -h "$cache_file"; then
47139         cat confcache >"$cache_file"
47140       else
47141         case $cache_file in #(
47142         */* | ?:*)
47143           mv -f confcache "$cache_file"$$ &&
47144           mv -f "$cache_file"$$ "$cache_file" ;; #(
47145         *)
47146           mv -f confcache "$cache_file" ;;
47147         esac
47148       fi
47149     fi
47150   else
47151     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47153   fi
47154 fi
47155 rm -f confcache
47156 
47157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
47158 # Let make expand exec_prefix.
47159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47160 
47161 DEFS=-DHAVE_CONFIG_H
47162 
47163 ac_libobjs=
47164 ac_ltlibobjs=
47165 U=
47166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47167   # 1. Remove the extension, and $U if already installed.
47168   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47169   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
47170   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
47171   #    will be set to the directory where LIBOBJS objects are built.
47172   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
47173   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
47174 done
47175 LIBOBJS=$ac_libobjs
47176 
47177 LTLIBOBJS=$ac_ltlibobjs
47178 
47179 
47180 
47181 : "${CONFIG_STATUS=./config.status}"
47182 ac_write_fail=0
47183 ac_clean_files_save=$ac_clean_files
47184 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
47186 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47187 as_write_fail=0
47188 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
47189 #! $SHELL
47190 # Generated by $as_me.
47191 # Run this file to recreate the current configuration.
47192 # Compiler output produced by configure, useful for debugging
47193 # configure, is in config.log if it exists.
47194 
47195 debug=false
47196 ac_cs_recheck=false
47197 ac_cs_silent=false
47198 
47199 SHELL=\${CONFIG_SHELL-$SHELL}
47200 export SHELL
47201 _ASEOF
47202 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
47203 ## -------------------- ##
47204 ## M4sh Initialization. ##
47205 ## -------------------- ##
47206 
47207 # Be more Bourne compatible
47208 DUALCASE=1; export DUALCASE # for MKS sh
47209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
47210   emulate sh
47211   NULLCMD=:
47212   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47213   # is contrary to our usage.  Disable this feature.
47214   alias -g '${1+"$@"}'='"$@"'
47215   setopt NO_GLOB_SUBST
47216 else
47217   case `(set -o) 2>/dev/null` in #(
47218   *posix*) :
47219     set -o posix ;; #(
47220   *) :
47221      ;;
47222 esac
47223 fi
47224 
47225 
47226 as_nl='
47227 '
47228 export as_nl
47229 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47230 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47233 # Prefer a ksh shell builtin over an external printf program on Solaris,
47234 # but without wasting forks for bash or zsh.
47235 if test -z "$BASH_VERSION$ZSH_VERSION" \
47236     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47237   as_echo='print -r --'
47238   as_echo_n='print -rn --'
47239 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47240   as_echo='printf %s\n'
47241   as_echo_n='printf %s'
47242 else
47243   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47244     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47245     as_echo_n='/usr/ucb/echo -n'
47246   else
47247     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47248     as_echo_n_body='eval
47249       arg=$1;
47250       case $arg in #(
47251       *"$as_nl"*)
47252         expr "X$arg" : "X\\(.*\\)$as_nl";
47253         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47254       esac;
47255       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47256     '
47257     export as_echo_n_body
47258     as_echo_n='sh -c $as_echo_n_body as_echo'
47259   fi
47260   export as_echo_body
47261   as_echo='sh -c $as_echo_body as_echo'
47262 fi
47263 
47264 # The user is always right.
47265 if test "${PATH_SEPARATOR+set}" != set; then
47266   PATH_SEPARATOR=:
47267   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47268     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47269       PATH_SEPARATOR=';'
47270   }
47271 fi
47272 
47273 
47274 # IFS
47275 # We need space, tab and new line, in precisely that order.  Quoting is
47276 # there to prevent editors from complaining about space-tab.
47277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
47278 # splitting by setting IFS to empty value.)
47279 IFS=" ""        $as_nl"
47280 
47281 # Find who we are.  Look in the path if we contain no directory separator.
47282 as_myself=
47283 case $0 in #((
47284   *[\\/]* ) as_myself=$0 ;;
47285   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47286 for as_dir in $PATH
47287 do
47288   IFS=$as_save_IFS
47289   test -z "$as_dir" && as_dir=.
47290     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47291   done
47292 IFS=$as_save_IFS
47293 
47294      ;;
47295 esac
47296 # We did not find ourselves, most probably we were run as `sh COMMAND'
47297 # in which case we are not to be found in the path.
47298 if test "x$as_myself" = x; then
47299   as_myself=$0
47300 fi
47301 if test ! -f "$as_myself"; then
47302   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47303   exit 1
47304 fi
47305 
47306 # Unset variables that we do not need and which cause bugs (e.g. in
47307 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
47308 # suppresses any "Segmentation fault" message there.  '((' could
47309 # trigger a bug in pdksh 5.2.14.
47310 for as_var in BASH_ENV ENV MAIL MAILPATH
47311 do eval test x\${$as_var+set} = xset \
47312   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
47313 done
47314 PS1='$ '
47315 PS2='> '
47316 PS4='+ '
47317 
47318 # NLS nuisances.
47319 LC_ALL=C
47320 export LC_ALL
47321 LANGUAGE=C
47322 export LANGUAGE
47323 
47324 # CDPATH.
47325 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47326 
47327 
47328 # as_fn_error STATUS ERROR [LINENO LOG_FD]
47329 # ----------------------------------------
47330 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
47331 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
47332 # script with STATUS, using 1 if that was 0.
47333 as_fn_error ()
47334 {
47335   as_status=$1; test $as_status -eq 0 && as_status=1
47336   if test "$4"; then
47337     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
47338     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
47339   fi
47340   $as_echo "$as_me: error: $2" >&2
47341   as_fn_exit $as_status
47342 } # as_fn_error
47343 
47344 
47345 # as_fn_set_status STATUS
47346 # -----------------------
47347 # Set $? to STATUS, without forking.
47348 as_fn_set_status ()
47349 {
47350   return $1
47351 } # as_fn_set_status
47352 
47353 # as_fn_exit STATUS
47354 # -----------------
47355 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
47356 as_fn_exit ()
47357 {
47358   set +e
47359   as_fn_set_status $1
47360   exit $1
47361 } # as_fn_exit
47362 
47363 # as_fn_unset VAR
47364 # ---------------
47365 # Portably unset VAR.
47366 as_fn_unset ()
47367 {
47368   { eval $1=; unset $1;}
47369 }
47370 as_unset=as_fn_unset
47371 # as_fn_append VAR VALUE
47372 # ----------------------
47373 # Append the text in VALUE to the end of the definition contained in VAR. Take
47374 # advantage of any shell optimizations that allow amortized linear growth over
47375 # repeated appends, instead of the typical quadratic growth present in naive
47376 # implementations.
47377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
47378   eval 'as_fn_append ()
47379   {
47380     eval $1+=\$2
47381   }'
47382 else
47383   as_fn_append ()
47384   {
47385     eval $1=\$$1\$2
47386   }
47387 fi # as_fn_append
47388 
47389 # as_fn_arith ARG...
47390 # ------------------
47391 # Perform arithmetic evaluation on the ARGs, and store the result in the
47392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
47393 # must be portable across $(()) and expr.
47394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
47395   eval 'as_fn_arith ()
47396   {
47397     as_val=$(( $* ))
47398   }'
47399 else
47400   as_fn_arith ()
47401   {
47402     as_val=`expr "$@" || test $? -eq 1`
47403   }
47404 fi # as_fn_arith
47405 
47406 
47407 if expr a : '\(a\)' >/dev/null 2>&1 &&
47408    test "X`expr 00001 : '.*\(...\)'`" = X001; then
47409   as_expr=expr
47410 else
47411   as_expr=false
47412 fi
47413 
47414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47415   as_basename=basename
47416 else
47417   as_basename=false
47418 fi
47419 
47420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47421   as_dirname=dirname
47422 else
47423   as_dirname=false
47424 fi
47425 
47426 as_me=`$as_basename -- "$0" ||
47427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47428          X"$0" : 'X\(//\)$' \| \
47429          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47430 $as_echo X/"$0" |
47431     sed '/^.*\/\([^/][^/]*\)\/*$/{
47432             s//\1/
47433             q
47434           }
47435           /^X\/\(\/\/\)$/{
47436             s//\1/
47437             q
47438           }
47439           /^X\/\(\/\).*/{
47440             s//\1/
47441             q
47442           }
47443           s/.*/./; q'`
47444 
47445 # Avoid depending upon Character Ranges.
47446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47449 as_cr_digits='0123456789'
47450 as_cr_alnum=$as_cr_Letters$as_cr_digits
47451 
47452 ECHO_C= ECHO_N= ECHO_T=
47453 case `echo -n x` in #(((((
47454 -n*)
47455   case `echo 'xy\c'` in
47456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
47457   xy)  ECHO_C='\c';;
47458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47459        ECHO_T=' ';;
47460   esac;;
47461 *)
47462   ECHO_N='-n';;
47463 esac
47464 
47465 rm -f conf$$ conf$$.exe conf$$.file
47466 if test -d conf$$.dir; then
47467   rm -f conf$$.dir/conf$$.file
47468 else
47469   rm -f conf$$.dir
47470   mkdir conf$$.dir 2>/dev/null
47471 fi
47472 if (echo >conf$$.file) 2>/dev/null; then
47473   if ln -s conf$$.file conf$$ 2>/dev/null; then
47474     as_ln_s='ln -s'
47475     # ... but there are two gotchas:
47476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47478     # In both cases, we have to default to `cp -pR'.
47479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47480       as_ln_s='cp -pR'
47481   elif ln conf$$.file conf$$ 2>/dev/null; then
47482     as_ln_s=ln
47483   else
47484     as_ln_s='cp -pR'
47485   fi
47486 else
47487   as_ln_s='cp -pR'
47488 fi
47489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47490 rmdir conf$$.dir 2>/dev/null
47491 
47492 
47493 # as_fn_mkdir_p
47494 # -------------
47495 # Create "$as_dir" as a directory, including parents if necessary.
47496 as_fn_mkdir_p ()
47497 {
47498 
47499   case $as_dir in #(
47500   -*) as_dir=./$as_dir;;
47501   esac
47502   test -d "$as_dir" || eval $as_mkdir_p || {
47503     as_dirs=
47504     while :; do
47505       case $as_dir in #(
47506       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47507       *) as_qdir=$as_dir;;
47508       esac
47509       as_dirs="'$as_qdir' $as_dirs"
47510       as_dir=`$as_dirname -- "$as_dir" ||
47511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47512          X"$as_dir" : 'X\(//\)[^/]' \| \
47513          X"$as_dir" : 'X\(//\)$' \| \
47514          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47515 $as_echo X"$as_dir" |
47516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47517             s//\1/
47518             q
47519           }
47520           /^X\(\/\/\)[^/].*/{
47521             s//\1/
47522             q
47523           }
47524           /^X\(\/\/\)$/{
47525             s//\1/
47526             q
47527           }
47528           /^X\(\/\).*/{
47529             s//\1/
47530             q
47531           }
47532           s/.*/./; q'`
47533       test -d "$as_dir" && break
47534     done
47535     test -z "$as_dirs" || eval "mkdir $as_dirs"
47536   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
47537 
47538 
47539 } # as_fn_mkdir_p
47540 if mkdir -p . 2>/dev/null; then
47541   as_mkdir_p='mkdir -p "$as_dir"'
47542 else
47543   test -d ./-p && rmdir ./-p
47544   as_mkdir_p=false
47545 fi
47546 
47547 
47548 # as_fn_executable_p FILE
47549 # -----------------------
47550 # Test if FILE is an executable regular file.
47551 as_fn_executable_p ()
47552 {
47553   test -f "$1" && test -x "$1"
47554 } # as_fn_executable_p
47555 as_test_x='test -x'
47556 as_executable_p=as_fn_executable_p
47557 
47558 # Sed expression to map a string onto a valid CPP name.
47559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47560 
47561 # Sed expression to map a string onto a valid variable name.
47562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47563 
47564 
47565 exec 6>&1
47566 ## ----------------------------------- ##
47567 ## Main body of $CONFIG_STATUS script. ##
47568 ## ----------------------------------- ##
47569 _ASEOF
47570 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
47571 
47572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47573 # Save the log message, to keep $0 and so on meaningful, and to
47574 # report actual input values of CONFIG_FILES etc. instead of their
47575 # values after options handling.
47576 ac_log="
47577 This file was extended by OpenJDK $as_me jdk8, which was
47578 generated by GNU Autoconf 2.69.  Invocation command line was
47579 
47580   CONFIG_FILES    = $CONFIG_FILES
47581   CONFIG_HEADERS  = $CONFIG_HEADERS
47582   CONFIG_LINKS    = $CONFIG_LINKS
47583   CONFIG_COMMANDS = $CONFIG_COMMANDS
47584   $ $0 $@
47585 
47586 on `(hostname || uname -n) 2>/dev/null | sed 1q`
47587 "
47588 
47589 _ACEOF
47590 
47591 case $ac_config_files in *"
47592 "*) set x $ac_config_files; shift; ac_config_files=$*;;
47593 esac
47594 
47595 case $ac_config_headers in *"
47596 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47597 esac
47598 
47599 
47600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47601 # Files that config.status was made for.
47602 config_files="$ac_config_files"
47603 config_headers="$ac_config_headers"
47604 
47605 _ACEOF
47606 
47607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47608 ac_cs_usage="\
47609 \`$as_me' instantiates files and other configuration actions
47610 from templates according to the current configuration.  Unless the files
47611 and actions are specified as TAGs, all are instantiated by default.
47612 
47613 Usage: $0 [OPTION]... [TAG]...
47614 
47615   -h, --help       print this help, then exit
47616   -V, --version    print version number and configuration settings, then exit
47617       --config     print configuration, then exit
47618   -q, --quiet, --silent
47619                    do not print progress messages
47620   -d, --debug      don't remove temporary files
47621       --recheck    update $as_me by reconfiguring in the same conditions
47622       --file=FILE[:TEMPLATE]
47623                    instantiate the configuration file FILE
47624       --header=FILE[:TEMPLATE]
47625                    instantiate the configuration header FILE
47626 
47627 Configuration files:
47628 $config_files
47629 
47630 Configuration headers:
47631 $config_headers
47632 
47633 Report bugs to <build-dev@openjdk.java.net>.
47634 OpenJDK home page: <http://openjdk.java.net>."
47635 
47636 _ACEOF
47637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47638 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
47639 ac_cs_version="\\
47640 OpenJDK config.status jdk8
47641 configured by $0, generated by GNU Autoconf 2.69,
47642   with options \\"\$ac_cs_config\\"
47643 
47644 Copyright (C) 2012 Free Software Foundation, Inc.
47645 This config.status script is free software; the Free Software Foundation
47646 gives unlimited permission to copy, distribute and modify it."
47647 
47648 ac_pwd='$ac_pwd'
47649 srcdir='$srcdir'
47650 AWK='$AWK'
47651 test -n "\$AWK" || AWK=awk
47652 _ACEOF
47653 
47654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47655 # The default lists apply if the user does not specify any file.
47656 ac_need_defaults=:
47657 while test $# != 0
47658 do
47659   case $1 in
47660   --*=?*)
47661     ac_option=`expr "X$1" : 'X\([^=]*\)='`
47662     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47663     ac_shift=:
47664     ;;
47665   --*=)
47666     ac_option=`expr "X$1" : 'X\([^=]*\)='`
47667     ac_optarg=
47668     ac_shift=:
47669     ;;
47670   *)
47671     ac_option=$1
47672     ac_optarg=$2
47673     ac_shift=shift
47674     ;;
47675   esac
47676 
47677   case $ac_option in
47678   # Handling of the options.
47679   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47680     ac_cs_recheck=: ;;
47681   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47682     $as_echo "$ac_cs_version"; exit ;;
47683   --config | --confi | --conf | --con | --co | --c )
47684     $as_echo "$ac_cs_config"; exit ;;
47685   --debug | --debu | --deb | --de | --d | -d )
47686     debug=: ;;
47687   --file | --fil | --fi | --f )
47688     $ac_shift
47689     case $ac_optarg in
47690     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47691     '') as_fn_error $? "missing file argument" ;;
47692     esac
47693     as_fn_append CONFIG_FILES " '$ac_optarg'"
47694     ac_need_defaults=false;;
47695   --header | --heade | --head | --hea )
47696     $ac_shift
47697     case $ac_optarg in
47698     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47699     esac
47700     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47701     ac_need_defaults=false;;
47702   --he | --h)
47703     # Conflict between --help and --header
47704     as_fn_error $? "ambiguous option: \`$1'
47705 Try \`$0 --help' for more information.";;
47706   --help | --hel | -h )
47707     $as_echo "$ac_cs_usage"; exit ;;
47708   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47709   | -silent | --silent | --silen | --sile | --sil | --si | --s)
47710     ac_cs_silent=: ;;
47711 
47712   # This is an error.
47713   -*) as_fn_error $? "unrecognized option: \`$1'
47714 Try \`$0 --help' for more information." ;;
47715 
47716   *) as_fn_append ac_config_targets " $1"
47717      ac_need_defaults=false ;;
47718 
47719   esac
47720   shift
47721 done
47722 
47723 ac_configure_extra_args=
47724 
47725 if $ac_cs_silent; then
47726   exec 6>/dev/null
47727   ac_configure_extra_args="$ac_configure_extra_args --silent"
47728 fi
47729 
47730 _ACEOF
47731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47732 if \$ac_cs_recheck; then
47733   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47734   shift
47735   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47736   CONFIG_SHELL='$SHELL'
47737   export CONFIG_SHELL
47738   exec "\$@"
47739 fi
47740 
47741 _ACEOF
47742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47743 exec 5>>config.log
47744 {
47745   echo
47746   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47747 ## Running $as_me. ##
47748 _ASBOX
47749   $as_echo "$ac_log"
47750 } >&5
47751 
47752 _ACEOF
47753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47754 _ACEOF
47755 
47756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47757 
47758 # Handling of arguments.
47759 for ac_config_target in $ac_config_targets
47760 do
47761   case $ac_config_target in
47762     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
47763     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
47764     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
47765     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
47766     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
47767     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
47768     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
47769 
47770   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47771   esac
47772 done
47773 
47774 
47775 # If the user did not use the arguments to specify the items to instantiate,
47776 # then the envvar interface is used.  Set only those that are not.
47777 # We use the long form for the default assignment because of an extremely
47778 # bizarre bug on SunOS 4.1.3.
47779 if $ac_need_defaults; then
47780   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47781   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47782 fi
47783 
47784 # Have a temporary directory for convenience.  Make it in the build tree
47785 # simply because there is no reason against having it here, and in addition,
47786 # creating and moving files from /tmp can sometimes cause problems.
47787 # Hook for its removal unless debugging.
47788 # Note that there is a small window in which the directory will not be cleaned:
47789 # after its creation but before its name has been assigned to `$tmp'.
47790 $debug ||
47791 {
47792   tmp= ac_tmp=
47793   trap 'exit_status=$?
47794   : "${ac_tmp:=$tmp}"
47795   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47796 ' 0
47797   trap 'as_fn_exit 1' 1 2 13 15
47798 }
47799 # Create a (secure) tmp directory for tmp files.
47800 
47801 {
47802   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47803   test -d "$tmp"
47804 }  ||
47805 {
47806   tmp=./conf$$-$RANDOM
47807   (umask 077 && mkdir "$tmp")
47808 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47809 ac_tmp=$tmp
47810 
47811 # Set up the scripts for CONFIG_FILES section.
47812 # No need to generate them if there are no CONFIG_FILES.
47813 # This happens for instance with `./config.status config.h'.
47814 if test -n "$CONFIG_FILES"; then
47815 
47816 
47817 ac_cr=`echo X | tr X '\015'`
47818 # On cygwin, bash can eat \r inside `` if the user requested igncr.
47819 # But we know of no other shell where ac_cr would be empty at this
47820 # point, so we can use a bashism as a fallback.
47821 if test "x$ac_cr" = x; then
47822   eval ac_cr=\$\'\\r\'
47823 fi
47824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47826   ac_cs_awk_cr='\\r'
47827 else
47828   ac_cs_awk_cr=$ac_cr
47829 fi
47830 
47831 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47832 _ACEOF
47833 
47834 
47835 {
47836   echo "cat >conf$$subs.awk <<_ACEOF" &&
47837   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47838   echo "_ACEOF"
47839 } >conf$$subs.sh ||
47840   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47841 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47842 ac_delim='%!_!# '
47843 for ac_last_try in false false false false false :; do
47844   . ./conf$$subs.sh ||
47845     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47846 
47847   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47848   if test $ac_delim_n = $ac_delim_num; then
47849     break
47850   elif $ac_last_try; then
47851     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47852   else
47853     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47854   fi
47855 done
47856 rm -f conf$$subs.sh
47857 
47858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47859 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47860 _ACEOF
47861 sed -n '
47862 h
47863 s/^/S["/; s/!.*/"]=/
47864 p
47865 g
47866 s/^[^!]*!//
47867 :repl
47868 t repl
47869 s/'"$ac_delim"'$//
47870 t delim
47871 :nl
47872 h
47873 s/\(.\{148\}\)..*/\1/
47874 t more1
47875 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47876 p
47877 n
47878 b repl
47879 :more1
47880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47881 p
47882 g
47883 s/.\{148\}//
47884 t nl
47885 :delim
47886 h
47887 s/\(.\{148\}\)..*/\1/
47888 t more2
47889 s/["\\]/\\&/g; s/^/"/; s/$/"/
47890 p
47891 b
47892 :more2
47893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47894 p
47895 g
47896 s/.\{148\}//
47897 t delim
47898 ' <conf$$subs.awk | sed '
47899 /^[^""]/{
47900   N
47901   s/\n//
47902 }
47903 ' >>$CONFIG_STATUS || ac_write_fail=1
47904 rm -f conf$$subs.awk
47905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47906 _ACAWK
47907 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47908   for (key in S) S_is_set[key] = 1
47909   FS = ""
47910 
47911 }
47912 {
47913   line = $ 0
47914   nfields = split(line, field, "@")
47915   substed = 0
47916   len = length(field[1])
47917   for (i = 2; i < nfields; i++) {
47918     key = field[i]
47919     keylen = length(key)
47920     if (S_is_set[key]) {
47921       value = S[key]
47922       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47923       len += length(value) + length(field[++i])
47924       substed = 1
47925     } else
47926       len += 1 + keylen
47927   }
47928 
47929   print line
47930 }
47931 
47932 _ACAWK
47933 _ACEOF
47934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47936   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47937 else
47938   cat
47939 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47940   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47941 _ACEOF
47942 
47943 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47944 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47945 # trailing colons and then remove the whole line if VPATH becomes empty
47946 # (actually we leave an empty line to preserve line numbers).
47947 if test "x$srcdir" = x.; then
47948   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
47949 h
47950 s///
47951 s/^/:/
47952 s/[      ]*$/:/
47953 s/:\$(srcdir):/:/g
47954 s/:\${srcdir}:/:/g
47955 s/:@srcdir@:/:/g
47956 s/^:*//
47957 s/:*$//
47958 x
47959 s/\(=[   ]*\).*/\1/
47960 G
47961 s/\n//
47962 s/^[^=]*=[       ]*$//
47963 }'
47964 fi
47965 
47966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47967 fi # test -n "$CONFIG_FILES"
47968 
47969 # Set up the scripts for CONFIG_HEADERS section.
47970 # No need to generate them if there are no CONFIG_HEADERS.
47971 # This happens for instance with `./config.status Makefile'.
47972 if test -n "$CONFIG_HEADERS"; then
47973 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47974 BEGIN {
47975 _ACEOF
47976 
47977 # Transform confdefs.h into an awk script `defines.awk', embedded as
47978 # here-document in config.status, that substitutes the proper values into
47979 # config.h.in to produce config.h.
47980 
47981 # Create a delimiter string that does not exist in confdefs.h, to ease
47982 # handling of long lines.
47983 ac_delim='%!_!# '
47984 for ac_last_try in false false :; do
47985   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47986   if test -z "$ac_tt"; then
47987     break
47988   elif $ac_last_try; then
47989     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47990   else
47991     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47992   fi
47993 done
47994 
47995 # For the awk script, D is an array of macro values keyed by name,
47996 # likewise P contains macro parameters if any.  Preserve backslash
47997 # newline sequences.
47998 
47999 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48000 sed -n '
48001 s/.\{148\}/&'"$ac_delim"'/g
48002 t rset
48003 :rset
48004 s/^[     ]*#[    ]*define[       ][      ]*/ /
48005 t def
48006 d
48007 :def
48008 s/\\$//
48009 t bsnl
48010 s/["\\]/\\&/g
48011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
48012 D["\1"]=" \3"/p
48013 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
48014 d
48015 :bsnl
48016 s/["\\]/\\&/g
48017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
48018 D["\1"]=" \3\\\\\\n"\\/p
48019 t cont
48020 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48021 t cont
48022 d
48023 :cont
48024 n
48025 s/.\{148\}/&'"$ac_delim"'/g
48026 t clear
48027 :clear
48028 s/\\$//
48029 t bsnlc
48030 s/["\\]/\\&/g; s/^/"/; s/$/"/p
48031 d
48032 :bsnlc
48033 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48034 b cont
48035 ' <confdefs.h | sed '
48036 s/'"$ac_delim"'/"\\\
48037 "/g' >>$CONFIG_STATUS || ac_write_fail=1
48038 
48039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48040   for (key in D) D_is_set[key] = 1
48041   FS = ""
48042 }
48043 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48044   line = \$ 0
48045   split(line, arg, " ")
48046   if (arg[1] == "#") {
48047     defundef = arg[2]
48048     mac1 = arg[3]
48049   } else {
48050     defundef = substr(arg[1], 2)
48051     mac1 = arg[2]
48052   }
48053   split(mac1, mac2, "(") #)
48054   macro = mac2[1]
48055   prefix = substr(line, 1, index(line, defundef) - 1)
48056   if (D_is_set[macro]) {
48057     # Preserve the white space surrounding the "#".
48058     print prefix "define", macro P[macro] D[macro]
48059     next
48060   } else {
48061     # Replace #undef with comments.  This is necessary, for example,
48062     # in the case of _POSIX_SOURCE, which is predefined and required
48063     # on some systems where configure will not decide to define it.
48064     if (defundef == "undef") {
48065       print "/*", prefix defundef, macro, "*/"
48066       next
48067     }
48068   }
48069 }
48070 { print }
48071 _ACAWK
48072 _ACEOF
48073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48074   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48075 fi # test -n "$CONFIG_HEADERS"
48076 
48077 
48078 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
48079 shift
48080 for ac_tag
48081 do
48082   case $ac_tag in
48083   :[FHLC]) ac_mode=$ac_tag; continue;;
48084   esac
48085   case $ac_mode$ac_tag in
48086   :[FHL]*:*);;
48087   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48088   :[FH]-) ac_tag=-:-;;
48089   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48090   esac
48091   ac_save_IFS=$IFS
48092   IFS=:
48093   set x $ac_tag
48094   IFS=$ac_save_IFS
48095   shift
48096   ac_file=$1
48097   shift
48098 
48099   case $ac_mode in
48100   :L) ac_source=$1;;
48101   :[FH])
48102     ac_file_inputs=
48103     for ac_f
48104     do
48105       case $ac_f in
48106       -) ac_f="$ac_tmp/stdin";;
48107       *) # Look for the file first in the build tree, then in the source tree
48108          # (if the path is not absolute).  The absolute path cannot be DOS-style,
48109          # because $ac_f cannot contain `:'.
48110          test -f "$ac_f" ||
48111            case $ac_f in
48112            [\\/$]*) false;;
48113            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48114            esac ||
48115            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48116       esac
48117       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48118       as_fn_append ac_file_inputs " '$ac_f'"
48119     done
48120 
48121     # Let's still pretend it is `configure' which instantiates (i.e., don't
48122     # use $as_me), people would be surprised to read:
48123     #    /* config.h.  Generated by config.status.  */
48124     configure_input='Generated from '`
48125           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48126         `' by configure.'
48127     if test x"$ac_file" != x-; then
48128       configure_input="$ac_file.  $configure_input"
48129       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
48130 $as_echo "$as_me: creating $ac_file" >&6;}
48131     fi
48132     # Neutralize special characters interpreted by sed in replacement strings.
48133     case $configure_input in #(
48134     *\&* | *\|* | *\\* )
48135        ac_sed_conf_input=`$as_echo "$configure_input" |
48136        sed 's/[\\\\&|]/\\\\&/g'`;; #(
48137     *) ac_sed_conf_input=$configure_input;;
48138     esac
48139 
48140     case $ac_tag in
48141     *:-:* | *:-) cat >"$ac_tmp/stdin" \
48142       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48143     esac
48144     ;;
48145   esac
48146 
48147   ac_dir=`$as_dirname -- "$ac_file" ||
48148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48149          X"$ac_file" : 'X\(//\)[^/]' \| \
48150          X"$ac_file" : 'X\(//\)$' \| \
48151          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48152 $as_echo X"$ac_file" |
48153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48154             s//\1/
48155             q
48156           }
48157           /^X\(\/\/\)[^/].*/{
48158             s//\1/
48159             q
48160           }
48161           /^X\(\/\/\)$/{
48162             s//\1/
48163             q
48164           }
48165           /^X\(\/\).*/{
48166             s//\1/
48167             q
48168           }
48169           s/.*/./; q'`
48170   as_dir="$ac_dir"; as_fn_mkdir_p
48171   ac_builddir=.
48172 
48173 case "$ac_dir" in
48174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48175 *)
48176   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48177   # A ".." for each directory in $ac_dir_suffix.
48178   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48179   case $ac_top_builddir_sub in
48180   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48181   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48182   esac ;;
48183 esac
48184 ac_abs_top_builddir=$ac_pwd
48185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
48186 # for backward compatibility:
48187 ac_top_builddir=$ac_top_build_prefix
48188 
48189 case $srcdir in
48190   .)  # We are building in place.
48191     ac_srcdir=.
48192     ac_top_srcdir=$ac_top_builddir_sub
48193     ac_abs_top_srcdir=$ac_pwd ;;
48194   [\\/]* | ?:[\\/]* )  # Absolute name.
48195     ac_srcdir=$srcdir$ac_dir_suffix;
48196     ac_top_srcdir=$srcdir
48197     ac_abs_top_srcdir=$srcdir ;;
48198   *) # Relative name.
48199     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48200     ac_top_srcdir=$ac_top_build_prefix$srcdir
48201     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48202 esac
48203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48204 
48205 
48206   case $ac_mode in
48207   :F)
48208   #
48209   # CONFIG_FILE
48210   #
48211 
48212 _ACEOF
48213 
48214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48215 # If the template does not know about datarootdir, expand it.
48216 # FIXME: This hack should be removed a few years after 2.60.
48217 ac_datarootdir_hack=; ac_datarootdir_seen=
48218 ac_sed_dataroot='
48219 /datarootdir/ {
48220   p
48221   q
48222 }
48223 /@datadir@/p
48224 /@docdir@/p
48225 /@infodir@/p
48226 /@localedir@/p
48227 /@mandir@/p'
48228 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48229 *datarootdir*) ac_datarootdir_seen=yes;;
48230 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48231   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48232 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48233 _ACEOF
48234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48235   ac_datarootdir_hack='
48236   s&@datadir@&$datadir&g
48237   s&@docdir@&$docdir&g
48238   s&@infodir@&$infodir&g
48239   s&@localedir@&$localedir&g
48240   s&@mandir@&$mandir&g
48241   s&\\\${datarootdir}&$datarootdir&g' ;;
48242 esac
48243 _ACEOF
48244 
48245 # Neutralize VPATH when `$srcdir' = `.'.
48246 # Shell code in configure.ac might set extrasub.
48247 # FIXME: do we really want to maintain this feature?
48248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48249 ac_sed_extra="$ac_vpsub
48250 $extrasub
48251 _ACEOF
48252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48253 :t
48254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48255 s|@configure_input@|$ac_sed_conf_input|;t t
48256 s&@top_builddir@&$ac_top_builddir_sub&;t t
48257 s&@top_build_prefix@&$ac_top_build_prefix&;t t
48258 s&@srcdir@&$ac_srcdir&;t t
48259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
48260 s&@top_srcdir@&$ac_top_srcdir&;t t
48261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48262 s&@builddir@&$ac_builddir&;t t
48263 s&@abs_builddir@&$ac_abs_builddir&;t t
48264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48265 $ac_datarootdir_hack
48266 "
48267 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
48268   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48269 
48270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48271   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
48272   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
48273       "$ac_tmp/out"`; test -z "$ac_out"; } &&
48274   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48275 which seems to be undefined.  Please make sure it is defined" >&5
48276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48277 which seems to be undefined.  Please make sure it is defined" >&2;}
48278 
48279   rm -f "$ac_tmp/stdin"
48280   case $ac_file in
48281   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
48282   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48283   esac \
48284   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48285  ;;
48286   :H)
48287   #
48288   # CONFIG_HEADER
48289   #
48290   if test x"$ac_file" != x-; then
48291     {
48292       $as_echo "/* $configure_input  */" \
48293       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
48294     } >"$ac_tmp/config.h" \
48295       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48296     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48297       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
48298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
48299     else
48300       rm -f "$ac_file"
48301       mv "$ac_tmp/config.h" "$ac_file" \
48302         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48303     fi
48304   else
48305     $as_echo "/* $configure_input  */" \
48306       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
48307       || as_fn_error $? "could not create -" "$LINENO" 5
48308   fi
48309  ;;
48310 
48311 
48312   esac
48313 
48314 done # for ac_tag
48315 
48316 
48317 as_fn_exit 0
48318 _ACEOF
48319 ac_clean_files=$ac_clean_files_save
48320 
48321 test $ac_write_fail = 0 ||
48322   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48323 
48324 
48325 # configure is writing to config.log, and then calls config.status.
48326 # config.status does its own redirection, appending to config.log.
48327 # Unfortunately, on DOS this fails, as config.log is still kept open
48328 # by configure, so config.status won't be able to write to it; its
48329 # output is simply discarded.  So we exec the FD to /dev/null,
48330 # effectively closing config.log, so it can be properly (re)opened and
48331 # appended to by config.status.  When coming back to configure, we
48332 # need to make the FD available again.
48333 if test "$no_create" != yes; then
48334   ac_cs_success=:
48335   ac_config_status_args=
48336   test "$silent" = yes &&
48337     ac_config_status_args="$ac_config_status_args --quiet"
48338   exec 5>/dev/null
48339   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48340   exec 5>>config.log
48341   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48342   # would make configure fail if this is the last instruction.
48343   $ac_cs_success || as_fn_exit 1
48344 fi
48345 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48346   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48347 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48348 fi
48349 
48350 
48351 
48352 # Try to move the config.log file to the output directory.
48353 if test -e ./config.log; then
48354   $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
48355 fi
48356 
48357 # Make the compare script executable
48358 $CHMOD +x $OUTPUT_ROOT/compare.sh
48359 
48360 # Finally output some useful information to the user
48361 
48362   # Finally output some useful information to the user
48363 
48364   printf "\n"
48365   printf "====================================================\n"
48366   printf "A new configuration has been successfully created in\n"
48367   printf "$OUTPUT_ROOT\n"
48368   if test "x$CONFIGURE_COMMAND_LINE" != x; then
48369     printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
48370   else
48371     printf "using default settings.\n"
48372   fi
48373 
48374   printf "\n"
48375   printf "Configuration summary:\n"
48376   printf "* Debug level:    $DEBUG_LEVEL\n"
48377   printf "* JDK variant:    $JDK_VARIANT\n"
48378   printf "* JVM variants:   $with_jvm_variants\n"
48379   printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
48380 
48381   printf "\n"
48382   printf "Tools summary:\n"
48383   if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
48384     printf "* Environment:    $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
48385   fi
48386   printf "* Boot JDK:       $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
48387   printf "* C Compiler:     $CC_VENDOR version $CC_VERSION (at $CC)\n"
48388   printf "* C++ Compiler:   $CXX_VENDOR version $CXX_VERSION (at $CXX)\n"
48389 
48390   printf "\n"
48391   printf "Build performance summary:\n"
48392   printf "* Cores to use:   $JOBS\n"
48393   printf "* Memory limit:   $MEMORY_SIZE MB\n"
48394   if test "x$CCACHE_STATUS" != "x"; then
48395     printf "* ccache status:  $CCACHE_STATUS\n"
48396   fi
48397   printf "\n"
48398 
48399   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
48400     printf "NOTE: You have requested to build more than one version of the JVM, which\n"
48401     printf "will result in longer build times.\n"
48402     printf "\n"
48403   fi
48404 
48405   if test "x$FOUND_ALT_VARIABLES" != "x"; then
48406     printf "WARNING: You have old-style ALT_ environment variables set.\n"
48407     printf "These are not respected, and will be ignored. It is recommended\n"
48408     printf "that you clean your environment. The following variables are set:\n"
48409     printf "$FOUND_ALT_VARIABLES\n"
48410     printf "\n"
48411   fi
48412 
48413   if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
48414     printf "WARNING: Your build output directory is not on a local disk.\n"
48415     printf "This will severely degrade build performance!\n"
48416     printf "It is recommended that you create an output directory on a local disk,\n"
48417     printf "and run the configure script again from that directory.\n"
48418     printf "\n"
48419   fi
48420 
48421   if test "x$IS_RECONFIGURE" = "xyes"; then
48422     printf "WARNING: The result of this configuration has overridden an older\n"
48423     printf "configuration. You *should* run 'make clean' to make sure you get a\n"
48424     printf "proper build. Failure to do so might result in strange build problems.\n"
48425     printf "\n"
48426   fi
48427