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_LIBPNG
 650 PNG_LIBS
 651 PNG_CFLAGS



 652 USE_EXTERNAL_LIBGIF
 653 USE_EXTERNAL_LIBJPEG
 654 ALSA_LIBS
 655 ALSA_CFLAGS
 656 FREETYPE_BUNDLE_LIB_PATH
 657 FREETYPE_LIBS
 658 FREETYPE_CFLAGS
 659 CUPS_CFLAGS
 660 OPENWIN_HOME
 661 X_EXTRA_LIBS
 662 X_LIBS
 663 X_PRE_LIBS
 664 X_CFLAGS
 665 XMKMF
 666 FIXPATH
 667 CXXFLAGS_DEBUG_SYMBOLS
 668 CFLAGS_DEBUG_SYMBOLS
 669 ZIP_DEBUGINFO_FILES
 670 ENABLE_DEBUG_SYMBOLS
 671 USING_BROKEN_SUSE_LD
 672 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 673 ZERO_ARCHFLAG
 674 LDFLAGS_CXX_JDK
 675 LDFLAGS_JDKEXE_SUFFIX
 676 LDFLAGS_JDKLIB_SUFFIX
 677 LDFLAGS_JDKEXE
 678 LDFLAGS_JDKLIB
 679 CXXFLAGS_JDKEXE
 680 CXXFLAGS_JDKLIB
 681 CFLAGS_JDKEXE
 682 CFLAGS_JDKLIB
 683 MACOSX_VERSION_MIN
 684 PACKAGE_PATH
 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 LIPO
 718 ac_ct_OBJDUMP
 719 OBJDUMP
 720 ac_ct_OBJCOPY
 721 OBJCOPY
 722 ac_ct_STRIP
 723 ac_ct_NM
 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 ac_ct_CXX
 753 CXXFLAGS
 754 CXX
 755 ac_ct_PROPER_COMPILER_CXX
 756 PROPER_COMPILER_CXX
 757 TOOLS_DIR_CXX
 758 POTENTIAL_CXX
 759 COMPILER_TARGET_BITS_FLAG
 760 OBJEXT
 761 EXEEXT
 762 ac_ct_CC
 763 CPPFLAGS
 764 LDFLAGS
 765 CFLAGS
 766 CC
 767 ac_ct_PROPER_COMPILER_CC
 768 PROPER_COMPILER_CC
 769 TOOLS_DIR_CC
 770 POTENTIAL_CC
 771 BUILD_LD
 772 BUILD_CXX
 773 BUILD_CC
 774 MSVCR_DLL
 775 VS_PATH
 776 VS_LIB
 777 VS_INCLUDE
 778 CYGWIN_LINK
 779 AR_OUT_OPTION
 780 LD_OUT_OPTION
 781 EXE_OUT_OPTION
 782 CC_OUT_OPTION
 783 BUILD_HOTSPOT
 784 HOTSPOT_DIST
 785 BUILD_OUTPUT
 786 OVERRIDE_SRC_ROOT
 787 ADD_SRC_ROOT
 788 JDK_TOPDIR
 789 NASHORN_TOPDIR
 790 HOTSPOT_TOPDIR
 791 JAXWS_TOPDIR
 792 JAXP_TOPDIR
 793 CORBA_TOPDIR
 794 LANGTOOLS_TOPDIR
 795 BOOT_JDK_JVMARGS
 796 JAVAC_FLAGS
 797 BOOT_JDK_SOURCETARGET
 798 JARSIGNER
 799 NATIVE2ASCII
 800 JAR
 801 JAVAH
 802 JAVAC
 803 JAVA
 804 BOOT_JDK
 805 BOOT_TOOLSJAR
 806 BOOT_RTJAR
 807 JAVA_CHECK
 808 JAVAC_CHECK
 809 COOKED_BUILD_NUMBER
 810 JDK_VERSION
 811 COPYRIGHT_YEAR
 812 MACOSX_BUNDLE_ID_BASE
 813 MACOSX_BUNDLE_NAME_BASE
 814 COMPANY_NAME
 815 JDK_RC_PLATFORM_NAME
 816 PRODUCT_SUFFIX
 817 PRODUCT_NAME
 818 LAUNCHER_NAME
 819 MILESTONE
 820 JDK_BUILD_NUMBER
 821 JDK_UPDATE_VERSION
 822 JDK_MICRO_VERSION
 823 JDK_MINOR_VERSION
 824 JDK_MAJOR_VERSION
 825 USER_RELEASE_SUFFIX
 826 COMPRESS_JARS
 827 RMICONNECTOR_IIOP
 828 UNLIMITED_CRYPTO
 829 CACERTS_FILE
 830 TEST_IN_BUILD
 831 BUILD_HEADLESS
 832 SUPPORT_HEADFUL
 833 SUPPORT_HEADLESS
 834 BDEPS_FTP
 835 BDEPS_UNZIP
 836 OS_VERSION_MICRO
 837 OS_VERSION_MINOR
 838 OS_VERSION_MAJOR
 839 PKG_CONFIG
 840 CODESIGN
 841 XATTR
 842 DSYMUTIL
 843 IS_GNU_TIME
 844 TIME
 845 STAT
 846 HG
 847 READELF
 848 OTOOL
 849 LDD
 850 ZIP
 851 UNZIP
 852 FIND_DELETE
 853 MAKE
 854 CHECK_TOOLSDIR_MAKE
 855 CHECK_TOOLSDIR_GMAKE
 856 CHECK_MAKE
 857 CHECK_GMAKE
 858 PKGHANDLER
 859 OUTPUT_ROOT
 860 CONF_NAME
 861 SPEC
 862 BUILD_VARIANT_RELEASE
 863 DEBUG_CLASSFILES
 864 FASTDEBUG
 865 VARIANT
 866 DEBUG_LEVEL
 867 MACOSX_UNIVERSAL
 868 INCLUDE_SA
 869 JVM_VARIANT_CORE
 870 JVM_VARIANT_ZEROSHARK
 871 JVM_VARIANT_ZERO
 872 JVM_VARIANT_KERNEL
 873 JVM_VARIANT_MINIMAL1
 874 JVM_VARIANT_CLIENT
 875 JVM_VARIANT_SERVER
 876 JVM_VARIANTS
 877 JVM_INTERPRETER
 878 JDK_VARIANT
 879 SET_OPENJDK
 880 BUILD_LOG_WRAPPER
 881 BUILD_LOG_PREVIOUS
 882 BUILD_LOG
 883 SYS_ROOT
 884 PATH_SEP
 885 SRC_ROOT
 886 ZERO_ARCHDEF
 887 DEFINE_CROSS_COMPILE_ARCH
 888 LP64
 889 OPENJDK_TARGET_OS_EXPORT_DIR
 890 OPENJDK_TARGET_OS_API_DIR
 891 OPENJDK_TARGET_CPU_JLI_CFLAGS
 892 OPENJDK_TARGET_CPU_OSARCH
 893 OPENJDK_TARGET_CPU_ISADIR
 894 OPENJDK_TARGET_CPU_LIBDIR
 895 OPENJDK_TARGET_CPU_LEGACY_LIB
 896 OPENJDK_TARGET_CPU_LEGACY
 897 REQUIRED_OS_VERSION
 898 REQUIRED_OS_NAME
 899 COMPILE_TYPE
 900 OPENJDK_TARGET_CPU_ENDIAN
 901 OPENJDK_TARGET_CPU_BITS
 902 OPENJDK_TARGET_CPU_ARCH
 903 OPENJDK_TARGET_CPU
 904 OPENJDK_TARGET_OS_API
 905 OPENJDK_TARGET_OS
 906 OPENJDK_BUILD_CPU_ENDIAN
 907 OPENJDK_BUILD_CPU_BITS
 908 OPENJDK_BUILD_CPU_ARCH
 909 OPENJDK_BUILD_CPU
 910 OPENJDK_BUILD_OS_API
 911 OPENJDK_BUILD_OS
 912 OPENJDK_BUILD_AUTOCONF_NAME
 913 OPENJDK_TARGET_AUTOCONF_NAME
 914 target_os
 915 target_vendor
 916 target_cpu
 917 target
 918 host_os
 919 host_vendor
 920 host_cpu
 921 host
 922 build_os
 923 build_vendor
 924 build_cpu
 925 build
 926 SETFILE
 927 DF
 928 READLINK
 929 CYGPATH
 930 SED
 931 FGREP
 932 EGREP
 933 GREP
 934 AWK
 935 XARGS
 936 WHICH
 937 WC
 938 UNIQ
 939 UNAME
 940 TR
 941 TOUCH
 942 TEE
 943 TAR
 944 TAIL
 945 SORT
 946 SH
 947 RM
 948 PRINTF
 949 NAWK
 950 MV
 951 MKTEMP
 952 MKDIR
 953 LS
 954 LN
 955 HEAD
 956 FIND
 957 FILE
 958 EXPR
 959 ECHO
 960 DIRNAME
 961 DIFF
 962 DATE
 963 CUT
 964 CPIO
 965 CP
 966 COMM
 967 CMP
 968 CHMOD
 969 CAT
 970 BASH
 971 BASENAME
 972 DATE_WHEN_CONFIGURED
 973 CONFIGURE_COMMAND_LINE
 974 CUSTOM_MAKE_DIR
 975 target_alias
 976 host_alias
 977 build_alias
 978 LIBS
 979 ECHO_T
 980 ECHO_N
 981 ECHO_C
 982 DEFS
 983 mandir
 984 localedir
 985 libdir
 986 psdir
 987 pdfdir
 988 dvidir
 989 htmldir
 990 infodir
 991 docdir
 992 oldincludedir
 993 includedir
 994 localstatedir
 995 sharedstatedir
 996 sysconfdir
 997 datadir
 998 datarootdir
 999 libexecdir
1000 sbindir
1001 bindir
1002 program_transform_name
1003 prefix
1004 exec_prefix
1005 PACKAGE_URL
1006 PACKAGE_BUGREPORT
1007 PACKAGE_STRING
1008 PACKAGE_VERSION
1009 PACKAGE_TARNAME
1010 PACKAGE_NAME
1011 PATH_SEPARATOR
1012 SHELL'
1013 ac_subst_files=''
1014 ac_user_opts='
1015 enable_option_checking
1016 with_custom_make_dir
1017 with_target_bits
1018 with_sys_root
1019 with_tools_dir
1020 with_devkit
1021 enable_openjdk_only
1022 with_jdk_variant
1023 with_jvm_interpreter
1024 with_jvm_variants
1025 enable_debug
1026 with_debug_level
1027 with_conf_name
1028 with_builddeps_conf
1029 with_builddeps_server
1030 with_builddeps_dir
1031 with_builddeps_group
1032 enable_headful
1033 enable_hotspot_test_in_build
1034 with_cacerts_file
1035 enable_unlimited_crypto
1036 enable_rmiconnector_iiop
1037 with_milestone
1038 with_update_version
1039 with_user_release_suffix
1040 with_build_number
1041 with_boot_jdk
1042 with_boot_jdk_jvmargs
1043 with_add_source_root
1044 with_override_source_root
1045 with_adds_and_overrides
1046 with_override_langtools
1047 with_override_corba
1048 with_override_jaxp
1049 with_override_jaxws
1050 with_override_hotspot
1051 with_override_nashorn
1052 with_override_jdk
1053 with_import_hotspot
1054 with_msvcr_dll
1055 with_dxsdk
1056 with_dxsdk_lib
1057 with_dxsdk_include
1058 with_jtreg
1059 with_extra_cflags
1060 with_extra_cxxflags
1061 with_extra_ldflags
1062 enable_debug_symbols
1063 enable_zip_debug_info
1064 enable_macosx_runtime_support
1065 with_x
1066 with_cups
1067 with_cups_include
1068 with_freetype
1069 with_freetype_include
1070 with_freetype_lib
1071 enable_freetype_bundling
1072 with_alsa
1073 with_alsa_include
1074 with_alsa_lib
1075 with_giflib

1076 with_libpng
1077 with_zlib
1078 with_stdc__lib
1079 with_num_cores
1080 with_memory_size
1081 with_jobs
1082 with_sjavac_server_java
1083 enable_sjavac
1084 enable_precompiled_headers
1085 enable_ccache
1086 with_ccache_dir
1087 '
1088       ac_precious_vars='build_alias
1089 host_alias
1090 target_alias
1091 BASENAME
1092 BASH
1093 CAT
1094 CHMOD
1095 CMP
1096 COMM
1097 CP
1098 CPIO
1099 CUT
1100 DATE
1101 DIFF
1102 DIRNAME
1103 ECHO
1104 EXPR
1105 FILE
1106 FIND
1107 HEAD
1108 LN
1109 LS
1110 MKDIR
1111 MKTEMP
1112 MV
1113 NAWK
1114 PRINTF
1115 RM
1116 SH
1117 SORT
1118 TAIL
1119 TAR
1120 TEE
1121 TOUCH
1122 TR
1123 UNAME
1124 UNIQ
1125 WC
1126 WHICH
1127 XARGS
1128 AWK
1129 GREP
1130 EGREP
1131 FGREP
1132 SED
1133 CYGPATH
1134 READLINK
1135 DF
1136 SETFILE
1137 UNZIP
1138 ZIP
1139 LDD
1140 OTOOL
1141 READELF
1142 HG
1143 STAT
1144 TIME
1145 DSYMUTIL
1146 XATTR
1147 CODESIGN
1148 PKG_CONFIG
1149 JAVA
1150 JAVAC
1151 JAVAH
1152 JAR
1153 NATIVE2ASCII
1154 JARSIGNER
1155 BUILD_CC
1156 BUILD_CXX
1157 BUILD_LD
1158 CC
1159 CFLAGS
1160 LDFLAGS
1161 LIBS
1162 CPPFLAGS
1163 CXX
1164 CXXFLAGS
1165 CCC
1166 OBJC
1167 OBJCFLAGS
1168 AR
1169 CPP
1170 CXXCPP
1171 AS
1172 NM
1173 GNM
1174 STRIP
1175 MCS
1176 OBJCOPY
1177 OBJDUMP
1178 LIPO
1179 JTREGEXE
1180 XMKMF
1181 FREETYPE_CFLAGS
1182 FREETYPE_LIBS
1183 ALSA_CFLAGS
1184 ALSA_LIBS


1185 PNG_CFLAGS
1186 PNG_LIBS
1187 LIBFFI_CFLAGS
1188 LIBFFI_LIBS
1189 CCACHE'
1190 
1191 
1192 # Initialize some variables set by options.
1193 ac_init_help=
1194 ac_init_version=false
1195 ac_unrecognized_opts=
1196 ac_unrecognized_sep=
1197 # The variables have the same names as the options, with
1198 # dashes changed to underlines.
1199 cache_file=/dev/null
1200 exec_prefix=NONE
1201 no_create=
1202 no_recursion=
1203 prefix=NONE
1204 program_prefix=NONE
1205 program_suffix=NONE
1206 program_transform_name=s,x,x,
1207 silent=
1208 site=
1209 srcdir=
1210 verbose=
1211 x_includes=NONE
1212 x_libraries=NONE
1213 
1214 # Installation directory options.
1215 # These are left unexpanded so users can "make install exec_prefix=/foo"
1216 # and all the variables that are supposed to be based on exec_prefix
1217 # by default will actually change.
1218 # Use braces instead of parens because sh, perl, etc. also accept them.
1219 # (The list follows the same order as the GNU Coding Standards.)
1220 bindir='${exec_prefix}/bin'
1221 sbindir='${exec_prefix}/sbin'
1222 libexecdir='${exec_prefix}/libexec'
1223 datarootdir='${prefix}/share'
1224 datadir='${datarootdir}'
1225 sysconfdir='${prefix}/etc'
1226 sharedstatedir='${prefix}/com'
1227 localstatedir='${prefix}/var'
1228 includedir='${prefix}/include'
1229 oldincludedir='/usr/include'
1230 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1231 infodir='${datarootdir}/info'
1232 htmldir='${docdir}'
1233 dvidir='${docdir}'
1234 pdfdir='${docdir}'
1235 psdir='${docdir}'
1236 libdir='${exec_prefix}/lib'
1237 localedir='${datarootdir}/locale'
1238 mandir='${datarootdir}/man'
1239 
1240 ac_prev=
1241 ac_dashdash=
1242 for ac_option
1243 do
1244   # If the previous option needs an argument, assign it.
1245   if test -n "$ac_prev"; then
1246     eval $ac_prev=\$ac_option
1247     ac_prev=
1248     continue
1249   fi
1250 
1251   case $ac_option in
1252   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1253   *=)   ac_optarg= ;;
1254   *)    ac_optarg=yes ;;
1255   esac
1256 
1257   # Accept the important Cygnus configure options, so we can diagnose typos.
1258 
1259   case $ac_dashdash$ac_option in
1260   --)
1261     ac_dashdash=yes ;;
1262 
1263   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1264     ac_prev=bindir ;;
1265   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1266     bindir=$ac_optarg ;;
1267 
1268   -build | --build | --buil | --bui | --bu)
1269     ac_prev=build_alias ;;
1270   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1271     build_alias=$ac_optarg ;;
1272 
1273   -cache-file | --cache-file | --cache-fil | --cache-fi \
1274   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1275     ac_prev=cache_file ;;
1276   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1277   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1278     cache_file=$ac_optarg ;;
1279 
1280   --config-cache | -C)
1281     cache_file=config.cache ;;
1282 
1283   -datadir | --datadir | --datadi | --datad)
1284     ac_prev=datadir ;;
1285   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1286     datadir=$ac_optarg ;;
1287 
1288   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1289   | --dataroo | --dataro | --datar)
1290     ac_prev=datarootdir ;;
1291   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1292   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1293     datarootdir=$ac_optarg ;;
1294 
1295   -disable-* | --disable-*)
1296     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299       as_fn_error $? "invalid feature name: $ac_useropt"
1300     ac_useropt_orig=$ac_useropt
1301     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302     case $ac_user_opts in
1303       *"
1304 "enable_$ac_useropt"
1305 "*) ;;
1306       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1307          ac_unrecognized_sep=', ';;
1308     esac
1309     eval enable_$ac_useropt=no ;;
1310 
1311   -docdir | --docdir | --docdi | --doc | --do)
1312     ac_prev=docdir ;;
1313   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1314     docdir=$ac_optarg ;;
1315 
1316   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1317     ac_prev=dvidir ;;
1318   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1319     dvidir=$ac_optarg ;;
1320 
1321   -enable-* | --enable-*)
1322     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1323     # Reject names that are not valid shell variable names.
1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325       as_fn_error $? "invalid feature name: $ac_useropt"
1326     ac_useropt_orig=$ac_useropt
1327     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328     case $ac_user_opts in
1329       *"
1330 "enable_$ac_useropt"
1331 "*) ;;
1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1333          ac_unrecognized_sep=', ';;
1334     esac
1335     eval enable_$ac_useropt=\$ac_optarg ;;
1336 
1337   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1338   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1339   | --exec | --exe | --ex)
1340     ac_prev=exec_prefix ;;
1341   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1342   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1343   | --exec=* | --exe=* | --ex=*)
1344     exec_prefix=$ac_optarg ;;
1345 
1346   -gas | --gas | --ga | --g)
1347     # Obsolete; use --with-gas.
1348     with_gas=yes ;;
1349 
1350   -help | --help | --hel | --he | -h)
1351     ac_init_help=long ;;
1352   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1353     ac_init_help=recursive ;;
1354   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1355     ac_init_help=short ;;
1356 
1357   -host | --host | --hos | --ho)
1358     ac_prev=host_alias ;;
1359   -host=* | --host=* | --hos=* | --ho=*)
1360     host_alias=$ac_optarg ;;
1361 
1362   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1363     ac_prev=htmldir ;;
1364   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1365   | --ht=*)
1366     htmldir=$ac_optarg ;;
1367 
1368   -includedir | --includedir | --includedi | --included | --include \
1369   | --includ | --inclu | --incl | --inc)
1370     ac_prev=includedir ;;
1371   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1372   | --includ=* | --inclu=* | --incl=* | --inc=*)
1373     includedir=$ac_optarg ;;
1374 
1375   -infodir | --infodir | --infodi | --infod | --info | --inf)
1376     ac_prev=infodir ;;
1377   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1378     infodir=$ac_optarg ;;
1379 
1380   -libdir | --libdir | --libdi | --libd)
1381     ac_prev=libdir ;;
1382   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1383     libdir=$ac_optarg ;;
1384 
1385   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1386   | --libexe | --libex | --libe)
1387     ac_prev=libexecdir ;;
1388   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1389   | --libexe=* | --libex=* | --libe=*)
1390     libexecdir=$ac_optarg ;;
1391 
1392   -localedir | --localedir | --localedi | --localed | --locale)
1393     ac_prev=localedir ;;
1394   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1395     localedir=$ac_optarg ;;
1396 
1397   -localstatedir | --localstatedir | --localstatedi | --localstated \
1398   | --localstate | --localstat | --localsta | --localst | --locals)
1399     ac_prev=localstatedir ;;
1400   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1401   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1402     localstatedir=$ac_optarg ;;
1403 
1404   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1405     ac_prev=mandir ;;
1406   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1407     mandir=$ac_optarg ;;
1408 
1409   -nfp | --nfp | --nf)
1410     # Obsolete; use --without-fp.
1411     with_fp=no ;;
1412 
1413   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1414   | --no-cr | --no-c | -n)
1415     no_create=yes ;;
1416 
1417   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1418   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1419     no_recursion=yes ;;
1420 
1421   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1422   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1423   | --oldin | --oldi | --old | --ol | --o)
1424     ac_prev=oldincludedir ;;
1425   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1426   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1427   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1428     oldincludedir=$ac_optarg ;;
1429 
1430   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1431     ac_prev=prefix ;;
1432   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1433     prefix=$ac_optarg ;;
1434 
1435   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1436   | --program-pre | --program-pr | --program-p)
1437     ac_prev=program_prefix ;;
1438   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1439   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1440     program_prefix=$ac_optarg ;;
1441 
1442   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1443   | --program-suf | --program-su | --program-s)
1444     ac_prev=program_suffix ;;
1445   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1446   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1447     program_suffix=$ac_optarg ;;
1448 
1449   -program-transform-name | --program-transform-name \
1450   | --program-transform-nam | --program-transform-na \
1451   | --program-transform-n | --program-transform- \
1452   | --program-transform | --program-transfor \
1453   | --program-transfo | --program-transf \
1454   | --program-trans | --program-tran \
1455   | --progr-tra | --program-tr | --program-t)
1456     ac_prev=program_transform_name ;;
1457   -program-transform-name=* | --program-transform-name=* \
1458   | --program-transform-nam=* | --program-transform-na=* \
1459   | --program-transform-n=* | --program-transform-=* \
1460   | --program-transform=* | --program-transfor=* \
1461   | --program-transfo=* | --program-transf=* \
1462   | --program-trans=* | --program-tran=* \
1463   | --progr-tra=* | --program-tr=* | --program-t=*)
1464     program_transform_name=$ac_optarg ;;
1465 
1466   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1467     ac_prev=pdfdir ;;
1468   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1469     pdfdir=$ac_optarg ;;
1470 
1471   -psdir | --psdir | --psdi | --psd | --ps)
1472     ac_prev=psdir ;;
1473   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1474     psdir=$ac_optarg ;;
1475 
1476   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477   | -silent | --silent | --silen | --sile | --sil)
1478     silent=yes ;;
1479 
1480   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1481     ac_prev=sbindir ;;
1482   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1483   | --sbi=* | --sb=*)
1484     sbindir=$ac_optarg ;;
1485 
1486   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1487   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1488   | --sharedst | --shareds | --shared | --share | --shar \
1489   | --sha | --sh)
1490     ac_prev=sharedstatedir ;;
1491   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1492   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1493   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1494   | --sha=* | --sh=*)
1495     sharedstatedir=$ac_optarg ;;
1496 
1497   -site | --site | --sit)
1498     ac_prev=site ;;
1499   -site=* | --site=* | --sit=*)
1500     site=$ac_optarg ;;
1501 
1502   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1503     ac_prev=srcdir ;;
1504   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1505     srcdir=$ac_optarg ;;
1506 
1507   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1508   | --syscon | --sysco | --sysc | --sys | --sy)
1509     ac_prev=sysconfdir ;;
1510   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1511   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1512     sysconfdir=$ac_optarg ;;
1513 
1514   -target | --target | --targe | --targ | --tar | --ta | --t)
1515     ac_prev=target_alias ;;
1516   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1517     target_alias=$ac_optarg ;;
1518 
1519   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1520     verbose=yes ;;
1521 
1522   -version | --version | --versio | --versi | --vers | -V)
1523     ac_init_version=: ;;
1524 
1525   -with-* | --with-*)
1526     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1527     # Reject names that are not valid shell variable names.
1528     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1529       as_fn_error $? "invalid package name: $ac_useropt"
1530     ac_useropt_orig=$ac_useropt
1531     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1532     case $ac_user_opts in
1533       *"
1534 "with_$ac_useropt"
1535 "*) ;;
1536       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1537          ac_unrecognized_sep=', ';;
1538     esac
1539     eval with_$ac_useropt=\$ac_optarg ;;
1540 
1541   -without-* | --without-*)
1542     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1543     # Reject names that are not valid shell variable names.
1544     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1545       as_fn_error $? "invalid package name: $ac_useropt"
1546     ac_useropt_orig=$ac_useropt
1547     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1548     case $ac_user_opts in
1549       *"
1550 "with_$ac_useropt"
1551 "*) ;;
1552       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1553          ac_unrecognized_sep=', ';;
1554     esac
1555     eval with_$ac_useropt=no ;;
1556 
1557   --x)
1558     # Obsolete; use --with-x.
1559     with_x=yes ;;
1560 
1561   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1562   | --x-incl | --x-inc | --x-in | --x-i)
1563     ac_prev=x_includes ;;
1564   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1565   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1566     x_includes=$ac_optarg ;;
1567 
1568   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1569   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1570     ac_prev=x_libraries ;;
1571   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1572   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1573     x_libraries=$ac_optarg ;;
1574 
1575   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1576 Try \`$0 --help' for more information"
1577     ;;
1578 
1579   *=*)
1580     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1581     # Reject names that are not valid shell variable names.
1582     case $ac_envvar in #(
1583       '' | [0-9]* | *[!_$as_cr_alnum]* )
1584       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1585     esac
1586     eval $ac_envvar=\$ac_optarg
1587     export $ac_envvar ;;
1588 
1589   *)
1590     # FIXME: should be removed in autoconf 3.0.
1591     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1592     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1593       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1594     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1595     ;;
1596 
1597   esac
1598 done
1599 
1600 if test -n "$ac_prev"; then
1601   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1602   as_fn_error $? "missing argument to $ac_option"
1603 fi
1604 
1605 if test -n "$ac_unrecognized_opts"; then
1606   case $enable_option_checking in
1607     no) ;;
1608     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1609     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1610   esac
1611 fi
1612 
1613 # Check all directory arguments for consistency.
1614 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1615                 datadir sysconfdir sharedstatedir localstatedir includedir \
1616                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1617                 libdir localedir mandir
1618 do
1619   eval ac_val=\$$ac_var
1620   # Remove trailing slashes.
1621   case $ac_val in
1622     */ )
1623       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1624       eval $ac_var=\$ac_val;;
1625   esac
1626   # Be sure to have absolute directory names.
1627   case $ac_val in
1628     [\\/$]* | ?:[\\/]* )  continue;;
1629     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1630   esac
1631   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1632 done
1633 
1634 # There might be people who depend on the old broken behavior: `$host'
1635 # used to hold the argument of --host etc.
1636 # FIXME: To remove some day.
1637 build=$build_alias
1638 host=$host_alias
1639 target=$target_alias
1640 
1641 # FIXME: To remove some day.
1642 if test "x$host_alias" != x; then
1643   if test "x$build_alias" = x; then
1644     cross_compiling=maybe
1645   elif test "x$build_alias" != "x$host_alias"; then
1646     cross_compiling=yes
1647   fi
1648 fi
1649 
1650 ac_tool_prefix=
1651 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1652 
1653 test "$silent" = yes && exec 6>/dev/null
1654 
1655 
1656 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657 ac_ls_di=`ls -di .` &&
1658 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1659   as_fn_error $? "working directory cannot be determined"
1660 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1661   as_fn_error $? "pwd does not report name of working directory"
1662 
1663 
1664 # Find the source files, if location was not specified.
1665 if test -z "$srcdir"; then
1666   ac_srcdir_defaulted=yes
1667   # Try the directory containing this script, then the parent directory.
1668   ac_confdir=`$as_dirname -- "$as_myself" ||
1669 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670          X"$as_myself" : 'X\(//\)[^/]' \| \
1671          X"$as_myself" : 'X\(//\)$' \| \
1672          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673 $as_echo X"$as_myself" |
1674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1675             s//\1/
1676             q
1677           }
1678           /^X\(\/\/\)[^/].*/{
1679             s//\1/
1680             q
1681           }
1682           /^X\(\/\/\)$/{
1683             s//\1/
1684             q
1685           }
1686           /^X\(\/\).*/{
1687             s//\1/
1688             q
1689           }
1690           s/.*/./; q'`
1691   srcdir=$ac_confdir
1692   if test ! -r "$srcdir/$ac_unique_file"; then
1693     srcdir=..
1694   fi
1695 else
1696   ac_srcdir_defaulted=no
1697 fi
1698 if test ! -r "$srcdir/$ac_unique_file"; then
1699   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1700   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1701 fi
1702 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1703 ac_abs_confdir=`(
1704         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1705         pwd)`
1706 # When building in place, set srcdir=.
1707 if test "$ac_abs_confdir" = "$ac_pwd"; then
1708   srcdir=.
1709 fi
1710 # Remove unnecessary trailing slashes from srcdir.
1711 # Double slashes in file names in object file debugging info
1712 # mess up M-x gdb in Emacs.
1713 case $srcdir in
1714 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1715 esac
1716 for ac_var in $ac_precious_vars; do
1717   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718   eval ac_env_${ac_var}_value=\$${ac_var}
1719   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1721 done
1722 
1723 #
1724 # Report the --help message.
1725 #
1726 if test "$ac_init_help" = "long"; then
1727   # Omit some internal or obsolete options to make the list less imposing.
1728   # This message is too long to be a string in the A/UX 3.1 sh.
1729   cat <<_ACEOF
1730 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1731 
1732 Usage: $0 [OPTION]... [VAR=VALUE]...
1733 
1734 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735 VAR=VALUE.  See below for descriptions of some of the useful variables.
1736 
1737 Defaults for the options are specified in brackets.
1738 
1739 Configuration:
1740   -h, --help              display this help and exit
1741       --help=short        display options specific to this package
1742       --help=recursive    display the short help of all the included packages
1743   -V, --version           display version information and exit
1744   -q, --quiet, --silent   do not print \`checking ...' messages
1745       --cache-file=FILE   cache test results in FILE [disabled]
1746   -C, --config-cache      alias for \`--cache-file=config.cache'
1747   -n, --no-create         do not create output files
1748       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1749 
1750 Installation directories:
1751   --prefix=PREFIX         install architecture-independent files in PREFIX
1752                           [$ac_default_prefix]
1753   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1754                           [PREFIX]
1755 
1756 By default, \`make install' will install all the files in
1757 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1758 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759 for instance \`--prefix=\$HOME'.
1760 
1761 For better control, use the options below.
1762 
1763 Fine tuning of the installation directories:
1764   --bindir=DIR            user executables [EPREFIX/bin]
1765   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1766   --libexecdir=DIR        program executables [EPREFIX/libexec]
1767   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1768   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1769   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1770   --libdir=DIR            object code libraries [EPREFIX/lib]
1771   --includedir=DIR        C header files [PREFIX/include]
1772   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1773   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1774   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1775   --infodir=DIR           info documentation [DATAROOTDIR/info]
1776   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1777   --mandir=DIR            man documentation [DATAROOTDIR/man]
1778   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1779   --htmldir=DIR           html documentation [DOCDIR]
1780   --dvidir=DIR            dvi documentation [DOCDIR]
1781   --pdfdir=DIR            pdf documentation [DOCDIR]
1782   --psdir=DIR             ps documentation [DOCDIR]
1783 _ACEOF
1784 
1785   cat <<\_ACEOF
1786 
1787 X features:
1788   --x-includes=DIR    X include files are in DIR
1789   --x-libraries=DIR   X library files are in DIR
1790 
1791 System types:
1792   --build=BUILD     configure for building on BUILD [guessed]
1793   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1794   --target=TARGET   configure for building compilers for TARGET [HOST]
1795 _ACEOF
1796 fi
1797 
1798 if test -n "$ac_init_help"; then
1799   case $ac_init_help in
1800      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1801    esac
1802   cat <<\_ACEOF
1803 
1804 Optional Features:
1805   --disable-option-checking  ignore unrecognized --enable/--with options
1806   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1807   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1808   --enable-openjdk-only   suppress building custom source even if present
1809                           [disabled]
1810   --enable-debug          set the debug level to fastdebug (shorthand for
1811                           --with-debug-level=fastdebug) [disabled]
1812   --disable-headful       disable building headful support (graphical UI
1813                           support) [enabled]
1814   --enable-hotspot-test-in-build
1815                           run the Queens test after Hotspot build [disabled]
1816   --enable-unlimited-crypto
1817                           Enable unlimited crypto policy [disabled]
1818   --enable-rmiconnector-iiop
1819                           enable the JMX RMIConnector iiop transport
1820                           [disabled]
1821   --disable-debug-symbols disable generation of debug symbols [enabled]
1822   --disable-zip-debug-info
1823                           disable zipping of debug-info files [enabled]
1824   --enable-macosx-runtime-support
1825                           Deprecated. Option is kept for backwards
1826                           compatibility and is ignored
1827   --disable-freetype-bundling
1828                           disable bundling of the freetype library with the
1829                           build result [enabled on Windows or when using
1830                           --with-freetype, disabled otherwise]
1831   --enable-sjavac         use sjavac to do fast incremental compiles
1832                           [disabled]
1833   --disable-precompiled-headers
1834                           disable using precompiled headers when compiling C++
1835                           [enabled]
1836   --enable-ccache         enable using ccache to speed up recompilations
1837                           [disabled]
1838 
1839 Optional Packages:
1840   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1841   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1842   --with-custom-make-dir  use this directory for custom build/make files
1843   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1844                           support it), e.g. --with-target-bits=32 [guessed]
1845   --with-sys-root         pass this sys-root to the compilers and tools (for
1846                           cross-compiling)
1847   --with-tools-dir        search this directory for compilers and tools (for
1848                           cross-compiling)
1849   --with-devkit           use this directory as base for tools-dir and
1850                           sys-root (for cross-compiling)
1851   --with-jdk-variant      JDK variant to build (normal) [normal]
1852   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1853   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1854                           client, minimal1, kernel, zero, zeroshark, core)
1855                           [server]
1856   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1857                           [release]
1858   --with-conf-name        use this as the name of the configuration [generated
1859                           from important configuration options]
1860   --with-builddeps-conf   use this configuration file for the builddeps
1861   --with-builddeps-server download and use build dependencies from this server
1862                           url
1863   --with-builddeps-dir    store downloaded build dependencies here
1864                           [/localhome/builddeps]
1865   --with-builddeps-group  chgrp the downloaded build dependencies to this
1866                           group
1867   --with-cacerts-file     specify alternative cacerts file
1868   --with-milestone        Set milestone value for build [internal]
1869   --with-update-version   Set update version value for build [b00]
1870   --with-user-release-suffix
1871                           Add a custom string to the version string if build
1872                           number isn't set.[username_builddateb00]
1873   --with-build-number     Set build number value for build [b00]
1874   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1875   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1876                           invocations of the Boot JDK, overriding the default
1877                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1878                           -enableassertions"
1879   --with-add-source-root  for each and every source directory, look in this
1880                           additional source root for the same directory; if it
1881                           exists and have files in it, include it in the build
1882   --with-override-source-root
1883                           for each and every source directory, look in this
1884                           override source root for the same directory; if it
1885                           exists, use that directory instead and ignore the
1886                           directory in the original source root
1887   --with-adds-and-overrides
1888                           use the subdirs 'adds' and 'overrides' in the
1889                           specified directory as add-source-root and
1890                           override-source-root
1891   --with-override-langtools
1892                           use this langtools dir for the build
1893   --with-override-corba   use this corba dir for the build
1894   --with-override-jaxp    use this jaxp dir for the build
1895   --with-override-jaxws   use this jaxws dir for the build
1896   --with-override-hotspot use this hotspot dir for the build
1897   --with-override-nashorn use this nashorn dir for the build
1898   --with-override-jdk     use this jdk dir for the build
1899   --with-import-hotspot   import hotspot binaries from this jdk image or
1900                           hotspot build dist dir instead of building from
1901                           source
1902   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1903                           only) [probed]
1904   --with-dxsdk            Deprecated. Option is kept for backwards
1905                           compatibility and is ignored
1906   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1907                           compatibility and is ignored
1908   --with-dxsdk-include    Deprecated. Option is kept for backwards
1909                           compatibility and is ignored
1910   --with-jtreg            Regression Test Harness [probed]
1911   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1912   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1913   --with-extra-ldflags    extra flags to be used when linking jdk
1914   --with-x                use the X Window System
1915   --with-cups             specify prefix directory for the cups package
1916                           (expecting the headers under PATH/include)
1917   --with-cups-include     specify directory for the cups include files
1918   --with-freetype         specify prefix directory for the freetype package
1919                           (expecting the libraries under PATH/lib and the
1920                           headers under PATH/include)
1921   --with-freetype-include specify directory for the freetype include files
1922   --with-freetype-lib     specify directory for the freetype library
1923   --with-alsa             specify prefix directory for the alsa package
1924                           (expecting the libraries under PATH/lib and the
1925                           headers under PATH/include)
1926   --with-alsa-include     specify directory for the alsa include files
1927   --with-alsa-lib         specify directory for the alsa library
1928   --with-giflib           use giflib from build system or OpenJDK source
1929                           (system, bundled) [bundled]


1930   --with-libpng           use libpng from build system or OpenJDK source
1931                           (system, bundled) [bundled]
1932   --with-zlib             use zlib from build system or OpenJDK source
1933                           (system, bundled) [bundled]
1934   --with-stdc++lib=<static>,<dynamic>,<default>
1935                           force linking of the C++ runtime on Linux to either
1936                           static or dynamic, default is static with dynamic as
1937                           fallback
1938   --with-num-cores        number of cores in the build system, e.g.
1939                           --with-num-cores=8 [probed]
1940   --with-memory-size      memory (in MB) available in the build system, e.g.
1941                           --with-memory-size=1024 [probed]
1942   --with-jobs             number of parallel jobs to let make run [calculated
1943                           based on cores and memory]
1944   --with-sjavac-server-java
1945                           use this java binary for running the sjavac
1946                           background server [Boot JDK java]
1947   --with-ccache-dir       where to store ccache files [~/.ccache]
1948 
1949 Some influential environment variables:
1950   BASENAME    Override default value for BASENAME
1951   BASH        Override default value for BASH
1952   CAT         Override default value for CAT
1953   CHMOD       Override default value for CHMOD
1954   CMP         Override default value for CMP
1955   COMM        Override default value for COMM
1956   CP          Override default value for CP
1957   CPIO        Override default value for CPIO
1958   CUT         Override default value for CUT
1959   DATE        Override default value for DATE
1960   DIFF        Override default value for DIFF
1961   DIRNAME     Override default value for DIRNAME
1962   ECHO        Override default value for ECHO
1963   EXPR        Override default value for EXPR
1964   FILE        Override default value for FILE
1965   FIND        Override default value for FIND
1966   HEAD        Override default value for HEAD
1967   LN          Override default value for LN
1968   LS          Override default value for LS
1969   MKDIR       Override default value for MKDIR
1970   MKTEMP      Override default value for MKTEMP
1971   MV          Override default value for MV
1972   NAWK        Override default value for NAWK
1973   PRINTF      Override default value for PRINTF
1974   RM          Override default value for RM
1975   SH          Override default value for SH
1976   SORT        Override default value for SORT
1977   TAIL        Override default value for TAIL
1978   TAR         Override default value for TAR
1979   TEE         Override default value for TEE
1980   TOUCH       Override default value for TOUCH
1981   TR          Override default value for TR
1982   UNAME       Override default value for UNAME
1983   UNIQ        Override default value for UNIQ
1984   WC          Override default value for WC
1985   WHICH       Override default value for WHICH
1986   XARGS       Override default value for XARGS
1987   AWK         Override default value for AWK
1988   GREP        Override default value for GREP
1989   EGREP       Override default value for EGREP
1990   FGREP       Override default value for FGREP
1991   SED         Override default value for SED
1992   CYGPATH     Override default value for CYGPATH
1993   READLINK    Override default value for READLINK
1994   DF          Override default value for DF
1995   SETFILE     Override default value for SETFILE
1996   UNZIP       Override default value for UNZIP
1997   ZIP         Override default value for ZIP
1998   LDD         Override default value for LDD
1999   OTOOL       Override default value for OTOOL
2000   READELF     Override default value for READELF
2001   HG          Override default value for HG
2002   STAT        Override default value for STAT
2003   TIME        Override default value for TIME
2004   DSYMUTIL    Override default value for DSYMUTIL
2005   XATTR       Override default value for XATTR
2006   CODESIGN    Override default value for CODESIGN
2007   PKG_CONFIG  path to pkg-config utility
2008   JAVA        Override default value for JAVA
2009   JAVAC       Override default value for JAVAC
2010   JAVAH       Override default value for JAVAH
2011   JAR         Override default value for JAR
2012   NATIVE2ASCII
2013               Override default value for NATIVE2ASCII
2014   JARSIGNER   Override default value for JARSIGNER
2015   BUILD_CC    Override default value for BUILD_CC
2016   BUILD_CXX   Override default value for BUILD_CXX
2017   BUILD_LD    Override default value for BUILD_LD
2018   CC          C compiler command
2019   CFLAGS      C compiler flags
2020   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2021               nonstandard directory <lib dir>
2022   LIBS        libraries to pass to the linker, e.g. -l<library>
2023   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2024               you have headers in a nonstandard directory <include dir>
2025   CXX         C++ compiler command
2026   CXXFLAGS    C++ compiler flags
2027   OBJC        Objective C compiler command
2028   OBJCFLAGS   Objective C compiler flags
2029   AR          Override default value for AR
2030   CPP         C preprocessor
2031   CXXCPP      C++ preprocessor
2032   AS          Override default value for AS
2033   NM          Override default value for NM
2034   GNM         Override default value for GNM
2035   STRIP       Override default value for STRIP
2036   MCS         Override default value for MCS
2037   OBJCOPY     Override default value for OBJCOPY
2038   OBJDUMP     Override default value for OBJDUMP
2039   LIPO        Override default value for LIPO
2040   JTREGEXE    Override default value for JTREGEXE
2041   XMKMF       Path to xmkmf, Makefile generator for X Window System
2042   FREETYPE_CFLAGS
2043               C compiler flags for FREETYPE, overriding pkg-config
2044   FREETYPE_LIBS
2045               linker flags for FREETYPE, overriding pkg-config
2046   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2047   ALSA_LIBS   linker flags for ALSA, overriding pkg-config


2048   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2049   PNG_LIBS    linker flags for PNG, overriding pkg-config
2050   LIBFFI_CFLAGS
2051               C compiler flags for LIBFFI, overriding pkg-config
2052   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2053   CCACHE      Override default value for CCACHE
2054 
2055 Use these variables to override the choices made by `configure' or to help
2056 it to find libraries and programs with nonstandard names/locations.
2057 
2058 Report bugs to <build-dev@openjdk.java.net>.
2059 OpenJDK home page: <http://openjdk.java.net>.
2060 _ACEOF
2061 ac_status=$?
2062 fi
2063 
2064 if test "$ac_init_help" = "recursive"; then
2065   # If there are subdirs, report their specific --help.
2066   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2067     test -d "$ac_dir" ||
2068       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2069       continue
2070     ac_builddir=.
2071 
2072 case "$ac_dir" in
2073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2074 *)
2075   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2076   # A ".." for each directory in $ac_dir_suffix.
2077   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2078   case $ac_top_builddir_sub in
2079   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2080   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2081   esac ;;
2082 esac
2083 ac_abs_top_builddir=$ac_pwd
2084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2085 # for backward compatibility:
2086 ac_top_builddir=$ac_top_build_prefix
2087 
2088 case $srcdir in
2089   .)  # We are building in place.
2090     ac_srcdir=.
2091     ac_top_srcdir=$ac_top_builddir_sub
2092     ac_abs_top_srcdir=$ac_pwd ;;
2093   [\\/]* | ?:[\\/]* )  # Absolute name.
2094     ac_srcdir=$srcdir$ac_dir_suffix;
2095     ac_top_srcdir=$srcdir
2096     ac_abs_top_srcdir=$srcdir ;;
2097   *) # Relative name.
2098     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2099     ac_top_srcdir=$ac_top_build_prefix$srcdir
2100     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2101 esac
2102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2103 
2104     cd "$ac_dir" || { ac_status=$?; continue; }
2105     # Check for guested configure.
2106     if test -f "$ac_srcdir/configure.gnu"; then
2107       echo &&
2108       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2109     elif test -f "$ac_srcdir/configure"; then
2110       echo &&
2111       $SHELL "$ac_srcdir/configure" --help=recursive
2112     else
2113       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2114     fi || ac_status=$?
2115     cd "$ac_pwd" || { ac_status=$?; break; }
2116   done
2117 fi
2118 
2119 test -n "$ac_init_help" && exit $ac_status
2120 if $ac_init_version; then
2121   cat <<\_ACEOF
2122 OpenJDK configure jdk8
2123 generated by GNU Autoconf 2.69
2124 
2125 Copyright (C) 2012 Free Software Foundation, Inc.
2126 This configure script is free software; the Free Software Foundation
2127 gives unlimited permission to copy, distribute and modify it.
2128 _ACEOF
2129   exit
2130 fi
2131 
2132 ## ------------------------ ##
2133 ## Autoconf initialization. ##
2134 ## ------------------------ ##
2135 
2136 # ac_fn_c_try_compile LINENO
2137 # --------------------------
2138 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_c_try_compile ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   rm -f conftest.$ac_objext
2143   if { { ac_try="$ac_compile"
2144 case "(($ac_try" in
2145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146   *) ac_try_echo=$ac_try;;
2147 esac
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 $as_echo "$ac_try_echo"; } >&5
2150   (eval "$ac_compile") 2>conftest.err
2151   ac_status=$?
2152   if test -s conftest.err; then
2153     grep -v '^ *+' conftest.err >conftest.er1
2154     cat conftest.er1 >&5
2155     mv -f conftest.er1 conftest.err
2156   fi
2157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158   test $ac_status = 0; } && {
2159          test -z "$ac_c_werror_flag" ||
2160          test ! -s conftest.err
2161        } && test -s conftest.$ac_objext; then :
2162   ac_retval=0
2163 else
2164   $as_echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166 
2167         ac_retval=1
2168 fi
2169   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170   as_fn_set_status $ac_retval
2171 
2172 } # ac_fn_c_try_compile
2173 
2174 # ac_fn_cxx_try_compile LINENO
2175 # ----------------------------
2176 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_cxx_try_compile ()
2178 {
2179   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180   rm -f conftest.$ac_objext
2181   if { { ac_try="$ac_compile"
2182 case "(($ac_try" in
2183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184   *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188   (eval "$ac_compile") 2>conftest.err
2189   ac_status=$?
2190   if test -s conftest.err; then
2191     grep -v '^ *+' conftest.err >conftest.er1
2192     cat conftest.er1 >&5
2193     mv -f conftest.er1 conftest.err
2194   fi
2195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196   test $ac_status = 0; } && {
2197          test -z "$ac_cxx_werror_flag" ||
2198          test ! -s conftest.err
2199        } && test -s conftest.$ac_objext; then :
2200   ac_retval=0
2201 else
2202   $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204 
2205         ac_retval=1
2206 fi
2207   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208   as_fn_set_status $ac_retval
2209 
2210 } # ac_fn_cxx_try_compile
2211 
2212 # ac_fn_objc_try_compile LINENO
2213 # -----------------------------
2214 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_objc_try_compile ()
2216 {
2217   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218   rm -f conftest.$ac_objext
2219   if { { ac_try="$ac_compile"
2220 case "(($ac_try" in
2221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222   *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226   (eval "$ac_compile") 2>conftest.err
2227   ac_status=$?
2228   if test -s conftest.err; then
2229     grep -v '^ *+' conftest.err >conftest.er1
2230     cat conftest.er1 >&5
2231     mv -f conftest.er1 conftest.err
2232   fi
2233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234   test $ac_status = 0; } && {
2235          test -z "$ac_objc_werror_flag" ||
2236          test ! -s conftest.err
2237        } && test -s conftest.$ac_objext; then :
2238   ac_retval=0
2239 else
2240   $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242 
2243         ac_retval=1
2244 fi
2245   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246   as_fn_set_status $ac_retval
2247 
2248 } # ac_fn_objc_try_compile
2249 
2250 # ac_fn_c_try_cpp LINENO
2251 # ----------------------
2252 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2253 ac_fn_c_try_cpp ()
2254 {
2255   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256   if { { ac_try="$ac_cpp conftest.$ac_ext"
2257 case "(($ac_try" in
2258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259   *) ac_try_echo=$ac_try;;
2260 esac
2261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262 $as_echo "$ac_try_echo"; } >&5
2263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2264   ac_status=$?
2265   if test -s conftest.err; then
2266     grep -v '^ *+' conftest.err >conftest.er1
2267     cat conftest.er1 >&5
2268     mv -f conftest.er1 conftest.err
2269   fi
2270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271   test $ac_status = 0; } > conftest.i && {
2272          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2273          test ! -s conftest.err
2274        }; then :
2275   ac_retval=0
2276 else
2277   $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279 
2280     ac_retval=1
2281 fi
2282   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283   as_fn_set_status $ac_retval
2284 
2285 } # ac_fn_c_try_cpp
2286 
2287 # ac_fn_cxx_try_cpp LINENO
2288 # ------------------------
2289 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2290 ac_fn_cxx_try_cpp ()
2291 {
2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293   if { { ac_try="$ac_cpp conftest.$ac_ext"
2294 case "(($ac_try" in
2295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296   *) ac_try_echo=$ac_try;;
2297 esac
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2301   ac_status=$?
2302   if test -s conftest.err; then
2303     grep -v '^ *+' conftest.err >conftest.er1
2304     cat conftest.er1 >&5
2305     mv -f conftest.er1 conftest.err
2306   fi
2307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308   test $ac_status = 0; } > conftest.i && {
2309          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2310          test ! -s conftest.err
2311        }; then :
2312   ac_retval=0
2313 else
2314   $as_echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316 
2317     ac_retval=1
2318 fi
2319   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320   as_fn_set_status $ac_retval
2321 
2322 } # ac_fn_cxx_try_cpp
2323 
2324 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2325 # ---------------------------------------------------------
2326 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2327 # the include files in INCLUDES and setting the cache variable VAR
2328 # accordingly.
2329 ac_fn_cxx_check_header_mongrel ()
2330 {
2331   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332   if eval \${$3+:} false; then :
2333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if eval \${$3+:} false; then :
2336   $as_echo_n "(cached) " >&6
2337 fi
2338 eval ac_res=\$$3
2339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 else
2342   # Is the header compilable?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2344 $as_echo_n "checking $2 usability... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 #include <$2>
2349 _ACEOF
2350 if ac_fn_cxx_try_compile "$LINENO"; then :
2351   ac_header_compiler=yes
2352 else
2353   ac_header_compiler=no
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2357 $as_echo "$ac_header_compiler" >&6; }
2358 
2359 # Is the header present?
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2361 $as_echo_n "checking $2 presence... " >&6; }
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h.  */
2364 #include <$2>
2365 _ACEOF
2366 if ac_fn_cxx_try_cpp "$LINENO"; then :
2367   ac_header_preproc=yes
2368 else
2369   ac_header_preproc=no
2370 fi
2371 rm -f conftest.err conftest.i conftest.$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2373 $as_echo "$ac_header_preproc" >&6; }
2374 
2375 # So?  What about this header?
2376 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2377   yes:no: )
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2379 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2381 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2382     ;;
2383   no:yes:* )
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2385 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2387 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2389 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2391 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2393 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2394 ( $as_echo "## ----------------------------------------- ##
2395 ## Report this to build-dev@openjdk.java.net ##
2396 ## ----------------------------------------- ##"
2397      ) | sed "s/^/$as_me: WARNING:     /" >&2
2398     ;;
2399 esac
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403   $as_echo_n "(cached) " >&6
2404 else
2405   eval "$3=\$ac_header_compiler"
2406 fi
2407 eval ac_res=\$$3
2408                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 fi
2411   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 
2413 } # ac_fn_cxx_check_header_mongrel
2414 
2415 # ac_fn_cxx_try_run LINENO
2416 # ------------------------
2417 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2418 # that executables *can* be run.
2419 ac_fn_cxx_try_run ()
2420 {
2421   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422   if { { ac_try="$ac_link"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429   (eval "$ac_link") 2>&5
2430   ac_status=$?
2431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2433   { { case "(($ac_try" in
2434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435   *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439   (eval "$ac_try") 2>&5
2440   ac_status=$?
2441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442   test $ac_status = 0; }; }; then :
2443   ac_retval=0
2444 else
2445   $as_echo "$as_me: program exited with status $ac_status" >&5
2446        $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448 
2449        ac_retval=$ac_status
2450 fi
2451   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2452   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453   as_fn_set_status $ac_retval
2454 
2455 } # ac_fn_cxx_try_run
2456 
2457 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2458 # ---------------------------------------------------------
2459 # Tests whether HEADER exists and can be compiled using the include files in
2460 # INCLUDES, setting the cache variable VAR accordingly.
2461 ac_fn_cxx_check_header_compile ()
2462 {
2463   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if eval \${$3+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h.  */
2471 $4
2472 #include <$2>
2473 _ACEOF
2474 if ac_fn_cxx_try_compile "$LINENO"; then :
2475   eval "$3=yes"
2476 else
2477   eval "$3=no"
2478 fi
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 fi
2481 eval ac_res=\$$3
2482                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485 
2486 } # ac_fn_cxx_check_header_compile
2487 
2488 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2489 # ----------------------------------------------
2490 # Tries to find the compile-time value of EXPR in a program that includes
2491 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2492 # computed
2493 ac_fn_cxx_compute_int ()
2494 {
2495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496   if test "$cross_compiling" = yes; then
2497     # Depending upon the size, compute the lo and hi bounds.
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h.  */
2500 $4
2501 int
2502 main ()
2503 {
2504 static int test_array [1 - 2 * !(($2) >= 0)];
2505 test_array [0] = 0;
2506 return test_array [0];
2507 
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 if ac_fn_cxx_try_compile "$LINENO"; then :
2513   ac_lo=0 ac_mid=0
2514   while :; do
2515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h.  */
2517 $4
2518 int
2519 main ()
2520 {
2521 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2522 test_array [0] = 0;
2523 return test_array [0];
2524 
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 if ac_fn_cxx_try_compile "$LINENO"; then :
2530   ac_hi=$ac_mid; break
2531 else
2532   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2533                         if test $ac_lo -le $ac_mid; then
2534                           ac_lo= ac_hi=
2535                           break
2536                         fi
2537                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540   done
2541 else
2542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h.  */
2544 $4
2545 int
2546 main ()
2547 {
2548 static int test_array [1 - 2 * !(($2) < 0)];
2549 test_array [0] = 0;
2550 return test_array [0];
2551 
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 if ac_fn_cxx_try_compile "$LINENO"; then :
2557   ac_hi=-1 ac_mid=-1
2558   while :; do
2559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h.  */
2561 $4
2562 int
2563 main ()
2564 {
2565 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2566 test_array [0] = 0;
2567 return test_array [0];
2568 
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 if ac_fn_cxx_try_compile "$LINENO"; then :
2574   ac_lo=$ac_mid; break
2575 else
2576   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2577                         if test $ac_mid -le $ac_hi; then
2578                           ac_lo= ac_hi=
2579                           break
2580                         fi
2581                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584   done
2585 else
2586   ac_lo= ac_hi=
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 fi
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 # Binary search between lo and hi bounds.
2592 while test "x$ac_lo" != "x$ac_hi"; do
2593   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h.  */
2596 $4
2597 int
2598 main ()
2599 {
2600 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2601 test_array [0] = 0;
2602 return test_array [0];
2603 
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 if ac_fn_cxx_try_compile "$LINENO"; then :
2609   ac_hi=$ac_mid
2610 else
2611   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 done
2615 case $ac_lo in #((
2616 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2617 '') ac_retval=1 ;;
2618 esac
2619   else
2620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 static long int longval () { return $2; }
2624 static unsigned long int ulongval () { return $2; }
2625 #include <stdio.h>
2626 #include <stdlib.h>
2627 int
2628 main ()
2629 {
2630 
2631   FILE *f = fopen ("conftest.val", "w");
2632   if (! f)
2633     return 1;
2634   if (($2) < 0)
2635     {
2636       long int i = longval ();
2637       if (i != ($2))
2638         return 1;
2639       fprintf (f, "%ld", i);
2640     }
2641   else
2642     {
2643       unsigned long int i = ulongval ();
2644       if (i != ($2))
2645         return 1;
2646       fprintf (f, "%lu", i);
2647     }
2648   /* Do not output a trailing newline, as this causes \r\n confusion
2649      on some platforms.  */
2650   return ferror (f) || fclose (f) != 0;
2651 
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 if ac_fn_cxx_try_run "$LINENO"; then :
2657   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2658 else
2659   ac_retval=1
2660 fi
2661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2662   conftest.$ac_objext conftest.beam conftest.$ac_ext
2663 rm -f conftest.val
2664 
2665   fi
2666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667   as_fn_set_status $ac_retval
2668 
2669 } # ac_fn_cxx_compute_int
2670 
2671 # ac_fn_cxx_try_link LINENO
2672 # -------------------------
2673 # Try to link conftest.$ac_ext, and return whether this succeeded.
2674 ac_fn_cxx_try_link ()
2675 {
2676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677   rm -f conftest.$ac_objext conftest$ac_exeext
2678   if { { ac_try="$ac_link"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684 $as_echo "$ac_try_echo"; } >&5
2685   (eval "$ac_link") 2>conftest.err
2686   ac_status=$?
2687   if test -s conftest.err; then
2688     grep -v '^ *+' conftest.err >conftest.er1
2689     cat conftest.er1 >&5
2690     mv -f conftest.er1 conftest.err
2691   fi
2692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2693   test $ac_status = 0; } && {
2694          test -z "$ac_cxx_werror_flag" ||
2695          test ! -s conftest.err
2696        } && test -s conftest$ac_exeext && {
2697          test "$cross_compiling" = yes ||
2698          test -x conftest$ac_exeext
2699        }; then :
2700   ac_retval=0
2701 else
2702   $as_echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704 
2705         ac_retval=1
2706 fi
2707   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2708   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2709   # interfere with the next link command; also delete a directory that is
2710   # left behind by Apple's compiler.  We do this before executing the actions.
2711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2713   as_fn_set_status $ac_retval
2714 
2715 } # ac_fn_cxx_try_link
2716 
2717 # ac_fn_cxx_check_func LINENO FUNC VAR
2718 # ------------------------------------
2719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2720 ac_fn_cxx_check_func ()
2721 {
2722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2732 #define $2 innocuous_$2
2733 
2734 /* System header to define __stub macros and hopefully few prototypes,
2735     which can conflict with char $2 (); below.
2736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2737     <limits.h> exists even on freestanding compilers.  */
2738 
2739 #ifdef __STDC__
2740 # include <limits.h>
2741 #else
2742 # include <assert.h>
2743 #endif
2744 
2745 #undef $2
2746 
2747 /* Override any GCC internal prototype to avoid an error.
2748    Use char because int might match the return type of a GCC
2749    builtin and then its argument prototype would still apply.  */
2750 #ifdef __cplusplus
2751 extern "C"
2752 #endif
2753 char $2 ();
2754 /* The GNU C library defines this for functions which it implements
2755     to always fail with ENOSYS.  Some functions are actually named
2756     something starting with __ and the normal name is an alias.  */
2757 #if defined __stub_$2 || defined __stub___$2
2758 choke me
2759 #endif
2760 
2761 int
2762 main ()
2763 {
2764 return $2 ();
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 if ac_fn_cxx_try_link "$LINENO"; then :
2770   eval "$3=yes"
2771 else
2772   eval "$3=no"
2773 fi
2774 rm -f core conftest.err conftest.$ac_objext \
2775     conftest$ac_exeext conftest.$ac_ext
2776 fi
2777 eval ac_res=\$$3
2778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779 $as_echo "$ac_res" >&6; }
2780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2781 
2782 } # ac_fn_cxx_check_func
2783 
2784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2785 # -------------------------------------------------------
2786 # Tests whether HEADER exists and can be compiled using the include files in
2787 # INCLUDES, setting the cache variable VAR accordingly.
2788 ac_fn_c_check_header_compile ()
2789 {
2790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2792 $as_echo_n "checking for $2... " >&6; }
2793 if eval \${$3+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797 /* end confdefs.h.  */
2798 $4
2799 #include <$2>
2800 _ACEOF
2801 if ac_fn_c_try_compile "$LINENO"; then :
2802   eval "$3=yes"
2803 else
2804   eval "$3=no"
2805 fi
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 fi
2808 eval ac_res=\$$3
2809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2810 $as_echo "$ac_res" >&6; }
2811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2812 
2813 } # ac_fn_c_check_header_compile
2814 cat >config.log <<_ACEOF
2815 This file contains any messages produced by compilers while
2816 running configure, to aid debugging if configure makes a mistake.
2817 
2818 It was created by OpenJDK $as_me jdk8, which was
2819 generated by GNU Autoconf 2.69.  Invocation command line was
2820 
2821   $ $0 $@
2822 
2823 _ACEOF
2824 exec 5>>config.log
2825 {
2826 cat <<_ASUNAME
2827 ## --------- ##
2828 ## Platform. ##
2829 ## --------- ##
2830 
2831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2836 
2837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2838 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2839 
2840 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2841 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2843 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2844 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2845 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2846 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2847 
2848 _ASUNAME
2849 
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   test -z "$as_dir" && as_dir=.
2855     $as_echo "PATH: $as_dir"
2856   done
2857 IFS=$as_save_IFS
2858 
2859 } >&5
2860 
2861 cat >&5 <<_ACEOF
2862 
2863 
2864 ## ----------- ##
2865 ## Core tests. ##
2866 ## ----------- ##
2867 
2868 _ACEOF
2869 
2870 
2871 # Keep a trace of the command line.
2872 # Strip out --no-create and --no-recursion so they do not pile up.
2873 # Strip out --silent because we don't want to record it for future runs.
2874 # Also quote any args containing shell meta-characters.
2875 # Make two passes to allow for proper duplicate-argument suppression.
2876 ac_configure_args=
2877 ac_configure_args0=
2878 ac_configure_args1=
2879 ac_must_keep_next=false
2880 for ac_pass in 1 2
2881 do
2882   for ac_arg
2883   do
2884     case $ac_arg in
2885     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2886     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2887     | -silent | --silent | --silen | --sile | --sil)
2888       continue ;;
2889     *\'*)
2890       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2891     esac
2892     case $ac_pass in
2893     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2894     2)
2895       as_fn_append ac_configure_args1 " '$ac_arg'"
2896       if test $ac_must_keep_next = true; then
2897         ac_must_keep_next=false # Got value, back to normal.
2898       else
2899         case $ac_arg in
2900           *=* | --config-cache | -C | -disable-* | --disable-* \
2901           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2902           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2903           | -with-* | --with-* | -without-* | --without-* | --x)
2904             case "$ac_configure_args0 " in
2905               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2906             esac
2907             ;;
2908           -* ) ac_must_keep_next=true ;;
2909         esac
2910       fi
2911       as_fn_append ac_configure_args " '$ac_arg'"
2912       ;;
2913     esac
2914   done
2915 done
2916 { ac_configure_args0=; unset ac_configure_args0;}
2917 { ac_configure_args1=; unset ac_configure_args1;}
2918 
2919 # When interrupted or exit'd, cleanup temporary files, and complete
2920 # config.log.  We remove comments because anyway the quotes in there
2921 # would cause problems or look ugly.
2922 # WARNING: Use '\'' to represent an apostrophe within the trap.
2923 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2924 trap 'exit_status=$?
2925   # Save into config.log some information that might help in debugging.
2926   {
2927     echo
2928 
2929     $as_echo "## ---------------- ##
2930 ## Cache variables. ##
2931 ## ---------------- ##"
2932     echo
2933     # The following way of writing the cache mishandles newlines in values,
2934 (
2935   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2936     eval ac_val=\$$ac_var
2937     case $ac_val in #(
2938     *${as_nl}*)
2939       case $ac_var in #(
2940       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2942       esac
2943       case $ac_var in #(
2944       _ | IFS | as_nl) ;; #(
2945       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2946       *) { eval $ac_var=; unset $ac_var;} ;;
2947       esac ;;
2948     esac
2949   done
2950   (set) 2>&1 |
2951     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2952     *${as_nl}ac_space=\ *)
2953       sed -n \
2954         "s/'\''/'\''\\\\'\'''\''/g;
2955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2956       ;; #(
2957     *)
2958       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2959       ;;
2960     esac |
2961     sort
2962 )
2963     echo
2964 
2965     $as_echo "## ----------------- ##
2966 ## Output variables. ##
2967 ## ----------------- ##"
2968     echo
2969     for ac_var in $ac_subst_vars
2970     do
2971       eval ac_val=\$$ac_var
2972       case $ac_val in
2973       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2974       esac
2975       $as_echo "$ac_var='\''$ac_val'\''"
2976     done | sort
2977     echo
2978 
2979     if test -n "$ac_subst_files"; then
2980       $as_echo "## ------------------- ##
2981 ## File substitutions. ##
2982 ## ------------------- ##"
2983       echo
2984       for ac_var in $ac_subst_files
2985       do
2986         eval ac_val=\$$ac_var
2987         case $ac_val in
2988         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2989         esac
2990         $as_echo "$ac_var='\''$ac_val'\''"
2991       done | sort
2992       echo
2993     fi
2994 
2995     if test -s confdefs.h; then
2996       $as_echo "## ----------- ##
2997 ## confdefs.h. ##
2998 ## ----------- ##"
2999       echo
3000       cat confdefs.h
3001       echo
3002     fi
3003     test "$ac_signal" != 0 &&
3004       $as_echo "$as_me: caught signal $ac_signal"
3005     $as_echo "$as_me: exit $exit_status"
3006   } >&5
3007   rm -f core *.core core.conftest.* &&
3008     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3009     exit $exit_status
3010 ' 0
3011 for ac_signal in 1 2 13 15; do
3012   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3013 done
3014 ac_signal=0
3015 
3016 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3017 rm -f -r conftest* confdefs.h
3018 
3019 $as_echo "/* confdefs.h */" > confdefs.h
3020 
3021 # Predefined preprocessor variables.
3022 
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_NAME "$PACKAGE_NAME"
3025 _ACEOF
3026 
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3029 _ACEOF
3030 
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3033 _ACEOF
3034 
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_STRING "$PACKAGE_STRING"
3037 _ACEOF
3038 
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3041 _ACEOF
3042 
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_URL "$PACKAGE_URL"
3045 _ACEOF
3046 
3047 
3048 # Let the site file select an alternate cache file if it wants to.
3049 # Prefer an explicitly selected file to automatically selected ones.
3050 ac_site_file1=NONE
3051 ac_site_file2=NONE
3052 if test -n "$CONFIG_SITE"; then
3053   # We do not want a PATH search for config.site.
3054   case $CONFIG_SITE in #((
3055     -*)  ac_site_file1=./$CONFIG_SITE;;
3056     */*) ac_site_file1=$CONFIG_SITE;;
3057     *)   ac_site_file1=./$CONFIG_SITE;;
3058   esac
3059 elif test "x$prefix" != xNONE; then
3060   ac_site_file1=$prefix/share/config.site
3061   ac_site_file2=$prefix/etc/config.site
3062 else
3063   ac_site_file1=$ac_default_prefix/share/config.site
3064   ac_site_file2=$ac_default_prefix/etc/config.site
3065 fi
3066 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3067 do
3068   test "x$ac_site_file" = xNONE && continue
3069   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3070     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3071 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3072     sed 's/^/| /' "$ac_site_file" >&5
3073     . "$ac_site_file" \
3074       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error $? "failed to load site script $ac_site_file
3077 See \`config.log' for more details" "$LINENO" 5; }
3078   fi
3079 done
3080 
3081 if test -r "$cache_file"; then
3082   # Some versions of bash will fail to source /dev/null (special files
3083   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3084   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3085     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3086 $as_echo "$as_me: loading cache $cache_file" >&6;}
3087     case $cache_file in
3088       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3089       *)                      . "./$cache_file";;
3090     esac
3091   fi
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3094 $as_echo "$as_me: creating cache $cache_file" >&6;}
3095   >$cache_file
3096 fi
3097 
3098 # Check that the precious variables saved in the cache have kept the same
3099 # value.
3100 ac_cache_corrupted=false
3101 for ac_var in $ac_precious_vars; do
3102   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3103   eval ac_new_set=\$ac_env_${ac_var}_set
3104   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3105   eval ac_new_val=\$ac_env_${ac_var}_value
3106   case $ac_old_set,$ac_new_set in
3107     set,)
3108       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3110       ac_cache_corrupted=: ;;
3111     ,set)
3112       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3114       ac_cache_corrupted=: ;;
3115     ,);;
3116     *)
3117       if test "x$ac_old_val" != "x$ac_new_val"; then
3118         # differences in whitespace do not lead to failure.
3119         ac_old_val_w=`echo x $ac_old_val`
3120         ac_new_val_w=`echo x $ac_new_val`
3121         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3122           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3124           ac_cache_corrupted=:
3125         else
3126           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3128           eval $ac_var=\$ac_old_val
3129         fi
3130         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3131 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3132         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3133 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3134       fi;;
3135   esac
3136   # Pass precious variables to config.status.
3137   if test "$ac_new_set" = set; then
3138     case $ac_new_val in
3139     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3140     *) ac_arg=$ac_var=$ac_new_val ;;
3141     esac
3142     case " $ac_configure_args " in
3143       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3144       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3145     esac
3146   fi
3147 done
3148 if $ac_cache_corrupted; then
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3153   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3154 fi
3155 ## -------------------- ##
3156 ## Main body of script. ##
3157 ## -------------------- ##
3158 
3159 ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 
3165 
3166 
3167 ac_aux_dir=
3168 for ac_dir in build-aux "$srcdir"/build-aux; do
3169   if test -f "$ac_dir/install-sh"; then
3170     ac_aux_dir=$ac_dir
3171     ac_install_sh="$ac_aux_dir/install-sh -c"
3172     break
3173   elif test -f "$ac_dir/install.sh"; then
3174     ac_aux_dir=$ac_dir
3175     ac_install_sh="$ac_aux_dir/install.sh -c"
3176     break
3177   elif test -f "$ac_dir/shtool"; then
3178     ac_aux_dir=$ac_dir
3179     ac_install_sh="$ac_aux_dir/shtool install -c"
3180     break
3181   fi
3182 done
3183 if test -z "$ac_aux_dir"; then
3184   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3185 fi
3186 
3187 # These three variables are undocumented and unsupported,
3188 # and are intended to be withdrawn in a future Autoconf release.
3189 # They can cause serious problems if a builder's source tree is in a directory
3190 # whose full name contains unusual characters.
3191 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3192 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3193 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3194 
3195 
3196 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3197 
3198 #
3199 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3200 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3201 #
3202 # This code is free software; you can redistribute it and/or modify it
3203 # under the terms of the GNU General Public License version 2 only, as
3204 # published by the Free Software Foundation.  Oracle designates this
3205 # particular file as subject to the "Classpath" exception as provided
3206 # by Oracle in the LICENSE file that accompanied this code.
3207 #
3208 # This code is distributed in the hope that it will be useful, but WITHOUT
3209 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3210 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3211 # version 2 for more details (a copy is included in the LICENSE file that
3212 # accompanied this code).
3213 #
3214 # You should have received a copy of the GNU General Public License version
3215 # 2 along with this work; if not, write to the Free Software Foundation,
3216 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3217 #
3218 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3219 # or visit www.oracle.com if you need additional information or have any
3220 # questions.
3221 #
3222 
3223 #
3224 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3225 #
3226 # This program is free software; you can redistribute it and/or modify
3227 # it under the terms of the GNU General Public License as published by
3228 # the Free Software Foundation; either version 2 of the License, or
3229 # (at your option) any later version.
3230 #
3231 # This program is distributed in the hope that it will be useful, but
3232 # WITHOUT ANY WARRANTY; without even the implied warranty of
3233 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3234 # General Public License for more details.
3235 #
3236 # You should have received a copy of the GNU General Public License
3237 # along with this program; if not, write to the Free Software
3238 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3239 #
3240 # As a special exception to the GNU General Public License, if you
3241 # distribute this file as part of a program that contains a
3242 # configuration script generated by Autoconf, you may include it under
3243 # the same distribution terms that you use for the rest of that program.
3244 
3245 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3246 # ----------------------------------
3247 # PKG_PROG_PKG_CONFIG
3248 
3249 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3250 #
3251 # Check to see whether a particular set of modules exists.  Similar
3252 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3253 #
3254 #
3255 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3256 # this or PKG_CHECK_MODULES is called, or make sure to call
3257 # PKG_CHECK_EXISTS manually
3258 # --------------------------------------------------------------
3259 
3260 
3261 
3262 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3263 # ---------------------------------------------
3264 # _PKG_CONFIG
3265 
3266 # _PKG_SHORT_ERRORS_SUPPORTED
3267 # -----------------------------
3268 # _PKG_SHORT_ERRORS_SUPPORTED
3269 
3270 
3271 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3272 # [ACTION-IF-NOT-FOUND])
3273 #
3274 #
3275 # Note that if there is a possibility the first call to
3276 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3277 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3278 #
3279 #
3280 # --------------------------------------------------------------
3281 # PKG_CHECK_MODULES
3282 
3283 
3284 # Include these first...
3285 #
3286 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3287 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3288 #
3289 # This code is free software; you can redistribute it and/or modify it
3290 # under the terms of the GNU General Public License version 2 only, as
3291 # published by the Free Software Foundation.  Oracle designates this
3292 # particular file as subject to the "Classpath" exception as provided
3293 # by Oracle in the LICENSE file that accompanied this code.
3294 #
3295 # This code is distributed in the hope that it will be useful, but WITHOUT
3296 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3297 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3298 # version 2 for more details (a copy is included in the LICENSE file that
3299 # accompanied this code).
3300 #
3301 # You should have received a copy of the GNU General Public License version
3302 # 2 along with this work; if not, write to the Free Software Foundation,
3303 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3304 #
3305 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3306 # or visit www.oracle.com if you need additional information or have any
3307 # questions.
3308 #
3309 
3310 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3311 # If so, then append $1 to $2 \
3312 # Also set JVM_ARG_OK to true/false depending on outcome.
3313 
3314 
3315 # Appends a string to a path variable, only adding the : when needed.
3316 
3317 
3318 # This will make sure the given variable points to a full and proper
3319 # path. This means:
3320 # 1) There will be no spaces in the path. On posix platforms,
3321 #    spaces in the path will result in an error. On Windows,
3322 #    the path will be rewritten using short-style to be space-free.
3323 # 2) The path will be absolute, and it will be in unix-style (on
3324 #     cygwin).
3325 # $1: The name of the variable to fix
3326 
3327 
3328 # This will make sure the given variable points to a executable
3329 # with a full and proper path. This means:
3330 # 1) There will be no spaces in the path. On posix platforms,
3331 #    spaces in the path will result in an error. On Windows,
3332 #    the path will be rewritten using short-style to be space-free.
3333 # 2) The path will be absolute, and it will be in unix-style (on
3334 #     cygwin).
3335 # Any arguments given to the executable is preserved.
3336 # If the input variable does not have a directory specification, then
3337 # it need to be in the PATH.
3338 # $1: The name of the variable to fix
3339 
3340 
3341 
3342 
3343 # Register a --with argument but mark it as deprecated
3344 # $1: The name of the with argument to deprecate, not including --with-
3345 
3346 
3347 # Register a --enable argument but mark it as deprecated
3348 # $1: The name of the with argument to deprecate, not including --enable-
3349 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3350 
3351 
3352 
3353 
3354 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3355 # $1: variable to check
3356 
3357 
3358 # Check that there are no unprocessed overridden variables left.
3359 # If so, they are an incorrect argument and we will exit with an error.
3360 
3361 
3362 # Setup a tool for the given variable. If correctly specified by the user,
3363 # use that value, otherwise search for the tool using the supplied code snippet.
3364 # $1: variable to set
3365 # $2: code snippet to call to look for the tool
3366 
3367 
3368 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3369 # $1: variable to set
3370 # $2: executable name (or list of names) to look for
3371 
3372 
3373 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3374 # $1: variable to set
3375 # $2: executable name (or list of names) to look for
3376 
3377 
3378 # Like BASIC_PATH_PROGS but fails if no tool was found.
3379 # $1: variable to set
3380 # $2: executable name (or list of names) to look for
3381 
3382 
3383 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3384 # $1: variable to set
3385 # $2: autoconf macro to call to look for the special tool
3386 
3387 
3388 # Setup the most fundamental tools that relies on not much else to set up,
3389 # but is used by much of the early bootstrap code.
3390 
3391 
3392 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3393 
3394 
3395 
3396 
3397 
3398 
3399 
3400 #%%% Simple tools %%%
3401 
3402 # Check if we have found a usable version of make
3403 # $1: the path to a potential make binary (or empty)
3404 # $2: the description on how we found this
3405 
3406 
3407 # Goes looking for a usable version of GNU make.
3408 
3409 
3410 
3411 
3412 
3413 
3414 # Check if build directory is on local disk. If not possible to determine,
3415 # we prefer to claim it's local.
3416 # Argument 1: directory to test
3417 # Argument 2: what to do if it is on local disk
3418 # Argument 3: what to do otherwise (remote disk or failure)
3419 
3420 
3421 # Check that source files have basic read permissions set. This might
3422 # not be the case in cygwin in certain conditions.
3423 
3424 
3425 
3426 
3427 #
3428 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3429 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3430 #
3431 # This code is free software; you can redistribute it and/or modify it
3432 # under the terms of the GNU General Public License version 2 only, as
3433 # published by the Free Software Foundation.  Oracle designates this
3434 # particular file as subject to the "Classpath" exception as provided
3435 # by Oracle in the LICENSE file that accompanied this code.
3436 #
3437 # This code is distributed in the hope that it will be useful, but WITHOUT
3438 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3439 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3440 # version 2 for more details (a copy is included in the LICENSE file that
3441 # accompanied this code).
3442 #
3443 # You should have received a copy of the GNU General Public License version
3444 # 2 along with this work; if not, write to the Free Software Foundation,
3445 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3446 #
3447 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3448 # or visit www.oracle.com if you need additional information or have any
3449 # questions.
3450 #
3451 
3452 
3453 
3454 
3455 
3456 # Helper function which possibly converts a path using DOS-style short mode.
3457 # If so, the updated path is stored in $new_path.
3458 # $1: The path to check
3459 
3460 
3461 # Helper function which possibly converts a path using DOS-style short mode.
3462 # If so, the updated path is stored in $new_path.
3463 # $1: The path to check
3464 
3465 
3466 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3467 # and could probably be heavily simplified. However, all changes in this
3468 # area tend to need lot of testing in different scenarios, and in lack of
3469 # proper unit testing, cleaning this up has not been deemed worth the effort
3470 # at the moment.
3471 
3472 
3473 
3474 
3475 
3476 
3477 
3478 
3479 
3480 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3481 
3482 
3483 
3484 
3485 #
3486 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3487 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3488 #
3489 # This code is free software; you can redistribute it and/or modify it
3490 # under the terms of the GNU General Public License version 2 only, as
3491 # published by the Free Software Foundation.  Oracle designates this
3492 # particular file as subject to the "Classpath" exception as provided
3493 # by Oracle in the LICENSE file that accompanied this code.
3494 #
3495 # This code is distributed in the hope that it will be useful, but WITHOUT
3496 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3497 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3498 # version 2 for more details (a copy is included in the LICENSE file that
3499 # accompanied this code).
3500 #
3501 # You should have received a copy of the GNU General Public License version
3502 # 2 along with this work; if not, write to the Free Software Foundation,
3503 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3504 #
3505 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3506 # or visit www.oracle.com if you need additional information or have any
3507 # questions.
3508 #
3509 
3510 
3511 
3512 
3513 
3514 
3515 
3516 
3517 
3518 
3519 
3520 # ... then the rest
3521 #
3522 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3523 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3524 #
3525 # This code is free software; you can redistribute it and/or modify it
3526 # under the terms of the GNU General Public License version 2 only, as
3527 # published by the Free Software Foundation.  Oracle designates this
3528 # particular file as subject to the "Classpath" exception as provided
3529 # by Oracle in the LICENSE file that accompanied this code.
3530 #
3531 # This code is distributed in the hope that it will be useful, but WITHOUT
3532 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3533 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3534 # version 2 for more details (a copy is included in the LICENSE file that
3535 # accompanied this code).
3536 #
3537 # You should have received a copy of the GNU General Public License version
3538 # 2 along with this work; if not, write to the Free Software Foundation,
3539 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3540 #
3541 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3542 # or visit www.oracle.com if you need additional information or have any
3543 # questions.
3544 #
3545 
3546 ########################################################################
3547 # This file handles detection of the Boot JDK. The Boot JDK detection
3548 # process has been developed as a response to solve a complex real-world
3549 # problem. Initially, it was simple, but it has grown as platform after
3550 # platform, idiosyncracy after idiosyncracy has been supported.
3551 #
3552 # The basic idea is this:
3553 # 1) You need an acceptable *) JDK to use as a Boot JDK
3554 # 2) There are several ways to locate a JDK, that are mostly platform
3555 #    dependent **)
3556 # 3) You can have multiple JDKs installed
3557 # 4) If possible, configure should try to dig out an acceptable JDK
3558 #    automatically, without having to resort to command-line options
3559 #
3560 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3561 #     javac) and not a JRE, etc.
3562 #
3563 # **) On Windows we typically use a well-known path.
3564 #     On MacOSX we typically use the tool java_home.
3565 #     On Linux we typically find javac in the $PATH, and then follow a
3566 #     chain of symlinks that often ends up in a real JDK.
3567 #
3568 # This leads to the code where we check in different ways to locate a
3569 # JDK, and if one is found, check if it is acceptable. If not, we print
3570 # our reasons for rejecting it (useful when debugging non-working
3571 # configure situations) and continue checking the next one.
3572 ########################################################################
3573 
3574 # Execute the check given as argument, and verify the result
3575 # If the Boot JDK was previously found, do nothing
3576 # $1 A command line (typically autoconf macro) to execute
3577 
3578 
3579 # Test: Is bootjdk explicitely set by command line arguments?
3580 
3581 
3582 # Test: Is bootjdk available from builddeps?
3583 
3584 
3585 # Test: Is $JAVA_HOME set?
3586 
3587 
3588 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3589 
3590 
3591 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3592 # $1: Argument to the java_home binary (optional)
3593 
3594 
3595 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3596 
3597 
3598 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3599 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3600 # $1 = Path to directory containing jdk installations.
3601 # $2 = String to append to the found JDK directory to get the proper JDK home
3602 
3603 
3604 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3605 # environmental variable as base for where to look.
3606 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3607 
3608 
3609 # Test: Is there a JDK installed in default, well-known locations?
3610 
3611 
3612 # Check that a command-line tool in the Boot JDK is correct
3613 # $1 = name of variable to assign
3614 # $2 = name of binary
3615 
3616 
3617 ###############################################################################
3618 #
3619 # We need a Boot JDK to bootstrap the build.
3620 #
3621 
3622 
3623 
3624 
3625 
3626 #
3627 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3628 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3629 #
3630 # This code is free software; you can redistribute it and/or modify it
3631 # under the terms of the GNU General Public License version 2 only, as
3632 # published by the Free Software Foundation.  Oracle designates this
3633 # particular file as subject to the "Classpath" exception as provided
3634 # by Oracle in the LICENSE file that accompanied this code.
3635 #
3636 # This code is distributed in the hope that it will be useful, but WITHOUT
3637 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3638 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3639 # version 2 for more details (a copy is included in the LICENSE file that
3640 # accompanied this code).
3641 #
3642 # You should have received a copy of the GNU General Public License version
3643 # 2 along with this work; if not, write to the Free Software Foundation,
3644 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3645 #
3646 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3647 # or visit www.oracle.com if you need additional information or have any
3648 # questions.
3649 #
3650 
3651 
3652 
3653 
3654 
3655 
3656 
3657 
3658 
3659 
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 #
3671 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3672 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3673 #
3674 # This code is free software; you can redistribute it and/or modify it
3675 # under the terms of the GNU General Public License version 2 only, as
3676 # published by the Free Software Foundation.  Oracle designates this
3677 # particular file as subject to the "Classpath" exception as provided
3678 # by Oracle in the LICENSE file that accompanied this code.
3679 #
3680 # This code is distributed in the hope that it will be useful, but WITHOUT
3681 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3682 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3683 # version 2 for more details (a copy is included in the LICENSE file that
3684 # accompanied this code).
3685 #
3686 # You should have received a copy of the GNU General Public License version
3687 # 2 along with this work; if not, write to the Free Software Foundation,
3688 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3689 #
3690 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3691 # or visit www.oracle.com if you need additional information or have any
3692 # questions.
3693 #
3694 
3695 
3696 
3697 
3698 
3699 cygwin_help() {
3700   case $1 in
3701     unzip)
3702       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3703       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3704       ;;
3705     zip)
3706       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3707       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3708       ;;
3709     make)
3710       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3711       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3712       ;;
3713     freetype)
3714       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3715         HELP_MSG="To install freetype, run:
3716 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3717 chmod +x /tmp/freetype-setup.exe
3718 /tmp/freetype-setup.exe
3719 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3720 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3721       else
3722         HELP_MSG="You need to build a 64-bit version of freetype.
3723 This is not readily available.
3724 You can find source code and build instructions on
3725 http://www.freetype.org/
3726 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3727       fi
3728       ;;
3729   esac
3730 }
3731 
3732 msys_help() {
3733   PKGHANDLER_COMMAND=""
3734 }
3735 
3736 apt_help() {
3737   case $1 in
3738     devkit)
3739       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3740     openjdk)
3741       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3742     alsa)
3743       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3744     cups)
3745       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3746     freetype)
3747       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3748     pulse)
3749       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3750     x11)
3751       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3752     ccache)
3753       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3754   esac
3755 }
3756 
3757 yum_help() {
3758   case $1 in
3759     devkit)
3760       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3761     openjdk)
3762       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3763     alsa)
3764       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3765     cups)
3766       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3767     freetype)
3768       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3769     pulse)
3770       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3771     x11)
3772       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3773     ccache)
3774       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3775   esac
3776 }
3777 
3778 port_help() {
3779   PKGHANDLER_COMMAND=""
3780 }
3781 
3782 pkgutil_help() {
3783   PKGHANDLER_COMMAND=""
3784 }
3785 
3786 pkgadd_help() {
3787   PKGHANDLER_COMMAND=""
3788 }
3789 
3790 
3791 
3792 #
3793 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3794 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3795 #
3796 # This code is free software; you can redistribute it and/or modify it
3797 # under the terms of the GNU General Public License version 2 only, as
3798 # published by the Free Software Foundation.  Oracle designates this
3799 # particular file as subject to the "Classpath" exception as provided
3800 # by Oracle in the LICENSE file that accompanied this code.
3801 #
3802 # This code is distributed in the hope that it will be useful, but WITHOUT
3803 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3804 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3805 # version 2 for more details (a copy is included in the LICENSE file that
3806 # accompanied this code).
3807 #
3808 # You should have received a copy of the GNU General Public License version
3809 # 2 along with this work; if not, write to the Free Software Foundation,
3810 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3811 #
3812 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3813 # or visit www.oracle.com if you need additional information or have any
3814 # questions.
3815 #
3816 
3817 
3818 
3819 
3820 
3821 
3822 
3823 
3824 
3825 
3826 ###############################################################################
3827 #
3828 # Should we build only OpenJDK even if closed sources are present?
3829 #
3830 
3831 
3832 
3833 
3834 ###############################################################################
3835 #
3836 # Setup version numbers
3837 #
3838 
3839 
3840 
3841 
3842 
3843 
3844 # Support for customization of the build process. Some build files
3845 # will include counterparts from this location, if they exist. This allows
3846 # for a degree of customization of the build targets and the rules/recipes
3847 # to create them
3848 
3849 # Check whether --with-custom-make-dir was given.
3850 if test "${with_custom_make_dir+set}" = set; then :
3851   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3852 fi
3853 
3854 
3855 
3856 #
3857 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3858 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3859 #
3860 # This code is free software; you can redistribute it and/or modify it
3861 # under the terms of the GNU General Public License version 2 only, as
3862 # published by the Free Software Foundation.  Oracle designates this
3863 # particular file as subject to the "Classpath" exception as provided
3864 # by Oracle in the LICENSE file that accompanied this code.
3865 #
3866 # This code is distributed in the hope that it will be useful, but WITHOUT
3867 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3868 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3869 # version 2 for more details (a copy is included in the LICENSE file that
3870 # accompanied this code).
3871 #
3872 # You should have received a copy of the GNU General Public License version
3873 # 2 along with this work; if not, write to the Free Software Foundation,
3874 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3875 #
3876 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3877 # or visit www.oracle.com if you need additional information or have any
3878 # questions.
3879 #
3880 
3881 
3882 
3883 
3884 
3885 
3886 
3887 
3888 
3889 
3890 
3891 
3892 
3893 
3894 
3895 
3896 
3897 #
3898 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3899 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3900 #
3901 # This code is free software; you can redistribute it and/or modify it
3902 # under the terms of the GNU General Public License version 2 only, as
3903 # published by the Free Software Foundation.  Oracle designates this
3904 # particular file as subject to the "Classpath" exception as provided
3905 # by Oracle in the LICENSE file that accompanied this code.
3906 #
3907 # This code is distributed in the hope that it will be useful, but WITHOUT
3908 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3909 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3910 # version 2 for more details (a copy is included in the LICENSE file that
3911 # accompanied this code).
3912 #
3913 # You should have received a copy of the GNU General Public License version
3914 # 2 along with this work; if not, write to the Free Software Foundation,
3915 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3916 #
3917 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3918 # or visit www.oracle.com if you need additional information or have any
3919 # questions.
3920 #
3921 
3922 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3923 # Converts autoconf style CPU name to OpenJDK style, into
3924 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3925 
3926 
3927 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3928 # Converts autoconf style OS name to OpenJDK style, into
3929 # VAR_OS and VAR_OS_API.
3930 
3931 
3932 # Expects $host_os $host_cpu $build_os and $build_cpu
3933 # and $with_target_bits to have been setup!
3934 #
3935 # Translate the standard triplet(quadruplet) definition
3936 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3937 # OPENJDK_BUILD_OS, etc.
3938 
3939 
3940 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3941 # accordingly. Must be done after setting up build and target system, but before
3942 # doing anything else with these values.
3943 
3944 
3945 # Setup the legacy variables, for controlling the old makefiles.
3946 #
3947 
3948 
3949 
3950 
3951 #%%% Build and target systems %%%
3952 
3953 
3954 
3955 
3956 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3957 # Add -mX to various FLAGS variables.
3958 
3959 
3960 
3961 
3962 
3963 
3964 #
3965 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3966 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3967 #
3968 # This code is free software; you can redistribute it and/or modify it
3969 # under the terms of the GNU General Public License version 2 only, as
3970 # published by the Free Software Foundation.  Oracle designates this
3971 # particular file as subject to the "Classpath" exception as provided
3972 # by Oracle in the LICENSE file that accompanied this code.
3973 #
3974 # This code is distributed in the hope that it will be useful, but WITHOUT
3975 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3976 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3977 # version 2 for more details (a copy is included in the LICENSE file that
3978 # accompanied this code).
3979 #
3980 # You should have received a copy of the GNU General Public License version
3981 # 2 along with this work; if not, write to the Free Software Foundation,
3982 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3983 #
3984 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3985 # or visit www.oracle.com if you need additional information or have any
3986 # questions.
3987 #
3988 
3989 
3990 
3991 
3992 
3993 
3994 
3995 
3996 #
3997 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3998 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3999 #
4000 # This code is free software; you can redistribute it and/or modify it
4001 # under the terms of the GNU General Public License version 2 only, as
4002 # published by the Free Software Foundation.  Oracle designates this
4003 # particular file as subject to the "Classpath" exception as provided
4004 # by Oracle in the LICENSE file that accompanied this code.
4005 #
4006 # This code is distributed in the hope that it will be useful, but WITHOUT
4007 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4008 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4009 # version 2 for more details (a copy is included in the LICENSE file that
4010 # accompanied this code).
4011 #
4012 # You should have received a copy of the GNU General Public License version
4013 # 2 along with this work; if not, write to the Free Software Foundation,
4014 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4015 #
4016 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4017 # or visit www.oracle.com if you need additional information or have any
4018 # questions.
4019 #
4020 
4021 # $1 = compiler to test (CC or CXX)
4022 # $2 = human readable name of compiler (C or C++)
4023 
4024 
4025 
4026 
4027 
4028 # $1 = compiler to test (CC or CXX)
4029 # $2 = human readable name of compiler (C or C++)
4030 # $3 = list of compiler names to search for
4031 
4032 
4033 
4034 
4035 
4036 
4037 
4038 
4039 
4040 
4041 
4042 
4043 
4044 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4045 #                                   [RUN-IF-FALSE])
4046 # ------------------------------------------------------------
4047 # Check that the c and c++ compilers support an argument
4048 
4049 
4050 
4051 
4052 # Setup the JTREG paths
4053 
4054 
4055 #
4056 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4057 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4058 #
4059 # This code is free software; you can redistribute it and/or modify it
4060 # under the terms of the GNU General Public License version 2 only, as
4061 # published by the Free Software Foundation.  Oracle designates this
4062 # particular file as subject to the "Classpath" exception as provided
4063 # by Oracle in the LICENSE file that accompanied this code.
4064 #
4065 # This code is distributed in the hope that it will be useful, but WITHOUT
4066 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4067 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4068 # version 2 for more details (a copy is included in the LICENSE file that
4069 # accompanied this code).
4070 #
4071 # You should have received a copy of the GNU General Public License version
4072 # 2 along with this work; if not, write to the Free Software Foundation,
4073 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4074 #
4075 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4076 # or visit www.oracle.com if you need additional information or have any
4077 # questions.
4078 #
4079 
4080 
4081 
4082 
4083 
4084 
4085 
4086 # Check if the VS env variables were setup prior to running configure.
4087 # If not, then find vcvarsall.bat and run it automatically, and integrate
4088 # the set env variables into the spec file.
4089 
4090 
4091 
4092 
4093 
4094 
4095 
4096 
4097 
4098 
4099 # This line needs to be here, verbatim, after all includes and the dummy hook
4100 # definitions. It is replaced with custom functionality when building
4101 # custom sources.
4102 #CUSTOM_AUTOCONF_INCLUDE
4103 
4104 # Do not change or remove the following line, it is needed for consistency checks:
4105 DATE_WHEN_GENERATED=1392907541
4106 
4107 ###############################################################################
4108 #
4109 # Initialization / Boot-strapping
4110 #
4111 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4112 # thus it jumps back and forth, each time gaining something needed later on.
4113 #
4114 ###############################################################################
4115 
4116 # Basic initialization that must happen first of all
4117 
4118   # Save the original command line. This is passed to us by the wrapper configure script.
4119 
4120   DATE_WHEN_CONFIGURED=`LANG=C date`
4121 
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4123 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4125 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4126 
4127 
4128   # Start with tools that do not need have cross compilation support
4129   # and can be expected to be found in the default PATH. These tools are
4130   # used by configure. Nor are these tools expected to be found in the
4131   # devkit from the builddeps server either, since they are
4132   # needed to download the devkit.
4133 
4134   # First are all the simple required tools.
4135 
4136 
4137 
4138   # Publish this variable in the help.
4139 
4140 
4141   if test "x$BASENAME" = x; then
4142     # The variable is not set by user, try to locate tool using the code snippet
4143     for ac_prog in basename
4144 do
4145   # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if ${ac_cv_path_BASENAME+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   case $BASENAME in
4153   [\\/]* | ?:[\\/]*)
4154   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4155   ;;
4156   *)
4157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171 
4172   ;;
4173 esac
4174 fi
4175 BASENAME=$ac_cv_path_BASENAME
4176 if test -n "$BASENAME"; then
4177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4178 $as_echo "$BASENAME" >&6; }
4179 else
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 fi
4183 
4184 
4185   test -n "$BASENAME" && break
4186 done
4187 
4188   else
4189     # The variable is set, but is it from the command line or the environment?
4190 
4191     # Try to remove the string !BASENAME! from our list.
4192     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4193     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4194       # If it failed, the variable was not from the command line. Ignore it,
4195       # but warn the user (except for BASH, which is always set by the calling BASH).
4196       if test "xBASENAME" != xBASH; then
4197         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4198 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4199       fi
4200       # Try to locate tool using the code snippet
4201       for ac_prog in basename
4202 do
4203   # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy $ac_prog; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_path_BASENAME+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   case $BASENAME in
4211   [\\/]* | ?:[\\/]*)
4212   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4213   ;;
4214   *)
4215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227   done
4228 IFS=$as_save_IFS
4229 
4230   ;;
4231 esac
4232 fi
4233 BASENAME=$ac_cv_path_BASENAME
4234 if test -n "$BASENAME"; then
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4236 $as_echo "$BASENAME" >&6; }
4237 else
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241 
4242 
4243   test -n "$BASENAME" && break
4244 done
4245 
4246     else
4247       # If it succeeded, then it was overridden by the user. We will use it
4248       # for the tool.
4249 
4250       # First remove it from the list of overridden variables, so we can test
4251       # for unknown variables in the end.
4252       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4253 
4254       # Check if the provided tool contains a complete path.
4255       tool_specified="$BASENAME"
4256       tool_basename="${tool_specified##*/}"
4257       if test "x$tool_basename" = "x$tool_specified"; then
4258         # A command without a complete path is provided, search $PATH.
4259         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4260 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4261         # Extract the first word of "$tool_basename", so it can be a program name with args.
4262 set dummy $tool_basename; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_path_BASENAME+:} false; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268   case $BASENAME in
4269   [\\/]* | ?:[\\/]*)
4270   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4271   ;;
4272   *)
4273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287 
4288   ;;
4289 esac
4290 fi
4291 BASENAME=$ac_cv_path_BASENAME
4292 if test -n "$BASENAME"; then
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4294 $as_echo "$BASENAME" >&6; }
4295 else
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299 
4300 
4301         if test "x$BASENAME" = x; then
4302           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4303         fi
4304       else
4305         # Otherwise we believe it is a complete path. Use it as it is.
4306         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4307 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4309 $as_echo_n "checking for BASENAME... " >&6; }
4310         if test ! -x "$tool_specified"; then
4311           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4312 $as_echo "not found" >&6; }
4313           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4314         fi
4315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4316 $as_echo "$tool_specified" >&6; }
4317       fi
4318     fi
4319   fi
4320 
4321 
4322 
4323   if test "x$BASENAME" = x; then
4324     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4325   fi
4326 
4327 
4328 
4329 
4330 
4331   # Publish this variable in the help.
4332 
4333 
4334   if test "x$BASH" = x; then
4335     # The variable is not set by user, try to locate tool using the code snippet
4336     for ac_prog in bash
4337 do
4338   # Extract the first word of "$ac_prog", so it can be a program name with args.
4339 set dummy $ac_prog; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_path_BASH+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   case $BASH in
4346   [\\/]* | ?:[\\/]*)
4347   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4348   ;;
4349   *)
4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355     for ac_exec_ext in '' $ac_executable_extensions; do
4356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362   done
4363 IFS=$as_save_IFS
4364 
4365   ;;
4366 esac
4367 fi
4368 BASH=$ac_cv_path_BASH
4369 if test -n "$BASH"; then
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4371 $as_echo "$BASH" >&6; }
4372 else
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376 
4377 
4378   test -n "$BASH" && break
4379 done
4380 
4381   else
4382     # The variable is set, but is it from the command line or the environment?
4383 
4384     # Try to remove the string !BASH! from our list.
4385     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4386     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4387       # If it failed, the variable was not from the command line. Ignore it,
4388       # but warn the user (except for BASH, which is always set by the calling BASH).
4389       if test "xBASH" != xBASH; then
4390         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4391 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4392       fi
4393       # Try to locate tool using the code snippet
4394       for ac_prog in bash
4395 do
4396   # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_path_BASH+:} false; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   case $BASH in
4404   [\\/]* | ?:[\\/]*)
4405   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4406   ;;
4407   *)
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413     for ac_exec_ext in '' $ac_executable_extensions; do
4414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4422 
4423   ;;
4424 esac
4425 fi
4426 BASH=$ac_cv_path_BASH
4427 if test -n "$BASH"; then
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4429 $as_echo "$BASH" >&6; }
4430 else
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 fi
4434 
4435 
4436   test -n "$BASH" && break
4437 done
4438 
4439     else
4440       # If it succeeded, then it was overridden by the user. We will use it
4441       # for the tool.
4442 
4443       # First remove it from the list of overridden variables, so we can test
4444       # for unknown variables in the end.
4445       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4446 
4447       # Check if the provided tool contains a complete path.
4448       tool_specified="$BASH"
4449       tool_basename="${tool_specified##*/}"
4450       if test "x$tool_basename" = "x$tool_specified"; then
4451         # A command without a complete path is provided, search $PATH.
4452         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4453 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4454         # Extract the first word of "$tool_basename", so it can be a program name with args.
4455 set dummy $tool_basename; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_path_BASH+:} false; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   case $BASH in
4462   [\\/]* | ?:[\\/]*)
4463   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4464   ;;
4465   *)
4466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471     for ac_exec_ext in '' $ac_executable_extensions; do
4472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478   done
4479 IFS=$as_save_IFS
4480 
4481   ;;
4482 esac
4483 fi
4484 BASH=$ac_cv_path_BASH
4485 if test -n "$BASH"; then
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4487 $as_echo "$BASH" >&6; }
4488 else
4489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4491 fi
4492 
4493 
4494         if test "x$BASH" = x; then
4495           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4496         fi
4497       else
4498         # Otherwise we believe it is a complete path. Use it as it is.
4499         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4500 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4501         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4502 $as_echo_n "checking for BASH... " >&6; }
4503         if test ! -x "$tool_specified"; then
4504           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4505 $as_echo "not found" >&6; }
4506           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4507         fi
4508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4509 $as_echo "$tool_specified" >&6; }
4510       fi
4511     fi
4512   fi
4513 
4514 
4515 
4516   if test "x$BASH" = x; then
4517     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4518   fi
4519 
4520 
4521 
4522 
4523 
4524   # Publish this variable in the help.
4525 
4526 
4527   if test "x$CAT" = x; then
4528     # The variable is not set by user, try to locate tool using the code snippet
4529     for ac_prog in cat
4530 do
4531   # Extract the first word of "$ac_prog", so it can be a program name with args.
4532 set dummy $ac_prog; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_path_CAT+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538   case $CAT in
4539   [\\/]* | ?:[\\/]*)
4540   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4541   ;;
4542   *)
4543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555   done
4556 IFS=$as_save_IFS
4557 
4558   ;;
4559 esac
4560 fi
4561 CAT=$ac_cv_path_CAT
4562 if test -n "$CAT"; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4564 $as_echo "$CAT" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569 
4570 
4571   test -n "$CAT" && break
4572 done
4573 
4574   else
4575     # The variable is set, but is it from the command line or the environment?
4576 
4577     # Try to remove the string !CAT! from our list.
4578     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4579     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4580       # If it failed, the variable was not from the command line. Ignore it,
4581       # but warn the user (except for BASH, which is always set by the calling BASH).
4582       if test "xCAT" != xBASH; then
4583         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4584 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4585       fi
4586       # Try to locate tool using the code snippet
4587       for ac_prog in cat
4588 do
4589   # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_path_CAT+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   case $CAT in
4597   [\\/]* | ?:[\\/]*)
4598   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4599   ;;
4600   *)
4601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606     for ac_exec_ext in '' $ac_executable_extensions; do
4607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613   done
4614 IFS=$as_save_IFS
4615 
4616   ;;
4617 esac
4618 fi
4619 CAT=$ac_cv_path_CAT
4620 if test -n "$CAT"; then
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4622 $as_echo "$CAT" >&6; }
4623 else
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627 
4628 
4629   test -n "$CAT" && break
4630 done
4631 
4632     else
4633       # If it succeeded, then it was overridden by the user. We will use it
4634       # for the tool.
4635 
4636       # First remove it from the list of overridden variables, so we can test
4637       # for unknown variables in the end.
4638       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4639 
4640       # Check if the provided tool contains a complete path.
4641       tool_specified="$CAT"
4642       tool_basename="${tool_specified##*/}"
4643       if test "x$tool_basename" = "x$tool_specified"; then
4644         # A command without a complete path is provided, search $PATH.
4645         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4646 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4647         # Extract the first word of "$tool_basename", so it can be a program name with args.
4648 set dummy $tool_basename; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_path_CAT+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   case $CAT in
4655   [\\/]* | ?:[\\/]*)
4656   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4657   ;;
4658   *)
4659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671   done
4672 IFS=$as_save_IFS
4673 
4674   ;;
4675 esac
4676 fi
4677 CAT=$ac_cv_path_CAT
4678 if test -n "$CAT"; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4680 $as_echo "$CAT" >&6; }
4681 else
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685 
4686 
4687         if test "x$CAT" = x; then
4688           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4689         fi
4690       else
4691         # Otherwise we believe it is a complete path. Use it as it is.
4692         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4693 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4695 $as_echo_n "checking for CAT... " >&6; }
4696         if test ! -x "$tool_specified"; then
4697           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4698 $as_echo "not found" >&6; }
4699           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4700         fi
4701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4702 $as_echo "$tool_specified" >&6; }
4703       fi
4704     fi
4705   fi
4706 
4707 
4708 
4709   if test "x$CAT" = x; then
4710     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4711   fi
4712 
4713 
4714 
4715 
4716 
4717   # Publish this variable in the help.
4718 
4719 
4720   if test "x$CHMOD" = x; then
4721     # The variable is not set by user, try to locate tool using the code snippet
4722     for ac_prog in chmod
4723 do
4724   # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_path_CHMOD+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   case $CHMOD in
4732   [\\/]* | ?:[\\/]*)
4733   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4734   ;;
4735   *)
4736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739   IFS=$as_save_IFS
4740   test -z "$as_dir" && as_dir=.
4741     for ac_exec_ext in '' $ac_executable_extensions; do
4742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745     break 2
4746   fi
4747 done
4748   done
4749 IFS=$as_save_IFS
4750 
4751   ;;
4752 esac
4753 fi
4754 CHMOD=$ac_cv_path_CHMOD
4755 if test -n "$CHMOD"; then
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4757 $as_echo "$CHMOD" >&6; }
4758 else
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4761 fi
4762 
4763 
4764   test -n "$CHMOD" && break
4765 done
4766 
4767   else
4768     # The variable is set, but is it from the command line or the environment?
4769 
4770     # Try to remove the string !CHMOD! from our list.
4771     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4772     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4773       # If it failed, the variable was not from the command line. Ignore it,
4774       # but warn the user (except for BASH, which is always set by the calling BASH).
4775       if test "xCHMOD" != xBASH; then
4776         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4777 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4778       fi
4779       # Try to locate tool using the code snippet
4780       for ac_prog in chmod
4781 do
4782   # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_path_CHMOD+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   case $CHMOD in
4790   [\\/]* | ?:[\\/]*)
4791   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4792   ;;
4793   *)
4794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806   done
4807 IFS=$as_save_IFS
4808 
4809   ;;
4810 esac
4811 fi
4812 CHMOD=$ac_cv_path_CHMOD
4813 if test -n "$CHMOD"; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4815 $as_echo "$CHMOD" >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820 
4821 
4822   test -n "$CHMOD" && break
4823 done
4824 
4825     else
4826       # If it succeeded, then it was overridden by the user. We will use it
4827       # for the tool.
4828 
4829       # First remove it from the list of overridden variables, so we can test
4830       # for unknown variables in the end.
4831       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4832 
4833       # Check if the provided tool contains a complete path.
4834       tool_specified="$CHMOD"
4835       tool_basename="${tool_specified##*/}"
4836       if test "x$tool_basename" = "x$tool_specified"; then
4837         # A command without a complete path is provided, search $PATH.
4838         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4839 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4840         # Extract the first word of "$tool_basename", so it can be a program name with args.
4841 set dummy $tool_basename; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_path_CHMOD+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   case $CHMOD in
4848   [\\/]* | ?:[\\/]*)
4849   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4850   ;;
4851   *)
4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866 
4867   ;;
4868 esac
4869 fi
4870 CHMOD=$ac_cv_path_CHMOD
4871 if test -n "$CHMOD"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4873 $as_echo "$CHMOD" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878 
4879 
4880         if test "x$CHMOD" = x; then
4881           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4882         fi
4883       else
4884         # Otherwise we believe it is a complete path. Use it as it is.
4885         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
4886 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
4887         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
4888 $as_echo_n "checking for CHMOD... " >&6; }
4889         if test ! -x "$tool_specified"; then
4890           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4891 $as_echo "not found" >&6; }
4892           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
4893         fi
4894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4895 $as_echo "$tool_specified" >&6; }
4896       fi
4897     fi
4898   fi
4899 
4900 
4901 
4902   if test "x$CHMOD" = x; then
4903     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
4904   fi
4905 
4906 
4907 
4908 
4909 
4910   # Publish this variable in the help.
4911 
4912 
4913   if test "x$CMP" = x; then
4914     # The variable is not set by user, try to locate tool using the code snippet
4915     for ac_prog in cmp
4916 do
4917   # Extract the first word of "$ac_prog", so it can be a program name with args.
4918 set dummy $ac_prog; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_path_CMP+:} false; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924   case $CMP in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943 
4944   ;;
4945 esac
4946 fi
4947 CMP=$ac_cv_path_CMP
4948 if test -n "$CMP"; then
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4950 $as_echo "$CMP" >&6; }
4951 else
4952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955 
4956 
4957   test -n "$CMP" && break
4958 done
4959 
4960   else
4961     # The variable is set, but is it from the command line or the environment?
4962 
4963     # Try to remove the string !CMP! from our list.
4964     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
4965     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4966       # If it failed, the variable was not from the command line. Ignore it,
4967       # but warn the user (except for BASH, which is always set by the calling BASH).
4968       if test "xCMP" != xBASH; then
4969         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
4970 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
4971       fi
4972       # Try to locate tool using the code snippet
4973       for ac_prog in cmp
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_path_CMP+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   case $CMP in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001 
5002   ;;
5003 esac
5004 fi
5005 CMP=$ac_cv_path_CMP
5006 if test -n "$CMP"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5008 $as_echo "$CMP" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013 
5014 
5015   test -n "$CMP" && break
5016 done
5017 
5018     else
5019       # If it succeeded, then it was overridden by the user. We will use it
5020       # for the tool.
5021 
5022       # First remove it from the list of overridden variables, so we can test
5023       # for unknown variables in the end.
5024       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5025 
5026       # Check if the provided tool contains a complete path.
5027       tool_specified="$CMP"
5028       tool_basename="${tool_specified##*/}"
5029       if test "x$tool_basename" = "x$tool_specified"; then
5030         # A command without a complete path is provided, search $PATH.
5031         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5032 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5033         # Extract the first word of "$tool_basename", so it can be a program name with args.
5034 set dummy $tool_basename; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_path_CMP+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   case $CMP in
5041   [\\/]* | ?:[\\/]*)
5042   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5043   ;;
5044   *)
5045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054     break 2
5055   fi
5056 done
5057   done
5058 IFS=$as_save_IFS
5059 
5060   ;;
5061 esac
5062 fi
5063 CMP=$ac_cv_path_CMP
5064 if test -n "$CMP"; then
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5066 $as_echo "$CMP" >&6; }
5067 else
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071 
5072 
5073         if test "x$CMP" = x; then
5074           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5075         fi
5076       else
5077         # Otherwise we believe it is a complete path. Use it as it is.
5078         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5079 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5081 $as_echo_n "checking for CMP... " >&6; }
5082         if test ! -x "$tool_specified"; then
5083           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5084 $as_echo "not found" >&6; }
5085           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5086         fi
5087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5088 $as_echo "$tool_specified" >&6; }
5089       fi
5090     fi
5091   fi
5092 
5093 
5094 
5095   if test "x$CMP" = x; then
5096     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5097   fi
5098 
5099 
5100 
5101 
5102 
5103   # Publish this variable in the help.
5104 
5105 
5106   if test "x$COMM" = x; then
5107     # The variable is not set by user, try to locate tool using the code snippet
5108     for ac_prog in comm
5109 do
5110   # Extract the first word of "$ac_prog", so it can be a program name with args.
5111 set dummy $ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_path_COMM+:} false; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   case $COMM in
5118   [\\/]* | ?:[\\/]*)
5119   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5120   ;;
5121   *)
5122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136 
5137   ;;
5138 esac
5139 fi
5140 COMM=$ac_cv_path_COMM
5141 if test -n "$COMM"; then
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5143 $as_echo "$COMM" >&6; }
5144 else
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148 
5149 
5150   test -n "$COMM" && break
5151 done
5152 
5153   else
5154     # The variable is set, but is it from the command line or the environment?
5155 
5156     # Try to remove the string !COMM! from our list.
5157     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5158     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5159       # If it failed, the variable was not from the command line. Ignore it,
5160       # but warn the user (except for BASH, which is always set by the calling BASH).
5161       if test "xCOMM" != xBASH; then
5162         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5163 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5164       fi
5165       # Try to locate tool using the code snippet
5166       for ac_prog in comm
5167 do
5168   # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if ${ac_cv_path_COMM+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   case $COMM in
5176   [\\/]* | ?:[\\/]*)
5177   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5178   ;;
5179   *)
5180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194 
5195   ;;
5196 esac
5197 fi
5198 COMM=$ac_cv_path_COMM
5199 if test -n "$COMM"; then
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5201 $as_echo "$COMM" >&6; }
5202 else
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206 
5207 
5208   test -n "$COMM" && break
5209 done
5210 
5211     else
5212       # If it succeeded, then it was overridden by the user. We will use it
5213       # for the tool.
5214 
5215       # First remove it from the list of overridden variables, so we can test
5216       # for unknown variables in the end.
5217       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5218 
5219       # Check if the provided tool contains a complete path.
5220       tool_specified="$COMM"
5221       tool_basename="${tool_specified##*/}"
5222       if test "x$tool_basename" = "x$tool_specified"; then
5223         # A command without a complete path is provided, search $PATH.
5224         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5225 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5226         # Extract the first word of "$tool_basename", so it can be a program name with args.
5227 set dummy $tool_basename; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_path_COMM+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   case $COMM in
5234   [\\/]* | ?:[\\/]*)
5235   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5236   ;;
5237   *)
5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250   done
5251 IFS=$as_save_IFS
5252 
5253   ;;
5254 esac
5255 fi
5256 COMM=$ac_cv_path_COMM
5257 if test -n "$COMM"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5259 $as_echo "$COMM" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264 
5265 
5266         if test "x$COMM" = x; then
5267           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5268         fi
5269       else
5270         # Otherwise we believe it is a complete path. Use it as it is.
5271         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5272 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5274 $as_echo_n "checking for COMM... " >&6; }
5275         if test ! -x "$tool_specified"; then
5276           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5277 $as_echo "not found" >&6; }
5278           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5279         fi
5280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5281 $as_echo "$tool_specified" >&6; }
5282       fi
5283     fi
5284   fi
5285 
5286 
5287 
5288   if test "x$COMM" = x; then
5289     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5290   fi
5291 
5292 
5293 
5294 
5295 
5296   # Publish this variable in the help.
5297 
5298 
5299   if test "x$CP" = x; then
5300     # The variable is not set by user, try to locate tool using the code snippet
5301     for ac_prog in cp
5302 do
5303   # Extract the first word of "$ac_prog", so it can be a program name with args.
5304 set dummy $ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_CP+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   case $CP in
5311   [\\/]* | ?:[\\/]*)
5312   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5313   ;;
5314   *)
5315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329 
5330   ;;
5331 esac
5332 fi
5333 CP=$ac_cv_path_CP
5334 if test -n "$CP"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5336 $as_echo "$CP" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341 
5342 
5343   test -n "$CP" && break
5344 done
5345 
5346   else
5347     # The variable is set, but is it from the command line or the environment?
5348 
5349     # Try to remove the string !CP! from our list.
5350     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5351     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5352       # If it failed, the variable was not from the command line. Ignore it,
5353       # but warn the user (except for BASH, which is always set by the calling BASH).
5354       if test "xCP" != xBASH; then
5355         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5356 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5357       fi
5358       # Try to locate tool using the code snippet
5359       for ac_prog in cp
5360 do
5361   # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_path_CP+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   case $CP in
5369   [\\/]* | ?:[\\/]*)
5370   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5371   ;;
5372   *)
5373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378     for ac_exec_ext in '' $ac_executable_extensions; do
5379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385   done
5386 IFS=$as_save_IFS
5387 
5388   ;;
5389 esac
5390 fi
5391 CP=$ac_cv_path_CP
5392 if test -n "$CP"; then
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5394 $as_echo "$CP" >&6; }
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399 
5400 
5401   test -n "$CP" && break
5402 done
5403 
5404     else
5405       # If it succeeded, then it was overridden by the user. We will use it
5406       # for the tool.
5407 
5408       # First remove it from the list of overridden variables, so we can test
5409       # for unknown variables in the end.
5410       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5411 
5412       # Check if the provided tool contains a complete path.
5413       tool_specified="$CP"
5414       tool_basename="${tool_specified##*/}"
5415       if test "x$tool_basename" = "x$tool_specified"; then
5416         # A command without a complete path is provided, search $PATH.
5417         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5418 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5419         # Extract the first word of "$tool_basename", so it can be a program name with args.
5420 set dummy $tool_basename; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_path_CP+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   case $CP in
5427   [\\/]* | ?:[\\/]*)
5428   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5429   ;;
5430   *)
5431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436     for ac_exec_ext in '' $ac_executable_extensions; do
5437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443   done
5444 IFS=$as_save_IFS
5445 
5446   ;;
5447 esac
5448 fi
5449 CP=$ac_cv_path_CP
5450 if test -n "$CP"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5452 $as_echo "$CP" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457 
5458 
5459         if test "x$CP" = x; then
5460           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5461         fi
5462       else
5463         # Otherwise we believe it is a complete path. Use it as it is.
5464         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5465 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5467 $as_echo_n "checking for CP... " >&6; }
5468         if test ! -x "$tool_specified"; then
5469           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5470 $as_echo "not found" >&6; }
5471           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5472         fi
5473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5474 $as_echo "$tool_specified" >&6; }
5475       fi
5476     fi
5477   fi
5478 
5479 
5480 
5481   if test "x$CP" = x; then
5482     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5483   fi
5484 
5485 
5486 
5487 
5488 
5489   # Publish this variable in the help.
5490 
5491 
5492   if test "x$CPIO" = x; then
5493     # The variable is not set by user, try to locate tool using the code snippet
5494     for ac_prog in cpio
5495 do
5496   # Extract the first word of "$ac_prog", so it can be a program name with args.
5497 set dummy $ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_path_CPIO+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   case $CPIO in
5504   [\\/]* | ?:[\\/]*)
5505   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5506   ;;
5507   *)
5508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520   done
5521 IFS=$as_save_IFS
5522 
5523   ;;
5524 esac
5525 fi
5526 CPIO=$ac_cv_path_CPIO
5527 if test -n "$CPIO"; then
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5529 $as_echo "$CPIO" >&6; }
5530 else
5531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534 
5535 
5536   test -n "$CPIO" && break
5537 done
5538 
5539   else
5540     # The variable is set, but is it from the command line or the environment?
5541 
5542     # Try to remove the string !CPIO! from our list.
5543     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5544     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5545       # If it failed, the variable was not from the command line. Ignore it,
5546       # but warn the user (except for BASH, which is always set by the calling BASH).
5547       if test "xCPIO" != xBASH; then
5548         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5549 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5550       fi
5551       # Try to locate tool using the code snippet
5552       for ac_prog in cpio
5553 do
5554   # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_path_CPIO+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   case $CPIO in
5562   [\\/]* | ?:[\\/]*)
5563   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5564   ;;
5565   *)
5566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580 
5581   ;;
5582 esac
5583 fi
5584 CPIO=$ac_cv_path_CPIO
5585 if test -n "$CPIO"; then
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5587 $as_echo "$CPIO" >&6; }
5588 else
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592 
5593 
5594   test -n "$CPIO" && break
5595 done
5596 
5597     else
5598       # If it succeeded, then it was overridden by the user. We will use it
5599       # for the tool.
5600 
5601       # First remove it from the list of overridden variables, so we can test
5602       # for unknown variables in the end.
5603       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5604 
5605       # Check if the provided tool contains a complete path.
5606       tool_specified="$CPIO"
5607       tool_basename="${tool_specified##*/}"
5608       if test "x$tool_basename" = "x$tool_specified"; then
5609         # A command without a complete path is provided, search $PATH.
5610         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5611 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5612         # Extract the first word of "$tool_basename", so it can be a program name with args.
5613 set dummy $tool_basename; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_path_CPIO+:} false; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619   case $CPIO in
5620   [\\/]* | ?:[\\/]*)
5621   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5622   ;;
5623   *)
5624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638 
5639   ;;
5640 esac
5641 fi
5642 CPIO=$ac_cv_path_CPIO
5643 if test -n "$CPIO"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5645 $as_echo "$CPIO" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650 
5651 
5652         if test "x$CPIO" = x; then
5653           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5654         fi
5655       else
5656         # Otherwise we believe it is a complete path. Use it as it is.
5657         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5658 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5659         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5660 $as_echo_n "checking for CPIO... " >&6; }
5661         if test ! -x "$tool_specified"; then
5662           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5663 $as_echo "not found" >&6; }
5664           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5665         fi
5666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5667 $as_echo "$tool_specified" >&6; }
5668       fi
5669     fi
5670   fi
5671 
5672 
5673 
5674   if test "x$CPIO" = x; then
5675     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5676   fi
5677 
5678 
5679 
5680 
5681 
5682   # Publish this variable in the help.
5683 
5684 
5685   if test "x$CUT" = x; then
5686     # The variable is not set by user, try to locate tool using the code snippet
5687     for ac_prog in cut
5688 do
5689   # Extract the first word of "$ac_prog", so it can be a program name with args.
5690 set dummy $ac_prog; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_path_CUT+:} false; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   case $CUT in
5697   [\\/]* | ?:[\\/]*)
5698   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5699   ;;
5700   *)
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715 
5716   ;;
5717 esac
5718 fi
5719 CUT=$ac_cv_path_CUT
5720 if test -n "$CUT"; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5722 $as_echo "$CUT" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727 
5728 
5729   test -n "$CUT" && break
5730 done
5731 
5732   else
5733     # The variable is set, but is it from the command line or the environment?
5734 
5735     # Try to remove the string !CUT! from our list.
5736     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5737     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5738       # If it failed, the variable was not from the command line. Ignore it,
5739       # but warn the user (except for BASH, which is always set by the calling BASH).
5740       if test "xCUT" != xBASH; then
5741         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5742 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5743       fi
5744       # Try to locate tool using the code snippet
5745       for ac_prog in cut
5746 do
5747   # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_path_CUT+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   case $CUT in
5755   [\\/]* | ?:[\\/]*)
5756   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5757   ;;
5758   *)
5759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_exec_ext in '' $ac_executable_extensions; do
5765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768     break 2
5769   fi
5770 done
5771   done
5772 IFS=$as_save_IFS
5773 
5774   ;;
5775 esac
5776 fi
5777 CUT=$ac_cv_path_CUT
5778 if test -n "$CUT"; then
5779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5780 $as_echo "$CUT" >&6; }
5781 else
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785 
5786 
5787   test -n "$CUT" && break
5788 done
5789 
5790     else
5791       # If it succeeded, then it was overridden by the user. We will use it
5792       # for the tool.
5793 
5794       # First remove it from the list of overridden variables, so we can test
5795       # for unknown variables in the end.
5796       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5797 
5798       # Check if the provided tool contains a complete path.
5799       tool_specified="$CUT"
5800       tool_basename="${tool_specified##*/}"
5801       if test "x$tool_basename" = "x$tool_specified"; then
5802         # A command without a complete path is provided, search $PATH.
5803         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5804 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5805         # Extract the first word of "$tool_basename", so it can be a program name with args.
5806 set dummy $tool_basename; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_path_CUT+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   case $CUT in
5813   [\\/]* | ?:[\\/]*)
5814   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5815   ;;
5816   *)
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831 
5832   ;;
5833 esac
5834 fi
5835 CUT=$ac_cv_path_CUT
5836 if test -n "$CUT"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5838 $as_echo "$CUT" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843 
5844 
5845         if test "x$CUT" = x; then
5846           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5847         fi
5848       else
5849         # Otherwise we believe it is a complete path. Use it as it is.
5850         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5851 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5853 $as_echo_n "checking for CUT... " >&6; }
5854         if test ! -x "$tool_specified"; then
5855           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5856 $as_echo "not found" >&6; }
5857           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5858         fi
5859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5860 $as_echo "$tool_specified" >&6; }
5861       fi
5862     fi
5863   fi
5864 
5865 
5866 
5867   if test "x$CUT" = x; then
5868     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5869   fi
5870 
5871 
5872 
5873 
5874 
5875   # Publish this variable in the help.
5876 
5877 
5878   if test "x$DATE" = x; then
5879     # The variable is not set by user, try to locate tool using the code snippet
5880     for ac_prog in date
5881 do
5882   # Extract the first word of "$ac_prog", so it can be a program name with args.
5883 set dummy $ac_prog; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_path_DATE+:} false; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   case $DATE in
5890   [\\/]* | ?:[\\/]*)
5891   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5892   ;;
5893   *)
5894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899     for ac_exec_ext in '' $ac_executable_extensions; do
5900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906   done
5907 IFS=$as_save_IFS
5908 
5909   ;;
5910 esac
5911 fi
5912 DATE=$ac_cv_path_DATE
5913 if test -n "$DATE"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5915 $as_echo "$DATE" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920 
5921 
5922   test -n "$DATE" && break
5923 done
5924 
5925   else
5926     # The variable is set, but is it from the command line or the environment?
5927 
5928     # Try to remove the string !DATE! from our list.
5929     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5930     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5931       # If it failed, the variable was not from the command line. Ignore it,
5932       # but warn the user (except for BASH, which is always set by the calling BASH).
5933       if test "xDATE" != xBASH; then
5934         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5935 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5936       fi
5937       # Try to locate tool using the code snippet
5938       for ac_prog in date
5939 do
5940   # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_path_DATE+:} false; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   case $DATE in
5948   [\\/]* | ?:[\\/]*)
5949   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5950   ;;
5951   *)
5952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957     for ac_exec_ext in '' $ac_executable_extensions; do
5958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964   done
5965 IFS=$as_save_IFS
5966 
5967   ;;
5968 esac
5969 fi
5970 DATE=$ac_cv_path_DATE
5971 if test -n "$DATE"; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5973 $as_echo "$DATE" >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978 
5979 
5980   test -n "$DATE" && break
5981 done
5982 
5983     else
5984       # If it succeeded, then it was overridden by the user. We will use it
5985       # for the tool.
5986 
5987       # First remove it from the list of overridden variables, so we can test
5988       # for unknown variables in the end.
5989       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5990 
5991       # Check if the provided tool contains a complete path.
5992       tool_specified="$DATE"
5993       tool_basename="${tool_specified##*/}"
5994       if test "x$tool_basename" = "x$tool_specified"; then
5995         # A command without a complete path is provided, search $PATH.
5996         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
5997 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
5998         # Extract the first word of "$tool_basename", so it can be a program name with args.
5999 set dummy $tool_basename; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_path_DATE+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   case $DATE in
6006   [\\/]* | ?:[\\/]*)
6007   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6008   ;;
6009   *)
6010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015     for ac_exec_ext in '' $ac_executable_extensions; do
6016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022   done
6023 IFS=$as_save_IFS
6024 
6025   ;;
6026 esac
6027 fi
6028 DATE=$ac_cv_path_DATE
6029 if test -n "$DATE"; then
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6031 $as_echo "$DATE" >&6; }
6032 else
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036 
6037 
6038         if test "x$DATE" = x; then
6039           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6040         fi
6041       else
6042         # Otherwise we believe it is a complete path. Use it as it is.
6043         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6044 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6046 $as_echo_n "checking for DATE... " >&6; }
6047         if test ! -x "$tool_specified"; then
6048           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6049 $as_echo "not found" >&6; }
6050           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6051         fi
6052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6053 $as_echo "$tool_specified" >&6; }
6054       fi
6055     fi
6056   fi
6057 
6058 
6059 
6060   if test "x$DATE" = x; then
6061     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6062   fi
6063 
6064 
6065 
6066 
6067 
6068   # Publish this variable in the help.
6069 
6070 
6071   if test "x$DIFF" = x; then
6072     # The variable is not set by user, try to locate tool using the code snippet
6073     for ac_prog in gdiff diff
6074 do
6075   # Extract the first word of "$ac_prog", so it can be a program name with args.
6076 set dummy $ac_prog; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_path_DIFF+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   case $DIFF in
6083   [\\/]* | ?:[\\/]*)
6084   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6085   ;;
6086   *)
6087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101 
6102   ;;
6103 esac
6104 fi
6105 DIFF=$ac_cv_path_DIFF
6106 if test -n "$DIFF"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6108 $as_echo "$DIFF" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113 
6114 
6115   test -n "$DIFF" && break
6116 done
6117 
6118   else
6119     # The variable is set, but is it from the command line or the environment?
6120 
6121     # Try to remove the string !DIFF! from our list.
6122     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6123     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6124       # If it failed, the variable was not from the command line. Ignore it,
6125       # but warn the user (except for BASH, which is always set by the calling BASH).
6126       if test "xDIFF" != xBASH; then
6127         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6128 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6129       fi
6130       # Try to locate tool using the code snippet
6131       for ac_prog in gdiff diff
6132 do
6133   # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_path_DIFF+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   case $DIFF in
6141   [\\/]* | ?:[\\/]*)
6142   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6143   ;;
6144   *)
6145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159 
6160   ;;
6161 esac
6162 fi
6163 DIFF=$ac_cv_path_DIFF
6164 if test -n "$DIFF"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6166 $as_echo "$DIFF" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171 
6172 
6173   test -n "$DIFF" && break
6174 done
6175 
6176     else
6177       # If it succeeded, then it was overridden by the user. We will use it
6178       # for the tool.
6179 
6180       # First remove it from the list of overridden variables, so we can test
6181       # for unknown variables in the end.
6182       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6183 
6184       # Check if the provided tool contains a complete path.
6185       tool_specified="$DIFF"
6186       tool_basename="${tool_specified##*/}"
6187       if test "x$tool_basename" = "x$tool_specified"; then
6188         # A command without a complete path is provided, search $PATH.
6189         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6190 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6191         # Extract the first word of "$tool_basename", so it can be a program name with args.
6192 set dummy $tool_basename; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_path_DIFF+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   case $DIFF in
6199   [\\/]* | ?:[\\/]*)
6200   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6201   ;;
6202   *)
6203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208     for ac_exec_ext in '' $ac_executable_extensions; do
6209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212     break 2
6213   fi
6214 done
6215   done
6216 IFS=$as_save_IFS
6217 
6218   ;;
6219 esac
6220 fi
6221 DIFF=$ac_cv_path_DIFF
6222 if test -n "$DIFF"; then
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6224 $as_echo "$DIFF" >&6; }
6225 else
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229 
6230 
6231         if test "x$DIFF" = x; then
6232           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6233         fi
6234       else
6235         # Otherwise we believe it is a complete path. Use it as it is.
6236         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6237 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6239 $as_echo_n "checking for DIFF... " >&6; }
6240         if test ! -x "$tool_specified"; then
6241           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6242 $as_echo "not found" >&6; }
6243           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6244         fi
6245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6246 $as_echo "$tool_specified" >&6; }
6247       fi
6248     fi
6249   fi
6250 
6251 
6252 
6253   if test "x$DIFF" = x; then
6254     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6255   fi
6256 
6257 
6258 
6259 
6260 
6261   # Publish this variable in the help.
6262 
6263 
6264   if test "x$DIRNAME" = x; then
6265     # The variable is not set by user, try to locate tool using the code snippet
6266     for ac_prog in dirname
6267 do
6268   # Extract the first word of "$ac_prog", so it can be a program name with args.
6269 set dummy $ac_prog; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_path_DIRNAME+:} false; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   case $DIRNAME in
6276   [\\/]* | ?:[\\/]*)
6277   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6278   ;;
6279   *)
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294 
6295   ;;
6296 esac
6297 fi
6298 DIRNAME=$ac_cv_path_DIRNAME
6299 if test -n "$DIRNAME"; then
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6301 $as_echo "$DIRNAME" >&6; }
6302 else
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306 
6307 
6308   test -n "$DIRNAME" && break
6309 done
6310 
6311   else
6312     # The variable is set, but is it from the command line or the environment?
6313 
6314     # Try to remove the string !DIRNAME! from our list.
6315     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6316     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6317       # If it failed, the variable was not from the command line. Ignore it,
6318       # but warn the user (except for BASH, which is always set by the calling BASH).
6319       if test "xDIRNAME" != xBASH; then
6320         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6321 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6322       fi
6323       # Try to locate tool using the code snippet
6324       for ac_prog in dirname
6325 do
6326   # Extract the first word of "$ac_prog", so it can be a program name with args.
6327 set dummy $ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_path_DIRNAME+:} false; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   case $DIRNAME in
6334   [\\/]* | ?:[\\/]*)
6335   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6336   ;;
6337   *)
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352 
6353   ;;
6354 esac
6355 fi
6356 DIRNAME=$ac_cv_path_DIRNAME
6357 if test -n "$DIRNAME"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6359 $as_echo "$DIRNAME" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364 
6365 
6366   test -n "$DIRNAME" && break
6367 done
6368 
6369     else
6370       # If it succeeded, then it was overridden by the user. We will use it
6371       # for the tool.
6372 
6373       # First remove it from the list of overridden variables, so we can test
6374       # for unknown variables in the end.
6375       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6376 
6377       # Check if the provided tool contains a complete path.
6378       tool_specified="$DIRNAME"
6379       tool_basename="${tool_specified##*/}"
6380       if test "x$tool_basename" = "x$tool_specified"; then
6381         # A command without a complete path is provided, search $PATH.
6382         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6383 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6384         # Extract the first word of "$tool_basename", so it can be a program name with args.
6385 set dummy $tool_basename; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_path_DIRNAME+:} false; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   case $DIRNAME in
6392   [\\/]* | ?:[\\/]*)
6393   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6394   ;;
6395   *)
6396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410 
6411   ;;
6412 esac
6413 fi
6414 DIRNAME=$ac_cv_path_DIRNAME
6415 if test -n "$DIRNAME"; then
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6417 $as_echo "$DIRNAME" >&6; }
6418 else
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422 
6423 
6424         if test "x$DIRNAME" = x; then
6425           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6426         fi
6427       else
6428         # Otherwise we believe it is a complete path. Use it as it is.
6429         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6430 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6432 $as_echo_n "checking for DIRNAME... " >&6; }
6433         if test ! -x "$tool_specified"; then
6434           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6435 $as_echo "not found" >&6; }
6436           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6437         fi
6438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6439 $as_echo "$tool_specified" >&6; }
6440       fi
6441     fi
6442   fi
6443 
6444 
6445 
6446   if test "x$DIRNAME" = x; then
6447     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6448   fi
6449 
6450 
6451 
6452 
6453 
6454   # Publish this variable in the help.
6455 
6456 
6457   if test "x$ECHO" = x; then
6458     # The variable is not set by user, try to locate tool using the code snippet
6459     for ac_prog in echo
6460 do
6461   # Extract the first word of "$ac_prog", so it can be a program name with args.
6462 set dummy $ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_path_ECHO+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   case $ECHO in
6469   [\\/]* | ?:[\\/]*)
6470   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6471   ;;
6472   *)
6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478     for ac_exec_ext in '' $ac_executable_extensions; do
6479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485   done
6486 IFS=$as_save_IFS
6487 
6488   ;;
6489 esac
6490 fi
6491 ECHO=$ac_cv_path_ECHO
6492 if test -n "$ECHO"; then
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6494 $as_echo "$ECHO" >&6; }
6495 else
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499 
6500 
6501   test -n "$ECHO" && break
6502 done
6503 
6504   else
6505     # The variable is set, but is it from the command line or the environment?
6506 
6507     # Try to remove the string !ECHO! from our list.
6508     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6509     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6510       # If it failed, the variable was not from the command line. Ignore it,
6511       # but warn the user (except for BASH, which is always set by the calling BASH).
6512       if test "xECHO" != xBASH; then
6513         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6514 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6515       fi
6516       # Try to locate tool using the code snippet
6517       for ac_prog in echo
6518 do
6519   # Extract the first word of "$ac_prog", so it can be a program name with args.
6520 set dummy $ac_prog; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_path_ECHO+:} false; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   case $ECHO in
6527   [\\/]* | ?:[\\/]*)
6528   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6529   ;;
6530   *)
6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536     for ac_exec_ext in '' $ac_executable_extensions; do
6537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543   done
6544 IFS=$as_save_IFS
6545 
6546   ;;
6547 esac
6548 fi
6549 ECHO=$ac_cv_path_ECHO
6550 if test -n "$ECHO"; then
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6552 $as_echo "$ECHO" >&6; }
6553 else
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557 
6558 
6559   test -n "$ECHO" && break
6560 done
6561 
6562     else
6563       # If it succeeded, then it was overridden by the user. We will use it
6564       # for the tool.
6565 
6566       # First remove it from the list of overridden variables, so we can test
6567       # for unknown variables in the end.
6568       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6569 
6570       # Check if the provided tool contains a complete path.
6571       tool_specified="$ECHO"
6572       tool_basename="${tool_specified##*/}"
6573       if test "x$tool_basename" = "x$tool_specified"; then
6574         # A command without a complete path is provided, search $PATH.
6575         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6576 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6577         # Extract the first word of "$tool_basename", so it can be a program name with args.
6578 set dummy $tool_basename; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_path_ECHO+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   case $ECHO in
6585   [\\/]* | ?:[\\/]*)
6586   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6587   ;;
6588   *)
6589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594     for ac_exec_ext in '' $ac_executable_extensions; do
6595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601   done
6602 IFS=$as_save_IFS
6603 
6604   ;;
6605 esac
6606 fi
6607 ECHO=$ac_cv_path_ECHO
6608 if test -n "$ECHO"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6610 $as_echo "$ECHO" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615 
6616 
6617         if test "x$ECHO" = x; then
6618           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6619         fi
6620       else
6621         # Otherwise we believe it is a complete path. Use it as it is.
6622         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6623 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6625 $as_echo_n "checking for ECHO... " >&6; }
6626         if test ! -x "$tool_specified"; then
6627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6628 $as_echo "not found" >&6; }
6629           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6630         fi
6631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6632 $as_echo "$tool_specified" >&6; }
6633       fi
6634     fi
6635   fi
6636 
6637 
6638 
6639   if test "x$ECHO" = x; then
6640     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6641   fi
6642 
6643 
6644 
6645 
6646 
6647   # Publish this variable in the help.
6648 
6649 
6650   if test "x$EXPR" = x; then
6651     # The variable is not set by user, try to locate tool using the code snippet
6652     for ac_prog in expr
6653 do
6654   # Extract the first word of "$ac_prog", so it can be a program name with args.
6655 set dummy $ac_prog; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_path_EXPR+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   case $EXPR in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671     for ac_exec_ext in '' $ac_executable_extensions; do
6672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678   done
6679 IFS=$as_save_IFS
6680 
6681   ;;
6682 esac
6683 fi
6684 EXPR=$ac_cv_path_EXPR
6685 if test -n "$EXPR"; then
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6687 $as_echo "$EXPR" >&6; }
6688 else
6689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692 
6693 
6694   test -n "$EXPR" && break
6695 done
6696 
6697   else
6698     # The variable is set, but is it from the command line or the environment?
6699 
6700     # Try to remove the string !EXPR! from our list.
6701     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6702     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6703       # If it failed, the variable was not from the command line. Ignore it,
6704       # but warn the user (except for BASH, which is always set by the calling BASH).
6705       if test "xEXPR" != xBASH; then
6706         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6707 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6708       fi
6709       # Try to locate tool using the code snippet
6710       for ac_prog in expr
6711 do
6712   # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_path_EXPR+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   case $EXPR in
6720   [\\/]* | ?:[\\/]*)
6721   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6722   ;;
6723   *)
6724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738 
6739   ;;
6740 esac
6741 fi
6742 EXPR=$ac_cv_path_EXPR
6743 if test -n "$EXPR"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6745 $as_echo "$EXPR" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750 
6751 
6752   test -n "$EXPR" && break
6753 done
6754 
6755     else
6756       # If it succeeded, then it was overridden by the user. We will use it
6757       # for the tool.
6758 
6759       # First remove it from the list of overridden variables, so we can test
6760       # for unknown variables in the end.
6761       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6762 
6763       # Check if the provided tool contains a complete path.
6764       tool_specified="$EXPR"
6765       tool_basename="${tool_specified##*/}"
6766       if test "x$tool_basename" = "x$tool_specified"; then
6767         # A command without a complete path is provided, search $PATH.
6768         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6769 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6770         # Extract the first word of "$tool_basename", so it can be a program name with args.
6771 set dummy $tool_basename; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_path_EXPR+:} false; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   case $EXPR in
6778   [\\/]* | ?:[\\/]*)
6779   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6780   ;;
6781   *)
6782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796 
6797   ;;
6798 esac
6799 fi
6800 EXPR=$ac_cv_path_EXPR
6801 if test -n "$EXPR"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6803 $as_echo "$EXPR" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808 
6809 
6810         if test "x$EXPR" = x; then
6811           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6812         fi
6813       else
6814         # Otherwise we believe it is a complete path. Use it as it is.
6815         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6816 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6818 $as_echo_n "checking for EXPR... " >&6; }
6819         if test ! -x "$tool_specified"; then
6820           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6821 $as_echo "not found" >&6; }
6822           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6823         fi
6824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6825 $as_echo "$tool_specified" >&6; }
6826       fi
6827     fi
6828   fi
6829 
6830 
6831 
6832   if test "x$EXPR" = x; then
6833     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6834   fi
6835 
6836 
6837 
6838 
6839 
6840   # Publish this variable in the help.
6841 
6842 
6843   if test "x$FILE" = x; then
6844     # The variable is not set by user, try to locate tool using the code snippet
6845     for ac_prog in file
6846 do
6847   # Extract the first word of "$ac_prog", so it can be a program name with args.
6848 set dummy $ac_prog; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_path_FILE+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   case $FILE in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871   done
6872 IFS=$as_save_IFS
6873 
6874   ;;
6875 esac
6876 fi
6877 FILE=$ac_cv_path_FILE
6878 if test -n "$FILE"; then
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6880 $as_echo "$FILE" >&6; }
6881 else
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885 
6886 
6887   test -n "$FILE" && break
6888 done
6889 
6890   else
6891     # The variable is set, but is it from the command line or the environment?
6892 
6893     # Try to remove the string !FILE! from our list.
6894     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6895     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6896       # If it failed, the variable was not from the command line. Ignore it,
6897       # but warn the user (except for BASH, which is always set by the calling BASH).
6898       if test "xFILE" != xBASH; then
6899         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6900 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6901       fi
6902       # Try to locate tool using the code snippet
6903       for ac_prog in file
6904 do
6905   # Extract the first word of "$ac_prog", so it can be a program name with args.
6906 set dummy $ac_prog; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_path_FILE+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   case $FILE in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931 
6932   ;;
6933 esac
6934 fi
6935 FILE=$ac_cv_path_FILE
6936 if test -n "$FILE"; then
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6938 $as_echo "$FILE" >&6; }
6939 else
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943 
6944 
6945   test -n "$FILE" && break
6946 done
6947 
6948     else
6949       # If it succeeded, then it was overridden by the user. We will use it
6950       # for the tool.
6951 
6952       # First remove it from the list of overridden variables, so we can test
6953       # for unknown variables in the end.
6954       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6955 
6956       # Check if the provided tool contains a complete path.
6957       tool_specified="$FILE"
6958       tool_basename="${tool_specified##*/}"
6959       if test "x$tool_basename" = "x$tool_specified"; then
6960         # A command without a complete path is provided, search $PATH.
6961         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6962 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6963         # Extract the first word of "$tool_basename", so it can be a program name with args.
6964 set dummy $tool_basename; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_path_FILE+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   case $FILE in
6971   [\\/]* | ?:[\\/]*)
6972   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6973   ;;
6974   *)
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_exec_ext in '' $ac_executable_extensions; do
6981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987   done
6988 IFS=$as_save_IFS
6989 
6990   ;;
6991 esac
6992 fi
6993 FILE=$ac_cv_path_FILE
6994 if test -n "$FILE"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6996 $as_echo "$FILE" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001 
7002 
7003         if test "x$FILE" = x; then
7004           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7005         fi
7006       else
7007         # Otherwise we believe it is a complete path. Use it as it is.
7008         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7009 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7011 $as_echo_n "checking for FILE... " >&6; }
7012         if test ! -x "$tool_specified"; then
7013           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7014 $as_echo "not found" >&6; }
7015           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7016         fi
7017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7018 $as_echo "$tool_specified" >&6; }
7019       fi
7020     fi
7021   fi
7022 
7023 
7024 
7025   if test "x$FILE" = x; then
7026     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7027   fi
7028 
7029 
7030 
7031 
7032 
7033   # Publish this variable in the help.
7034 
7035 
7036   if test "x$FIND" = x; then
7037     # The variable is not set by user, try to locate tool using the code snippet
7038     for ac_prog in find
7039 do
7040   # Extract the first word of "$ac_prog", so it can be a program name with args.
7041 set dummy $ac_prog; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_path_FIND+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   case $FIND in
7048   [\\/]* | ?:[\\/]*)
7049   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7050   ;;
7051   *)
7052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064   done
7065 IFS=$as_save_IFS
7066 
7067   ;;
7068 esac
7069 fi
7070 FIND=$ac_cv_path_FIND
7071 if test -n "$FIND"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7073 $as_echo "$FIND" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078 
7079 
7080   test -n "$FIND" && break
7081 done
7082 
7083   else
7084     # The variable is set, but is it from the command line or the environment?
7085 
7086     # Try to remove the string !FIND! from our list.
7087     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7088     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7089       # If it failed, the variable was not from the command line. Ignore it,
7090       # but warn the user (except for BASH, which is always set by the calling BASH).
7091       if test "xFIND" != xBASH; then
7092         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7093 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7094       fi
7095       # Try to locate tool using the code snippet
7096       for ac_prog in find
7097 do
7098   # Extract the first word of "$ac_prog", so it can be a program name with args.
7099 set dummy $ac_prog; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_path_FIND+:} false; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   case $FIND in
7106   [\\/]* | ?:[\\/]*)
7107   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7108   ;;
7109   *)
7110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_exec_ext in '' $ac_executable_extensions; do
7116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122   done
7123 IFS=$as_save_IFS
7124 
7125   ;;
7126 esac
7127 fi
7128 FIND=$ac_cv_path_FIND
7129 if test -n "$FIND"; then
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7131 $as_echo "$FIND" >&6; }
7132 else
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136 
7137 
7138   test -n "$FIND" && break
7139 done
7140 
7141     else
7142       # If it succeeded, then it was overridden by the user. We will use it
7143       # for the tool.
7144 
7145       # First remove it from the list of overridden variables, so we can test
7146       # for unknown variables in the end.
7147       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7148 
7149       # Check if the provided tool contains a complete path.
7150       tool_specified="$FIND"
7151       tool_basename="${tool_specified##*/}"
7152       if test "x$tool_basename" = "x$tool_specified"; then
7153         # A command without a complete path is provided, search $PATH.
7154         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7155 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7156         # Extract the first word of "$tool_basename", so it can be a program name with args.
7157 set dummy $tool_basename; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_path_FIND+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   case $FIND in
7164   [\\/]* | ?:[\\/]*)
7165   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7166   ;;
7167   *)
7168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182 
7183   ;;
7184 esac
7185 fi
7186 FIND=$ac_cv_path_FIND
7187 if test -n "$FIND"; then
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7189 $as_echo "$FIND" >&6; }
7190 else
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194 
7195 
7196         if test "x$FIND" = x; then
7197           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7198         fi
7199       else
7200         # Otherwise we believe it is a complete path. Use it as it is.
7201         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7202 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7204 $as_echo_n "checking for FIND... " >&6; }
7205         if test ! -x "$tool_specified"; then
7206           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7207 $as_echo "not found" >&6; }
7208           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7209         fi
7210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7211 $as_echo "$tool_specified" >&6; }
7212       fi
7213     fi
7214   fi
7215 
7216 
7217 
7218   if test "x$FIND" = x; then
7219     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7220   fi
7221 
7222 
7223 
7224 
7225 
7226   # Publish this variable in the help.
7227 
7228 
7229   if test "x$HEAD" = x; then
7230     # The variable is not set by user, try to locate tool using the code snippet
7231     for ac_prog in head
7232 do
7233   # Extract the first word of "$ac_prog", so it can be a program name with args.
7234 set dummy $ac_prog; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_path_HEAD+:} false; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   case $HEAD in
7241   [\\/]* | ?:[\\/]*)
7242   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7243   ;;
7244   *)
7245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248   IFS=$as_save_IFS
7249   test -z "$as_dir" && as_dir=.
7250     for ac_exec_ext in '' $ac_executable_extensions; do
7251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254     break 2
7255   fi
7256 done
7257   done
7258 IFS=$as_save_IFS
7259 
7260   ;;
7261 esac
7262 fi
7263 HEAD=$ac_cv_path_HEAD
7264 if test -n "$HEAD"; then
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7266 $as_echo "$HEAD" >&6; }
7267 else
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271 
7272 
7273   test -n "$HEAD" && break
7274 done
7275 
7276   else
7277     # The variable is set, but is it from the command line or the environment?
7278 
7279     # Try to remove the string !HEAD! from our list.
7280     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7281     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7282       # If it failed, the variable was not from the command line. Ignore it,
7283       # but warn the user (except for BASH, which is always set by the calling BASH).
7284       if test "xHEAD" != xBASH; then
7285         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7286 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7287       fi
7288       # Try to locate tool using the code snippet
7289       for ac_prog in head
7290 do
7291   # Extract the first word of "$ac_prog", so it can be a program name with args.
7292 set dummy $ac_prog; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_path_HEAD+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   case $HEAD in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317 
7318   ;;
7319 esac
7320 fi
7321 HEAD=$ac_cv_path_HEAD
7322 if test -n "$HEAD"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7324 $as_echo "$HEAD" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329 
7330 
7331   test -n "$HEAD" && break
7332 done
7333 
7334     else
7335       # If it succeeded, then it was overridden by the user. We will use it
7336       # for the tool.
7337 
7338       # First remove it from the list of overridden variables, so we can test
7339       # for unknown variables in the end.
7340       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7341 
7342       # Check if the provided tool contains a complete path.
7343       tool_specified="$HEAD"
7344       tool_basename="${tool_specified##*/}"
7345       if test "x$tool_basename" = "x$tool_specified"; then
7346         # A command without a complete path is provided, search $PATH.
7347         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7348 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7349         # Extract the first word of "$tool_basename", so it can be a program name with args.
7350 set dummy $tool_basename; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_path_HEAD+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   case $HEAD in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375 
7376   ;;
7377 esac
7378 fi
7379 HEAD=$ac_cv_path_HEAD
7380 if test -n "$HEAD"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7382 $as_echo "$HEAD" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387 
7388 
7389         if test "x$HEAD" = x; then
7390           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7391         fi
7392       else
7393         # Otherwise we believe it is a complete path. Use it as it is.
7394         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7395 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7397 $as_echo_n "checking for HEAD... " >&6; }
7398         if test ! -x "$tool_specified"; then
7399           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7400 $as_echo "not found" >&6; }
7401           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7402         fi
7403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7404 $as_echo "$tool_specified" >&6; }
7405       fi
7406     fi
7407   fi
7408 
7409 
7410 
7411   if test "x$HEAD" = x; then
7412     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7413   fi
7414 
7415 
7416 
7417 
7418 
7419   # Publish this variable in the help.
7420 
7421 
7422   if test "x$LN" = x; then
7423     # The variable is not set by user, try to locate tool using the code snippet
7424     for ac_prog in ln
7425 do
7426   # Extract the first word of "$ac_prog", so it can be a program name with args.
7427 set dummy $ac_prog; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_path_LN+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   case $LN in
7434   [\\/]* | ?:[\\/]*)
7435   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7436   ;;
7437   *)
7438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450   done
7451 IFS=$as_save_IFS
7452 
7453   ;;
7454 esac
7455 fi
7456 LN=$ac_cv_path_LN
7457 if test -n "$LN"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7459 $as_echo "$LN" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464 
7465 
7466   test -n "$LN" && break
7467 done
7468 
7469   else
7470     # The variable is set, but is it from the command line or the environment?
7471 
7472     # Try to remove the string !LN! from our list.
7473     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7474     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7475       # If it failed, the variable was not from the command line. Ignore it,
7476       # but warn the user (except for BASH, which is always set by the calling BASH).
7477       if test "xLN" != xBASH; then
7478         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7479 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7480       fi
7481       # Try to locate tool using the code snippet
7482       for ac_prog in ln
7483 do
7484   # Extract the first word of "$ac_prog", so it can be a program name with args.
7485 set dummy $ac_prog; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_path_LN+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   case $LN in
7492   [\\/]* | ?:[\\/]*)
7493   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7494   ;;
7495   *)
7496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   test -z "$as_dir" && as_dir=.
7501     for ac_exec_ext in '' $ac_executable_extensions; do
7502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505     break 2
7506   fi
7507 done
7508   done
7509 IFS=$as_save_IFS
7510 
7511   ;;
7512 esac
7513 fi
7514 LN=$ac_cv_path_LN
7515 if test -n "$LN"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7517 $as_echo "$LN" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522 
7523 
7524   test -n "$LN" && break
7525 done
7526 
7527     else
7528       # If it succeeded, then it was overridden by the user. We will use it
7529       # for the tool.
7530 
7531       # First remove it from the list of overridden variables, so we can test
7532       # for unknown variables in the end.
7533       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7534 
7535       # Check if the provided tool contains a complete path.
7536       tool_specified="$LN"
7537       tool_basename="${tool_specified##*/}"
7538       if test "x$tool_basename" = "x$tool_specified"; then
7539         # A command without a complete path is provided, search $PATH.
7540         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7541 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7542         # Extract the first word of "$tool_basename", so it can be a program name with args.
7543 set dummy $tool_basename; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_path_LN+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   case $LN in
7550   [\\/]* | ?:[\\/]*)
7551   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7552   ;;
7553   *)
7554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559     for ac_exec_ext in '' $ac_executable_extensions; do
7560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566   done
7567 IFS=$as_save_IFS
7568 
7569   ;;
7570 esac
7571 fi
7572 LN=$ac_cv_path_LN
7573 if test -n "$LN"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7575 $as_echo "$LN" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580 
7581 
7582         if test "x$LN" = x; then
7583           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7584         fi
7585       else
7586         # Otherwise we believe it is a complete path. Use it as it is.
7587         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7588 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7590 $as_echo_n "checking for LN... " >&6; }
7591         if test ! -x "$tool_specified"; then
7592           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7593 $as_echo "not found" >&6; }
7594           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7595         fi
7596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7597 $as_echo "$tool_specified" >&6; }
7598       fi
7599     fi
7600   fi
7601 
7602 
7603 
7604   if test "x$LN" = x; then
7605     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7606   fi
7607 
7608 
7609 
7610 
7611 
7612   # Publish this variable in the help.
7613 
7614 
7615   if test "x$LS" = x; then
7616     # The variable is not set by user, try to locate tool using the code snippet
7617     for ac_prog in ls
7618 do
7619   # Extract the first word of "$ac_prog", so it can be a program name with args.
7620 set dummy $ac_prog; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_path_LS+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   case $LS in
7627   [\\/]* | ?:[\\/]*)
7628   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7629   ;;
7630   *)
7631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645 
7646   ;;
7647 esac
7648 fi
7649 LS=$ac_cv_path_LS
7650 if test -n "$LS"; then
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7652 $as_echo "$LS" >&6; }
7653 else
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657 
7658 
7659   test -n "$LS" && break
7660 done
7661 
7662   else
7663     # The variable is set, but is it from the command line or the environment?
7664 
7665     # Try to remove the string !LS! from our list.
7666     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7667     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7668       # If it failed, the variable was not from the command line. Ignore it,
7669       # but warn the user (except for BASH, which is always set by the calling BASH).
7670       if test "xLS" != xBASH; then
7671         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7672 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7673       fi
7674       # Try to locate tool using the code snippet
7675       for ac_prog in ls
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_path_LS+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   case $LS in
7685   [\\/]* | ?:[\\/]*)
7686   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7687   ;;
7688   *)
7689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694     for ac_exec_ext in '' $ac_executable_extensions; do
7695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701   done
7702 IFS=$as_save_IFS
7703 
7704   ;;
7705 esac
7706 fi
7707 LS=$ac_cv_path_LS
7708 if test -n "$LS"; then
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7710 $as_echo "$LS" >&6; }
7711 else
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715 
7716 
7717   test -n "$LS" && break
7718 done
7719 
7720     else
7721       # If it succeeded, then it was overridden by the user. We will use it
7722       # for the tool.
7723 
7724       # First remove it from the list of overridden variables, so we can test
7725       # for unknown variables in the end.
7726       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7727 
7728       # Check if the provided tool contains a complete path.
7729       tool_specified="$LS"
7730       tool_basename="${tool_specified##*/}"
7731       if test "x$tool_basename" = "x$tool_specified"; then
7732         # A command without a complete path is provided, search $PATH.
7733         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7734 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7735         # Extract the first word of "$tool_basename", so it can be a program name with args.
7736 set dummy $tool_basename; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_path_LS+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   case $LS in
7743   [\\/]* | ?:[\\/]*)
7744   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7745   ;;
7746   *)
7747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752     for ac_exec_ext in '' $ac_executable_extensions; do
7753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759   done
7760 IFS=$as_save_IFS
7761 
7762   ;;
7763 esac
7764 fi
7765 LS=$ac_cv_path_LS
7766 if test -n "$LS"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7768 $as_echo "$LS" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773 
7774 
7775         if test "x$LS" = x; then
7776           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7777         fi
7778       else
7779         # Otherwise we believe it is a complete path. Use it as it is.
7780         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7781 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7783 $as_echo_n "checking for LS... " >&6; }
7784         if test ! -x "$tool_specified"; then
7785           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7786 $as_echo "not found" >&6; }
7787           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7788         fi
7789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7790 $as_echo "$tool_specified" >&6; }
7791       fi
7792     fi
7793   fi
7794 
7795 
7796 
7797   if test "x$LS" = x; then
7798     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7799   fi
7800 
7801 
7802 
7803 
7804 
7805   # Publish this variable in the help.
7806 
7807 
7808   if test "x$MKDIR" = x; then
7809     # The variable is not set by user, try to locate tool using the code snippet
7810     for ac_prog in mkdir
7811 do
7812   # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_path_MKDIR+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   case $MKDIR in
7820   [\\/]* | ?:[\\/]*)
7821   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7822   ;;
7823   *)
7824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829     for ac_exec_ext in '' $ac_executable_extensions; do
7830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836   done
7837 IFS=$as_save_IFS
7838 
7839   ;;
7840 esac
7841 fi
7842 MKDIR=$ac_cv_path_MKDIR
7843 if test -n "$MKDIR"; then
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7845 $as_echo "$MKDIR" >&6; }
7846 else
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7849 fi
7850 
7851 
7852   test -n "$MKDIR" && break
7853 done
7854 
7855   else
7856     # The variable is set, but is it from the command line or the environment?
7857 
7858     # Try to remove the string !MKDIR! from our list.
7859     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7860     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7861       # If it failed, the variable was not from the command line. Ignore it,
7862       # but warn the user (except for BASH, which is always set by the calling BASH).
7863       if test "xMKDIR" != xBASH; then
7864         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7865 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7866       fi
7867       # Try to locate tool using the code snippet
7868       for ac_prog in mkdir
7869 do
7870   # Extract the first word of "$ac_prog", so it can be a program name with args.
7871 set dummy $ac_prog; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_path_MKDIR+:} false; then :
7875   $as_echo_n "(cached) " >&6
7876 else
7877   case $MKDIR in
7878   [\\/]* | ?:[\\/]*)
7879   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7880   ;;
7881   *)
7882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896 
7897   ;;
7898 esac
7899 fi
7900 MKDIR=$ac_cv_path_MKDIR
7901 if test -n "$MKDIR"; then
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7903 $as_echo "$MKDIR" >&6; }
7904 else
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7907 fi
7908 
7909 
7910   test -n "$MKDIR" && break
7911 done
7912 
7913     else
7914       # If it succeeded, then it was overridden by the user. We will use it
7915       # for the tool.
7916 
7917       # First remove it from the list of overridden variables, so we can test
7918       # for unknown variables in the end.
7919       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7920 
7921       # Check if the provided tool contains a complete path.
7922       tool_specified="$MKDIR"
7923       tool_basename="${tool_specified##*/}"
7924       if test "x$tool_basename" = "x$tool_specified"; then
7925         # A command without a complete path is provided, search $PATH.
7926         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7927 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7928         # Extract the first word of "$tool_basename", so it can be a program name with args.
7929 set dummy $tool_basename; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_path_MKDIR+:} false; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   case $MKDIR in
7936   [\\/]* | ?:[\\/]*)
7937   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7938   ;;
7939   *)
7940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945     for ac_exec_ext in '' $ac_executable_extensions; do
7946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952   done
7953 IFS=$as_save_IFS
7954 
7955   ;;
7956 esac
7957 fi
7958 MKDIR=$ac_cv_path_MKDIR
7959 if test -n "$MKDIR"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7961 $as_echo "$MKDIR" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966 
7967 
7968         if test "x$MKDIR" = x; then
7969           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7970         fi
7971       else
7972         # Otherwise we believe it is a complete path. Use it as it is.
7973         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7974 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7975         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
7976 $as_echo_n "checking for MKDIR... " >&6; }
7977         if test ! -x "$tool_specified"; then
7978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7979 $as_echo "not found" >&6; }
7980           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
7981         fi
7982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7983 $as_echo "$tool_specified" >&6; }
7984       fi
7985     fi
7986   fi
7987 
7988 
7989 
7990   if test "x$MKDIR" = x; then
7991     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
7992   fi
7993 
7994 
7995 
7996 
7997 
7998   # Publish this variable in the help.
7999 
8000 
8001   if test "x$MKTEMP" = x; then
8002     # The variable is not set by user, try to locate tool using the code snippet
8003     for ac_prog in mktemp
8004 do
8005   # Extract the first word of "$ac_prog", so it can be a program name with args.
8006 set dummy $ac_prog; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if ${ac_cv_path_MKTEMP+:} false; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012   case $MKTEMP in
8013   [\\/]* | ?:[\\/]*)
8014   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8015   ;;
8016   *)
8017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020   IFS=$as_save_IFS
8021   test -z "$as_dir" && as_dir=.
8022     for ac_exec_ext in '' $ac_executable_extensions; do
8023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026     break 2
8027   fi
8028 done
8029   done
8030 IFS=$as_save_IFS
8031 
8032   ;;
8033 esac
8034 fi
8035 MKTEMP=$ac_cv_path_MKTEMP
8036 if test -n "$MKTEMP"; then
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8038 $as_echo "$MKTEMP" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043 
8044 
8045   test -n "$MKTEMP" && break
8046 done
8047 
8048   else
8049     # The variable is set, but is it from the command line or the environment?
8050 
8051     # Try to remove the string !MKTEMP! from our list.
8052     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8053     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8054       # If it failed, the variable was not from the command line. Ignore it,
8055       # but warn the user (except for BASH, which is always set by the calling BASH).
8056       if test "xMKTEMP" != xBASH; then
8057         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8058 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8059       fi
8060       # Try to locate tool using the code snippet
8061       for ac_prog in mktemp
8062 do
8063   # Extract the first word of "$ac_prog", so it can be a program name with args.
8064 set dummy $ac_prog; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_path_MKTEMP+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   case $MKTEMP in
8071   [\\/]* | ?:[\\/]*)
8072   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8073   ;;
8074   *)
8075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080     for ac_exec_ext in '' $ac_executable_extensions; do
8081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087   done
8088 IFS=$as_save_IFS
8089 
8090   ;;
8091 esac
8092 fi
8093 MKTEMP=$ac_cv_path_MKTEMP
8094 if test -n "$MKTEMP"; then
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8096 $as_echo "$MKTEMP" >&6; }
8097 else
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101 
8102 
8103   test -n "$MKTEMP" && break
8104 done
8105 
8106     else
8107       # If it succeeded, then it was overridden by the user. We will use it
8108       # for the tool.
8109 
8110       # First remove it from the list of overridden variables, so we can test
8111       # for unknown variables in the end.
8112       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8113 
8114       # Check if the provided tool contains a complete path.
8115       tool_specified="$MKTEMP"
8116       tool_basename="${tool_specified##*/}"
8117       if test "x$tool_basename" = "x$tool_specified"; then
8118         # A command without a complete path is provided, search $PATH.
8119         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8120 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8121         # Extract the first word of "$tool_basename", so it can be a program name with args.
8122 set dummy $tool_basename; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_path_MKTEMP+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   case $MKTEMP in
8129   [\\/]* | ?:[\\/]*)
8130   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8131   ;;
8132   *)
8133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147 
8148   ;;
8149 esac
8150 fi
8151 MKTEMP=$ac_cv_path_MKTEMP
8152 if test -n "$MKTEMP"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8154 $as_echo "$MKTEMP" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159 
8160 
8161         if test "x$MKTEMP" = x; then
8162           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8163         fi
8164       else
8165         # Otherwise we believe it is a complete path. Use it as it is.
8166         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8167 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8169 $as_echo_n "checking for MKTEMP... " >&6; }
8170         if test ! -x "$tool_specified"; then
8171           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8172 $as_echo "not found" >&6; }
8173           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8174         fi
8175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8176 $as_echo "$tool_specified" >&6; }
8177       fi
8178     fi
8179   fi
8180 
8181 
8182 
8183   if test "x$MKTEMP" = x; then
8184     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8185   fi
8186 
8187 
8188 
8189 
8190 
8191   # Publish this variable in the help.
8192 
8193 
8194   if test "x$MV" = x; then
8195     # The variable is not set by user, try to locate tool using the code snippet
8196     for ac_prog in mv
8197 do
8198   # Extract the first word of "$ac_prog", so it can be a program name with args.
8199 set dummy $ac_prog; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if ${ac_cv_path_MV+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   case $MV in
8206   [\\/]* | ?:[\\/]*)
8207   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8208   ;;
8209   *)
8210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215     for ac_exec_ext in '' $ac_executable_extensions; do
8216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222   done
8223 IFS=$as_save_IFS
8224 
8225   ;;
8226 esac
8227 fi
8228 MV=$ac_cv_path_MV
8229 if test -n "$MV"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8231 $as_echo "$MV" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236 
8237 
8238   test -n "$MV" && break
8239 done
8240 
8241   else
8242     # The variable is set, but is it from the command line or the environment?
8243 
8244     # Try to remove the string !MV! from our list.
8245     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8246     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8247       # If it failed, the variable was not from the command line. Ignore it,
8248       # but warn the user (except for BASH, which is always set by the calling BASH).
8249       if test "xMV" != xBASH; then
8250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8251 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8252       fi
8253       # Try to locate tool using the code snippet
8254       for ac_prog in mv
8255 do
8256   # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_path_MV+:} false; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   case $MV in
8264   [\\/]* | ?:[\\/]*)
8265   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8266   ;;
8267   *)
8268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273     for ac_exec_ext in '' $ac_executable_extensions; do
8274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280   done
8281 IFS=$as_save_IFS
8282 
8283   ;;
8284 esac
8285 fi
8286 MV=$ac_cv_path_MV
8287 if test -n "$MV"; then
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8289 $as_echo "$MV" >&6; }
8290 else
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294 
8295 
8296   test -n "$MV" && break
8297 done
8298 
8299     else
8300       # If it succeeded, then it was overridden by the user. We will use it
8301       # for the tool.
8302 
8303       # First remove it from the list of overridden variables, so we can test
8304       # for unknown variables in the end.
8305       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8306 
8307       # Check if the provided tool contains a complete path.
8308       tool_specified="$MV"
8309       tool_basename="${tool_specified##*/}"
8310       if test "x$tool_basename" = "x$tool_specified"; then
8311         # A command without a complete path is provided, search $PATH.
8312         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8313 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8314         # Extract the first word of "$tool_basename", so it can be a program name with args.
8315 set dummy $tool_basename; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_path_MV+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   case $MV in
8322   [\\/]* | ?:[\\/]*)
8323   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8324   ;;
8325   *)
8326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329   IFS=$as_save_IFS
8330   test -z "$as_dir" && as_dir=.
8331     for ac_exec_ext in '' $ac_executable_extensions; do
8332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335     break 2
8336   fi
8337 done
8338   done
8339 IFS=$as_save_IFS
8340 
8341   ;;
8342 esac
8343 fi
8344 MV=$ac_cv_path_MV
8345 if test -n "$MV"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8347 $as_echo "$MV" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352 
8353 
8354         if test "x$MV" = x; then
8355           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8356         fi
8357       else
8358         # Otherwise we believe it is a complete path. Use it as it is.
8359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8360 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8362 $as_echo_n "checking for MV... " >&6; }
8363         if test ! -x "$tool_specified"; then
8364           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8365 $as_echo "not found" >&6; }
8366           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8367         fi
8368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8369 $as_echo "$tool_specified" >&6; }
8370       fi
8371     fi
8372   fi
8373 
8374 
8375 
8376   if test "x$MV" = x; then
8377     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8378   fi
8379 
8380 
8381 
8382 
8383 
8384   # Publish this variable in the help.
8385 
8386 
8387   if test "x$NAWK" = x; then
8388     # The variable is not set by user, try to locate tool using the code snippet
8389     for ac_prog in nawk gawk awk
8390 do
8391   # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_path_NAWK+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   case $NAWK in
8399   [\\/]* | ?:[\\/]*)
8400   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8401   ;;
8402   *)
8403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408     for ac_exec_ext in '' $ac_executable_extensions; do
8409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415   done
8416 IFS=$as_save_IFS
8417 
8418   ;;
8419 esac
8420 fi
8421 NAWK=$ac_cv_path_NAWK
8422 if test -n "$NAWK"; then
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8424 $as_echo "$NAWK" >&6; }
8425 else
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429 
8430 
8431   test -n "$NAWK" && break
8432 done
8433 
8434   else
8435     # The variable is set, but is it from the command line or the environment?
8436 
8437     # Try to remove the string !NAWK! from our list.
8438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8440       # If it failed, the variable was not from the command line. Ignore it,
8441       # but warn the user (except for BASH, which is always set by the calling BASH).
8442       if test "xNAWK" != xBASH; then
8443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8444 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8445       fi
8446       # Try to locate tool using the code snippet
8447       for ac_prog in nawk gawk awk
8448 do
8449   # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_path_NAWK+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   case $NAWK in
8457   [\\/]* | ?:[\\/]*)
8458   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8459   ;;
8460   *)
8461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475 
8476   ;;
8477 esac
8478 fi
8479 NAWK=$ac_cv_path_NAWK
8480 if test -n "$NAWK"; then
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8482 $as_echo "$NAWK" >&6; }
8483 else
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 fi
8487 
8488 
8489   test -n "$NAWK" && break
8490 done
8491 
8492     else
8493       # If it succeeded, then it was overridden by the user. We will use it
8494       # for the tool.
8495 
8496       # First remove it from the list of overridden variables, so we can test
8497       # for unknown variables in the end.
8498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8499 
8500       # Check if the provided tool contains a complete path.
8501       tool_specified="$NAWK"
8502       tool_basename="${tool_specified##*/}"
8503       if test "x$tool_basename" = "x$tool_specified"; then
8504         # A command without a complete path is provided, search $PATH.
8505         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8506 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8507         # Extract the first word of "$tool_basename", so it can be a program name with args.
8508 set dummy $tool_basename; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_path_NAWK+:} false; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   case $NAWK in
8515   [\\/]* | ?:[\\/]*)
8516   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8517   ;;
8518   *)
8519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524     for ac_exec_ext in '' $ac_executable_extensions; do
8525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531   done
8532 IFS=$as_save_IFS
8533 
8534   ;;
8535 esac
8536 fi
8537 NAWK=$ac_cv_path_NAWK
8538 if test -n "$NAWK"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8540 $as_echo "$NAWK" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545 
8546 
8547         if test "x$NAWK" = x; then
8548           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8549         fi
8550       else
8551         # Otherwise we believe it is a complete path. Use it as it is.
8552         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8553 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8555 $as_echo_n "checking for NAWK... " >&6; }
8556         if test ! -x "$tool_specified"; then
8557           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8558 $as_echo "not found" >&6; }
8559           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8560         fi
8561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8562 $as_echo "$tool_specified" >&6; }
8563       fi
8564     fi
8565   fi
8566 
8567 
8568 
8569   if test "x$NAWK" = x; then
8570     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8571   fi
8572 
8573 
8574 
8575 
8576 
8577   # Publish this variable in the help.
8578 
8579 
8580   if test "x$PRINTF" = x; then
8581     # The variable is not set by user, try to locate tool using the code snippet
8582     for ac_prog in printf
8583 do
8584   # Extract the first word of "$ac_prog", so it can be a program name with args.
8585 set dummy $ac_prog; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if ${ac_cv_path_PRINTF+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   case $PRINTF in
8592   [\\/]* | ?:[\\/]*)
8593   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8594   ;;
8595   *)
8596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8598 do
8599   IFS=$as_save_IFS
8600   test -z "$as_dir" && as_dir=.
8601     for ac_exec_ext in '' $ac_executable_extensions; do
8602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8603     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605     break 2
8606   fi
8607 done
8608   done
8609 IFS=$as_save_IFS
8610 
8611   ;;
8612 esac
8613 fi
8614 PRINTF=$ac_cv_path_PRINTF
8615 if test -n "$PRINTF"; then
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8617 $as_echo "$PRINTF" >&6; }
8618 else
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8621 fi
8622 
8623 
8624   test -n "$PRINTF" && break
8625 done
8626 
8627   else
8628     # The variable is set, but is it from the command line or the environment?
8629 
8630     # Try to remove the string !PRINTF! from our list.
8631     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8632     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8633       # If it failed, the variable was not from the command line. Ignore it,
8634       # but warn the user (except for BASH, which is always set by the calling BASH).
8635       if test "xPRINTF" != xBASH; then
8636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8637 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8638       fi
8639       # Try to locate tool using the code snippet
8640       for ac_prog in printf
8641 do
8642   # Extract the first word of "$ac_prog", so it can be a program name with args.
8643 set dummy $ac_prog; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_path_PRINTF+:} false; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   case $PRINTF in
8650   [\\/]* | ?:[\\/]*)
8651   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8652   ;;
8653   *)
8654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668 
8669   ;;
8670 esac
8671 fi
8672 PRINTF=$ac_cv_path_PRINTF
8673 if test -n "$PRINTF"; then
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8675 $as_echo "$PRINTF" >&6; }
8676 else
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680 
8681 
8682   test -n "$PRINTF" && break
8683 done
8684 
8685     else
8686       # If it succeeded, then it was overridden by the user. We will use it
8687       # for the tool.
8688 
8689       # First remove it from the list of overridden variables, so we can test
8690       # for unknown variables in the end.
8691       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8692 
8693       # Check if the provided tool contains a complete path.
8694       tool_specified="$PRINTF"
8695       tool_basename="${tool_specified##*/}"
8696       if test "x$tool_basename" = "x$tool_specified"; then
8697         # A command without a complete path is provided, search $PATH.
8698         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8699 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8700         # Extract the first word of "$tool_basename", so it can be a program name with args.
8701 set dummy $tool_basename; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_path_PRINTF+:} false; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   case $PRINTF in
8708   [\\/]* | ?:[\\/]*)
8709   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8710   ;;
8711   *)
8712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   test -z "$as_dir" && as_dir=.
8717     for ac_exec_ext in '' $ac_executable_extensions; do
8718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721     break 2
8722   fi
8723 done
8724   done
8725 IFS=$as_save_IFS
8726 
8727   ;;
8728 esac
8729 fi
8730 PRINTF=$ac_cv_path_PRINTF
8731 if test -n "$PRINTF"; then
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8733 $as_echo "$PRINTF" >&6; }
8734 else
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738 
8739 
8740         if test "x$PRINTF" = x; then
8741           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8742         fi
8743       else
8744         # Otherwise we believe it is a complete path. Use it as it is.
8745         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8746 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8748 $as_echo_n "checking for PRINTF... " >&6; }
8749         if test ! -x "$tool_specified"; then
8750           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8751 $as_echo "not found" >&6; }
8752           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8753         fi
8754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8755 $as_echo "$tool_specified" >&6; }
8756       fi
8757     fi
8758   fi
8759 
8760 
8761 
8762   if test "x$PRINTF" = x; then
8763     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8764   fi
8765 
8766 
8767 
8768 
8769 
8770   # Publish this variable in the help.
8771 
8772 
8773   if test "x$RM" = x; then
8774     # The variable is not set by user, try to locate tool using the code snippet
8775     for ac_prog in rm
8776 do
8777   # Extract the first word of "$ac_prog", so it can be a program name with args.
8778 set dummy $ac_prog; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if ${ac_cv_path_RM+:} false; then :
8782   $as_echo_n "(cached) " >&6
8783 else
8784   case $RM in
8785   [\\/]* | ?:[\\/]*)
8786   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8787   ;;
8788   *)
8789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803 
8804   ;;
8805 esac
8806 fi
8807 RM=$ac_cv_path_RM
8808 if test -n "$RM"; then
8809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8810 $as_echo "$RM" >&6; }
8811 else
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815 
8816 
8817   test -n "$RM" && break
8818 done
8819 
8820   else
8821     # The variable is set, but is it from the command line or the environment?
8822 
8823     # Try to remove the string !RM! from our list.
8824     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8825     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8826       # If it failed, the variable was not from the command line. Ignore it,
8827       # but warn the user (except for BASH, which is always set by the calling BASH).
8828       if test "xRM" != xBASH; then
8829         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8830 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8831       fi
8832       # Try to locate tool using the code snippet
8833       for ac_prog in rm
8834 do
8835   # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if ${ac_cv_path_RM+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   case $RM in
8843   [\\/]* | ?:[\\/]*)
8844   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8845   ;;
8846   *)
8847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850   IFS=$as_save_IFS
8851   test -z "$as_dir" && as_dir=.
8852     for ac_exec_ext in '' $ac_executable_extensions; do
8853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856     break 2
8857   fi
8858 done
8859   done
8860 IFS=$as_save_IFS
8861 
8862   ;;
8863 esac
8864 fi
8865 RM=$ac_cv_path_RM
8866 if test -n "$RM"; then
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8868 $as_echo "$RM" >&6; }
8869 else
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 fi
8873 
8874 
8875   test -n "$RM" && break
8876 done
8877 
8878     else
8879       # If it succeeded, then it was overridden by the user. We will use it
8880       # for the tool.
8881 
8882       # First remove it from the list of overridden variables, so we can test
8883       # for unknown variables in the end.
8884       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8885 
8886       # Check if the provided tool contains a complete path.
8887       tool_specified="$RM"
8888       tool_basename="${tool_specified##*/}"
8889       if test "x$tool_basename" = "x$tool_specified"; then
8890         # A command without a complete path is provided, search $PATH.
8891         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8892 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8893         # Extract the first word of "$tool_basename", so it can be a program name with args.
8894 set dummy $tool_basename; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_path_RM+:} false; then :
8898   $as_echo_n "(cached) " >&6
8899 else
8900   case $RM in
8901   [\\/]* | ?:[\\/]*)
8902   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8903   ;;
8904   *)
8905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908   IFS=$as_save_IFS
8909   test -z "$as_dir" && as_dir=.
8910     for ac_exec_ext in '' $ac_executable_extensions; do
8911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914     break 2
8915   fi
8916 done
8917   done
8918 IFS=$as_save_IFS
8919 
8920   ;;
8921 esac
8922 fi
8923 RM=$ac_cv_path_RM
8924 if test -n "$RM"; then
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8926 $as_echo "$RM" >&6; }
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 fi
8931 
8932 
8933         if test "x$RM" = x; then
8934           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8935         fi
8936       else
8937         # Otherwise we believe it is a complete path. Use it as it is.
8938         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8939 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8941 $as_echo_n "checking for RM... " >&6; }
8942         if test ! -x "$tool_specified"; then
8943           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8944 $as_echo "not found" >&6; }
8945           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8946         fi
8947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8948 $as_echo "$tool_specified" >&6; }
8949       fi
8950     fi
8951   fi
8952 
8953 
8954 
8955   if test "x$RM" = x; then
8956     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8957   fi
8958 
8959 
8960 
8961 
8962 
8963   # Publish this variable in the help.
8964 
8965 
8966   if test "x$SH" = x; then
8967     # The variable is not set by user, try to locate tool using the code snippet
8968     for ac_prog in sh
8969 do
8970   # Extract the first word of "$ac_prog", so it can be a program name with args.
8971 set dummy $ac_prog; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if ${ac_cv_path_SH+:} false; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   case $SH in
8978   [\\/]* | ?:[\\/]*)
8979   ac_cv_path_SH="$SH" # Let the user override the test with a path.
8980   ;;
8981   *)
8982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $PATH
8984 do
8985   IFS=$as_save_IFS
8986   test -z "$as_dir" && as_dir=.
8987     for ac_exec_ext in '' $ac_executable_extensions; do
8988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
8990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8991     break 2
8992   fi
8993 done
8994   done
8995 IFS=$as_save_IFS
8996 
8997   ;;
8998 esac
8999 fi
9000 SH=$ac_cv_path_SH
9001 if test -n "$SH"; then
9002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9003 $as_echo "$SH" >&6; }
9004 else
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9007 fi
9008 
9009 
9010   test -n "$SH" && break
9011 done
9012 
9013   else
9014     # The variable is set, but is it from the command line or the environment?
9015 
9016     # Try to remove the string !SH! from our list.
9017     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9018     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9019       # If it failed, the variable was not from the command line. Ignore it,
9020       # but warn the user (except for BASH, which is always set by the calling BASH).
9021       if test "xSH" != xBASH; then
9022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9023 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9024       fi
9025       # Try to locate tool using the code snippet
9026       for ac_prog in sh
9027 do
9028   # Extract the first word of "$ac_prog", so it can be a program name with args.
9029 set dummy $ac_prog; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_path_SH+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   case $SH in
9036   [\\/]* | ?:[\\/]*)
9037   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9038   ;;
9039   *)
9040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9042 do
9043   IFS=$as_save_IFS
9044   test -z "$as_dir" && as_dir=.
9045     for ac_exec_ext in '' $ac_executable_extensions; do
9046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049     break 2
9050   fi
9051 done
9052   done
9053 IFS=$as_save_IFS
9054 
9055   ;;
9056 esac
9057 fi
9058 SH=$ac_cv_path_SH
9059 if test -n "$SH"; then
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9061 $as_echo "$SH" >&6; }
9062 else
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 fi
9066 
9067 
9068   test -n "$SH" && break
9069 done
9070 
9071     else
9072       # If it succeeded, then it was overridden by the user. We will use it
9073       # for the tool.
9074 
9075       # First remove it from the list of overridden variables, so we can test
9076       # for unknown variables in the end.
9077       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9078 
9079       # Check if the provided tool contains a complete path.
9080       tool_specified="$SH"
9081       tool_basename="${tool_specified##*/}"
9082       if test "x$tool_basename" = "x$tool_specified"; then
9083         # A command without a complete path is provided, search $PATH.
9084         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9085 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9086         # Extract the first word of "$tool_basename", so it can be a program name with args.
9087 set dummy $tool_basename; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_path_SH+:} false; then :
9091   $as_echo_n "(cached) " >&6
9092 else
9093   case $SH in
9094   [\\/]* | ?:[\\/]*)
9095   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9096   ;;
9097   *)
9098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9100 do
9101   IFS=$as_save_IFS
9102   test -z "$as_dir" && as_dir=.
9103     for ac_exec_ext in '' $ac_executable_extensions; do
9104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9105     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107     break 2
9108   fi
9109 done
9110   done
9111 IFS=$as_save_IFS
9112 
9113   ;;
9114 esac
9115 fi
9116 SH=$ac_cv_path_SH
9117 if test -n "$SH"; then
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9119 $as_echo "$SH" >&6; }
9120 else
9121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9123 fi
9124 
9125 
9126         if test "x$SH" = x; then
9127           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9128         fi
9129       else
9130         # Otherwise we believe it is a complete path. Use it as it is.
9131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9132 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9134 $as_echo_n "checking for SH... " >&6; }
9135         if test ! -x "$tool_specified"; then
9136           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9137 $as_echo "not found" >&6; }
9138           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9139         fi
9140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9141 $as_echo "$tool_specified" >&6; }
9142       fi
9143     fi
9144   fi
9145 
9146 
9147 
9148   if test "x$SH" = x; then
9149     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9150   fi
9151 
9152 
9153 
9154 
9155 
9156   # Publish this variable in the help.
9157 
9158 
9159   if test "x$SORT" = x; then
9160     # The variable is not set by user, try to locate tool using the code snippet
9161     for ac_prog in sort
9162 do
9163   # Extract the first word of "$ac_prog", so it can be a program name with args.
9164 set dummy $ac_prog; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if ${ac_cv_path_SORT+:} false; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   case $SORT in
9171   [\\/]* | ?:[\\/]*)
9172   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9173   ;;
9174   *)
9175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9177 do
9178   IFS=$as_save_IFS
9179   test -z "$as_dir" && as_dir=.
9180     for ac_exec_ext in '' $ac_executable_extensions; do
9181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184     break 2
9185   fi
9186 done
9187   done
9188 IFS=$as_save_IFS
9189 
9190   ;;
9191 esac
9192 fi
9193 SORT=$ac_cv_path_SORT
9194 if test -n "$SORT"; then
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9196 $as_echo "$SORT" >&6; }
9197 else
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9200 fi
9201 
9202 
9203   test -n "$SORT" && break
9204 done
9205 
9206   else
9207     # The variable is set, but is it from the command line or the environment?
9208 
9209     # Try to remove the string !SORT! from our list.
9210     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9211     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9212       # If it failed, the variable was not from the command line. Ignore it,
9213       # but warn the user (except for BASH, which is always set by the calling BASH).
9214       if test "xSORT" != xBASH; then
9215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9216 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9217       fi
9218       # Try to locate tool using the code snippet
9219       for ac_prog in sort
9220 do
9221   # Extract the first word of "$ac_prog", so it can be a program name with args.
9222 set dummy $ac_prog; ac_word=$2
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224 $as_echo_n "checking for $ac_word... " >&6; }
9225 if ${ac_cv_path_SORT+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   case $SORT in
9229   [\\/]* | ?:[\\/]*)
9230   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9231   ;;
9232   *)
9233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236   IFS=$as_save_IFS
9237   test -z "$as_dir" && as_dir=.
9238     for ac_exec_ext in '' $ac_executable_extensions; do
9239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242     break 2
9243   fi
9244 done
9245   done
9246 IFS=$as_save_IFS
9247 
9248   ;;
9249 esac
9250 fi
9251 SORT=$ac_cv_path_SORT
9252 if test -n "$SORT"; then
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9254 $as_echo "$SORT" >&6; }
9255 else
9256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9258 fi
9259 
9260 
9261   test -n "$SORT" && break
9262 done
9263 
9264     else
9265       # If it succeeded, then it was overridden by the user. We will use it
9266       # for the tool.
9267 
9268       # First remove it from the list of overridden variables, so we can test
9269       # for unknown variables in the end.
9270       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9271 
9272       # Check if the provided tool contains a complete path.
9273       tool_specified="$SORT"
9274       tool_basename="${tool_specified##*/}"
9275       if test "x$tool_basename" = "x$tool_specified"; then
9276         # A command without a complete path is provided, search $PATH.
9277         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9278 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9279         # Extract the first word of "$tool_basename", so it can be a program name with args.
9280 set dummy $tool_basename; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if ${ac_cv_path_SORT+:} false; then :
9284   $as_echo_n "(cached) " >&6
9285 else
9286   case $SORT in
9287   [\\/]* | ?:[\\/]*)
9288   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9289   ;;
9290   *)
9291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294   IFS=$as_save_IFS
9295   test -z "$as_dir" && as_dir=.
9296     for ac_exec_ext in '' $ac_executable_extensions; do
9297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300     break 2
9301   fi
9302 done
9303   done
9304 IFS=$as_save_IFS
9305 
9306   ;;
9307 esac
9308 fi
9309 SORT=$ac_cv_path_SORT
9310 if test -n "$SORT"; then
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9312 $as_echo "$SORT" >&6; }
9313 else
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9316 fi
9317 
9318 
9319         if test "x$SORT" = x; then
9320           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9321         fi
9322       else
9323         # Otherwise we believe it is a complete path. Use it as it is.
9324         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9325 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9327 $as_echo_n "checking for SORT... " >&6; }
9328         if test ! -x "$tool_specified"; then
9329           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9330 $as_echo "not found" >&6; }
9331           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9332         fi
9333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9334 $as_echo "$tool_specified" >&6; }
9335       fi
9336     fi
9337   fi
9338 
9339 
9340 
9341   if test "x$SORT" = x; then
9342     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9343   fi
9344 
9345 
9346 
9347 
9348 
9349   # Publish this variable in the help.
9350 
9351 
9352   if test "x$TAIL" = x; then
9353     # The variable is not set by user, try to locate tool using the code snippet
9354     for ac_prog in tail
9355 do
9356   # Extract the first word of "$ac_prog", so it can be a program name with args.
9357 set dummy $ac_prog; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if ${ac_cv_path_TAIL+:} false; then :
9361   $as_echo_n "(cached) " >&6
9362 else
9363   case $TAIL in
9364   [\\/]* | ?:[\\/]*)
9365   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9366   ;;
9367   *)
9368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371   IFS=$as_save_IFS
9372   test -z "$as_dir" && as_dir=.
9373     for ac_exec_ext in '' $ac_executable_extensions; do
9374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377     break 2
9378   fi
9379 done
9380   done
9381 IFS=$as_save_IFS
9382 
9383   ;;
9384 esac
9385 fi
9386 TAIL=$ac_cv_path_TAIL
9387 if test -n "$TAIL"; then
9388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9389 $as_echo "$TAIL" >&6; }
9390 else
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9393 fi
9394 
9395 
9396   test -n "$TAIL" && break
9397 done
9398 
9399   else
9400     # The variable is set, but is it from the command line or the environment?
9401 
9402     # Try to remove the string !TAIL! from our list.
9403     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9404     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9405       # If it failed, the variable was not from the command line. Ignore it,
9406       # but warn the user (except for BASH, which is always set by the calling BASH).
9407       if test "xTAIL" != xBASH; then
9408         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9409 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9410       fi
9411       # Try to locate tool using the code snippet
9412       for ac_prog in tail
9413 do
9414   # Extract the first word of "$ac_prog", so it can be a program name with args.
9415 set dummy $ac_prog; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if ${ac_cv_path_TAIL+:} false; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   case $TAIL in
9422   [\\/]* | ?:[\\/]*)
9423   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9424   ;;
9425   *)
9426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429   IFS=$as_save_IFS
9430   test -z "$as_dir" && as_dir=.
9431     for ac_exec_ext in '' $ac_executable_extensions; do
9432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435     break 2
9436   fi
9437 done
9438   done
9439 IFS=$as_save_IFS
9440 
9441   ;;
9442 esac
9443 fi
9444 TAIL=$ac_cv_path_TAIL
9445 if test -n "$TAIL"; then
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9447 $as_echo "$TAIL" >&6; }
9448 else
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452 
9453 
9454   test -n "$TAIL" && break
9455 done
9456 
9457     else
9458       # If it succeeded, then it was overridden by the user. We will use it
9459       # for the tool.
9460 
9461       # First remove it from the list of overridden variables, so we can test
9462       # for unknown variables in the end.
9463       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9464 
9465       # Check if the provided tool contains a complete path.
9466       tool_specified="$TAIL"
9467       tool_basename="${tool_specified##*/}"
9468       if test "x$tool_basename" = "x$tool_specified"; then
9469         # A command without a complete path is provided, search $PATH.
9470         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9471 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9472         # Extract the first word of "$tool_basename", so it can be a program name with args.
9473 set dummy $tool_basename; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if ${ac_cv_path_TAIL+:} false; then :
9477   $as_echo_n "(cached) " >&6
9478 else
9479   case $TAIL in
9480   [\\/]* | ?:[\\/]*)
9481   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9482   ;;
9483   *)
9484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9486 do
9487   IFS=$as_save_IFS
9488   test -z "$as_dir" && as_dir=.
9489     for ac_exec_ext in '' $ac_executable_extensions; do
9490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493     break 2
9494   fi
9495 done
9496   done
9497 IFS=$as_save_IFS
9498 
9499   ;;
9500 esac
9501 fi
9502 TAIL=$ac_cv_path_TAIL
9503 if test -n "$TAIL"; then
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9505 $as_echo "$TAIL" >&6; }
9506 else
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510 
9511 
9512         if test "x$TAIL" = x; then
9513           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9514         fi
9515       else
9516         # Otherwise we believe it is a complete path. Use it as it is.
9517         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9518 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9519         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9520 $as_echo_n "checking for TAIL... " >&6; }
9521         if test ! -x "$tool_specified"; then
9522           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9523 $as_echo "not found" >&6; }
9524           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9525         fi
9526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9527 $as_echo "$tool_specified" >&6; }
9528       fi
9529     fi
9530   fi
9531 
9532 
9533 
9534   if test "x$TAIL" = x; then
9535     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9536   fi
9537 
9538 
9539 
9540 
9541 
9542   # Publish this variable in the help.
9543 
9544 
9545   if test "x$TAR" = x; then
9546     # The variable is not set by user, try to locate tool using the code snippet
9547     for ac_prog in tar
9548 do
9549   # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_path_TAR+:} false; then :
9554   $as_echo_n "(cached) " >&6
9555 else
9556   case $TAR in
9557   [\\/]* | ?:[\\/]*)
9558   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9559   ;;
9560   *)
9561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9563 do
9564   IFS=$as_save_IFS
9565   test -z "$as_dir" && as_dir=.
9566     for ac_exec_ext in '' $ac_executable_extensions; do
9567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9568     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570     break 2
9571   fi
9572 done
9573   done
9574 IFS=$as_save_IFS
9575 
9576   ;;
9577 esac
9578 fi
9579 TAR=$ac_cv_path_TAR
9580 if test -n "$TAR"; then
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9582 $as_echo "$TAR" >&6; }
9583 else
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587 
9588 
9589   test -n "$TAR" && break
9590 done
9591 
9592   else
9593     # The variable is set, but is it from the command line or the environment?
9594 
9595     # Try to remove the string !TAR! from our list.
9596     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9597     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9598       # If it failed, the variable was not from the command line. Ignore it,
9599       # but warn the user (except for BASH, which is always set by the calling BASH).
9600       if test "xTAR" != xBASH; then
9601         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9602 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9603       fi
9604       # Try to locate tool using the code snippet
9605       for ac_prog in tar
9606 do
9607   # Extract the first word of "$ac_prog", so it can be a program name with args.
9608 set dummy $ac_prog; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_TAR+:} false; then :
9612   $as_echo_n "(cached) " >&6
9613 else
9614   case $TAR in
9615   [\\/]* | ?:[\\/]*)
9616   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9617   ;;
9618   *)
9619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9621 do
9622   IFS=$as_save_IFS
9623   test -z "$as_dir" && as_dir=.
9624     for ac_exec_ext in '' $ac_executable_extensions; do
9625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628     break 2
9629   fi
9630 done
9631   done
9632 IFS=$as_save_IFS
9633 
9634   ;;
9635 esac
9636 fi
9637 TAR=$ac_cv_path_TAR
9638 if test -n "$TAR"; then
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9640 $as_echo "$TAR" >&6; }
9641 else
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9644 fi
9645 
9646 
9647   test -n "$TAR" && break
9648 done
9649 
9650     else
9651       # If it succeeded, then it was overridden by the user. We will use it
9652       # for the tool.
9653 
9654       # First remove it from the list of overridden variables, so we can test
9655       # for unknown variables in the end.
9656       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9657 
9658       # Check if the provided tool contains a complete path.
9659       tool_specified="$TAR"
9660       tool_basename="${tool_specified##*/}"
9661       if test "x$tool_basename" = "x$tool_specified"; then
9662         # A command without a complete path is provided, search $PATH.
9663         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9664 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9665         # Extract the first word of "$tool_basename", so it can be a program name with args.
9666 set dummy $tool_basename; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_path_TAR+:} false; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   case $TAR in
9673   [\\/]* | ?:[\\/]*)
9674   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9675   ;;
9676   *)
9677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9679 do
9680   IFS=$as_save_IFS
9681   test -z "$as_dir" && as_dir=.
9682     for ac_exec_ext in '' $ac_executable_extensions; do
9683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686     break 2
9687   fi
9688 done
9689   done
9690 IFS=$as_save_IFS
9691 
9692   ;;
9693 esac
9694 fi
9695 TAR=$ac_cv_path_TAR
9696 if test -n "$TAR"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9698 $as_echo "$TAR" >&6; }
9699 else
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703 
9704 
9705         if test "x$TAR" = x; then
9706           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9707         fi
9708       else
9709         # Otherwise we believe it is a complete path. Use it as it is.
9710         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9711 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9713 $as_echo_n "checking for TAR... " >&6; }
9714         if test ! -x "$tool_specified"; then
9715           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9716 $as_echo "not found" >&6; }
9717           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9718         fi
9719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9720 $as_echo "$tool_specified" >&6; }
9721       fi
9722     fi
9723   fi
9724 
9725 
9726 
9727   if test "x$TAR" = x; then
9728     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9729   fi
9730 
9731 
9732 
9733 
9734 
9735   # Publish this variable in the help.
9736 
9737 
9738   if test "x$TEE" = x; then
9739     # The variable is not set by user, try to locate tool using the code snippet
9740     for ac_prog in tee
9741 do
9742   # Extract the first word of "$ac_prog", so it can be a program name with args.
9743 set dummy $ac_prog; ac_word=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if ${ac_cv_path_TEE+:} false; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749   case $TEE in
9750   [\\/]* | ?:[\\/]*)
9751   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9752   ;;
9753   *)
9754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9755 for as_dir in $PATH
9756 do
9757   IFS=$as_save_IFS
9758   test -z "$as_dir" && as_dir=.
9759     for ac_exec_ext in '' $ac_executable_extensions; do
9760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9761     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9763     break 2
9764   fi
9765 done
9766   done
9767 IFS=$as_save_IFS
9768 
9769   ;;
9770 esac
9771 fi
9772 TEE=$ac_cv_path_TEE
9773 if test -n "$TEE"; then
9774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9775 $as_echo "$TEE" >&6; }
9776 else
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 $as_echo "no" >&6; }
9779 fi
9780 
9781 
9782   test -n "$TEE" && break
9783 done
9784 
9785   else
9786     # The variable is set, but is it from the command line or the environment?
9787 
9788     # Try to remove the string !TEE! from our list.
9789     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9790     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9791       # If it failed, the variable was not from the command line. Ignore it,
9792       # but warn the user (except for BASH, which is always set by the calling BASH).
9793       if test "xTEE" != xBASH; then
9794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9795 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9796       fi
9797       # Try to locate tool using the code snippet
9798       for ac_prog in tee
9799 do
9800   # Extract the first word of "$ac_prog", so it can be a program name with args.
9801 set dummy $ac_prog; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_path_TEE+:} false; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807   case $TEE in
9808   [\\/]* | ?:[\\/]*)
9809   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9810   ;;
9811   *)
9812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817     for ac_exec_ext in '' $ac_executable_extensions; do
9818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9819     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821     break 2
9822   fi
9823 done
9824   done
9825 IFS=$as_save_IFS
9826 
9827   ;;
9828 esac
9829 fi
9830 TEE=$ac_cv_path_TEE
9831 if test -n "$TEE"; then
9832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9833 $as_echo "$TEE" >&6; }
9834 else
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836 $as_echo "no" >&6; }
9837 fi
9838 
9839 
9840   test -n "$TEE" && break
9841 done
9842 
9843     else
9844       # If it succeeded, then it was overridden by the user. We will use it
9845       # for the tool.
9846 
9847       # First remove it from the list of overridden variables, so we can test
9848       # for unknown variables in the end.
9849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9850 
9851       # Check if the provided tool contains a complete path.
9852       tool_specified="$TEE"
9853       tool_basename="${tool_specified##*/}"
9854       if test "x$tool_basename" = "x$tool_specified"; then
9855         # A command without a complete path is provided, search $PATH.
9856         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9857 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9858         # Extract the first word of "$tool_basename", so it can be a program name with args.
9859 set dummy $tool_basename; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_TEE+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   case $TEE in
9866   [\\/]* | ?:[\\/]*)
9867   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9868   ;;
9869   *)
9870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882   done
9883 IFS=$as_save_IFS
9884 
9885   ;;
9886 esac
9887 fi
9888 TEE=$ac_cv_path_TEE
9889 if test -n "$TEE"; then
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9891 $as_echo "$TEE" >&6; }
9892 else
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896 
9897 
9898         if test "x$TEE" = x; then
9899           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9900         fi
9901       else
9902         # Otherwise we believe it is a complete path. Use it as it is.
9903         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9904 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9906 $as_echo_n "checking for TEE... " >&6; }
9907         if test ! -x "$tool_specified"; then
9908           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9909 $as_echo "not found" >&6; }
9910           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9911         fi
9912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9913 $as_echo "$tool_specified" >&6; }
9914       fi
9915     fi
9916   fi
9917 
9918 
9919 
9920   if test "x$TEE" = x; then
9921     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9922   fi
9923 
9924 
9925 
9926 
9927 
9928   # Publish this variable in the help.
9929 
9930 
9931   if test "x$TOUCH" = x; then
9932     # The variable is not set by user, try to locate tool using the code snippet
9933     for ac_prog in touch
9934 do
9935   # Extract the first word of "$ac_prog", so it can be a program name with args.
9936 set dummy $ac_prog; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_path_TOUCH+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   case $TOUCH in
9943   [\\/]* | ?:[\\/]*)
9944   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9945   ;;
9946   *)
9947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9949 do
9950   IFS=$as_save_IFS
9951   test -z "$as_dir" && as_dir=.
9952     for ac_exec_ext in '' $ac_executable_extensions; do
9953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956     break 2
9957   fi
9958 done
9959   done
9960 IFS=$as_save_IFS
9961 
9962   ;;
9963 esac
9964 fi
9965 TOUCH=$ac_cv_path_TOUCH
9966 if test -n "$TOUCH"; then
9967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9968 $as_echo "$TOUCH" >&6; }
9969 else
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9972 fi
9973 
9974 
9975   test -n "$TOUCH" && break
9976 done
9977 
9978   else
9979     # The variable is set, but is it from the command line or the environment?
9980 
9981     # Try to remove the string !TOUCH! from our list.
9982     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
9983     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9984       # If it failed, the variable was not from the command line. Ignore it,
9985       # but warn the user (except for BASH, which is always set by the calling BASH).
9986       if test "xTOUCH" != xBASH; then
9987         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
9988 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
9989       fi
9990       # Try to locate tool using the code snippet
9991       for ac_prog in touch
9992 do
9993   # Extract the first word of "$ac_prog", so it can be a program name with args.
9994 set dummy $ac_prog; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_path_TOUCH+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   case $TOUCH in
10001   [\\/]* | ?:[\\/]*)
10002   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10003   ;;
10004   *)
10005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10007 do
10008   IFS=$as_save_IFS
10009   test -z "$as_dir" && as_dir=.
10010     for ac_exec_ext in '' $ac_executable_extensions; do
10011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014     break 2
10015   fi
10016 done
10017   done
10018 IFS=$as_save_IFS
10019 
10020   ;;
10021 esac
10022 fi
10023 TOUCH=$ac_cv_path_TOUCH
10024 if test -n "$TOUCH"; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10026 $as_echo "$TOUCH" >&6; }
10027 else
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10030 fi
10031 
10032 
10033   test -n "$TOUCH" && break
10034 done
10035 
10036     else
10037       # If it succeeded, then it was overridden by the user. We will use it
10038       # for the tool.
10039 
10040       # First remove it from the list of overridden variables, so we can test
10041       # for unknown variables in the end.
10042       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10043 
10044       # Check if the provided tool contains a complete path.
10045       tool_specified="$TOUCH"
10046       tool_basename="${tool_specified##*/}"
10047       if test "x$tool_basename" = "x$tool_specified"; then
10048         # A command without a complete path is provided, search $PATH.
10049         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10050 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10051         # Extract the first word of "$tool_basename", so it can be a program name with args.
10052 set dummy $tool_basename; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_path_TOUCH+:} false; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   case $TOUCH in
10059   [\\/]* | ?:[\\/]*)
10060   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10061   ;;
10062   *)
10063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068     for ac_exec_ext in '' $ac_executable_extensions; do
10069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072     break 2
10073   fi
10074 done
10075   done
10076 IFS=$as_save_IFS
10077 
10078   ;;
10079 esac
10080 fi
10081 TOUCH=$ac_cv_path_TOUCH
10082 if test -n "$TOUCH"; then
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10084 $as_echo "$TOUCH" >&6; }
10085 else
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089 
10090 
10091         if test "x$TOUCH" = x; then
10092           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10093         fi
10094       else
10095         # Otherwise we believe it is a complete path. Use it as it is.
10096         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10097 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10099 $as_echo_n "checking for TOUCH... " >&6; }
10100         if test ! -x "$tool_specified"; then
10101           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10102 $as_echo "not found" >&6; }
10103           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10104         fi
10105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10106 $as_echo "$tool_specified" >&6; }
10107       fi
10108     fi
10109   fi
10110 
10111 
10112 
10113   if test "x$TOUCH" = x; then
10114     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10115   fi
10116 
10117 
10118 
10119 
10120 
10121   # Publish this variable in the help.
10122 
10123 
10124   if test "x$TR" = x; then
10125     # The variable is not set by user, try to locate tool using the code snippet
10126     for ac_prog in tr
10127 do
10128   # Extract the first word of "$ac_prog", so it can be a program name with args.
10129 set dummy $ac_prog; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_path_TR+:} false; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   case $TR in
10136   [\\/]* | ?:[\\/]*)
10137   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10138   ;;
10139   *)
10140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10142 do
10143   IFS=$as_save_IFS
10144   test -z "$as_dir" && as_dir=.
10145     for ac_exec_ext in '' $ac_executable_extensions; do
10146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149     break 2
10150   fi
10151 done
10152   done
10153 IFS=$as_save_IFS
10154 
10155   ;;
10156 esac
10157 fi
10158 TR=$ac_cv_path_TR
10159 if test -n "$TR"; then
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10161 $as_echo "$TR" >&6; }
10162 else
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 fi
10166 
10167 
10168   test -n "$TR" && break
10169 done
10170 
10171   else
10172     # The variable is set, but is it from the command line or the environment?
10173 
10174     # Try to remove the string !TR! from our list.
10175     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10176     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10177       # If it failed, the variable was not from the command line. Ignore it,
10178       # but warn the user (except for BASH, which is always set by the calling BASH).
10179       if test "xTR" != xBASH; then
10180         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10181 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10182       fi
10183       # Try to locate tool using the code snippet
10184       for ac_prog in tr
10185 do
10186   # Extract the first word of "$ac_prog", so it can be a program name with args.
10187 set dummy $ac_prog; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_TR+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   case $TR in
10194   [\\/]* | ?:[\\/]*)
10195   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10196   ;;
10197   *)
10198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201   IFS=$as_save_IFS
10202   test -z "$as_dir" && as_dir=.
10203     for ac_exec_ext in '' $ac_executable_extensions; do
10204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207     break 2
10208   fi
10209 done
10210   done
10211 IFS=$as_save_IFS
10212 
10213   ;;
10214 esac
10215 fi
10216 TR=$ac_cv_path_TR
10217 if test -n "$TR"; then
10218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10219 $as_echo "$TR" >&6; }
10220 else
10221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224 
10225 
10226   test -n "$TR" && break
10227 done
10228 
10229     else
10230       # If it succeeded, then it was overridden by the user. We will use it
10231       # for the tool.
10232 
10233       # First remove it from the list of overridden variables, so we can test
10234       # for unknown variables in the end.
10235       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10236 
10237       # Check if the provided tool contains a complete path.
10238       tool_specified="$TR"
10239       tool_basename="${tool_specified##*/}"
10240       if test "x$tool_basename" = "x$tool_specified"; then
10241         # A command without a complete path is provided, search $PATH.
10242         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10243 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10244         # Extract the first word of "$tool_basename", so it can be a program name with args.
10245 set dummy $tool_basename; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_TR+:} false; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   case $TR in
10252   [\\/]* | ?:[\\/]*)
10253   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10254   ;;
10255   *)
10256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10258 do
10259   IFS=$as_save_IFS
10260   test -z "$as_dir" && as_dir=.
10261     for ac_exec_ext in '' $ac_executable_extensions; do
10262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265     break 2
10266   fi
10267 done
10268   done
10269 IFS=$as_save_IFS
10270 
10271   ;;
10272 esac
10273 fi
10274 TR=$ac_cv_path_TR
10275 if test -n "$TR"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10277 $as_echo "$TR" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282 
10283 
10284         if test "x$TR" = x; then
10285           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10286         fi
10287       else
10288         # Otherwise we believe it is a complete path. Use it as it is.
10289         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10290 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10292 $as_echo_n "checking for TR... " >&6; }
10293         if test ! -x "$tool_specified"; then
10294           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10295 $as_echo "not found" >&6; }
10296           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10297         fi
10298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10299 $as_echo "$tool_specified" >&6; }
10300       fi
10301     fi
10302   fi
10303 
10304 
10305 
10306   if test "x$TR" = x; then
10307     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10308   fi
10309 
10310 
10311 
10312 
10313 
10314   # Publish this variable in the help.
10315 
10316 
10317   if test "x$UNAME" = x; then
10318     # The variable is not set by user, try to locate tool using the code snippet
10319     for ac_prog in uname
10320 do
10321   # Extract the first word of "$ac_prog", so it can be a program name with args.
10322 set dummy $ac_prog; ac_word=$2
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if ${ac_cv_path_UNAME+:} false; then :
10326   $as_echo_n "(cached) " >&6
10327 else
10328   case $UNAME in
10329   [\\/]* | ?:[\\/]*)
10330   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10331   ;;
10332   *)
10333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10335 do
10336   IFS=$as_save_IFS
10337   test -z "$as_dir" && as_dir=.
10338     for ac_exec_ext in '' $ac_executable_extensions; do
10339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342     break 2
10343   fi
10344 done
10345   done
10346 IFS=$as_save_IFS
10347 
10348   ;;
10349 esac
10350 fi
10351 UNAME=$ac_cv_path_UNAME
10352 if test -n "$UNAME"; then
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10354 $as_echo "$UNAME" >&6; }
10355 else
10356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10358 fi
10359 
10360 
10361   test -n "$UNAME" && break
10362 done
10363 
10364   else
10365     # The variable is set, but is it from the command line or the environment?
10366 
10367     # Try to remove the string !UNAME! from our list.
10368     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10369     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10370       # If it failed, the variable was not from the command line. Ignore it,
10371       # but warn the user (except for BASH, which is always set by the calling BASH).
10372       if test "xUNAME" != xBASH; then
10373         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10374 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10375       fi
10376       # Try to locate tool using the code snippet
10377       for ac_prog in uname
10378 do
10379   # Extract the first word of "$ac_prog", so it can be a program name with args.
10380 set dummy $ac_prog; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_path_UNAME+:} false; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   case $UNAME in
10387   [\\/]* | ?:[\\/]*)
10388   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10389   ;;
10390   *)
10391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396     for ac_exec_ext in '' $ac_executable_extensions; do
10397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403   done
10404 IFS=$as_save_IFS
10405 
10406   ;;
10407 esac
10408 fi
10409 UNAME=$ac_cv_path_UNAME
10410 if test -n "$UNAME"; then
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10412 $as_echo "$UNAME" >&6; }
10413 else
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10416 fi
10417 
10418 
10419   test -n "$UNAME" && break
10420 done
10421 
10422     else
10423       # If it succeeded, then it was overridden by the user. We will use it
10424       # for the tool.
10425 
10426       # First remove it from the list of overridden variables, so we can test
10427       # for unknown variables in the end.
10428       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10429 
10430       # Check if the provided tool contains a complete path.
10431       tool_specified="$UNAME"
10432       tool_basename="${tool_specified##*/}"
10433       if test "x$tool_basename" = "x$tool_specified"; then
10434         # A command without a complete path is provided, search $PATH.
10435         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10436 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10437         # Extract the first word of "$tool_basename", so it can be a program name with args.
10438 set dummy $tool_basename; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_UNAME+:} false; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   case $UNAME in
10445   [\\/]* | ?:[\\/]*)
10446   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10447   ;;
10448   *)
10449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452   IFS=$as_save_IFS
10453   test -z "$as_dir" && as_dir=.
10454     for ac_exec_ext in '' $ac_executable_extensions; do
10455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458     break 2
10459   fi
10460 done
10461   done
10462 IFS=$as_save_IFS
10463 
10464   ;;
10465 esac
10466 fi
10467 UNAME=$ac_cv_path_UNAME
10468 if test -n "$UNAME"; then
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10470 $as_echo "$UNAME" >&6; }
10471 else
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475 
10476 
10477         if test "x$UNAME" = x; then
10478           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10479         fi
10480       else
10481         # Otherwise we believe it is a complete path. Use it as it is.
10482         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10483 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10485 $as_echo_n "checking for UNAME... " >&6; }
10486         if test ! -x "$tool_specified"; then
10487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10488 $as_echo "not found" >&6; }
10489           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10490         fi
10491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10492 $as_echo "$tool_specified" >&6; }
10493       fi
10494     fi
10495   fi
10496 
10497 
10498 
10499   if test "x$UNAME" = x; then
10500     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10501   fi
10502 
10503 
10504 
10505 
10506 
10507   # Publish this variable in the help.
10508 
10509 
10510   if test "x$UNIQ" = x; then
10511     # The variable is not set by user, try to locate tool using the code snippet
10512     for ac_prog in uniq
10513 do
10514   # Extract the first word of "$ac_prog", so it can be a program name with args.
10515 set dummy $ac_prog; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if ${ac_cv_path_UNIQ+:} false; then :
10519   $as_echo_n "(cached) " >&6
10520 else
10521   case $UNIQ in
10522   [\\/]* | ?:[\\/]*)
10523   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10524   ;;
10525   *)
10526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529   IFS=$as_save_IFS
10530   test -z "$as_dir" && as_dir=.
10531     for ac_exec_ext in '' $ac_executable_extensions; do
10532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535     break 2
10536   fi
10537 done
10538   done
10539 IFS=$as_save_IFS
10540 
10541   ;;
10542 esac
10543 fi
10544 UNIQ=$ac_cv_path_UNIQ
10545 if test -n "$UNIQ"; then
10546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10547 $as_echo "$UNIQ" >&6; }
10548 else
10549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552 
10553 
10554   test -n "$UNIQ" && break
10555 done
10556 
10557   else
10558     # The variable is set, but is it from the command line or the environment?
10559 
10560     # Try to remove the string !UNIQ! from our list.
10561     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10562     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10563       # If it failed, the variable was not from the command line. Ignore it,
10564       # but warn the user (except for BASH, which is always set by the calling BASH).
10565       if test "xUNIQ" != xBASH; then
10566         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10567 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10568       fi
10569       # Try to locate tool using the code snippet
10570       for ac_prog in uniq
10571 do
10572   # Extract the first word of "$ac_prog", so it can be a program name with args.
10573 set dummy $ac_prog; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if ${ac_cv_path_UNIQ+:} false; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   case $UNIQ in
10580   [\\/]* | ?:[\\/]*)
10581   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10582   ;;
10583   *)
10584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587   IFS=$as_save_IFS
10588   test -z "$as_dir" && as_dir=.
10589     for ac_exec_ext in '' $ac_executable_extensions; do
10590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593     break 2
10594   fi
10595 done
10596   done
10597 IFS=$as_save_IFS
10598 
10599   ;;
10600 esac
10601 fi
10602 UNIQ=$ac_cv_path_UNIQ
10603 if test -n "$UNIQ"; then
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10605 $as_echo "$UNIQ" >&6; }
10606 else
10607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10609 fi
10610 
10611 
10612   test -n "$UNIQ" && break
10613 done
10614 
10615     else
10616       # If it succeeded, then it was overridden by the user. We will use it
10617       # for the tool.
10618 
10619       # First remove it from the list of overridden variables, so we can test
10620       # for unknown variables in the end.
10621       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10622 
10623       # Check if the provided tool contains a complete path.
10624       tool_specified="$UNIQ"
10625       tool_basename="${tool_specified##*/}"
10626       if test "x$tool_basename" = "x$tool_specified"; then
10627         # A command without a complete path is provided, search $PATH.
10628         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10629 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10630         # Extract the first word of "$tool_basename", so it can be a program name with args.
10631 set dummy $tool_basename; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if ${ac_cv_path_UNIQ+:} false; then :
10635   $as_echo_n "(cached) " >&6
10636 else
10637   case $UNIQ in
10638   [\\/]* | ?:[\\/]*)
10639   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10640   ;;
10641   *)
10642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10644 do
10645   IFS=$as_save_IFS
10646   test -z "$as_dir" && as_dir=.
10647     for ac_exec_ext in '' $ac_executable_extensions; do
10648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651     break 2
10652   fi
10653 done
10654   done
10655 IFS=$as_save_IFS
10656 
10657   ;;
10658 esac
10659 fi
10660 UNIQ=$ac_cv_path_UNIQ
10661 if test -n "$UNIQ"; then
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10663 $as_echo "$UNIQ" >&6; }
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667 fi
10668 
10669 
10670         if test "x$UNIQ" = x; then
10671           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10672         fi
10673       else
10674         # Otherwise we believe it is a complete path. Use it as it is.
10675         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10676 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10678 $as_echo_n "checking for UNIQ... " >&6; }
10679         if test ! -x "$tool_specified"; then
10680           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10681 $as_echo "not found" >&6; }
10682           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10683         fi
10684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10685 $as_echo "$tool_specified" >&6; }
10686       fi
10687     fi
10688   fi
10689 
10690 
10691 
10692   if test "x$UNIQ" = x; then
10693     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10694   fi
10695 
10696 
10697 
10698 
10699 
10700   # Publish this variable in the help.
10701 
10702 
10703   if test "x$WC" = x; then
10704     # The variable is not set by user, try to locate tool using the code snippet
10705     for ac_prog in wc
10706 do
10707   # Extract the first word of "$ac_prog", so it can be a program name with args.
10708 set dummy $ac_prog; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_path_WC+:} false; then :
10712   $as_echo_n "(cached) " >&6
10713 else
10714   case $WC in
10715   [\\/]* | ?:[\\/]*)
10716   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10717   ;;
10718   *)
10719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10721 do
10722   IFS=$as_save_IFS
10723   test -z "$as_dir" && as_dir=.
10724     for ac_exec_ext in '' $ac_executable_extensions; do
10725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728     break 2
10729   fi
10730 done
10731   done
10732 IFS=$as_save_IFS
10733 
10734   ;;
10735 esac
10736 fi
10737 WC=$ac_cv_path_WC
10738 if test -n "$WC"; then
10739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10740 $as_echo "$WC" >&6; }
10741 else
10742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744 fi
10745 
10746 
10747   test -n "$WC" && break
10748 done
10749 
10750   else
10751     # The variable is set, but is it from the command line or the environment?
10752 
10753     # Try to remove the string !WC! from our list.
10754     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10755     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10756       # If it failed, the variable was not from the command line. Ignore it,
10757       # but warn the user (except for BASH, which is always set by the calling BASH).
10758       if test "xWC" != xBASH; then
10759         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10760 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10761       fi
10762       # Try to locate tool using the code snippet
10763       for ac_prog in wc
10764 do
10765   # Extract the first word of "$ac_prog", so it can be a program name with args.
10766 set dummy $ac_prog; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_path_WC+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   case $WC in
10773   [\\/]* | ?:[\\/]*)
10774   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10775   ;;
10776   *)
10777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778 for as_dir in $PATH
10779 do
10780   IFS=$as_save_IFS
10781   test -z "$as_dir" && as_dir=.
10782     for ac_exec_ext in '' $ac_executable_extensions; do
10783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786     break 2
10787   fi
10788 done
10789   done
10790 IFS=$as_save_IFS
10791 
10792   ;;
10793 esac
10794 fi
10795 WC=$ac_cv_path_WC
10796 if test -n "$WC"; then
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10798 $as_echo "$WC" >&6; }
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10802 fi
10803 
10804 
10805   test -n "$WC" && break
10806 done
10807 
10808     else
10809       # If it succeeded, then it was overridden by the user. We will use it
10810       # for the tool.
10811 
10812       # First remove it from the list of overridden variables, so we can test
10813       # for unknown variables in the end.
10814       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10815 
10816       # Check if the provided tool contains a complete path.
10817       tool_specified="$WC"
10818       tool_basename="${tool_specified##*/}"
10819       if test "x$tool_basename" = "x$tool_specified"; then
10820         # A command without a complete path is provided, search $PATH.
10821         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10822 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10823         # Extract the first word of "$tool_basename", so it can be a program name with args.
10824 set dummy $tool_basename; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_path_WC+:} false; then :
10828   $as_echo_n "(cached) " >&6
10829 else
10830   case $WC in
10831   [\\/]* | ?:[\\/]*)
10832   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10833   ;;
10834   *)
10835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10837 do
10838   IFS=$as_save_IFS
10839   test -z "$as_dir" && as_dir=.
10840     for ac_exec_ext in '' $ac_executable_extensions; do
10841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844     break 2
10845   fi
10846 done
10847   done
10848 IFS=$as_save_IFS
10849 
10850   ;;
10851 esac
10852 fi
10853 WC=$ac_cv_path_WC
10854 if test -n "$WC"; then
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10856 $as_echo "$WC" >&6; }
10857 else
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10860 fi
10861 
10862 
10863         if test "x$WC" = x; then
10864           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10865         fi
10866       else
10867         # Otherwise we believe it is a complete path. Use it as it is.
10868         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10869 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10871 $as_echo_n "checking for WC... " >&6; }
10872         if test ! -x "$tool_specified"; then
10873           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10874 $as_echo "not found" >&6; }
10875           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10876         fi
10877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10878 $as_echo "$tool_specified" >&6; }
10879       fi
10880     fi
10881   fi
10882 
10883 
10884 
10885   if test "x$WC" = x; then
10886     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10887   fi
10888 
10889 
10890 
10891 
10892 
10893   # Publish this variable in the help.
10894 
10895 
10896   if test "x$WHICH" = x; then
10897     # The variable is not set by user, try to locate tool using the code snippet
10898     for ac_prog in which
10899 do
10900   # Extract the first word of "$ac_prog", so it can be a program name with args.
10901 set dummy $ac_prog; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if ${ac_cv_path_WHICH+:} false; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   case $WHICH in
10908   [\\/]* | ?:[\\/]*)
10909   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10910   ;;
10911   *)
10912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10914 do
10915   IFS=$as_save_IFS
10916   test -z "$as_dir" && as_dir=.
10917     for ac_exec_ext in '' $ac_executable_extensions; do
10918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921     break 2
10922   fi
10923 done
10924   done
10925 IFS=$as_save_IFS
10926 
10927   ;;
10928 esac
10929 fi
10930 WHICH=$ac_cv_path_WHICH
10931 if test -n "$WHICH"; then
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10933 $as_echo "$WHICH" >&6; }
10934 else
10935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; }
10937 fi
10938 
10939 
10940   test -n "$WHICH" && break
10941 done
10942 
10943   else
10944     # The variable is set, but is it from the command line or the environment?
10945 
10946     # Try to remove the string !WHICH! from our list.
10947     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10948     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10949       # If it failed, the variable was not from the command line. Ignore it,
10950       # but warn the user (except for BASH, which is always set by the calling BASH).
10951       if test "xWHICH" != xBASH; then
10952         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10953 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10954       fi
10955       # Try to locate tool using the code snippet
10956       for ac_prog in which
10957 do
10958   # Extract the first word of "$ac_prog", so it can be a program name with args.
10959 set dummy $ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_path_WHICH+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   case $WHICH in
10966   [\\/]* | ?:[\\/]*)
10967   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10968   ;;
10969   *)
10970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973   IFS=$as_save_IFS
10974   test -z "$as_dir" && as_dir=.
10975     for ac_exec_ext in '' $ac_executable_extensions; do
10976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979     break 2
10980   fi
10981 done
10982   done
10983 IFS=$as_save_IFS
10984 
10985   ;;
10986 esac
10987 fi
10988 WHICH=$ac_cv_path_WHICH
10989 if test -n "$WHICH"; then
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10991 $as_echo "$WHICH" >&6; }
10992 else
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10995 fi
10996 
10997 
10998   test -n "$WHICH" && break
10999 done
11000 
11001     else
11002       # If it succeeded, then it was overridden by the user. We will use it
11003       # for the tool.
11004 
11005       # First remove it from the list of overridden variables, so we can test
11006       # for unknown variables in the end.
11007       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11008 
11009       # Check if the provided tool contains a complete path.
11010       tool_specified="$WHICH"
11011       tool_basename="${tool_specified##*/}"
11012       if test "x$tool_basename" = "x$tool_specified"; then
11013         # A command without a complete path is provided, search $PATH.
11014         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11015 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11016         # Extract the first word of "$tool_basename", so it can be a program name with args.
11017 set dummy $tool_basename; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_path_WHICH+:} false; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   case $WHICH in
11024   [\\/]* | ?:[\\/]*)
11025   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11026   ;;
11027   *)
11028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11030 do
11031   IFS=$as_save_IFS
11032   test -z "$as_dir" && as_dir=.
11033     for ac_exec_ext in '' $ac_executable_extensions; do
11034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037     break 2
11038   fi
11039 done
11040   done
11041 IFS=$as_save_IFS
11042 
11043   ;;
11044 esac
11045 fi
11046 WHICH=$ac_cv_path_WHICH
11047 if test -n "$WHICH"; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11049 $as_echo "$WHICH" >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054 
11055 
11056         if test "x$WHICH" = x; then
11057           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11058         fi
11059       else
11060         # Otherwise we believe it is a complete path. Use it as it is.
11061         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11062 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11064 $as_echo_n "checking for WHICH... " >&6; }
11065         if test ! -x "$tool_specified"; then
11066           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11067 $as_echo "not found" >&6; }
11068           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11069         fi
11070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11071 $as_echo "$tool_specified" >&6; }
11072       fi
11073     fi
11074   fi
11075 
11076 
11077 
11078   if test "x$WHICH" = x; then
11079     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11080   fi
11081 
11082 
11083 
11084 
11085 
11086   # Publish this variable in the help.
11087 
11088 
11089   if test "x$XARGS" = x; then
11090     # The variable is not set by user, try to locate tool using the code snippet
11091     for ac_prog in xargs
11092 do
11093   # Extract the first word of "$ac_prog", so it can be a program name with args.
11094 set dummy $ac_prog; ac_word=$2
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11096 $as_echo_n "checking for $ac_word... " >&6; }
11097 if ${ac_cv_path_XARGS+:} false; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   case $XARGS in
11101   [\\/]* | ?:[\\/]*)
11102   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11103   ;;
11104   *)
11105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108   IFS=$as_save_IFS
11109   test -z "$as_dir" && as_dir=.
11110     for ac_exec_ext in '' $ac_executable_extensions; do
11111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114     break 2
11115   fi
11116 done
11117   done
11118 IFS=$as_save_IFS
11119 
11120   ;;
11121 esac
11122 fi
11123 XARGS=$ac_cv_path_XARGS
11124 if test -n "$XARGS"; then
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11126 $as_echo "$XARGS" >&6; }
11127 else
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131 
11132 
11133   test -n "$XARGS" && break
11134 done
11135 
11136   else
11137     # The variable is set, but is it from the command line or the environment?
11138 
11139     # Try to remove the string !XARGS! from our list.
11140     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11141     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11142       # If it failed, the variable was not from the command line. Ignore it,
11143       # but warn the user (except for BASH, which is always set by the calling BASH).
11144       if test "xXARGS" != xBASH; then
11145         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11146 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11147       fi
11148       # Try to locate tool using the code snippet
11149       for ac_prog in xargs
11150 do
11151   # Extract the first word of "$ac_prog", so it can be a program name with args.
11152 set dummy $ac_prog; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_path_XARGS+:} false; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   case $XARGS in
11159   [\\/]* | ?:[\\/]*)
11160   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11161   ;;
11162   *)
11163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168     for ac_exec_ext in '' $ac_executable_extensions; do
11169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175   done
11176 IFS=$as_save_IFS
11177 
11178   ;;
11179 esac
11180 fi
11181 XARGS=$ac_cv_path_XARGS
11182 if test -n "$XARGS"; then
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11184 $as_echo "$XARGS" >&6; }
11185 else
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189 
11190 
11191   test -n "$XARGS" && break
11192 done
11193 
11194     else
11195       # If it succeeded, then it was overridden by the user. We will use it
11196       # for the tool.
11197 
11198       # First remove it from the list of overridden variables, so we can test
11199       # for unknown variables in the end.
11200       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11201 
11202       # Check if the provided tool contains a complete path.
11203       tool_specified="$XARGS"
11204       tool_basename="${tool_specified##*/}"
11205       if test "x$tool_basename" = "x$tool_specified"; then
11206         # A command without a complete path is provided, search $PATH.
11207         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11208 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11209         # Extract the first word of "$tool_basename", so it can be a program name with args.
11210 set dummy $tool_basename; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if ${ac_cv_path_XARGS+:} false; then :
11214   $as_echo_n "(cached) " >&6
11215 else
11216   case $XARGS in
11217   [\\/]* | ?:[\\/]*)
11218   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11219   ;;
11220   *)
11221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226     for ac_exec_ext in '' $ac_executable_extensions; do
11227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230     break 2
11231   fi
11232 done
11233   done
11234 IFS=$as_save_IFS
11235 
11236   ;;
11237 esac
11238 fi
11239 XARGS=$ac_cv_path_XARGS
11240 if test -n "$XARGS"; then
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11242 $as_echo "$XARGS" >&6; }
11243 else
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247 
11248 
11249         if test "x$XARGS" = x; then
11250           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11251         fi
11252       else
11253         # Otherwise we believe it is a complete path. Use it as it is.
11254         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11255 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11257 $as_echo_n "checking for XARGS... " >&6; }
11258         if test ! -x "$tool_specified"; then
11259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11260 $as_echo "not found" >&6; }
11261           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11262         fi
11263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11264 $as_echo "$tool_specified" >&6; }
11265       fi
11266     fi
11267   fi
11268 
11269 
11270 
11271   if test "x$XARGS" = x; then
11272     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11273   fi
11274 
11275 
11276 
11277   # Then required tools that require some special treatment.
11278 
11279 
11280   # Publish this variable in the help.
11281 
11282 
11283   if test "x$AWK" = x; then
11284     # The variable is not set by user, try to locate tool using the code snippet
11285     for ac_prog in gawk mawk nawk awk
11286 do
11287   # Extract the first word of "$ac_prog", so it can be a program name with args.
11288 set dummy $ac_prog; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if ${ac_cv_prog_AWK+:} false; then :
11292   $as_echo_n "(cached) " >&6
11293 else
11294   if test -n "$AWK"; then
11295   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11296 else
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $PATH
11299 do
11300   IFS=$as_save_IFS
11301   test -z "$as_dir" && as_dir=.
11302     for ac_exec_ext in '' $ac_executable_extensions; do
11303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11304     ac_cv_prog_AWK="$ac_prog"
11305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306     break 2
11307   fi
11308 done
11309   done
11310 IFS=$as_save_IFS
11311 
11312 fi
11313 fi
11314 AWK=$ac_cv_prog_AWK
11315 if test -n "$AWK"; then
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11317 $as_echo "$AWK" >&6; }
11318 else
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321 fi
11322 
11323 
11324   test -n "$AWK" && break
11325 done
11326 
11327   else
11328     # The variable is set, but is it from the command line or the environment?
11329 
11330     # Try to remove the string !AWK! from our list.
11331     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11332     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11333       # If it failed, the variable was not from the command line. Ignore it,
11334       # but warn the user (except for BASH, which is always set by the calling BASH).
11335       if test "xAWK" != xBASH; then
11336         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11337 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11338       fi
11339       # Try to locate tool using the code snippet
11340       for ac_prog in gawk mawk nawk awk
11341 do
11342   # Extract the first word of "$ac_prog", so it can be a program name with args.
11343 set dummy $ac_prog; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_prog_AWK+:} false; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349   if test -n "$AWK"; then
11350   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355   IFS=$as_save_IFS
11356   test -z "$as_dir" && as_dir=.
11357     for ac_exec_ext in '' $ac_executable_extensions; do
11358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359     ac_cv_prog_AWK="$ac_prog"
11360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361     break 2
11362   fi
11363 done
11364   done
11365 IFS=$as_save_IFS
11366 
11367 fi
11368 fi
11369 AWK=$ac_cv_prog_AWK
11370 if test -n "$AWK"; then
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11372 $as_echo "$AWK" >&6; }
11373 else
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377 
11378 
11379   test -n "$AWK" && break
11380 done
11381 
11382     else
11383       # If it succeeded, then it was overridden by the user. We will use it
11384       # for the tool.
11385 
11386       # First remove it from the list of overridden variables, so we can test
11387       # for unknown variables in the end.
11388       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11389 
11390       # Check if the provided tool contains a complete path.
11391       tool_specified="$AWK"
11392       tool_basename="${tool_specified##*/}"
11393       if test "x$tool_basename" = "x$tool_specified"; then
11394         # A command without a complete path is provided, search $PATH.
11395         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11396 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11397         # Extract the first word of "$tool_basename", so it can be a program name with args.
11398 set dummy $tool_basename; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_path_AWK+:} false; then :
11402   $as_echo_n "(cached) " >&6
11403 else
11404   case $AWK in
11405   [\\/]* | ?:[\\/]*)
11406   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11407   ;;
11408   *)
11409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11411 do
11412   IFS=$as_save_IFS
11413   test -z "$as_dir" && as_dir=.
11414     for ac_exec_ext in '' $ac_executable_extensions; do
11415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418     break 2
11419   fi
11420 done
11421   done
11422 IFS=$as_save_IFS
11423 
11424   ;;
11425 esac
11426 fi
11427 AWK=$ac_cv_path_AWK
11428 if test -n "$AWK"; then
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11430 $as_echo "$AWK" >&6; }
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435 
11436 
11437         if test "x$AWK" = x; then
11438           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11439         fi
11440       else
11441         # Otherwise we believe it is a complete path. Use it as it is.
11442         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11443 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11445 $as_echo_n "checking for AWK... " >&6; }
11446         if test ! -x "$tool_specified"; then
11447           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11448 $as_echo "not found" >&6; }
11449           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11450         fi
11451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11452 $as_echo "$tool_specified" >&6; }
11453       fi
11454     fi
11455   fi
11456 
11457 
11458   if test "x$AWK" = x; then
11459     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11460   fi
11461 
11462 
11463 
11464 
11465   # Publish this variable in the help.
11466 
11467 
11468   if test "x$GREP" = x; then
11469     # The variable is not set by user, try to locate tool using the code snippet
11470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11472 if ${ac_cv_path_GREP+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   if test -z "$GREP"; then
11476   ac_path_GREP_found=false
11477   # Loop through the user's path and test for each of PROGNAME-LIST
11478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11480 do
11481   IFS=$as_save_IFS
11482   test -z "$as_dir" && as_dir=.
11483     for ac_prog in grep ggrep; do
11484     for ac_exec_ext in '' $ac_executable_extensions; do
11485       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11486       as_fn_executable_p "$ac_path_GREP" || continue
11487 # Check for GNU ac_path_GREP and select it if it is found.
11488   # Check for GNU $ac_path_GREP
11489 case `"$ac_path_GREP" --version 2>&1` in
11490 *GNU*)
11491   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11492 *)
11493   ac_count=0
11494   $as_echo_n 0123456789 >"conftest.in"
11495   while :
11496   do
11497     cat "conftest.in" "conftest.in" >"conftest.tmp"
11498     mv "conftest.tmp" "conftest.in"
11499     cp "conftest.in" "conftest.nl"
11500     $as_echo 'GREP' >> "conftest.nl"
11501     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11503     as_fn_arith $ac_count + 1 && ac_count=$as_val
11504     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11505       # Best one so far, save it but keep looking for a better one
11506       ac_cv_path_GREP="$ac_path_GREP"
11507       ac_path_GREP_max=$ac_count
11508     fi
11509     # 10*(2^10) chars as input seems more than enough
11510     test $ac_count -gt 10 && break
11511   done
11512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11513 esac
11514 
11515       $ac_path_GREP_found && break 3
11516     done
11517   done
11518   done
11519 IFS=$as_save_IFS
11520   if test -z "$ac_cv_path_GREP"; then
11521     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11522   fi
11523 else
11524   ac_cv_path_GREP=$GREP
11525 fi
11526 
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11529 $as_echo "$ac_cv_path_GREP" >&6; }
11530  GREP="$ac_cv_path_GREP"
11531 
11532 
11533   else
11534     # The variable is set, but is it from the command line or the environment?
11535 
11536     # Try to remove the string !GREP! from our list.
11537     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11538     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11539       # If it failed, the variable was not from the command line. Ignore it,
11540       # but warn the user (except for BASH, which is always set by the calling BASH).
11541       if test "xGREP" != xBASH; then
11542         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11543 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11544       fi
11545       # Try to locate tool using the code snippet
11546       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11547 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11548 if ${ac_cv_path_GREP+:} false; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551   if test -z "$GREP"; then
11552   ac_path_GREP_found=false
11553   # Loop through the user's path and test for each of PROGNAME-LIST
11554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11556 do
11557   IFS=$as_save_IFS
11558   test -z "$as_dir" && as_dir=.
11559     for ac_prog in grep ggrep; do
11560     for ac_exec_ext in '' $ac_executable_extensions; do
11561       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11562       as_fn_executable_p "$ac_path_GREP" || continue
11563 # Check for GNU ac_path_GREP and select it if it is found.
11564   # Check for GNU $ac_path_GREP
11565 case `"$ac_path_GREP" --version 2>&1` in
11566 *GNU*)
11567   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11568 *)
11569   ac_count=0
11570   $as_echo_n 0123456789 >"conftest.in"
11571   while :
11572   do
11573     cat "conftest.in" "conftest.in" >"conftest.tmp"
11574     mv "conftest.tmp" "conftest.in"
11575     cp "conftest.in" "conftest.nl"
11576     $as_echo 'GREP' >> "conftest.nl"
11577     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11578     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11579     as_fn_arith $ac_count + 1 && ac_count=$as_val
11580     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11581       # Best one so far, save it but keep looking for a better one
11582       ac_cv_path_GREP="$ac_path_GREP"
11583       ac_path_GREP_max=$ac_count
11584     fi
11585     # 10*(2^10) chars as input seems more than enough
11586     test $ac_count -gt 10 && break
11587   done
11588   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11589 esac
11590 
11591       $ac_path_GREP_found && break 3
11592     done
11593   done
11594   done
11595 IFS=$as_save_IFS
11596   if test -z "$ac_cv_path_GREP"; then
11597     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11598   fi
11599 else
11600   ac_cv_path_GREP=$GREP
11601 fi
11602 
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11605 $as_echo "$ac_cv_path_GREP" >&6; }
11606  GREP="$ac_cv_path_GREP"
11607 
11608 
11609     else
11610       # If it succeeded, then it was overridden by the user. We will use it
11611       # for the tool.
11612 
11613       # First remove it from the list of overridden variables, so we can test
11614       # for unknown variables in the end.
11615       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11616 
11617       # Check if the provided tool contains a complete path.
11618       tool_specified="$GREP"
11619       tool_basename="${tool_specified##*/}"
11620       if test "x$tool_basename" = "x$tool_specified"; then
11621         # A command without a complete path is provided, search $PATH.
11622         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11623 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11624         # Extract the first word of "$tool_basename", so it can be a program name with args.
11625 set dummy $tool_basename; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if ${ac_cv_path_GREP+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   case $GREP in
11632   [\\/]* | ?:[\\/]*)
11633   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11634   ;;
11635   *)
11636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11638 do
11639   IFS=$as_save_IFS
11640   test -z "$as_dir" && as_dir=.
11641     for ac_exec_ext in '' $ac_executable_extensions; do
11642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645     break 2
11646   fi
11647 done
11648   done
11649 IFS=$as_save_IFS
11650 
11651   ;;
11652 esac
11653 fi
11654 GREP=$ac_cv_path_GREP
11655 if test -n "$GREP"; then
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11657 $as_echo "$GREP" >&6; }
11658 else
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11661 fi
11662 
11663 
11664         if test "x$GREP" = x; then
11665           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11666         fi
11667       else
11668         # Otherwise we believe it is a complete path. Use it as it is.
11669         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11670 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11672 $as_echo_n "checking for GREP... " >&6; }
11673         if test ! -x "$tool_specified"; then
11674           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11675 $as_echo "not found" >&6; }
11676           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11677         fi
11678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11679 $as_echo "$tool_specified" >&6; }
11680       fi
11681     fi
11682   fi
11683 
11684 
11685   if test "x$GREP" = x; then
11686     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11687   fi
11688 
11689 
11690 
11691 
11692   # Publish this variable in the help.
11693 
11694 
11695   if test "x$EGREP" = x; then
11696     # The variable is not set by user, try to locate tool using the code snippet
11697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11698 $as_echo_n "checking for egrep... " >&6; }
11699 if ${ac_cv_path_EGREP+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11703    then ac_cv_path_EGREP="$GREP -E"
11704    else
11705      if test -z "$EGREP"; then
11706   ac_path_EGREP_found=false
11707   # Loop through the user's path and test for each of PROGNAME-LIST
11708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11710 do
11711   IFS=$as_save_IFS
11712   test -z "$as_dir" && as_dir=.
11713     for ac_prog in egrep; do
11714     for ac_exec_ext in '' $ac_executable_extensions; do
11715       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11716       as_fn_executable_p "$ac_path_EGREP" || continue
11717 # Check for GNU ac_path_EGREP and select it if it is found.
11718   # Check for GNU $ac_path_EGREP
11719 case `"$ac_path_EGREP" --version 2>&1` in
11720 *GNU*)
11721   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11722 *)
11723   ac_count=0
11724   $as_echo_n 0123456789 >"conftest.in"
11725   while :
11726   do
11727     cat "conftest.in" "conftest.in" >"conftest.tmp"
11728     mv "conftest.tmp" "conftest.in"
11729     cp "conftest.in" "conftest.nl"
11730     $as_echo 'EGREP' >> "conftest.nl"
11731     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11733     as_fn_arith $ac_count + 1 && ac_count=$as_val
11734     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11735       # Best one so far, save it but keep looking for a better one
11736       ac_cv_path_EGREP="$ac_path_EGREP"
11737       ac_path_EGREP_max=$ac_count
11738     fi
11739     # 10*(2^10) chars as input seems more than enough
11740     test $ac_count -gt 10 && break
11741   done
11742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11743 esac
11744 
11745       $ac_path_EGREP_found && break 3
11746     done
11747   done
11748   done
11749 IFS=$as_save_IFS
11750   if test -z "$ac_cv_path_EGREP"; then
11751     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11752   fi
11753 else
11754   ac_cv_path_EGREP=$EGREP
11755 fi
11756 
11757    fi
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11760 $as_echo "$ac_cv_path_EGREP" >&6; }
11761  EGREP="$ac_cv_path_EGREP"
11762 
11763 
11764   else
11765     # The variable is set, but is it from the command line or the environment?
11766 
11767     # Try to remove the string !EGREP! from our list.
11768     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11769     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11770       # If it failed, the variable was not from the command line. Ignore it,
11771       # but warn the user (except for BASH, which is always set by the calling BASH).
11772       if test "xEGREP" != xBASH; then
11773         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11774 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11775       fi
11776       # Try to locate tool using the code snippet
11777       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11778 $as_echo_n "checking for egrep... " >&6; }
11779 if ${ac_cv_path_EGREP+:} false; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11783    then ac_cv_path_EGREP="$GREP -E"
11784    else
11785      if test -z "$EGREP"; then
11786   ac_path_EGREP_found=false
11787   # Loop through the user's path and test for each of PROGNAME-LIST
11788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793     for ac_prog in egrep; do
11794     for ac_exec_ext in '' $ac_executable_extensions; do
11795       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11796       as_fn_executable_p "$ac_path_EGREP" || continue
11797 # Check for GNU ac_path_EGREP and select it if it is found.
11798   # Check for GNU $ac_path_EGREP
11799 case `"$ac_path_EGREP" --version 2>&1` in
11800 *GNU*)
11801   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11802 *)
11803   ac_count=0
11804   $as_echo_n 0123456789 >"conftest.in"
11805   while :
11806   do
11807     cat "conftest.in" "conftest.in" >"conftest.tmp"
11808     mv "conftest.tmp" "conftest.in"
11809     cp "conftest.in" "conftest.nl"
11810     $as_echo 'EGREP' >> "conftest.nl"
11811     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11812     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11813     as_fn_arith $ac_count + 1 && ac_count=$as_val
11814     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11815       # Best one so far, save it but keep looking for a better one
11816       ac_cv_path_EGREP="$ac_path_EGREP"
11817       ac_path_EGREP_max=$ac_count
11818     fi
11819     # 10*(2^10) chars as input seems more than enough
11820     test $ac_count -gt 10 && break
11821   done
11822   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11823 esac
11824 
11825       $ac_path_EGREP_found && break 3
11826     done
11827   done
11828   done
11829 IFS=$as_save_IFS
11830   if test -z "$ac_cv_path_EGREP"; then
11831     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11832   fi
11833 else
11834   ac_cv_path_EGREP=$EGREP
11835 fi
11836 
11837    fi
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11840 $as_echo "$ac_cv_path_EGREP" >&6; }
11841  EGREP="$ac_cv_path_EGREP"
11842 
11843 
11844     else
11845       # If it succeeded, then it was overridden by the user. We will use it
11846       # for the tool.
11847 
11848       # First remove it from the list of overridden variables, so we can test
11849       # for unknown variables in the end.
11850       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11851 
11852       # Check if the provided tool contains a complete path.
11853       tool_specified="$EGREP"
11854       tool_basename="${tool_specified##*/}"
11855       if test "x$tool_basename" = "x$tool_specified"; then
11856         # A command without a complete path is provided, search $PATH.
11857         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11858 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11859         # Extract the first word of "$tool_basename", so it can be a program name with args.
11860 set dummy $tool_basename; ac_word=$2
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862 $as_echo_n "checking for $ac_word... " >&6; }
11863 if ${ac_cv_path_EGREP+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   case $EGREP in
11867   [\\/]* | ?:[\\/]*)
11868   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11869   ;;
11870   *)
11871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_exec_ext in '' $ac_executable_extensions; do
11877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880     break 2
11881   fi
11882 done
11883   done
11884 IFS=$as_save_IFS
11885 
11886   ;;
11887 esac
11888 fi
11889 EGREP=$ac_cv_path_EGREP
11890 if test -n "$EGREP"; then
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11892 $as_echo "$EGREP" >&6; }
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897 
11898 
11899         if test "x$EGREP" = x; then
11900           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11901         fi
11902       else
11903         # Otherwise we believe it is a complete path. Use it as it is.
11904         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11905 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11907 $as_echo_n "checking for EGREP... " >&6; }
11908         if test ! -x "$tool_specified"; then
11909           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11910 $as_echo "not found" >&6; }
11911           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11912         fi
11913         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11914 $as_echo "$tool_specified" >&6; }
11915       fi
11916     fi
11917   fi
11918 
11919 
11920   if test "x$EGREP" = x; then
11921     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11922   fi
11923 
11924 
11925 
11926 
11927   # Publish this variable in the help.
11928 
11929 
11930   if test "x$FGREP" = x; then
11931     # The variable is not set by user, try to locate tool using the code snippet
11932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11933 $as_echo_n "checking for fgrep... " >&6; }
11934 if ${ac_cv_path_FGREP+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11938    then ac_cv_path_FGREP="$GREP -F"
11939    else
11940      if test -z "$FGREP"; then
11941   ac_path_FGREP_found=false
11942   # Loop through the user's path and test for each of PROGNAME-LIST
11943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11945 do
11946   IFS=$as_save_IFS
11947   test -z "$as_dir" && as_dir=.
11948     for ac_prog in fgrep; do
11949     for ac_exec_ext in '' $ac_executable_extensions; do
11950       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11951       as_fn_executable_p "$ac_path_FGREP" || continue
11952 # Check for GNU ac_path_FGREP and select it if it is found.
11953   # Check for GNU $ac_path_FGREP
11954 case `"$ac_path_FGREP" --version 2>&1` in
11955 *GNU*)
11956   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11957 *)
11958   ac_count=0
11959   $as_echo_n 0123456789 >"conftest.in"
11960   while :
11961   do
11962     cat "conftest.in" "conftest.in" >"conftest.tmp"
11963     mv "conftest.tmp" "conftest.in"
11964     cp "conftest.in" "conftest.nl"
11965     $as_echo 'FGREP' >> "conftest.nl"
11966     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11967     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11968     as_fn_arith $ac_count + 1 && ac_count=$as_val
11969     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11970       # Best one so far, save it but keep looking for a better one
11971       ac_cv_path_FGREP="$ac_path_FGREP"
11972       ac_path_FGREP_max=$ac_count
11973     fi
11974     # 10*(2^10) chars as input seems more than enough
11975     test $ac_count -gt 10 && break
11976   done
11977   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11978 esac
11979 
11980       $ac_path_FGREP_found && break 3
11981     done
11982   done
11983   done
11984 IFS=$as_save_IFS
11985   if test -z "$ac_cv_path_FGREP"; then
11986     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11987   fi
11988 else
11989   ac_cv_path_FGREP=$FGREP
11990 fi
11991 
11992    fi
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11995 $as_echo "$ac_cv_path_FGREP" >&6; }
11996  FGREP="$ac_cv_path_FGREP"
11997 
11998 
11999   else
12000     # The variable is set, but is it from the command line or the environment?
12001 
12002     # Try to remove the string !FGREP! from our list.
12003     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12004     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12005       # If it failed, the variable was not from the command line. Ignore it,
12006       # but warn the user (except for BASH, which is always set by the calling BASH).
12007       if test "xFGREP" != xBASH; then
12008         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12009 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12010       fi
12011       # Try to locate tool using the code snippet
12012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12013 $as_echo_n "checking for fgrep... " >&6; }
12014 if ${ac_cv_path_FGREP+:} false; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12018    then ac_cv_path_FGREP="$GREP -F"
12019    else
12020      if test -z "$FGREP"; then
12021   ac_path_FGREP_found=false
12022   # Loop through the user's path and test for each of PROGNAME-LIST
12023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12025 do
12026   IFS=$as_save_IFS
12027   test -z "$as_dir" && as_dir=.
12028     for ac_prog in fgrep; do
12029     for ac_exec_ext in '' $ac_executable_extensions; do
12030       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12031       as_fn_executable_p "$ac_path_FGREP" || continue
12032 # Check for GNU ac_path_FGREP and select it if it is found.
12033   # Check for GNU $ac_path_FGREP
12034 case `"$ac_path_FGREP" --version 2>&1` in
12035 *GNU*)
12036   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12037 *)
12038   ac_count=0
12039   $as_echo_n 0123456789 >"conftest.in"
12040   while :
12041   do
12042     cat "conftest.in" "conftest.in" >"conftest.tmp"
12043     mv "conftest.tmp" "conftest.in"
12044     cp "conftest.in" "conftest.nl"
12045     $as_echo 'FGREP' >> "conftest.nl"
12046     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12048     as_fn_arith $ac_count + 1 && ac_count=$as_val
12049     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12050       # Best one so far, save it but keep looking for a better one
12051       ac_cv_path_FGREP="$ac_path_FGREP"
12052       ac_path_FGREP_max=$ac_count
12053     fi
12054     # 10*(2^10) chars as input seems more than enough
12055     test $ac_count -gt 10 && break
12056   done
12057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12058 esac
12059 
12060       $ac_path_FGREP_found && break 3
12061     done
12062   done
12063   done
12064 IFS=$as_save_IFS
12065   if test -z "$ac_cv_path_FGREP"; then
12066     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12067   fi
12068 else
12069   ac_cv_path_FGREP=$FGREP
12070 fi
12071 
12072    fi
12073 fi
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12075 $as_echo "$ac_cv_path_FGREP" >&6; }
12076  FGREP="$ac_cv_path_FGREP"
12077 
12078 
12079     else
12080       # If it succeeded, then it was overridden by the user. We will use it
12081       # for the tool.
12082 
12083       # First remove it from the list of overridden variables, so we can test
12084       # for unknown variables in the end.
12085       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12086 
12087       # Check if the provided tool contains a complete path.
12088       tool_specified="$FGREP"
12089       tool_basename="${tool_specified##*/}"
12090       if test "x$tool_basename" = "x$tool_specified"; then
12091         # A command without a complete path is provided, search $PATH.
12092         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12093 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12094         # Extract the first word of "$tool_basename", so it can be a program name with args.
12095 set dummy $tool_basename; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_FGREP+:} false; then :
12099   $as_echo_n "(cached) " >&6
12100 else
12101   case $FGREP in
12102   [\\/]* | ?:[\\/]*)
12103   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12104   ;;
12105   *)
12106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12108 do
12109   IFS=$as_save_IFS
12110   test -z "$as_dir" && as_dir=.
12111     for ac_exec_ext in '' $ac_executable_extensions; do
12112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115     break 2
12116   fi
12117 done
12118   done
12119 IFS=$as_save_IFS
12120 
12121   ;;
12122 esac
12123 fi
12124 FGREP=$ac_cv_path_FGREP
12125 if test -n "$FGREP"; then
12126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12127 $as_echo "$FGREP" >&6; }
12128 else
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12131 fi
12132 
12133 
12134         if test "x$FGREP" = x; then
12135           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12136         fi
12137       else
12138         # Otherwise we believe it is a complete path. Use it as it is.
12139         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12140 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12142 $as_echo_n "checking for FGREP... " >&6; }
12143         if test ! -x "$tool_specified"; then
12144           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12145 $as_echo "not found" >&6; }
12146           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12147         fi
12148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12149 $as_echo "$tool_specified" >&6; }
12150       fi
12151     fi
12152   fi
12153 
12154 
12155   if test "x$FGREP" = x; then
12156     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12157   fi
12158 
12159 
12160 
12161 
12162   # Publish this variable in the help.
12163 
12164 
12165   if test "x$SED" = x; then
12166     # The variable is not set by user, try to locate tool using the code snippet
12167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12168 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12169 if ${ac_cv_path_SED+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12173      for ac_i in 1 2 3 4 5 6 7; do
12174        ac_script="$ac_script$as_nl$ac_script"
12175      done
12176      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12177      { ac_script=; unset ac_script;}
12178      if test -z "$SED"; then
12179   ac_path_SED_found=false
12180   # Loop through the user's path and test for each of PROGNAME-LIST
12181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186     for ac_prog in sed gsed; do
12187     for ac_exec_ext in '' $ac_executable_extensions; do
12188       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12189       as_fn_executable_p "$ac_path_SED" || continue
12190 # Check for GNU ac_path_SED and select it if it is found.
12191   # Check for GNU $ac_path_SED
12192 case `"$ac_path_SED" --version 2>&1` in
12193 *GNU*)
12194   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12195 *)
12196   ac_count=0
12197   $as_echo_n 0123456789 >"conftest.in"
12198   while :
12199   do
12200     cat "conftest.in" "conftest.in" >"conftest.tmp"
12201     mv "conftest.tmp" "conftest.in"
12202     cp "conftest.in" "conftest.nl"
12203     $as_echo '' >> "conftest.nl"
12204     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12206     as_fn_arith $ac_count + 1 && ac_count=$as_val
12207     if test $ac_count -gt ${ac_path_SED_max-0}; then
12208       # Best one so far, save it but keep looking for a better one
12209       ac_cv_path_SED="$ac_path_SED"
12210       ac_path_SED_max=$ac_count
12211     fi
12212     # 10*(2^10) chars as input seems more than enough
12213     test $ac_count -gt 10 && break
12214   done
12215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12216 esac
12217 
12218       $ac_path_SED_found && break 3
12219     done
12220   done
12221   done
12222 IFS=$as_save_IFS
12223   if test -z "$ac_cv_path_SED"; then
12224     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12225   fi
12226 else
12227   ac_cv_path_SED=$SED
12228 fi
12229 
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12232 $as_echo "$ac_cv_path_SED" >&6; }
12233  SED="$ac_cv_path_SED"
12234   rm -f conftest.sed
12235 
12236   else
12237     # The variable is set, but is it from the command line or the environment?
12238 
12239     # Try to remove the string !SED! from our list.
12240     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12241     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12242       # If it failed, the variable was not from the command line. Ignore it,
12243       # but warn the user (except for BASH, which is always set by the calling BASH).
12244       if test "xSED" != xBASH; then
12245         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12246 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12247       fi
12248       # Try to locate tool using the code snippet
12249       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12250 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12251 if ${ac_cv_path_SED+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12255      for ac_i in 1 2 3 4 5 6 7; do
12256        ac_script="$ac_script$as_nl$ac_script"
12257      done
12258      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12259      { ac_script=; unset ac_script;}
12260      if test -z "$SED"; then
12261   ac_path_SED_found=false
12262   # Loop through the user's path and test for each of PROGNAME-LIST
12263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12265 do
12266   IFS=$as_save_IFS
12267   test -z "$as_dir" && as_dir=.
12268     for ac_prog in sed gsed; do
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12271       as_fn_executable_p "$ac_path_SED" || continue
12272 # Check for GNU ac_path_SED and select it if it is found.
12273   # Check for GNU $ac_path_SED
12274 case `"$ac_path_SED" --version 2>&1` in
12275 *GNU*)
12276   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12277 *)
12278   ac_count=0
12279   $as_echo_n 0123456789 >"conftest.in"
12280   while :
12281   do
12282     cat "conftest.in" "conftest.in" >"conftest.tmp"
12283     mv "conftest.tmp" "conftest.in"
12284     cp "conftest.in" "conftest.nl"
12285     $as_echo '' >> "conftest.nl"
12286     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12288     as_fn_arith $ac_count + 1 && ac_count=$as_val
12289     if test $ac_count -gt ${ac_path_SED_max-0}; then
12290       # Best one so far, save it but keep looking for a better one
12291       ac_cv_path_SED="$ac_path_SED"
12292       ac_path_SED_max=$ac_count
12293     fi
12294     # 10*(2^10) chars as input seems more than enough
12295     test $ac_count -gt 10 && break
12296   done
12297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12298 esac
12299 
12300       $ac_path_SED_found && break 3
12301     done
12302   done
12303   done
12304 IFS=$as_save_IFS
12305   if test -z "$ac_cv_path_SED"; then
12306     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12307   fi
12308 else
12309   ac_cv_path_SED=$SED
12310 fi
12311 
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12314 $as_echo "$ac_cv_path_SED" >&6; }
12315  SED="$ac_cv_path_SED"
12316   rm -f conftest.sed
12317 
12318     else
12319       # If it succeeded, then it was overridden by the user. We will use it
12320       # for the tool.
12321 
12322       # First remove it from the list of overridden variables, so we can test
12323       # for unknown variables in the end.
12324       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12325 
12326       # Check if the provided tool contains a complete path.
12327       tool_specified="$SED"
12328       tool_basename="${tool_specified##*/}"
12329       if test "x$tool_basename" = "x$tool_specified"; then
12330         # A command without a complete path is provided, search $PATH.
12331         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12332 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12333         # Extract the first word of "$tool_basename", so it can be a program name with args.
12334 set dummy $tool_basename; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if ${ac_cv_path_SED+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   case $SED in
12341   [\\/]* | ?:[\\/]*)
12342   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12343   ;;
12344   *)
12345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12347 do
12348   IFS=$as_save_IFS
12349   test -z "$as_dir" && as_dir=.
12350     for ac_exec_ext in '' $ac_executable_extensions; do
12351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354     break 2
12355   fi
12356 done
12357   done
12358 IFS=$as_save_IFS
12359 
12360   ;;
12361 esac
12362 fi
12363 SED=$ac_cv_path_SED
12364 if test -n "$SED"; then
12365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12366 $as_echo "$SED" >&6; }
12367 else
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12370 fi
12371 
12372 
12373         if test "x$SED" = x; then
12374           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12375         fi
12376       else
12377         # Otherwise we believe it is a complete path. Use it as it is.
12378         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12379 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12381 $as_echo_n "checking for SED... " >&6; }
12382         if test ! -x "$tool_specified"; then
12383           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12384 $as_echo "not found" >&6; }
12385           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12386         fi
12387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12388 $as_echo "$tool_specified" >&6; }
12389       fi
12390     fi
12391   fi
12392 
12393 
12394   if test "x$SED" = x; then
12395     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12396   fi
12397 
12398 
12399 
12400   # Always force rm.
12401   RM="$RM -f"
12402 
12403   # pwd behaves differently on various platforms and some don't support the -L flag.
12404   # Always use the bash builtin pwd to get uniform behavior.
12405   THEPWDCMD=pwd
12406 
12407   # These are not required on all platforms
12408 
12409 
12410   # Publish this variable in the help.
12411 
12412 
12413   if test "x$CYGPATH" = x; then
12414     # The variable is not set by user, try to locate tool using the code snippet
12415     for ac_prog in cygpath
12416 do
12417   # Extract the first word of "$ac_prog", so it can be a program name with args.
12418 set dummy $ac_prog; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_CYGPATH+:} false; then :
12422   $as_echo_n "(cached) " >&6
12423 else
12424   case $CYGPATH in
12425   [\\/]* | ?:[\\/]*)
12426   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12427   ;;
12428   *)
12429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432   IFS=$as_save_IFS
12433   test -z "$as_dir" && as_dir=.
12434     for ac_exec_ext in '' $ac_executable_extensions; do
12435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438     break 2
12439   fi
12440 done
12441   done
12442 IFS=$as_save_IFS
12443 
12444   ;;
12445 esac
12446 fi
12447 CYGPATH=$ac_cv_path_CYGPATH
12448 if test -n "$CYGPATH"; then
12449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12450 $as_echo "$CYGPATH" >&6; }
12451 else
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12454 fi
12455 
12456 
12457   test -n "$CYGPATH" && break
12458 done
12459 
12460   else
12461     # The variable is set, but is it from the command line or the environment?
12462 
12463     # Try to remove the string !CYGPATH! from our list.
12464     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12465     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12466       # If it failed, the variable was not from the command line. Ignore it,
12467       # but warn the user (except for BASH, which is always set by the calling BASH).
12468       if test "xCYGPATH" != xBASH; then
12469         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12470 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12471       fi
12472       # Try to locate tool using the code snippet
12473       for ac_prog in cygpath
12474 do
12475   # Extract the first word of "$ac_prog", so it can be a program name with args.
12476 set dummy $ac_prog; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if ${ac_cv_path_CYGPATH+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   case $CYGPATH in
12483   [\\/]* | ?:[\\/]*)
12484   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12485   ;;
12486   *)
12487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in $PATH
12489 do
12490   IFS=$as_save_IFS
12491   test -z "$as_dir" && as_dir=.
12492     for ac_exec_ext in '' $ac_executable_extensions; do
12493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12494     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496     break 2
12497   fi
12498 done
12499   done
12500 IFS=$as_save_IFS
12501 
12502   ;;
12503 esac
12504 fi
12505 CYGPATH=$ac_cv_path_CYGPATH
12506 if test -n "$CYGPATH"; then
12507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12508 $as_echo "$CYGPATH" >&6; }
12509 else
12510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 fi
12513 
12514 
12515   test -n "$CYGPATH" && break
12516 done
12517 
12518     else
12519       # If it succeeded, then it was overridden by the user. We will use it
12520       # for the tool.
12521 
12522       # First remove it from the list of overridden variables, so we can test
12523       # for unknown variables in the end.
12524       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12525 
12526       # Check if the provided tool contains a complete path.
12527       tool_specified="$CYGPATH"
12528       tool_basename="${tool_specified##*/}"
12529       if test "x$tool_basename" = "x$tool_specified"; then
12530         # A command without a complete path is provided, search $PATH.
12531         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12532 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12533         # Extract the first word of "$tool_basename", so it can be a program name with args.
12534 set dummy $tool_basename; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if ${ac_cv_path_CYGPATH+:} false; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   case $CYGPATH in
12541   [\\/]* | ?:[\\/]*)
12542   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12543   ;;
12544   *)
12545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12547 do
12548   IFS=$as_save_IFS
12549   test -z "$as_dir" && as_dir=.
12550     for ac_exec_ext in '' $ac_executable_extensions; do
12551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554     break 2
12555   fi
12556 done
12557   done
12558 IFS=$as_save_IFS
12559 
12560   ;;
12561 esac
12562 fi
12563 CYGPATH=$ac_cv_path_CYGPATH
12564 if test -n "$CYGPATH"; then
12565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12566 $as_echo "$CYGPATH" >&6; }
12567 else
12568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570 fi
12571 
12572 
12573         if test "x$CYGPATH" = x; then
12574           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12575         fi
12576       else
12577         # Otherwise we believe it is a complete path. Use it as it is.
12578         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12579 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12581 $as_echo_n "checking for CYGPATH... " >&6; }
12582         if test ! -x "$tool_specified"; then
12583           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12584 $as_echo "not found" >&6; }
12585           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12586         fi
12587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12588 $as_echo "$tool_specified" >&6; }
12589       fi
12590     fi
12591   fi
12592 
12593 
12594 
12595 
12596   # Publish this variable in the help.
12597 
12598 
12599   if test "x$READLINK" = x; then
12600     # The variable is not set by user, try to locate tool using the code snippet
12601     for ac_prog in greadlink readlink
12602 do
12603   # Extract the first word of "$ac_prog", so it can be a program name with args.
12604 set dummy $ac_prog; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_path_READLINK+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610   case $READLINK in
12611   [\\/]* | ?:[\\/]*)
12612   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12613   ;;
12614   *)
12615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12617 do
12618   IFS=$as_save_IFS
12619   test -z "$as_dir" && as_dir=.
12620     for ac_exec_ext in '' $ac_executable_extensions; do
12621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12622     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624     break 2
12625   fi
12626 done
12627   done
12628 IFS=$as_save_IFS
12629 
12630   ;;
12631 esac
12632 fi
12633 READLINK=$ac_cv_path_READLINK
12634 if test -n "$READLINK"; then
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12636 $as_echo "$READLINK" >&6; }
12637 else
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640 fi
12641 
12642 
12643   test -n "$READLINK" && break
12644 done
12645 
12646   else
12647     # The variable is set, but is it from the command line or the environment?
12648 
12649     # Try to remove the string !READLINK! from our list.
12650     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12651     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12652       # If it failed, the variable was not from the command line. Ignore it,
12653       # but warn the user (except for BASH, which is always set by the calling BASH).
12654       if test "xREADLINK" != xBASH; then
12655         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12656 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12657       fi
12658       # Try to locate tool using the code snippet
12659       for ac_prog in greadlink readlink
12660 do
12661   # Extract the first word of "$ac_prog", so it can be a program name with args.
12662 set dummy $ac_prog; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if ${ac_cv_path_READLINK+:} false; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   case $READLINK in
12669   [\\/]* | ?:[\\/]*)
12670   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12671   ;;
12672   *)
12673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12675 do
12676   IFS=$as_save_IFS
12677   test -z "$as_dir" && as_dir=.
12678     for ac_exec_ext in '' $ac_executable_extensions; do
12679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682     break 2
12683   fi
12684 done
12685   done
12686 IFS=$as_save_IFS
12687 
12688   ;;
12689 esac
12690 fi
12691 READLINK=$ac_cv_path_READLINK
12692 if test -n "$READLINK"; then
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12694 $as_echo "$READLINK" >&6; }
12695 else
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699 
12700 
12701   test -n "$READLINK" && break
12702 done
12703 
12704     else
12705       # If it succeeded, then it was overridden by the user. We will use it
12706       # for the tool.
12707 
12708       # First remove it from the list of overridden variables, so we can test
12709       # for unknown variables in the end.
12710       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12711 
12712       # Check if the provided tool contains a complete path.
12713       tool_specified="$READLINK"
12714       tool_basename="${tool_specified##*/}"
12715       if test "x$tool_basename" = "x$tool_specified"; then
12716         # A command without a complete path is provided, search $PATH.
12717         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12718 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12719         # Extract the first word of "$tool_basename", so it can be a program name with args.
12720 set dummy $tool_basename; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if ${ac_cv_path_READLINK+:} false; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   case $READLINK in
12727   [\\/]* | ?:[\\/]*)
12728   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12729   ;;
12730   *)
12731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12733 do
12734   IFS=$as_save_IFS
12735   test -z "$as_dir" && as_dir=.
12736     for ac_exec_ext in '' $ac_executable_extensions; do
12737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12738     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740     break 2
12741   fi
12742 done
12743   done
12744 IFS=$as_save_IFS
12745 
12746   ;;
12747 esac
12748 fi
12749 READLINK=$ac_cv_path_READLINK
12750 if test -n "$READLINK"; then
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12752 $as_echo "$READLINK" >&6; }
12753 else
12754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12756 fi
12757 
12758 
12759         if test "x$READLINK" = x; then
12760           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12761         fi
12762       else
12763         # Otherwise we believe it is a complete path. Use it as it is.
12764         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12765 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12767 $as_echo_n "checking for READLINK... " >&6; }
12768         if test ! -x "$tool_specified"; then
12769           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12770 $as_echo "not found" >&6; }
12771           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12772         fi
12773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12774 $as_echo "$tool_specified" >&6; }
12775       fi
12776     fi
12777   fi
12778 
12779 
12780 
12781 
12782   # Publish this variable in the help.
12783 
12784 
12785   if test "x$DF" = x; then
12786     # The variable is not set by user, try to locate tool using the code snippet
12787     for ac_prog in df
12788 do
12789   # Extract the first word of "$ac_prog", so it can be a program name with args.
12790 set dummy $ac_prog; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_path_DF+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   case $DF in
12797   [\\/]* | ?:[\\/]*)
12798   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12799   ;;
12800   *)
12801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806     for ac_exec_ext in '' $ac_executable_extensions; do
12807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813   done
12814 IFS=$as_save_IFS
12815 
12816   ;;
12817 esac
12818 fi
12819 DF=$ac_cv_path_DF
12820 if test -n "$DF"; then
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12822 $as_echo "$DF" >&6; }
12823 else
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827 
12828 
12829   test -n "$DF" && break
12830 done
12831 
12832   else
12833     # The variable is set, but is it from the command line or the environment?
12834 
12835     # Try to remove the string !DF! from our list.
12836     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12837     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12838       # If it failed, the variable was not from the command line. Ignore it,
12839       # but warn the user (except for BASH, which is always set by the calling BASH).
12840       if test "xDF" != xBASH; then
12841         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12842 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12843       fi
12844       # Try to locate tool using the code snippet
12845       for ac_prog in df
12846 do
12847   # Extract the first word of "$ac_prog", so it can be a program name with args.
12848 set dummy $ac_prog; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_DF+:} false; then :
12852   $as_echo_n "(cached) " >&6
12853 else
12854   case $DF in
12855   [\\/]* | ?:[\\/]*)
12856   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12857   ;;
12858   *)
12859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862   IFS=$as_save_IFS
12863   test -z "$as_dir" && as_dir=.
12864     for ac_exec_ext in '' $ac_executable_extensions; do
12865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868     break 2
12869   fi
12870 done
12871   done
12872 IFS=$as_save_IFS
12873 
12874   ;;
12875 esac
12876 fi
12877 DF=$ac_cv_path_DF
12878 if test -n "$DF"; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12880 $as_echo "$DF" >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885 
12886 
12887   test -n "$DF" && break
12888 done
12889 
12890     else
12891       # If it succeeded, then it was overridden by the user. We will use it
12892       # for the tool.
12893 
12894       # First remove it from the list of overridden variables, so we can test
12895       # for unknown variables in the end.
12896       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12897 
12898       # Check if the provided tool contains a complete path.
12899       tool_specified="$DF"
12900       tool_basename="${tool_specified##*/}"
12901       if test "x$tool_basename" = "x$tool_specified"; then
12902         # A command without a complete path is provided, search $PATH.
12903         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12904 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12905         # Extract the first word of "$tool_basename", so it can be a program name with args.
12906 set dummy $tool_basename; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if ${ac_cv_path_DF+:} false; then :
12910   $as_echo_n "(cached) " >&6
12911 else
12912   case $DF in
12913   [\\/]* | ?:[\\/]*)
12914   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12915   ;;
12916   *)
12917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920   IFS=$as_save_IFS
12921   test -z "$as_dir" && as_dir=.
12922     for ac_exec_ext in '' $ac_executable_extensions; do
12923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12924     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926     break 2
12927   fi
12928 done
12929   done
12930 IFS=$as_save_IFS
12931 
12932   ;;
12933 esac
12934 fi
12935 DF=$ac_cv_path_DF
12936 if test -n "$DF"; then
12937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12938 $as_echo "$DF" >&6; }
12939 else
12940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942 fi
12943 
12944 
12945         if test "x$DF" = x; then
12946           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12947         fi
12948       else
12949         # Otherwise we believe it is a complete path. Use it as it is.
12950         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12951 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12953 $as_echo_n "checking for DF... " >&6; }
12954         if test ! -x "$tool_specified"; then
12955           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12956 $as_echo "not found" >&6; }
12957           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12958         fi
12959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12960 $as_echo "$tool_specified" >&6; }
12961       fi
12962     fi
12963   fi
12964 
12965 
12966 
12967 
12968   # Publish this variable in the help.
12969 
12970 
12971   if test "x$SETFILE" = x; then
12972     # The variable is not set by user, try to locate tool using the code snippet
12973     for ac_prog in SetFile
12974 do
12975   # Extract the first word of "$ac_prog", so it can be a program name with args.
12976 set dummy $ac_prog; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_path_SETFILE+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   case $SETFILE in
12983   [\\/]* | ?:[\\/]*)
12984   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
12985   ;;
12986   *)
12987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988 for as_dir in $PATH
12989 do
12990   IFS=$as_save_IFS
12991   test -z "$as_dir" && as_dir=.
12992     for ac_exec_ext in '' $ac_executable_extensions; do
12993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12994     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
12995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996     break 2
12997   fi
12998 done
12999   done
13000 IFS=$as_save_IFS
13001 
13002   ;;
13003 esac
13004 fi
13005 SETFILE=$ac_cv_path_SETFILE
13006 if test -n "$SETFILE"; then
13007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13008 $as_echo "$SETFILE" >&6; }
13009 else
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013 
13014 
13015   test -n "$SETFILE" && break
13016 done
13017 
13018   else
13019     # The variable is set, but is it from the command line or the environment?
13020 
13021     # Try to remove the string !SETFILE! from our list.
13022     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13023     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13024       # If it failed, the variable was not from the command line. Ignore it,
13025       # but warn the user (except for BASH, which is always set by the calling BASH).
13026       if test "xSETFILE" != xBASH; then
13027         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13028 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13029       fi
13030       # Try to locate tool using the code snippet
13031       for ac_prog in SetFile
13032 do
13033   # Extract the first word of "$ac_prog", so it can be a program name with args.
13034 set dummy $ac_prog; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if ${ac_cv_path_SETFILE+:} false; then :
13038   $as_echo_n "(cached) " >&6
13039 else
13040   case $SETFILE in
13041   [\\/]* | ?:[\\/]*)
13042   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13043   ;;
13044   *)
13045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050     for ac_exec_ext in '' $ac_executable_extensions; do
13051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054     break 2
13055   fi
13056 done
13057   done
13058 IFS=$as_save_IFS
13059 
13060   ;;
13061 esac
13062 fi
13063 SETFILE=$ac_cv_path_SETFILE
13064 if test -n "$SETFILE"; then
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13066 $as_echo "$SETFILE" >&6; }
13067 else
13068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071 
13072 
13073   test -n "$SETFILE" && break
13074 done
13075 
13076     else
13077       # If it succeeded, then it was overridden by the user. We will use it
13078       # for the tool.
13079 
13080       # First remove it from the list of overridden variables, so we can test
13081       # for unknown variables in the end.
13082       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13083 
13084       # Check if the provided tool contains a complete path.
13085       tool_specified="$SETFILE"
13086       tool_basename="${tool_specified##*/}"
13087       if test "x$tool_basename" = "x$tool_specified"; then
13088         # A command without a complete path is provided, search $PATH.
13089         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13090 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13091         # Extract the first word of "$tool_basename", so it can be a program name with args.
13092 set dummy $tool_basename; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if ${ac_cv_path_SETFILE+:} false; then :
13096   $as_echo_n "(cached) " >&6
13097 else
13098   case $SETFILE in
13099   [\\/]* | ?:[\\/]*)
13100   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13101   ;;
13102   *)
13103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106   IFS=$as_save_IFS
13107   test -z "$as_dir" && as_dir=.
13108     for ac_exec_ext in '' $ac_executable_extensions; do
13109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13110     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112     break 2
13113   fi
13114 done
13115   done
13116 IFS=$as_save_IFS
13117 
13118   ;;
13119 esac
13120 fi
13121 SETFILE=$ac_cv_path_SETFILE
13122 if test -n "$SETFILE"; then
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13124 $as_echo "$SETFILE" >&6; }
13125 else
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129 
13130 
13131         if test "x$SETFILE" = x; then
13132           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13133         fi
13134       else
13135         # Otherwise we believe it is a complete path. Use it as it is.
13136         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13137 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13139 $as_echo_n "checking for SETFILE... " >&6; }
13140         if test ! -x "$tool_specified"; then
13141           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13142 $as_echo "not found" >&6; }
13143           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13144         fi
13145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13146 $as_echo "$tool_specified" >&6; }
13147       fi
13148     fi
13149   fi
13150 
13151 
13152 
13153 
13154 # Now we can determine OpenJDK build and target platforms. This is required to
13155 # have early on.
13156 # Make sure we can run config.sub.
13157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13158   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13159 
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13161 $as_echo_n "checking build system type... " >&6; }
13162 if ${ac_cv_build+:} false; then :
13163   $as_echo_n "(cached) " >&6
13164 else
13165   ac_build_alias=$build_alias
13166 test "x$ac_build_alias" = x &&
13167   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13168 test "x$ac_build_alias" = x &&
13169   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13171   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13172 
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13175 $as_echo "$ac_cv_build" >&6; }
13176 case $ac_cv_build in
13177 *-*-*) ;;
13178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13179 esac
13180 build=$ac_cv_build
13181 ac_save_IFS=$IFS; IFS='-'
13182 set x $ac_cv_build
13183 shift
13184 build_cpu=$1
13185 build_vendor=$2
13186 shift; shift
13187 # Remember, the first character of IFS is used to create $*,
13188 # except with old shells:
13189 build_os=$*
13190 IFS=$ac_save_IFS
13191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13192 
13193 
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13195 $as_echo_n "checking host system type... " >&6; }
13196 if ${ac_cv_host+:} false; then :
13197   $as_echo_n "(cached) " >&6
13198 else
13199   if test "x$host_alias" = x; then
13200   ac_cv_host=$ac_cv_build
13201 else
13202   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13203     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13204 fi
13205 
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13208 $as_echo "$ac_cv_host" >&6; }
13209 case $ac_cv_host in
13210 *-*-*) ;;
13211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13212 esac
13213 host=$ac_cv_host
13214 ac_save_IFS=$IFS; IFS='-'
13215 set x $ac_cv_host
13216 shift
13217 host_cpu=$1
13218 host_vendor=$2
13219 shift; shift
13220 # Remember, the first character of IFS is used to create $*,
13221 # except with old shells:
13222 host_os=$*
13223 IFS=$ac_save_IFS
13224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13225 
13226 
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13228 $as_echo_n "checking target system type... " >&6; }
13229 if ${ac_cv_target+:} false; then :
13230   $as_echo_n "(cached) " >&6
13231 else
13232   if test "x$target_alias" = x; then
13233   ac_cv_target=$ac_cv_host
13234 else
13235   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13236     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13237 fi
13238 
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13241 $as_echo "$ac_cv_target" >&6; }
13242 case $ac_cv_target in
13243 *-*-*) ;;
13244 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13245 esac
13246 target=$ac_cv_target
13247 ac_save_IFS=$IFS; IFS='-'
13248 set x $ac_cv_target
13249 shift
13250 target_cpu=$1
13251 target_vendor=$2
13252 shift; shift
13253 # Remember, the first character of IFS is used to create $*,
13254 # except with old shells:
13255 target_os=$*
13256 IFS=$ac_save_IFS
13257 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13258 
13259 
13260 # The aliases save the names the user supplied, while $host etc.
13261 # will get canonicalized.
13262 test -n "$target_alias" &&
13263   test "$program_prefix$program_suffix$program_transform_name" = \
13264     NONENONEs,x,x, &&
13265   program_prefix=${target_alias}-
13266 
13267   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13268   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13269   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13270   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13271   # to use the configure naming style.
13272 
13273 
13274 
13275 
13276 
13277   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13278   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13279   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13280   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13281   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13282   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13283 
13284 
13285 
13286   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13287 
13288   case "$build_os" in
13289     *linux*)
13290       VAR_OS=linux
13291       VAR_OS_API=posix
13292       VAR_OS_ENV=linux
13293       ;;
13294     *solaris*)
13295       VAR_OS=solaris
13296       VAR_OS_API=posix
13297       VAR_OS_ENV=solaris
13298       ;;
13299     *darwin*)
13300       VAR_OS=macosx
13301       VAR_OS_API=posix
13302       VAR_OS_ENV=macosx
13303       ;;
13304     *bsd*)
13305       VAR_OS=bsd
13306       VAR_OS_API=posix
13307       VAR_OS_ENV=bsd
13308       ;;
13309     *cygwin*)
13310       VAR_OS=windows
13311       VAR_OS_API=winapi
13312       VAR_OS_ENV=windows.cygwin
13313       ;;
13314     *mingw*)
13315       VAR_OS=windows
13316       VAR_OS_API=winapi
13317       VAR_OS_ENV=windows.msys
13318       ;;
13319     *aix*)
13320       VAR_OS=aix
13321       VAR_OS_API=posix
13322       VAR_OS_ENV=aix
13323       ;;
13324     *)
13325       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13326       ;;
13327   esac
13328 
13329 
13330   # First argument is the cpu name from the trip/quad
13331   case "$build_cpu" in
13332     x86_64)
13333       VAR_CPU=x86_64
13334       VAR_CPU_ARCH=x86
13335       VAR_CPU_BITS=64
13336       VAR_CPU_ENDIAN=little
13337       ;;
13338     i?86)
13339       VAR_CPU=x86
13340       VAR_CPU_ARCH=x86
13341       VAR_CPU_BITS=32
13342       VAR_CPU_ENDIAN=little
13343       ;;
13344     arm*)
13345       VAR_CPU=arm
13346       VAR_CPU_ARCH=arm
13347       VAR_CPU_BITS=32
13348       VAR_CPU_ENDIAN=little
13349       ;;
13350     powerpc)
13351       VAR_CPU=ppc
13352       VAR_CPU_ARCH=ppc
13353       VAR_CPU_BITS=32
13354       VAR_CPU_ENDIAN=big
13355       ;;
13356     powerpc64)
13357       VAR_CPU=ppc64
13358       VAR_CPU_ARCH=ppc
13359       VAR_CPU_BITS=64
13360       VAR_CPU_ENDIAN=big
13361       ;;
13362     s390)
13363       VAR_CPU=s390
13364       VAR_CPU_ARCH=s390
13365       VAR_CPU_BITS=32
13366       VAR_CPU_ENDIAN=big
13367       ;;
13368     s390x)
13369       VAR_CPU=s390x
13370       VAR_CPU_ARCH=s390
13371       VAR_CPU_BITS=64
13372       VAR_CPU_ENDIAN=big
13373       ;;
13374     sparc)
13375       VAR_CPU=sparc
13376       VAR_CPU_ARCH=sparc
13377       VAR_CPU_BITS=32
13378       VAR_CPU_ENDIAN=big
13379       ;;
13380     sparcv9)
13381       VAR_CPU=sparcv9
13382       VAR_CPU_ARCH=sparc
13383       VAR_CPU_BITS=64
13384       VAR_CPU_ENDIAN=big
13385       ;;
13386     *)
13387       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13388       ;;
13389   esac
13390 
13391   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13392   OPENJDK_BUILD_OS="$VAR_OS"
13393   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13394   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13395   OPENJDK_BUILD_CPU="$VAR_CPU"
13396   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13397   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13398   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13399 
13400 
13401 
13402 
13403 
13404 
13405 
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13407 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13409 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13410 
13411   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13412 
13413   case "$host_os" in
13414     *linux*)
13415       VAR_OS=linux
13416       VAR_OS_API=posix
13417       VAR_OS_ENV=linux
13418       ;;
13419     *solaris*)
13420       VAR_OS=solaris
13421       VAR_OS_API=posix
13422       VAR_OS_ENV=solaris
13423       ;;
13424     *darwin*)
13425       VAR_OS=macosx
13426       VAR_OS_API=posix
13427       VAR_OS_ENV=macosx
13428       ;;
13429     *bsd*)
13430       VAR_OS=bsd
13431       VAR_OS_API=posix
13432       VAR_OS_ENV=bsd
13433       ;;
13434     *cygwin*)
13435       VAR_OS=windows
13436       VAR_OS_API=winapi
13437       VAR_OS_ENV=windows.cygwin
13438       ;;
13439     *mingw*)
13440       VAR_OS=windows
13441       VAR_OS_API=winapi
13442       VAR_OS_ENV=windows.msys
13443       ;;
13444     *aix*)
13445       VAR_OS=aix
13446       VAR_OS_API=posix
13447       VAR_OS_ENV=aix
13448       ;;
13449     *)
13450       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13451       ;;
13452   esac
13453 
13454 
13455   # First argument is the cpu name from the trip/quad
13456   case "$host_cpu" in
13457     x86_64)
13458       VAR_CPU=x86_64
13459       VAR_CPU_ARCH=x86
13460       VAR_CPU_BITS=64
13461       VAR_CPU_ENDIAN=little
13462       ;;
13463     i?86)
13464       VAR_CPU=x86
13465       VAR_CPU_ARCH=x86
13466       VAR_CPU_BITS=32
13467       VAR_CPU_ENDIAN=little
13468       ;;
13469     arm*)
13470       VAR_CPU=arm
13471       VAR_CPU_ARCH=arm
13472       VAR_CPU_BITS=32
13473       VAR_CPU_ENDIAN=little
13474       ;;
13475     powerpc)
13476       VAR_CPU=ppc
13477       VAR_CPU_ARCH=ppc
13478       VAR_CPU_BITS=32
13479       VAR_CPU_ENDIAN=big
13480       ;;
13481     powerpc64)
13482       VAR_CPU=ppc64
13483       VAR_CPU_ARCH=ppc
13484       VAR_CPU_BITS=64
13485       VAR_CPU_ENDIAN=big
13486       ;;
13487     s390)
13488       VAR_CPU=s390
13489       VAR_CPU_ARCH=s390
13490       VAR_CPU_BITS=32
13491       VAR_CPU_ENDIAN=big
13492       ;;
13493     s390x)
13494       VAR_CPU=s390x
13495       VAR_CPU_ARCH=s390
13496       VAR_CPU_BITS=64
13497       VAR_CPU_ENDIAN=big
13498       ;;
13499     sparc)
13500       VAR_CPU=sparc
13501       VAR_CPU_ARCH=sparc
13502       VAR_CPU_BITS=32
13503       VAR_CPU_ENDIAN=big
13504       ;;
13505     sparcv9)
13506       VAR_CPU=sparcv9
13507       VAR_CPU_ARCH=sparc
13508       VAR_CPU_BITS=64
13509       VAR_CPU_ENDIAN=big
13510       ;;
13511     *)
13512       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13513       ;;
13514   esac
13515 
13516   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13517   OPENJDK_TARGET_OS="$VAR_OS"
13518   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13519   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13520   OPENJDK_TARGET_CPU="$VAR_CPU"
13521   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13522   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13523   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13524 
13525 
13526 
13527 
13528 
13529 
13530 
13531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13532 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13534 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13535 
13536 
13537 
13538 # Check whether --with-target-bits was given.
13539 if test "${with_target_bits+set}" = set; then :
13540   withval=$with_target_bits;
13541 fi
13542 
13543 
13544   # We have three types of compiles:
13545   # native  == normal compilation, target system == build system
13546   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13547   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13548   #
13549   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13550     # We're doing a proper cross-compilation
13551     COMPILE_TYPE="cross"
13552   else
13553     COMPILE_TYPE="native"
13554   fi
13555 
13556   if test "x$with_target_bits" != x; then
13557     if test "x$COMPILE_TYPE" = "xcross"; then
13558       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13559     fi
13560 
13561     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13562       # A reduced build is requested
13563       COMPILE_TYPE="reduced"
13564       OPENJDK_TARGET_CPU_BITS=32
13565       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13566         OPENJDK_TARGET_CPU=x86
13567       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13568         OPENJDK_TARGET_CPU=sparc
13569       else
13570         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13571       fi
13572     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13573       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
13574     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13575       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13576 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13577     else
13578       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13579     fi
13580   fi
13581 
13582 
13583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13584 $as_echo_n "checking compilation type... " >&6; }
13585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13586 $as_echo "$COMPILE_TYPE" >&6; }
13587 
13588 
13589   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13590     REQUIRED_OS_NAME=SunOS
13591     REQUIRED_OS_VERSION=5.10
13592   fi
13593   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13594     REQUIRED_OS_NAME=Linux
13595     REQUIRED_OS_VERSION=2.6
13596   fi
13597   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13598     REQUIRED_OS_NAME=Windows
13599     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13600       REQUIRED_OS_VERSION=5.2
13601     else
13602       REQUIRED_OS_VERSION=5.1
13603     fi
13604   fi
13605   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13606     REQUIRED_OS_NAME=Darwin
13607     REQUIRED_OS_VERSION=11.2
13608   fi
13609 
13610 
13611 
13612 
13613 
13614   # Also store the legacy naming of the cpu.
13615   # Ie i586 and amd64 instead of x86 and x86_64
13616   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13617   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13618     OPENJDK_TARGET_CPU_LEGACY="i586"
13619   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13620     # On all platforms except MacOSX replace x86_64 with amd64.
13621     OPENJDK_TARGET_CPU_LEGACY="amd64"
13622   fi
13623 
13624 
13625   # And the second legacy naming of the cpu.
13626   # Ie i386 and amd64 instead of x86 and x86_64.
13627   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13628   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13629     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13630   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13631     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13632   fi
13633 
13634 
13635   # This is the name of the cpu (but using i386 and amd64 instead of
13636   # x86 and x86_64, respectively), preceeded by a /, to be used when
13637   # locating libraries. On macosx, it's empty, though.
13638   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13639   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13640     OPENJDK_TARGET_CPU_LIBDIR=""
13641   fi
13642 
13643 
13644   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13645   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13646   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13647   OPENJDK_TARGET_CPU_ISADIR=""
13648   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13649     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13650       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13651     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13652       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13653     fi
13654   fi
13655 
13656 
13657   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13658   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13659   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13660     # On linux only, we replace x86 with i386.
13661     OPENJDK_TARGET_CPU_OSARCH="i386"
13662   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13663     # On all platforms except macosx, we replace x86_64 with amd64.
13664     OPENJDK_TARGET_CPU_OSARCH="amd64"
13665   fi
13666 
13667 
13668   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13669   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13670     OPENJDK_TARGET_CPU_JLI="i386"
13671   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13672     # On all platforms except macosx, we replace x86_64 with amd64.
13673     OPENJDK_TARGET_CPU_JLI="amd64"
13674   fi
13675   # Now setup the -D flags for building libjli.
13676   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13677   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13678     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13679       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13680     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13681       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13682     fi
13683   fi
13684 
13685 
13686   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13687   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13688     OPENJDK_TARGET_OS_API_DIR="solaris"
13689   fi
13690   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13691     OPENJDK_TARGET_OS_API_DIR="windows"
13692   fi
13693 
13694 
13695   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13696       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13697   else
13698       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13699   fi
13700 
13701 
13702   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13703     A_LP64="LP64:="
13704     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13705     # unpack200.exe
13706     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13707       ADD_LP64="-D_LP64=1"
13708     fi
13709   fi
13710   LP64=$A_LP64
13711 
13712 
13713   if test "x$COMPILE_TYPE" = "xcross"; then
13714     # FIXME: ... or should this include reduced builds..?
13715     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13716   else
13717     DEFINE_CROSS_COMPILE_ARCH=""
13718   fi
13719 
13720 
13721   # ZERO_ARCHDEF is used to enable architecture-specific code
13722   case "${OPENJDK_TARGET_CPU}" in
13723     ppc*)    ZERO_ARCHDEF=PPC   ;;
13724     s390*)   ZERO_ARCHDEF=S390  ;;
13725     sparc*)  ZERO_ARCHDEF=SPARC ;;
13726     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13727     x86)     ZERO_ARCHDEF=IA32  ;;
13728     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13729   esac
13730 
13731 
13732 
13733 
13734 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13735 
13736   # Locate the directory of this script.
13737   SCRIPT="$0"
13738   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
13739 
13740   # Where is the source? It is located two levels above the configure script.
13741   CURDIR="$PWD"
13742   cd "$AUTOCONF_DIR/../.."
13743   SRC_ROOT="`$THEPWDCMD -L`"
13744 
13745   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13746     PATH_SEP=";"
13747 
13748   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13749   if test $SRC_ROOT_LENGTH -gt 100; then
13750     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13751   fi
13752 
13753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13755 $as_echo_n "checking cygwin release... " >&6; }
13756     CYGWIN_VERSION=`$UNAME -r`
13757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13758 $as_echo "$CYGWIN_VERSION" >&6; }
13759     WINDOWS_ENV_VENDOR='cygwin'
13760     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13761 
13762     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13763     if test "x$CYGWIN_VERSION_OK" = x; then
13764       { $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
13765 $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;}
13766       as_fn_error $? "Cannot continue" "$LINENO" 5
13767     fi
13768     if test "x$CYGPATH" = x; then
13769       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13770     fi
13771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13772 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13773     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13774     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13775     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13776     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13778 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13779     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13780     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13781     if test "x$test_cygdrive_prefix" = x; then
13782       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13783     fi
13784   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13786 $as_echo_n "checking msys release... " >&6; }
13787     MSYS_VERSION=`$UNAME -r`
13788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13789 $as_echo "$MSYS_VERSION" >&6; }
13790 
13791     WINDOWS_ENV_VENDOR='msys'
13792     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13793 
13794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13795 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13796     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13797     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13798 
13799   windows_path="$MSYS_ROOT_PATH"
13800   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13801     unix_path=`$CYGPATH -u "$windows_path"`
13802     MSYS_ROOT_PATH="$unix_path"
13803   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13804     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13805     MSYS_ROOT_PATH="$unix_path"
13806   fi
13807 
13808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13809 $as_echo "$MSYS_ROOT_PATH" >&6; }
13810     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13811   else
13812     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13813   fi
13814 
13815   # Test if windows or unix (cygwin/msys) find is first in path.
13816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13817 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13818   FIND_BINARY_OUTPUT=`find --version 2>&1`
13819   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13821 $as_echo "unix style" >&6; }
13822   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13824 $as_echo "Windows" >&6; }
13825     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13826 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13827     { $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
13828 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13829     as_fn_error $? "Cannot continue" "$LINENO" 5
13830   else
13831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13832 $as_echo "unknown" >&6; }
13833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13834 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13835   fi
13836 
13837   else
13838     PATH_SEP=":"
13839   fi
13840 
13841 
13842 
13843   cd "$CURDIR"
13844 
13845 
13846   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13847 
13848   # Input might be given as Windows format, start by converting to
13849   # unix format.
13850   path="$SRC_ROOT"
13851   new_path=`$CYGPATH -u "$path"`
13852 
13853   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13854   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13855   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13856   # "foo.exe" is OK but "foo" is an error.
13857   #
13858   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13859   # It is also a way to make sure we got the proper file name for the real test later on.
13860   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13861   if test "x$test_shortpath" = x; then
13862     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13863 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13864     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
13865   fi
13866 
13867   # Call helper function which possibly converts this using DOS-style short mode.
13868   # If so, the updated path is stored in $new_path.
13869 
13870   input_path="$new_path"
13871   # Check if we need to convert this using DOS-style short mode. If the path
13872   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13873   # take no chances and rewrite it.
13874   # Note: m4 eats our [], so we need to use [ and ] instead.
13875   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13876   if test "x$has_forbidden_chars" != x; then
13877     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13878     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13879     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13880     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13881       # Going to short mode and back again did indeed matter. Since short mode is
13882       # case insensitive, let's make it lowercase to improve readability.
13883       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13884       # Now convert it back to Unix-stile (cygpath)
13885       input_path=`$CYGPATH -u "$shortmode_path"`
13886       new_path="$input_path"
13887     fi
13888   fi
13889 
13890   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13891   if test "x$test_cygdrive_prefix" = x; then
13892     # As a simple fix, exclude /usr/bin since it's not a real path.
13893     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13894       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13895       # a path prefixed by /cygdrive for fixpath to work.
13896       new_path="$CYGWIN_ROOT_PATH$input_path"
13897     fi
13898   fi
13899 
13900 
13901   if test "x$path" != "x$new_path"; then
13902     SRC_ROOT="$new_path"
13903     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13904 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13905   fi
13906 
13907   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13908 
13909   path="$SRC_ROOT"
13910   has_colon=`$ECHO $path | $GREP ^.:`
13911   new_path="$path"
13912   if test "x$has_colon" = x; then
13913     # Not in mixed or Windows style, start by that.
13914     new_path=`cmd //c echo $path`
13915   fi
13916 
13917 
13918   input_path="$new_path"
13919   # Check if we need to convert this using DOS-style short mode. If the path
13920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13921   # take no chances and rewrite it.
13922   # Note: m4 eats our [], so we need to use [ and ] instead.
13923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13924   if test "x$has_forbidden_chars" != x; then
13925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13926     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13927   fi
13928 
13929 
13930   windows_path="$new_path"
13931   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13932     unix_path=`$CYGPATH -u "$windows_path"`
13933     new_path="$unix_path"
13934   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13935     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13936     new_path="$unix_path"
13937   fi
13938 
13939   if test "x$path" != "x$new_path"; then
13940     SRC_ROOT="$new_path"
13941     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13942 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13943   fi
13944 
13945   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13946   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13947 
13948   else
13949     # We're on a posix platform. Hooray! :)
13950     path="$SRC_ROOT"
13951     has_space=`$ECHO "$path" | $GREP " "`
13952     if test "x$has_space" != x; then
13953       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13954 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13955       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13956     fi
13957 
13958     # Use eval to expand a potential ~
13959     eval path="$path"
13960     if test ! -f "$path" && test ! -d "$path"; then
13961       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
13962     fi
13963 
13964     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
13965   fi
13966 
13967 
13968   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13969 
13970   # Input might be given as Windows format, start by converting to
13971   # unix format.
13972   path="$CURDIR"
13973   new_path=`$CYGPATH -u "$path"`
13974 
13975   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13976   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13977   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13978   # "foo.exe" is OK but "foo" is an error.
13979   #
13980   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13981   # It is also a way to make sure we got the proper file name for the real test later on.
13982   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13983   if test "x$test_shortpath" = x; then
13984     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
13985 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
13986     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
13987   fi
13988 
13989   # Call helper function which possibly converts this using DOS-style short mode.
13990   # If so, the updated path is stored in $new_path.
13991 
13992   input_path="$new_path"
13993   # Check if we need to convert this using DOS-style short mode. If the path
13994   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13995   # take no chances and rewrite it.
13996   # Note: m4 eats our [], so we need to use [ and ] instead.
13997   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13998   if test "x$has_forbidden_chars" != x; then
13999     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14000     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14001     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14002     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14003       # Going to short mode and back again did indeed matter. Since short mode is
14004       # case insensitive, let's make it lowercase to improve readability.
14005       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14006       # Now convert it back to Unix-stile (cygpath)
14007       input_path=`$CYGPATH -u "$shortmode_path"`
14008       new_path="$input_path"
14009     fi
14010   fi
14011 
14012   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14013   if test "x$test_cygdrive_prefix" = x; then
14014     # As a simple fix, exclude /usr/bin since it's not a real path.
14015     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14016       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14017       # a path prefixed by /cygdrive for fixpath to work.
14018       new_path="$CYGWIN_ROOT_PATH$input_path"
14019     fi
14020   fi
14021 
14022 
14023   if test "x$path" != "x$new_path"; then
14024     CURDIR="$new_path"
14025     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14026 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14027   fi
14028 
14029   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14030 
14031   path="$CURDIR"
14032   has_colon=`$ECHO $path | $GREP ^.:`
14033   new_path="$path"
14034   if test "x$has_colon" = x; then
14035     # Not in mixed or Windows style, start by that.
14036     new_path=`cmd //c echo $path`
14037   fi
14038 
14039 
14040   input_path="$new_path"
14041   # Check if we need to convert this using DOS-style short mode. If the path
14042   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14043   # take no chances and rewrite it.
14044   # Note: m4 eats our [], so we need to use [ and ] instead.
14045   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14046   if test "x$has_forbidden_chars" != x; then
14047     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14048     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14049   fi
14050 
14051 
14052   windows_path="$new_path"
14053   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14054     unix_path=`$CYGPATH -u "$windows_path"`
14055     new_path="$unix_path"
14056   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14057     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14058     new_path="$unix_path"
14059   fi
14060 
14061   if test "x$path" != "x$new_path"; then
14062     CURDIR="$new_path"
14063     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14064 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14065   fi
14066 
14067   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14068   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14069 
14070   else
14071     # We're on a posix platform. Hooray! :)
14072     path="$CURDIR"
14073     has_space=`$ECHO "$path" | $GREP " "`
14074     if test "x$has_space" != x; then
14075       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14076 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14077       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14078     fi
14079 
14080     # Use eval to expand a potential ~
14081     eval path="$path"
14082     if test ! -f "$path" && test ! -d "$path"; then
14083       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14084     fi
14085 
14086     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14087   fi
14088 
14089 
14090   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14091     # Add extra search paths on solaris for utilities like ar and as etc...
14092     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14093   fi
14094 
14095   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14096   # is not correct.
14097 
14098 # Check whether --with-sys-root was given.
14099 if test "${with_sys_root+set}" = set; then :
14100   withval=$with_sys_root;
14101 fi
14102 
14103 
14104   if test "x$with_sys_root" != x; then
14105     SYS_ROOT=$with_sys_root
14106   else
14107     SYS_ROOT=/
14108   fi
14109 
14110 
14111 
14112 # Check whether --with-tools-dir was given.
14113 if test "${with_tools_dir+set}" = set; then :
14114   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14115 
14116 fi
14117 
14118 
14119 
14120 # Check whether --with-devkit was given.
14121 if test "${with_devkit+set}" = set; then :
14122   withval=$with_devkit;
14123         if test "x$with_sys_root" != x; then
14124           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14125         fi
14126 
14127   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14128 
14129   # Input might be given as Windows format, start by converting to
14130   # unix format.
14131   path="$with_devkit"
14132   new_path=`$CYGPATH -u "$path"`
14133 
14134   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14135   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14136   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14137   # "foo.exe" is OK but "foo" is an error.
14138   #
14139   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14140   # It is also a way to make sure we got the proper file name for the real test later on.
14141   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14142   if test "x$test_shortpath" = x; then
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14144 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14145     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14146   fi
14147 
14148   # Call helper function which possibly converts this using DOS-style short mode.
14149   # If so, the updated path is stored in $new_path.
14150 
14151   input_path="$new_path"
14152   # Check if we need to convert this using DOS-style short mode. If the path
14153   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14154   # take no chances and rewrite it.
14155   # Note: m4 eats our [], so we need to use [ and ] instead.
14156   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14157   if test "x$has_forbidden_chars" != x; then
14158     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14159     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14160     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14161     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14162       # Going to short mode and back again did indeed matter. Since short mode is
14163       # case insensitive, let's make it lowercase to improve readability.
14164       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14165       # Now convert it back to Unix-stile (cygpath)
14166       input_path=`$CYGPATH -u "$shortmode_path"`
14167       new_path="$input_path"
14168     fi
14169   fi
14170 
14171   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14172   if test "x$test_cygdrive_prefix" = x; then
14173     # As a simple fix, exclude /usr/bin since it's not a real path.
14174     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14175       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14176       # a path prefixed by /cygdrive for fixpath to work.
14177       new_path="$CYGWIN_ROOT_PATH$input_path"
14178     fi
14179   fi
14180 
14181 
14182   if test "x$path" != "x$new_path"; then
14183     with_devkit="$new_path"
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14185 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14186   fi
14187 
14188   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14189 
14190   path="$with_devkit"
14191   has_colon=`$ECHO $path | $GREP ^.:`
14192   new_path="$path"
14193   if test "x$has_colon" = x; then
14194     # Not in mixed or Windows style, start by that.
14195     new_path=`cmd //c echo $path`
14196   fi
14197 
14198 
14199   input_path="$new_path"
14200   # Check if we need to convert this using DOS-style short mode. If the path
14201   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14202   # take no chances and rewrite it.
14203   # Note: m4 eats our [], so we need to use [ and ] instead.
14204   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14205   if test "x$has_forbidden_chars" != x; then
14206     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14207     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14208   fi
14209 
14210 
14211   windows_path="$new_path"
14212   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14213     unix_path=`$CYGPATH -u "$windows_path"`
14214     new_path="$unix_path"
14215   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14216     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14217     new_path="$unix_path"
14218   fi
14219 
14220   if test "x$path" != "x$new_path"; then
14221     with_devkit="$new_path"
14222     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14223 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14224   fi
14225 
14226   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14227   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14228 
14229   else
14230     # We're on a posix platform. Hooray! :)
14231     path="$with_devkit"
14232     has_space=`$ECHO "$path" | $GREP " "`
14233     if test "x$has_space" != x; then
14234       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14235 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14236       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14237     fi
14238 
14239     # Use eval to expand a potential ~
14240     eval path="$path"
14241     if test ! -f "$path" && test ! -d "$path"; then
14242       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14243     fi
14244 
14245     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14246   fi
14247 
14248 
14249   if test "x$TOOLS_DIR" = x; then
14250     TOOLS_DIR="$with_devkit/bin"
14251   else
14252     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14253   fi
14254 
14255         if test -d "$with_devkit/$host_alias/libc"; then
14256           SYS_ROOT=$with_devkit/$host_alias/libc
14257         elif test -d "$with_devkit/$host/sys-root"; then
14258           SYS_ROOT=$with_devkit/$host/sys-root
14259         fi
14260 
14261 fi
14262 
14263 
14264 
14265   # Setup default logging of stdout and stderr to build.log in the output root.
14266   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14267   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14268   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14269 
14270 
14271 
14272 
14273 
14274 # Check if it's a pure open build or if custom sources are to be used.
14275 
14276   # Check whether --enable-openjdk-only was given.
14277 if test "${enable_openjdk_only+set}" = set; then :
14278   enableval=$enable_openjdk_only;
14279 else
14280   enable_openjdk_only="no"
14281 fi
14282 
14283 
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14285 $as_echo_n "checking for presence of closed sources... " >&6; }
14286   if test -d "$SRC_ROOT/jdk/src/closed"; then
14287     CLOSED_SOURCE_PRESENT=yes
14288   else
14289     CLOSED_SOURCE_PRESENT=no
14290   fi
14291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14292 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14293 
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14295 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14296   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14298 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14299 
14300   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14301     OPENJDK=true
14302     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14303       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14304 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14305     fi
14306   else
14307     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14308       OPENJDK=true
14309     else
14310       OPENJDK=false
14311     fi
14312   fi
14313 
14314   if test "x$OPENJDK" = "xtrue"; then
14315     SET_OPENJDK="OPENJDK=true"
14316   fi
14317 
14318 
14319 
14320 
14321 # These are needed to be able to create a configuration name (and thus the output directory)
14322 
14323   ###############################################################################
14324   #
14325   # Check which variant of the JDK that we want to build.
14326   # Currently we have:
14327   #    normal:   standard edition
14328   # but the custom make system may add other variants
14329   #
14330   # Effectively the JDK variant gives a name to a specific set of
14331   # modules to compile into the JDK. In the future, these modules
14332   # might even be Jigsaw modules.
14333   #
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14335 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14336 
14337 # Check whether --with-jdk-variant was given.
14338 if test "${with_jdk_variant+set}" = set; then :
14339   withval=$with_jdk_variant;
14340 fi
14341 
14342 
14343   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14344     JDK_VARIANT="normal"
14345   else
14346     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14347   fi
14348 
14349 
14350 
14351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14352 $as_echo "$JDK_VARIANT" >&6; }
14353 
14354 
14355 ###############################################################################
14356 #
14357 # Check which interpreter of the JVM we want to build.
14358 # Currently we have:
14359 #    template: Template interpreter (the default)
14360 #    cpp     : C++ interpreter
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14362 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14363 
14364 # Check whether --with-jvm-interpreter was given.
14365 if test "${with_jvm_interpreter+set}" = set; then :
14366   withval=$with_jvm_interpreter;
14367 fi
14368 
14369 
14370 if test "x$with_jvm_interpreter" = x; then
14371      with_jvm_interpreter="template"
14372 fi
14373 
14374 JVM_INTERPRETER="$with_jvm_interpreter"
14375 
14376 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14377    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14378 fi
14379 
14380 
14381 
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14383 $as_echo "$with_jvm_interpreter" >&6; }
14384 
14385 
14386 
14387   ###############################################################################
14388   #
14389   # Check which variants of the JVM that we want to build.
14390   # Currently we have:
14391   #    server: normal interpreter and a tiered C1/C2 compiler
14392   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14393   #    minimal1: reduced form of client with optional VM services and features stripped out
14394   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14395   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14396   #    zero: no machine code interpreter, no compiler
14397   #    zeroshark: zero interpreter and shark/llvm compiler backend
14398 #    core: interpreter only, no compiler (only works on some platforms)
14399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14400 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14401 
14402 # Check whether --with-jvm-variants was given.
14403 if test "${with_jvm_variants+set}" = set; then :
14404   withval=$with_jvm_variants;
14405 fi
14406 
14407 
14408   if test "x$with_jvm_variants" = x; then
14409     with_jvm_variants="server"
14410   fi
14411 
14412   JVM_VARIANTS=",$with_jvm_variants,"
14413   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,//'`
14414 
14415   if test "x$TEST_VARIANTS" != "x,"; then
14416      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14417   fi
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14419 $as_echo "$with_jvm_variants" >&6; }
14420 
14421   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14422   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14423   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14424   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14425   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14426   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14427   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14428 
14429   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14430     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14431       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14432     fi
14433   fi
14434   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14435     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14436       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14437     fi
14438   fi
14439   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14440     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14441       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14442     fi
14443   fi
14444 
14445   # Replace the commas with AND for use in the build directory name.
14446   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14447   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/'`
14448   if test "x$COUNT_VARIANTS" != "x,1"; then
14449     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14450   else
14451     BUILDING_MULTIPLE_JVM_VARIANTS=no
14452   fi
14453 
14454 
14455 
14456 
14457 
14458 
14459 
14460 
14461 
14462 
14463   INCLUDE_SA=true
14464   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14465     INCLUDE_SA=false
14466   fi
14467   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14468     INCLUDE_SA=false
14469   fi
14470   if test "x$VAR_CPU" = xppc64 ; then
14471     INCLUDE_SA=false
14472   fi
14473 
14474 
14475   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14476     MACOSX_UNIVERSAL="true"
14477   fi
14478 
14479 
14480 
14481 
14482   ###############################################################################
14483   #
14484   # Set the debug level
14485   #    release: no debug information, all optimizations, no asserts.
14486   #    fastdebug: debug information (-g), all optimizations, all asserts
14487   #    slowdebug: debug information (-g), no optimizations, all asserts
14488   #
14489   DEBUG_LEVEL="release"
14490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14491 $as_echo_n "checking which debug level to use... " >&6; }
14492   # Check whether --enable-debug was given.
14493 if test "${enable_debug+set}" = set; then :
14494   enableval=$enable_debug;
14495         ENABLE_DEBUG="${enableval}"
14496         DEBUG_LEVEL="fastdebug"
14497 
14498 else
14499   ENABLE_DEBUG="no"
14500 fi
14501 
14502 
14503 
14504 # Check whether --with-debug-level was given.
14505 if test "${with_debug_level+set}" = set; then :
14506   withval=$with_debug_level;
14507         DEBUG_LEVEL="${withval}"
14508         if test "x$ENABLE_DEBUG" = xyes; then
14509           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14510         fi
14511 
14512 fi
14513 
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14515 $as_echo "$DEBUG_LEVEL" >&6; }
14516 
14517   if test "x$DEBUG_LEVEL" != xrelease && \
14518       test "x$DEBUG_LEVEL" != xfastdebug && \
14519       test "x$DEBUG_LEVEL" != xslowdebug; then
14520     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14521   fi
14522 
14523 
14524   ###############################################################################
14525   #
14526   # Setup legacy vars/targets and new vars to deal with different debug levels.
14527   #
14528 
14529   case $DEBUG_LEVEL in
14530     release )
14531       VARIANT="OPT"
14532       FASTDEBUG="false"
14533       DEBUG_CLASSFILES="false"
14534       BUILD_VARIANT_RELEASE=""
14535       HOTSPOT_DEBUG_LEVEL="product"
14536       HOTSPOT_EXPORT="product"
14537       ;;
14538     fastdebug )
14539       VARIANT="DBG"
14540       FASTDEBUG="true"
14541       DEBUG_CLASSFILES="true"
14542       BUILD_VARIANT_RELEASE="-fastdebug"
14543       HOTSPOT_DEBUG_LEVEL="fastdebug"
14544       HOTSPOT_EXPORT="fastdebug"
14545       ;;
14546     slowdebug )
14547       VARIANT="DBG"
14548       FASTDEBUG="false"
14549       DEBUG_CLASSFILES="true"
14550       BUILD_VARIANT_RELEASE="-debug"
14551       HOTSPOT_DEBUG_LEVEL="jvmg"
14552       HOTSPOT_EXPORT="debug"
14553       ;;
14554   esac
14555 
14556   #####
14557   # Generate the legacy makefile targets for hotspot.
14558   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14559   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14560   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14561   # But until then ...
14562   HOTSPOT_TARGET=""
14563 
14564   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14565     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14566   fi
14567 
14568   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14569     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14570   fi
14571 
14572   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14573     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14574   fi
14575 
14576   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14577     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14578   fi
14579 
14580   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14581     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14582   fi
14583 
14584   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14585     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14586   fi
14587 
14588   if test "x$JVM_VARIANT_CORE" = xtrue; then
14589     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14590   fi
14591 
14592   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14593 
14594   # On Macosx universal binaries are produced, but they only contain
14595   # 64 bit intel. This invalidates control of which jvms are built
14596   # from configure, but only server is valid anyway. Fix this
14597   # when hotspot makefiles are rewritten.
14598   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14599     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14600   fi
14601 
14602   #####
14603 
14604 
14605 
14606 
14607 
14608 
14609 
14610 
14611 # With basic setup done, call the custom early hook.
14612 
14613 
14614 # To properly create a configuration name, we need to have the OpenJDK target
14615 # and options (variants and debug level) parsed.
14616 
14617 
14618 
14619 # Check whether --with-conf-name was given.
14620 if test "${with_conf_name+set}" = set; then :
14621   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14622 fi
14623 
14624 
14625   # Test from where we are running configure, in or outside of src root.
14626   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14627       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14628       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14629     # We are running configure from the src root.
14630     # Create a default ./build/target-variant-debuglevel output root.
14631     if test "x${CONF_NAME}" = x; then
14632       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14633     fi
14634     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14635     $MKDIR -p "$OUTPUT_ROOT"
14636     if test ! -d "$OUTPUT_ROOT"; then
14637       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14638     fi
14639   else
14640     # We are running configure from outside of the src dir.
14641     # Then use the current directory as output dir!
14642     # If configuration is situated in normal build directory, just use the build
14643     # directory name as configuration name, otherwise use the complete path.
14644     if test "x${CONF_NAME}" = x; then
14645       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14646     fi
14647     OUTPUT_ROOT="$CURDIR"
14648 
14649     # WARNING: This might be a bad thing to do. You need to be sure you want to
14650     # have a configuration in this directory. Do some sanity checks!
14651 
14652     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14653       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14654       # other files
14655       files_present=`$LS $OUTPUT_ROOT`
14656       # Configure has already touched config.log and confdefs.h in the current dir when this check
14657       # is performed.
14658       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14659       | $TR -d '\n'`
14660       if test "x$filtered_files" != x; then
14661         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14662 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14663         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14664 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14665         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14666 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14667         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14668 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14669         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14670 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14671         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14672 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14673         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14674 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14675         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14676       fi
14677     fi
14678   fi
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14680 $as_echo_n "checking what configuration name to use... " >&6; }
14681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14682 $as_echo "$CONF_NAME" >&6; }
14683 
14684 
14685   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14686 
14687   # Input might be given as Windows format, start by converting to
14688   # unix format.
14689   path="$OUTPUT_ROOT"
14690   new_path=`$CYGPATH -u "$path"`
14691 
14692   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14693   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14694   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14695   # "foo.exe" is OK but "foo" is an error.
14696   #
14697   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14698   # It is also a way to make sure we got the proper file name for the real test later on.
14699   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14700   if test "x$test_shortpath" = x; then
14701     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14702 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14703     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14704   fi
14705 
14706   # Call helper function which possibly converts this using DOS-style short mode.
14707   # If so, the updated path is stored in $new_path.
14708 
14709   input_path="$new_path"
14710   # Check if we need to convert this using DOS-style short mode. If the path
14711   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14712   # take no chances and rewrite it.
14713   # Note: m4 eats our [], so we need to use [ and ] instead.
14714   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14715   if test "x$has_forbidden_chars" != x; then
14716     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14717     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14718     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14719     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14720       # Going to short mode and back again did indeed matter. Since short mode is
14721       # case insensitive, let's make it lowercase to improve readability.
14722       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14723       # Now convert it back to Unix-stile (cygpath)
14724       input_path=`$CYGPATH -u "$shortmode_path"`
14725       new_path="$input_path"
14726     fi
14727   fi
14728 
14729   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14730   if test "x$test_cygdrive_prefix" = x; then
14731     # As a simple fix, exclude /usr/bin since it's not a real path.
14732     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14733       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14734       # a path prefixed by /cygdrive for fixpath to work.
14735       new_path="$CYGWIN_ROOT_PATH$input_path"
14736     fi
14737   fi
14738 
14739 
14740   if test "x$path" != "x$new_path"; then
14741     OUTPUT_ROOT="$new_path"
14742     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14743 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14744   fi
14745 
14746   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14747 
14748   path="$OUTPUT_ROOT"
14749   has_colon=`$ECHO $path | $GREP ^.:`
14750   new_path="$path"
14751   if test "x$has_colon" = x; then
14752     # Not in mixed or Windows style, start by that.
14753     new_path=`cmd //c echo $path`
14754   fi
14755 
14756 
14757   input_path="$new_path"
14758   # Check if we need to convert this using DOS-style short mode. If the path
14759   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14760   # take no chances and rewrite it.
14761   # Note: m4 eats our [], so we need to use [ and ] instead.
14762   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14763   if test "x$has_forbidden_chars" != x; then
14764     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14765     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14766   fi
14767 
14768 
14769   windows_path="$new_path"
14770   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14771     unix_path=`$CYGPATH -u "$windows_path"`
14772     new_path="$unix_path"
14773   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14774     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14775     new_path="$unix_path"
14776   fi
14777 
14778   if test "x$path" != "x$new_path"; then
14779     OUTPUT_ROOT="$new_path"
14780     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14781 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14782   fi
14783 
14784   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14785   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14786 
14787   else
14788     # We're on a posix platform. Hooray! :)
14789     path="$OUTPUT_ROOT"
14790     has_space=`$ECHO "$path" | $GREP " "`
14791     if test "x$has_space" != x; then
14792       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14793 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14794       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14795     fi
14796 
14797     # Use eval to expand a potential ~
14798     eval path="$path"
14799     if test ! -f "$path" && test ! -d "$path"; then
14800       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14801     fi
14802 
14803     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14804   fi
14805 
14806 
14807   SPEC=$OUTPUT_ROOT/spec.gmk
14808 
14809   CONF_NAME=$CONF_NAME
14810 
14811   OUTPUT_ROOT=$OUTPUT_ROOT
14812 
14813 
14814   # Most of the probed defines are put into config.h
14815   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14816 
14817   # The spec.gmk file contains all variables for the make system.
14818   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14819 
14820   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14821   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14822 
14823   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14824   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14825 
14826   # The compare.sh is used to compare the build output to other builds.
14827   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14828 
14829   # Spec.sh is currently used by compare-objects.sh
14830   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14831 
14832   # The generated Makefile knows where the spec.gmk is and where the source is.
14833   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14834   # which will look for generated configurations
14835   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14836 
14837 
14838   # Save the arguments given to us
14839   echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
14840 
14841 
14842 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
14843 
14844   for ac_prog in apt-get yum port pkgutil pkgadd
14845 do
14846   # Extract the first word of "$ac_prog", so it can be a program name with args.
14847 set dummy $ac_prog; ac_word=$2
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14849 $as_echo_n "checking for $ac_word... " >&6; }
14850 if ${ac_cv_prog_PKGHANDLER+:} false; then :
14851   $as_echo_n "(cached) " >&6
14852 else
14853   if test -n "$PKGHANDLER"; then
14854   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
14855 else
14856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857 for as_dir in $PATH
14858 do
14859   IFS=$as_save_IFS
14860   test -z "$as_dir" && as_dir=.
14861     for ac_exec_ext in '' $ac_executable_extensions; do
14862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863     ac_cv_prog_PKGHANDLER="$ac_prog"
14864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14865     break 2
14866   fi
14867 done
14868   done
14869 IFS=$as_save_IFS
14870 
14871 fi
14872 fi
14873 PKGHANDLER=$ac_cv_prog_PKGHANDLER
14874 if test -n "$PKGHANDLER"; then
14875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
14876 $as_echo "$PKGHANDLER" >&6; }
14877 else
14878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879 $as_echo "no" >&6; }
14880 fi
14881 
14882 
14883   test -n "$PKGHANDLER" && break
14884 done
14885 
14886 
14887 
14888 # Setup tools that requires more complex handling, or that is not needed by the configure script.
14889 
14890 
14891   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
14892   if test "x$MAKE" != x; then
14893     # User has supplied a make, test it.
14894     if test ! -f "$MAKE"; then
14895       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
14896     fi
14897 
14898   MAKE_CANDIDATE=""$MAKE""
14899   DESCRIPTION="user supplied MAKE=$MAKE"
14900   if test "x$MAKE_CANDIDATE" != x; then
14901     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
14902 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
14903     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
14904     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
14905     if test "x$IS_GNU_MAKE" = x; then
14906       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
14907 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
14908     else
14909       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
14910       if test "x$IS_MODERN_MAKE" = x; then
14911         { $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
14912 $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;}
14913       else
14914         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14915           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14916             MAKE_EXPECTED_ENV='cygwin'
14917           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14918             MAKE_EXPECTED_ENV='msys'
14919           else
14920             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
14921           fi
14922           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
14923           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
14924         else
14925           # Not relevant for non-Windows
14926           IS_MAKE_CORRECT_ENV=true
14927         fi
14928         if test "x$IS_MAKE_CORRECT_ENV" = x; then
14929           { $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
14930 $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;}
14931         else
14932           FOUND_MAKE=$MAKE_CANDIDATE
14933 
14934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14935 
14936   # First separate the path from the arguments. This will split at the first
14937   # space.
14938   complete="$FOUND_MAKE"
14939   path="${complete%% *}"
14940   tmp="$complete EOL"
14941   arguments="${tmp#* }"
14942 
14943   # Input might be given as Windows format, start by converting to
14944   # unix format.
14945   new_path=`$CYGPATH -u "$path"`
14946 
14947   # Now try to locate executable using which
14948   new_path=`$WHICH "$new_path" 2> /dev/null`
14949   # bat and cmd files are not always considered executable in cygwin causing which
14950   # to not find them
14951   if test "x$new_path" = x \
14952       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14953       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14954     new_path=`$CYGPATH -u "$path"`
14955   fi
14956   if test "x$new_path" = x; then
14957     # Oops. Which didn't find the executable.
14958     # The splitting of arguments from the executable at a space might have been incorrect,
14959     # since paths with space are more likely in Windows. Give it another try with the whole
14960     # argument.
14961     path="$complete"
14962     arguments="EOL"
14963     new_path=`$CYGPATH -u "$path"`
14964     new_path=`$WHICH "$new_path" 2> /dev/null`
14965     # bat and cmd files are not always considered executable in cygwin causing which
14966     # to not find them
14967     if test "x$new_path" = x \
14968         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14969         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14970       new_path=`$CYGPATH -u "$path"`
14971     fi
14972     if test "x$new_path" = x; then
14973       # It's still not found. Now this is an unrecoverable error.
14974       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
14975 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
14976       has_space=`$ECHO "$complete" | $GREP " "`
14977       if test "x$has_space" != x; then
14978         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
14979 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
14980       fi
14981       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14982     fi
14983   fi
14984 
14985   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14986   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14987   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14988   # "foo.exe" is OK but "foo" is an error.
14989   #
14990   # This test is therefore slightly more accurate than "test -f" to check for file presence.
14991   # It is also a way to make sure we got the proper file name for the real test later on.
14992   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14993   if test "x$test_shortpath" = x; then
14994     # Short path failed, file does not exist as specified.
14995     # Try adding .exe or .cmd
14996     if test -f "${new_path}.exe"; then
14997       input_to_shortpath="${new_path}.exe"
14998     elif test -f "${new_path}.cmd"; then
14999       input_to_shortpath="${new_path}.cmd"
15000     else
15001       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15002 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15003       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15004 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15005       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15006     fi
15007   else
15008     input_to_shortpath="$new_path"
15009   fi
15010 
15011   # Call helper function which possibly converts this using DOS-style short mode.
15012   # If so, the updated path is stored in $new_path.
15013   new_path="$input_to_shortpath"
15014 
15015   input_path="$input_to_shortpath"
15016   # Check if we need to convert this using DOS-style short mode. If the path
15017   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15018   # take no chances and rewrite it.
15019   # Note: m4 eats our [], so we need to use [ and ] instead.
15020   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15021   if test "x$has_forbidden_chars" != x; then
15022     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15023     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15024     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15025     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15026       # Going to short mode and back again did indeed matter. Since short mode is
15027       # case insensitive, let's make it lowercase to improve readability.
15028       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15029       # Now convert it back to Unix-stile (cygpath)
15030       input_path=`$CYGPATH -u "$shortmode_path"`
15031       new_path="$input_path"
15032     fi
15033   fi
15034 
15035   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15036   if test "x$test_cygdrive_prefix" = x; then
15037     # As a simple fix, exclude /usr/bin since it's not a real path.
15038     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15039       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15040       # a path prefixed by /cygdrive for fixpath to work.
15041       new_path="$CYGWIN_ROOT_PATH$input_path"
15042     fi
15043   fi
15044 
15045   # remove trailing .exe if any
15046   new_path="${new_path/%.exe/}"
15047 
15048   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15049 
15050   # First separate the path from the arguments. This will split at the first
15051   # space.
15052   complete="$FOUND_MAKE"
15053   path="${complete%% *}"
15054   tmp="$complete EOL"
15055   arguments="${tmp#* }"
15056 
15057   # Input might be given as Windows format, start by converting to
15058   # unix format.
15059   new_path="$path"
15060 
15061   windows_path="$new_path"
15062   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15063     unix_path=`$CYGPATH -u "$windows_path"`
15064     new_path="$unix_path"
15065   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15066     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15067     new_path="$unix_path"
15068   fi
15069 
15070 
15071   # Now try to locate executable using which
15072   new_path=`$WHICH "$new_path" 2> /dev/null`
15073 
15074   if test "x$new_path" = x; then
15075     # Oops. Which didn't find the executable.
15076     # The splitting of arguments from the executable at a space might have been incorrect,
15077     # since paths with space are more likely in Windows. Give it another try with the whole
15078     # argument.
15079     path="$complete"
15080     arguments="EOL"
15081     new_path="$path"
15082 
15083   windows_path="$new_path"
15084   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15085     unix_path=`$CYGPATH -u "$windows_path"`
15086     new_path="$unix_path"
15087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15088     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15089     new_path="$unix_path"
15090   fi
15091 
15092 
15093     new_path=`$WHICH "$new_path" 2> /dev/null`
15094 
15095     if test "x$new_path" = x; then
15096       # It's still not found. Now this is an unrecoverable error.
15097       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15098 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15099       has_space=`$ECHO "$complete" | $GREP " "`
15100       if test "x$has_space" != x; then
15101         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15102 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15103       fi
15104       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15105     fi
15106   fi
15107 
15108   # Now new_path has a complete unix path to the binary
15109   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15110     # Keep paths in /bin as-is, but remove trailing .exe if any
15111     new_path="${new_path/%.exe/}"
15112     # Do not save /bin paths to all_fixpath_prefixes!
15113   else
15114     # Not in mixed or Windows style, start by that.
15115     new_path=`cmd //c echo $new_path`
15116 
15117   input_path="$new_path"
15118   # Check if we need to convert this using DOS-style short mode. If the path
15119   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15120   # take no chances and rewrite it.
15121   # Note: m4 eats our [], so we need to use [ and ] instead.
15122   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15123   if test "x$has_forbidden_chars" != x; then
15124     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15125     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15126   fi
15127 
15128     # Output is in $new_path
15129 
15130   windows_path="$new_path"
15131   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15132     unix_path=`$CYGPATH -u "$windows_path"`
15133     new_path="$unix_path"
15134   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15135     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15136     new_path="$unix_path"
15137   fi
15138 
15139     # remove trailing .exe if any
15140     new_path="${new_path/%.exe/}"
15141 
15142     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15143     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15144   fi
15145 
15146   else
15147     # We're on a posix platform. Hooray! :)
15148     # First separate the path from the arguments. This will split at the first
15149     # space.
15150     complete="$FOUND_MAKE"
15151     path="${complete%% *}"
15152     tmp="$complete EOL"
15153     arguments="${tmp#* }"
15154 
15155     # Cannot rely on the command "which" here since it doesn't always work.
15156     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15157     if test -z "$is_absolute_path"; then
15158       # Path to executable is not absolute. Find it.
15159       IFS_save="$IFS"
15160       IFS=:
15161       for p in $PATH; do
15162         if test -f "$p/$path" && test -x "$p/$path"; then
15163           new_path="$p/$path"
15164           break
15165         fi
15166       done
15167       IFS="$IFS_save"
15168     else
15169       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15170 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15171       new_path="$path"
15172     fi
15173 
15174     if test "x$new_path" = x; then
15175       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15176 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15177       has_space=`$ECHO "$complete" | $GREP " "`
15178       if test "x$has_space" != x; then
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15180 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15181       fi
15182       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15183     fi
15184   fi
15185 
15186   # Now join together the path and the arguments once again
15187   if test "x$arguments" != xEOL; then
15188     new_complete="$new_path ${arguments% *}"
15189   else
15190     new_complete="$new_path"
15191   fi
15192 
15193   if test "x$complete" != "x$new_complete"; then
15194     FOUND_MAKE="$new_complete"
15195     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15196 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15197   fi
15198 
15199         fi
15200       fi
15201     fi
15202   fi
15203 
15204     if test "x$FOUND_MAKE" = x; then
15205       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15206     fi
15207   else
15208     # Try our hardest to locate a correct version of GNU make
15209     for ac_prog in gmake
15210 do
15211   # Extract the first word of "$ac_prog", so it can be a program name with args.
15212 set dummy $ac_prog; ac_word=$2
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15214 $as_echo_n "checking for $ac_word... " >&6; }
15215 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218   case $CHECK_GMAKE in
15219   [\\/]* | ?:[\\/]*)
15220   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15221   ;;
15222   *)
15223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15225 do
15226   IFS=$as_save_IFS
15227   test -z "$as_dir" && as_dir=.
15228     for ac_exec_ext in '' $ac_executable_extensions; do
15229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15230     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15232     break 2
15233   fi
15234 done
15235   done
15236 IFS=$as_save_IFS
15237 
15238   ;;
15239 esac
15240 fi
15241 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15242 if test -n "$CHECK_GMAKE"; then
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15244 $as_echo "$CHECK_GMAKE" >&6; }
15245 else
15246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15248 fi
15249 
15250 
15251   test -n "$CHECK_GMAKE" && break
15252 done
15253 
15254 
15255   MAKE_CANDIDATE=""$CHECK_GMAKE""
15256   DESCRIPTION="gmake in PATH"
15257   if test "x$MAKE_CANDIDATE" != x; then
15258     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15259 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15260     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15261     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15262     if test "x$IS_GNU_MAKE" = x; then
15263       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15264 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15265     else
15266       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15267       if test "x$IS_MODERN_MAKE" = x; then
15268         { $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
15269 $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;}
15270       else
15271         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15272           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15273             MAKE_EXPECTED_ENV='cygwin'
15274           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15275             MAKE_EXPECTED_ENV='msys'
15276           else
15277             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15278           fi
15279           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15280           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15281         else
15282           # Not relevant for non-Windows
15283           IS_MAKE_CORRECT_ENV=true
15284         fi
15285         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15286           { $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
15287 $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;}
15288         else
15289           FOUND_MAKE=$MAKE_CANDIDATE
15290 
15291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15292 
15293   # First separate the path from the arguments. This will split at the first
15294   # space.
15295   complete="$FOUND_MAKE"
15296   path="${complete%% *}"
15297   tmp="$complete EOL"
15298   arguments="${tmp#* }"
15299 
15300   # Input might be given as Windows format, start by converting to
15301   # unix format.
15302   new_path=`$CYGPATH -u "$path"`
15303 
15304   # Now try to locate executable using which
15305   new_path=`$WHICH "$new_path" 2> /dev/null`
15306   # bat and cmd files are not always considered executable in cygwin causing which
15307   # to not find them
15308   if test "x$new_path" = x \
15309       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15310       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15311     new_path=`$CYGPATH -u "$path"`
15312   fi
15313   if test "x$new_path" = x; then
15314     # Oops. Which didn't find the executable.
15315     # The splitting of arguments from the executable at a space might have been incorrect,
15316     # since paths with space are more likely in Windows. Give it another try with the whole
15317     # argument.
15318     path="$complete"
15319     arguments="EOL"
15320     new_path=`$CYGPATH -u "$path"`
15321     new_path=`$WHICH "$new_path" 2> /dev/null`
15322     # bat and cmd files are not always considered executable in cygwin causing which
15323     # to not find them
15324     if test "x$new_path" = x \
15325         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15326         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15327       new_path=`$CYGPATH -u "$path"`
15328     fi
15329     if test "x$new_path" = x; then
15330       # It's still not found. Now this is an unrecoverable error.
15331       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15332 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15333       has_space=`$ECHO "$complete" | $GREP " "`
15334       if test "x$has_space" != x; then
15335         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15337       fi
15338       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15339     fi
15340   fi
15341 
15342   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15343   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15344   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15345   # "foo.exe" is OK but "foo" is an error.
15346   #
15347   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15348   # It is also a way to make sure we got the proper file name for the real test later on.
15349   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15350   if test "x$test_shortpath" = x; then
15351     # Short path failed, file does not exist as specified.
15352     # Try adding .exe or .cmd
15353     if test -f "${new_path}.exe"; then
15354       input_to_shortpath="${new_path}.exe"
15355     elif test -f "${new_path}.cmd"; then
15356       input_to_shortpath="${new_path}.cmd"
15357     else
15358       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15359 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15360       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15361 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15362       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15363     fi
15364   else
15365     input_to_shortpath="$new_path"
15366   fi
15367 
15368   # Call helper function which possibly converts this using DOS-style short mode.
15369   # If so, the updated path is stored in $new_path.
15370   new_path="$input_to_shortpath"
15371 
15372   input_path="$input_to_shortpath"
15373   # Check if we need to convert this using DOS-style short mode. If the path
15374   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15375   # take no chances and rewrite it.
15376   # Note: m4 eats our [], so we need to use [ and ] instead.
15377   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15378   if test "x$has_forbidden_chars" != x; then
15379     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15380     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15381     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15382     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15383       # Going to short mode and back again did indeed matter. Since short mode is
15384       # case insensitive, let's make it lowercase to improve readability.
15385       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15386       # Now convert it back to Unix-stile (cygpath)
15387       input_path=`$CYGPATH -u "$shortmode_path"`
15388       new_path="$input_path"
15389     fi
15390   fi
15391 
15392   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15393   if test "x$test_cygdrive_prefix" = x; then
15394     # As a simple fix, exclude /usr/bin since it's not a real path.
15395     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15396       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15397       # a path prefixed by /cygdrive for fixpath to work.
15398       new_path="$CYGWIN_ROOT_PATH$input_path"
15399     fi
15400   fi
15401 
15402   # remove trailing .exe if any
15403   new_path="${new_path/%.exe/}"
15404 
15405   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15406 
15407   # First separate the path from the arguments. This will split at the first
15408   # space.
15409   complete="$FOUND_MAKE"
15410   path="${complete%% *}"
15411   tmp="$complete EOL"
15412   arguments="${tmp#* }"
15413 
15414   # Input might be given as Windows format, start by converting to
15415   # unix format.
15416   new_path="$path"
15417 
15418   windows_path="$new_path"
15419   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15420     unix_path=`$CYGPATH -u "$windows_path"`
15421     new_path="$unix_path"
15422   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15423     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15424     new_path="$unix_path"
15425   fi
15426 
15427 
15428   # Now try to locate executable using which
15429   new_path=`$WHICH "$new_path" 2> /dev/null`
15430 
15431   if test "x$new_path" = x; then
15432     # Oops. Which didn't find the executable.
15433     # The splitting of arguments from the executable at a space might have been incorrect,
15434     # since paths with space are more likely in Windows. Give it another try with the whole
15435     # argument.
15436     path="$complete"
15437     arguments="EOL"
15438     new_path="$path"
15439 
15440   windows_path="$new_path"
15441   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15442     unix_path=`$CYGPATH -u "$windows_path"`
15443     new_path="$unix_path"
15444   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15445     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15446     new_path="$unix_path"
15447   fi
15448 
15449 
15450     new_path=`$WHICH "$new_path" 2> /dev/null`
15451 
15452     if test "x$new_path" = x; then
15453       # It's still not found. Now this is an unrecoverable error.
15454       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15455 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15456       has_space=`$ECHO "$complete" | $GREP " "`
15457       if test "x$has_space" != x; then
15458         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15459 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15460       fi
15461       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15462     fi
15463   fi
15464 
15465   # Now new_path has a complete unix path to the binary
15466   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15467     # Keep paths in /bin as-is, but remove trailing .exe if any
15468     new_path="${new_path/%.exe/}"
15469     # Do not save /bin paths to all_fixpath_prefixes!
15470   else
15471     # Not in mixed or Windows style, start by that.
15472     new_path=`cmd //c echo $new_path`
15473 
15474   input_path="$new_path"
15475   # Check if we need to convert this using DOS-style short mode. If the path
15476   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15477   # take no chances and rewrite it.
15478   # Note: m4 eats our [], so we need to use [ and ] instead.
15479   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15480   if test "x$has_forbidden_chars" != x; then
15481     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15482     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15483   fi
15484 
15485     # Output is in $new_path
15486 
15487   windows_path="$new_path"
15488   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15489     unix_path=`$CYGPATH -u "$windows_path"`
15490     new_path="$unix_path"
15491   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15492     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15493     new_path="$unix_path"
15494   fi
15495 
15496     # remove trailing .exe if any
15497     new_path="${new_path/%.exe/}"
15498 
15499     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15500     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15501   fi
15502 
15503   else
15504     # We're on a posix platform. Hooray! :)
15505     # First separate the path from the arguments. This will split at the first
15506     # space.
15507     complete="$FOUND_MAKE"
15508     path="${complete%% *}"
15509     tmp="$complete EOL"
15510     arguments="${tmp#* }"
15511 
15512     # Cannot rely on the command "which" here since it doesn't always work.
15513     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15514     if test -z "$is_absolute_path"; then
15515       # Path to executable is not absolute. Find it.
15516       IFS_save="$IFS"
15517       IFS=:
15518       for p in $PATH; do
15519         if test -f "$p/$path" && test -x "$p/$path"; then
15520           new_path="$p/$path"
15521           break
15522         fi
15523       done
15524       IFS="$IFS_save"
15525     else
15526       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15527 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15528       new_path="$path"
15529     fi
15530 
15531     if test "x$new_path" = x; then
15532       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15533 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15534       has_space=`$ECHO "$complete" | $GREP " "`
15535       if test "x$has_space" != x; then
15536         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15537 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15538       fi
15539       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15540     fi
15541   fi
15542 
15543   # Now join together the path and the arguments once again
15544   if test "x$arguments" != xEOL; then
15545     new_complete="$new_path ${arguments% *}"
15546   else
15547     new_complete="$new_path"
15548   fi
15549 
15550   if test "x$complete" != "x$new_complete"; then
15551     FOUND_MAKE="$new_complete"
15552     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15553 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15554   fi
15555 
15556         fi
15557       fi
15558     fi
15559   fi
15560 
15561 
15562     if test "x$FOUND_MAKE" = x; then
15563       for ac_prog in make
15564 do
15565   # Extract the first word of "$ac_prog", so it can be a program name with args.
15566 set dummy $ac_prog; ac_word=$2
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15568 $as_echo_n "checking for $ac_word... " >&6; }
15569 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15570   $as_echo_n "(cached) " >&6
15571 else
15572   case $CHECK_MAKE in
15573   [\\/]* | ?:[\\/]*)
15574   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15575   ;;
15576   *)
15577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15578 for as_dir in $PATH
15579 do
15580   IFS=$as_save_IFS
15581   test -z "$as_dir" && as_dir=.
15582     for ac_exec_ext in '' $ac_executable_extensions; do
15583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15584     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15586     break 2
15587   fi
15588 done
15589   done
15590 IFS=$as_save_IFS
15591 
15592   ;;
15593 esac
15594 fi
15595 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15596 if test -n "$CHECK_MAKE"; then
15597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15598 $as_echo "$CHECK_MAKE" >&6; }
15599 else
15600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15601 $as_echo "no" >&6; }
15602 fi
15603 
15604 
15605   test -n "$CHECK_MAKE" && break
15606 done
15607 
15608 
15609   MAKE_CANDIDATE=""$CHECK_MAKE""
15610   DESCRIPTION="make in PATH"
15611   if test "x$MAKE_CANDIDATE" != x; then
15612     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15613 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15614     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15615     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15616     if test "x$IS_GNU_MAKE" = x; then
15617       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15618 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15619     else
15620       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15621       if test "x$IS_MODERN_MAKE" = x; then
15622         { $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
15623 $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;}
15624       else
15625         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15626           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15627             MAKE_EXPECTED_ENV='cygwin'
15628           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15629             MAKE_EXPECTED_ENV='msys'
15630           else
15631             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15632           fi
15633           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15634           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15635         else
15636           # Not relevant for non-Windows
15637           IS_MAKE_CORRECT_ENV=true
15638         fi
15639         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15640           { $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
15641 $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;}
15642         else
15643           FOUND_MAKE=$MAKE_CANDIDATE
15644 
15645   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15646 
15647   # First separate the path from the arguments. This will split at the first
15648   # space.
15649   complete="$FOUND_MAKE"
15650   path="${complete%% *}"
15651   tmp="$complete EOL"
15652   arguments="${tmp#* }"
15653 
15654   # Input might be given as Windows format, start by converting to
15655   # unix format.
15656   new_path=`$CYGPATH -u "$path"`
15657 
15658   # Now try to locate executable using which
15659   new_path=`$WHICH "$new_path" 2> /dev/null`
15660   # bat and cmd files are not always considered executable in cygwin causing which
15661   # to not find them
15662   if test "x$new_path" = x \
15663       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15664       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15665     new_path=`$CYGPATH -u "$path"`
15666   fi
15667   if test "x$new_path" = x; then
15668     # Oops. Which didn't find the executable.
15669     # The splitting of arguments from the executable at a space might have been incorrect,
15670     # since paths with space are more likely in Windows. Give it another try with the whole
15671     # argument.
15672     path="$complete"
15673     arguments="EOL"
15674     new_path=`$CYGPATH -u "$path"`
15675     new_path=`$WHICH "$new_path" 2> /dev/null`
15676     # bat and cmd files are not always considered executable in cygwin causing which
15677     # to not find them
15678     if test "x$new_path" = x \
15679         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15680         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15681       new_path=`$CYGPATH -u "$path"`
15682     fi
15683     if test "x$new_path" = x; then
15684       # It's still not found. Now this is an unrecoverable error.
15685       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15686 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15687       has_space=`$ECHO "$complete" | $GREP " "`
15688       if test "x$has_space" != x; then
15689         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15691       fi
15692       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15693     fi
15694   fi
15695 
15696   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15697   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15698   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15699   # "foo.exe" is OK but "foo" is an error.
15700   #
15701   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15702   # It is also a way to make sure we got the proper file name for the real test later on.
15703   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15704   if test "x$test_shortpath" = x; then
15705     # Short path failed, file does not exist as specified.
15706     # Try adding .exe or .cmd
15707     if test -f "${new_path}.exe"; then
15708       input_to_shortpath="${new_path}.exe"
15709     elif test -f "${new_path}.cmd"; then
15710       input_to_shortpath="${new_path}.cmd"
15711     else
15712       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15713 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15714       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15715 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15716       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15717     fi
15718   else
15719     input_to_shortpath="$new_path"
15720   fi
15721 
15722   # Call helper function which possibly converts this using DOS-style short mode.
15723   # If so, the updated path is stored in $new_path.
15724   new_path="$input_to_shortpath"
15725 
15726   input_path="$input_to_shortpath"
15727   # Check if we need to convert this using DOS-style short mode. If the path
15728   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15729   # take no chances and rewrite it.
15730   # Note: m4 eats our [], so we need to use [ and ] instead.
15731   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15732   if test "x$has_forbidden_chars" != x; then
15733     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15734     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15735     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15736     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15737       # Going to short mode and back again did indeed matter. Since short mode is
15738       # case insensitive, let's make it lowercase to improve readability.
15739       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15740       # Now convert it back to Unix-stile (cygpath)
15741       input_path=`$CYGPATH -u "$shortmode_path"`
15742       new_path="$input_path"
15743     fi
15744   fi
15745 
15746   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15747   if test "x$test_cygdrive_prefix" = x; then
15748     # As a simple fix, exclude /usr/bin since it's not a real path.
15749     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15750       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15751       # a path prefixed by /cygdrive for fixpath to work.
15752       new_path="$CYGWIN_ROOT_PATH$input_path"
15753     fi
15754   fi
15755 
15756   # remove trailing .exe if any
15757   new_path="${new_path/%.exe/}"
15758 
15759   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15760 
15761   # First separate the path from the arguments. This will split at the first
15762   # space.
15763   complete="$FOUND_MAKE"
15764   path="${complete%% *}"
15765   tmp="$complete EOL"
15766   arguments="${tmp#* }"
15767 
15768   # Input might be given as Windows format, start by converting to
15769   # unix format.
15770   new_path="$path"
15771 
15772   windows_path="$new_path"
15773   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15774     unix_path=`$CYGPATH -u "$windows_path"`
15775     new_path="$unix_path"
15776   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15777     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15778     new_path="$unix_path"
15779   fi
15780 
15781 
15782   # Now try to locate executable using which
15783   new_path=`$WHICH "$new_path" 2> /dev/null`
15784 
15785   if test "x$new_path" = x; then
15786     # Oops. Which didn't find the executable.
15787     # The splitting of arguments from the executable at a space might have been incorrect,
15788     # since paths with space are more likely in Windows. Give it another try with the whole
15789     # argument.
15790     path="$complete"
15791     arguments="EOL"
15792     new_path="$path"
15793 
15794   windows_path="$new_path"
15795   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15796     unix_path=`$CYGPATH -u "$windows_path"`
15797     new_path="$unix_path"
15798   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15799     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15800     new_path="$unix_path"
15801   fi
15802 
15803 
15804     new_path=`$WHICH "$new_path" 2> /dev/null`
15805 
15806     if test "x$new_path" = x; then
15807       # It's still not found. Now this is an unrecoverable error.
15808       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15809 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15810       has_space=`$ECHO "$complete" | $GREP " "`
15811       if test "x$has_space" != x; then
15812         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15814       fi
15815       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15816     fi
15817   fi
15818 
15819   # Now new_path has a complete unix path to the binary
15820   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15821     # Keep paths in /bin as-is, but remove trailing .exe if any
15822     new_path="${new_path/%.exe/}"
15823     # Do not save /bin paths to all_fixpath_prefixes!
15824   else
15825     # Not in mixed or Windows style, start by that.
15826     new_path=`cmd //c echo $new_path`
15827 
15828   input_path="$new_path"
15829   # Check if we need to convert this using DOS-style short mode. If the path
15830   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15831   # take no chances and rewrite it.
15832   # Note: m4 eats our [], so we need to use [ and ] instead.
15833   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15834   if test "x$has_forbidden_chars" != x; then
15835     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15836     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15837   fi
15838 
15839     # Output is in $new_path
15840 
15841   windows_path="$new_path"
15842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15843     unix_path=`$CYGPATH -u "$windows_path"`
15844     new_path="$unix_path"
15845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15846     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15847     new_path="$unix_path"
15848   fi
15849 
15850     # remove trailing .exe if any
15851     new_path="${new_path/%.exe/}"
15852 
15853     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15854     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15855   fi
15856 
15857   else
15858     # We're on a posix platform. Hooray! :)
15859     # First separate the path from the arguments. This will split at the first
15860     # space.
15861     complete="$FOUND_MAKE"
15862     path="${complete%% *}"
15863     tmp="$complete EOL"
15864     arguments="${tmp#* }"
15865 
15866     # Cannot rely on the command "which" here since it doesn't always work.
15867     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15868     if test -z "$is_absolute_path"; then
15869       # Path to executable is not absolute. Find it.
15870       IFS_save="$IFS"
15871       IFS=:
15872       for p in $PATH; do
15873         if test -f "$p/$path" && test -x "$p/$path"; then
15874           new_path="$p/$path"
15875           break
15876         fi
15877       done
15878       IFS="$IFS_save"
15879     else
15880       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15881 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15882       new_path="$path"
15883     fi
15884 
15885     if test "x$new_path" = x; then
15886       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15887 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15888       has_space=`$ECHO "$complete" | $GREP " "`
15889       if test "x$has_space" != x; then
15890         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15891 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15892       fi
15893       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15894     fi
15895   fi
15896 
15897   # Now join together the path and the arguments once again
15898   if test "x$arguments" != xEOL; then
15899     new_complete="$new_path ${arguments% *}"
15900   else
15901     new_complete="$new_path"
15902   fi
15903 
15904   if test "x$complete" != "x$new_complete"; then
15905     FOUND_MAKE="$new_complete"
15906     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15907 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15908   fi
15909 
15910         fi
15911       fi
15912     fi
15913   fi
15914 
15915     fi
15916 
15917     if test "x$FOUND_MAKE" = x; then
15918       if test "x$TOOLS_DIR" != x; then
15919         # We have a tools-dir, check that as well before giving up.
15920         OLD_PATH=$PATH
15921         PATH=$TOOLS_DIR:$PATH
15922         for ac_prog in gmake
15923 do
15924   # Extract the first word of "$ac_prog", so it can be a program name with args.
15925 set dummy $ac_prog; ac_word=$2
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15927 $as_echo_n "checking for $ac_word... " >&6; }
15928 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
15929   $as_echo_n "(cached) " >&6
15930 else
15931   case $CHECK_TOOLSDIR_GMAKE in
15932   [\\/]* | ?:[\\/]*)
15933   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
15934   ;;
15935   *)
15936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937 for as_dir in $PATH
15938 do
15939   IFS=$as_save_IFS
15940   test -z "$as_dir" && as_dir=.
15941     for ac_exec_ext in '' $ac_executable_extensions; do
15942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15943     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15945     break 2
15946   fi
15947 done
15948   done
15949 IFS=$as_save_IFS
15950 
15951   ;;
15952 esac
15953 fi
15954 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
15955 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
15956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
15957 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
15958 else
15959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15961 fi
15962 
15963 
15964   test -n "$CHECK_TOOLSDIR_GMAKE" && break
15965 done
15966 
15967 
15968   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
15969   DESCRIPTION="gmake in tools-dir"
15970   if test "x$MAKE_CANDIDATE" != x; then
15971     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15972 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15973     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15974     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15975     if test "x$IS_GNU_MAKE" = x; then
15976       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15977 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15978     else
15979       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15980       if test "x$IS_MODERN_MAKE" = x; then
15981         { $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
15982 $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;}
15983       else
15984         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15985           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15986             MAKE_EXPECTED_ENV='cygwin'
15987           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15988             MAKE_EXPECTED_ENV='msys'
15989           else
15990             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15991           fi
15992           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15993           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15994         else
15995           # Not relevant for non-Windows
15996           IS_MAKE_CORRECT_ENV=true
15997         fi
15998         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15999           { $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
16000 $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;}
16001         else
16002           FOUND_MAKE=$MAKE_CANDIDATE
16003 
16004   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16005 
16006   # First separate the path from the arguments. This will split at the first
16007   # space.
16008   complete="$FOUND_MAKE"
16009   path="${complete%% *}"
16010   tmp="$complete EOL"
16011   arguments="${tmp#* }"
16012 
16013   # Input might be given as Windows format, start by converting to
16014   # unix format.
16015   new_path=`$CYGPATH -u "$path"`
16016 
16017   # Now try to locate executable using which
16018   new_path=`$WHICH "$new_path" 2> /dev/null`
16019   # bat and cmd files are not always considered executable in cygwin causing which
16020   # to not find them
16021   if test "x$new_path" = x \
16022       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16023       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16024     new_path=`$CYGPATH -u "$path"`
16025   fi
16026   if test "x$new_path" = x; then
16027     # Oops. Which didn't find the executable.
16028     # The splitting of arguments from the executable at a space might have been incorrect,
16029     # since paths with space are more likely in Windows. Give it another try with the whole
16030     # argument.
16031     path="$complete"
16032     arguments="EOL"
16033     new_path=`$CYGPATH -u "$path"`
16034     new_path=`$WHICH "$new_path" 2> /dev/null`
16035     # bat and cmd files are not always considered executable in cygwin causing which
16036     # to not find them
16037     if test "x$new_path" = x \
16038         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16039         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16040       new_path=`$CYGPATH -u "$path"`
16041     fi
16042     if test "x$new_path" = x; then
16043       # It's still not found. Now this is an unrecoverable error.
16044       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16045 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16046       has_space=`$ECHO "$complete" | $GREP " "`
16047       if test "x$has_space" != x; then
16048         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16050       fi
16051       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16052     fi
16053   fi
16054 
16055   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16056   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16057   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16058   # "foo.exe" is OK but "foo" is an error.
16059   #
16060   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16061   # It is also a way to make sure we got the proper file name for the real test later on.
16062   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16063   if test "x$test_shortpath" = x; then
16064     # Short path failed, file does not exist as specified.
16065     # Try adding .exe or .cmd
16066     if test -f "${new_path}.exe"; then
16067       input_to_shortpath="${new_path}.exe"
16068     elif test -f "${new_path}.cmd"; then
16069       input_to_shortpath="${new_path}.cmd"
16070     else
16071       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16072 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16073       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16074 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16075       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16076     fi
16077   else
16078     input_to_shortpath="$new_path"
16079   fi
16080 
16081   # Call helper function which possibly converts this using DOS-style short mode.
16082   # If so, the updated path is stored in $new_path.
16083   new_path="$input_to_shortpath"
16084 
16085   input_path="$input_to_shortpath"
16086   # Check if we need to convert this using DOS-style short mode. If the path
16087   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16088   # take no chances and rewrite it.
16089   # Note: m4 eats our [], so we need to use [ and ] instead.
16090   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16091   if test "x$has_forbidden_chars" != x; then
16092     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16093     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16094     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16095     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16096       # Going to short mode and back again did indeed matter. Since short mode is
16097       # case insensitive, let's make it lowercase to improve readability.
16098       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16099       # Now convert it back to Unix-stile (cygpath)
16100       input_path=`$CYGPATH -u "$shortmode_path"`
16101       new_path="$input_path"
16102     fi
16103   fi
16104 
16105   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16106   if test "x$test_cygdrive_prefix" = x; then
16107     # As a simple fix, exclude /usr/bin since it's not a real path.
16108     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16109       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16110       # a path prefixed by /cygdrive for fixpath to work.
16111       new_path="$CYGWIN_ROOT_PATH$input_path"
16112     fi
16113   fi
16114 
16115   # remove trailing .exe if any
16116   new_path="${new_path/%.exe/}"
16117 
16118   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16119 
16120   # First separate the path from the arguments. This will split at the first
16121   # space.
16122   complete="$FOUND_MAKE"
16123   path="${complete%% *}"
16124   tmp="$complete EOL"
16125   arguments="${tmp#* }"
16126 
16127   # Input might be given as Windows format, start by converting to
16128   # unix format.
16129   new_path="$path"
16130 
16131   windows_path="$new_path"
16132   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16133     unix_path=`$CYGPATH -u "$windows_path"`
16134     new_path="$unix_path"
16135   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16136     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16137     new_path="$unix_path"
16138   fi
16139 
16140 
16141   # Now try to locate executable using which
16142   new_path=`$WHICH "$new_path" 2> /dev/null`
16143 
16144   if test "x$new_path" = x; then
16145     # Oops. Which didn't find the executable.
16146     # The splitting of arguments from the executable at a space might have been incorrect,
16147     # since paths with space are more likely in Windows. Give it another try with the whole
16148     # argument.
16149     path="$complete"
16150     arguments="EOL"
16151     new_path="$path"
16152 
16153   windows_path="$new_path"
16154   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16155     unix_path=`$CYGPATH -u "$windows_path"`
16156     new_path="$unix_path"
16157   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16158     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16159     new_path="$unix_path"
16160   fi
16161 
16162 
16163     new_path=`$WHICH "$new_path" 2> /dev/null`
16164 
16165     if test "x$new_path" = x; then
16166       # It's still not found. Now this is an unrecoverable error.
16167       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16168 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16169       has_space=`$ECHO "$complete" | $GREP " "`
16170       if test "x$has_space" != x; then
16171         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16172 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16173       fi
16174       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16175     fi
16176   fi
16177 
16178   # Now new_path has a complete unix path to the binary
16179   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16180     # Keep paths in /bin as-is, but remove trailing .exe if any
16181     new_path="${new_path/%.exe/}"
16182     # Do not save /bin paths to all_fixpath_prefixes!
16183   else
16184     # Not in mixed or Windows style, start by that.
16185     new_path=`cmd //c echo $new_path`
16186 
16187   input_path="$new_path"
16188   # Check if we need to convert this using DOS-style short mode. If the path
16189   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16190   # take no chances and rewrite it.
16191   # Note: m4 eats our [], so we need to use [ and ] instead.
16192   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16193   if test "x$has_forbidden_chars" != x; then
16194     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16195     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16196   fi
16197 
16198     # Output is in $new_path
16199 
16200   windows_path="$new_path"
16201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16202     unix_path=`$CYGPATH -u "$windows_path"`
16203     new_path="$unix_path"
16204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16206     new_path="$unix_path"
16207   fi
16208 
16209     # remove trailing .exe if any
16210     new_path="${new_path/%.exe/}"
16211 
16212     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16213     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16214   fi
16215 
16216   else
16217     # We're on a posix platform. Hooray! :)
16218     # First separate the path from the arguments. This will split at the first
16219     # space.
16220     complete="$FOUND_MAKE"
16221     path="${complete%% *}"
16222     tmp="$complete EOL"
16223     arguments="${tmp#* }"
16224 
16225     # Cannot rely on the command "which" here since it doesn't always work.
16226     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16227     if test -z "$is_absolute_path"; then
16228       # Path to executable is not absolute. Find it.
16229       IFS_save="$IFS"
16230       IFS=:
16231       for p in $PATH; do
16232         if test -f "$p/$path" && test -x "$p/$path"; then
16233           new_path="$p/$path"
16234           break
16235         fi
16236       done
16237       IFS="$IFS_save"
16238     else
16239       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16240 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16241       new_path="$path"
16242     fi
16243 
16244     if test "x$new_path" = x; then
16245       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16246 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16247       has_space=`$ECHO "$complete" | $GREP " "`
16248       if test "x$has_space" != x; then
16249         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16250 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16251       fi
16252       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16253     fi
16254   fi
16255 
16256   # Now join together the path and the arguments once again
16257   if test "x$arguments" != xEOL; then
16258     new_complete="$new_path ${arguments% *}"
16259   else
16260     new_complete="$new_path"
16261   fi
16262 
16263   if test "x$complete" != "x$new_complete"; then
16264     FOUND_MAKE="$new_complete"
16265     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16266 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16267   fi
16268 
16269         fi
16270       fi
16271     fi
16272   fi
16273 
16274         if test "x$FOUND_MAKE" = x; then
16275           for ac_prog in make
16276 do
16277   # Extract the first word of "$ac_prog", so it can be a program name with args.
16278 set dummy $ac_prog; ac_word=$2
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16280 $as_echo_n "checking for $ac_word... " >&6; }
16281 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16282   $as_echo_n "(cached) " >&6
16283 else
16284   case $CHECK_TOOLSDIR_MAKE in
16285   [\\/]* | ?:[\\/]*)
16286   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16287   ;;
16288   *)
16289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16290 for as_dir in $PATH
16291 do
16292   IFS=$as_save_IFS
16293   test -z "$as_dir" && as_dir=.
16294     for ac_exec_ext in '' $ac_executable_extensions; do
16295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16296     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16298     break 2
16299   fi
16300 done
16301   done
16302 IFS=$as_save_IFS
16303 
16304   ;;
16305 esac
16306 fi
16307 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16308 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16310 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16311 else
16312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313 $as_echo "no" >&6; }
16314 fi
16315 
16316 
16317   test -n "$CHECK_TOOLSDIR_MAKE" && break
16318 done
16319 
16320 
16321   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16322   DESCRIPTION="make in tools-dir"
16323   if test "x$MAKE_CANDIDATE" != x; then
16324     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16325 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16326     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16327     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16328     if test "x$IS_GNU_MAKE" = x; then
16329       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16330 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16331     else
16332       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16333       if test "x$IS_MODERN_MAKE" = x; then
16334         { $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
16335 $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;}
16336       else
16337         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16338           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16339             MAKE_EXPECTED_ENV='cygwin'
16340           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16341             MAKE_EXPECTED_ENV='msys'
16342           else
16343             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16344           fi
16345           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16346           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16347         else
16348           # Not relevant for non-Windows
16349           IS_MAKE_CORRECT_ENV=true
16350         fi
16351         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16352           { $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
16353 $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;}
16354         else
16355           FOUND_MAKE=$MAKE_CANDIDATE
16356 
16357   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16358 
16359   # First separate the path from the arguments. This will split at the first
16360   # space.
16361   complete="$FOUND_MAKE"
16362   path="${complete%% *}"
16363   tmp="$complete EOL"
16364   arguments="${tmp#* }"
16365 
16366   # Input might be given as Windows format, start by converting to
16367   # unix format.
16368   new_path=`$CYGPATH -u "$path"`
16369 
16370   # Now try to locate executable using which
16371   new_path=`$WHICH "$new_path" 2> /dev/null`
16372   # bat and cmd files are not always considered executable in cygwin causing which
16373   # to not find them
16374   if test "x$new_path" = x \
16375       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16376       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16377     new_path=`$CYGPATH -u "$path"`
16378   fi
16379   if test "x$new_path" = x; then
16380     # Oops. Which didn't find the executable.
16381     # The splitting of arguments from the executable at a space might have been incorrect,
16382     # since paths with space are more likely in Windows. Give it another try with the whole
16383     # argument.
16384     path="$complete"
16385     arguments="EOL"
16386     new_path=`$CYGPATH -u "$path"`
16387     new_path=`$WHICH "$new_path" 2> /dev/null`
16388     # bat and cmd files are not always considered executable in cygwin causing which
16389     # to not find them
16390     if test "x$new_path" = x \
16391         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16392         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16393       new_path=`$CYGPATH -u "$path"`
16394     fi
16395     if test "x$new_path" = x; then
16396       # It's still not found. Now this is an unrecoverable error.
16397       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16398 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16399       has_space=`$ECHO "$complete" | $GREP " "`
16400       if test "x$has_space" != x; then
16401         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16402 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16403       fi
16404       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16405     fi
16406   fi
16407 
16408   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16409   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16410   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16411   # "foo.exe" is OK but "foo" is an error.
16412   #
16413   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16414   # It is also a way to make sure we got the proper file name for the real test later on.
16415   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16416   if test "x$test_shortpath" = x; then
16417     # Short path failed, file does not exist as specified.
16418     # Try adding .exe or .cmd
16419     if test -f "${new_path}.exe"; then
16420       input_to_shortpath="${new_path}.exe"
16421     elif test -f "${new_path}.cmd"; then
16422       input_to_shortpath="${new_path}.cmd"
16423     else
16424       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16425 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16426       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16427 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16428       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16429     fi
16430   else
16431     input_to_shortpath="$new_path"
16432   fi
16433 
16434   # Call helper function which possibly converts this using DOS-style short mode.
16435   # If so, the updated path is stored in $new_path.
16436   new_path="$input_to_shortpath"
16437 
16438   input_path="$input_to_shortpath"
16439   # Check if we need to convert this using DOS-style short mode. If the path
16440   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16441   # take no chances and rewrite it.
16442   # Note: m4 eats our [], so we need to use [ and ] instead.
16443   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16444   if test "x$has_forbidden_chars" != x; then
16445     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16446     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16447     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16448     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16449       # Going to short mode and back again did indeed matter. Since short mode is
16450       # case insensitive, let's make it lowercase to improve readability.
16451       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16452       # Now convert it back to Unix-stile (cygpath)
16453       input_path=`$CYGPATH -u "$shortmode_path"`
16454       new_path="$input_path"
16455     fi
16456   fi
16457 
16458   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16459   if test "x$test_cygdrive_prefix" = x; then
16460     # As a simple fix, exclude /usr/bin since it's not a real path.
16461     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16462       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16463       # a path prefixed by /cygdrive for fixpath to work.
16464       new_path="$CYGWIN_ROOT_PATH$input_path"
16465     fi
16466   fi
16467 
16468   # remove trailing .exe if any
16469   new_path="${new_path/%.exe/}"
16470 
16471   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16472 
16473   # First separate the path from the arguments. This will split at the first
16474   # space.
16475   complete="$FOUND_MAKE"
16476   path="${complete%% *}"
16477   tmp="$complete EOL"
16478   arguments="${tmp#* }"
16479 
16480   # Input might be given as Windows format, start by converting to
16481   # unix format.
16482   new_path="$path"
16483 
16484   windows_path="$new_path"
16485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16486     unix_path=`$CYGPATH -u "$windows_path"`
16487     new_path="$unix_path"
16488   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16489     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16490     new_path="$unix_path"
16491   fi
16492 
16493 
16494   # Now try to locate executable using which
16495   new_path=`$WHICH "$new_path" 2> /dev/null`
16496 
16497   if test "x$new_path" = x; then
16498     # Oops. Which didn't find the executable.
16499     # The splitting of arguments from the executable at a space might have been incorrect,
16500     # since paths with space are more likely in Windows. Give it another try with the whole
16501     # argument.
16502     path="$complete"
16503     arguments="EOL"
16504     new_path="$path"
16505 
16506   windows_path="$new_path"
16507   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16508     unix_path=`$CYGPATH -u "$windows_path"`
16509     new_path="$unix_path"
16510   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16511     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16512     new_path="$unix_path"
16513   fi
16514 
16515 
16516     new_path=`$WHICH "$new_path" 2> /dev/null`
16517 
16518     if test "x$new_path" = x; then
16519       # It's still not found. Now this is an unrecoverable error.
16520       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16521 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16522       has_space=`$ECHO "$complete" | $GREP " "`
16523       if test "x$has_space" != x; then
16524         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16525 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16526       fi
16527       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16528     fi
16529   fi
16530 
16531   # Now new_path has a complete unix path to the binary
16532   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16533     # Keep paths in /bin as-is, but remove trailing .exe if any
16534     new_path="${new_path/%.exe/}"
16535     # Do not save /bin paths to all_fixpath_prefixes!
16536   else
16537     # Not in mixed or Windows style, start by that.
16538     new_path=`cmd //c echo $new_path`
16539 
16540   input_path="$new_path"
16541   # Check if we need to convert this using DOS-style short mode. If the path
16542   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16543   # take no chances and rewrite it.
16544   # Note: m4 eats our [], so we need to use [ and ] instead.
16545   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16546   if test "x$has_forbidden_chars" != x; then
16547     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16548     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16549   fi
16550 
16551     # Output is in $new_path
16552 
16553   windows_path="$new_path"
16554   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16555     unix_path=`$CYGPATH -u "$windows_path"`
16556     new_path="$unix_path"
16557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16558     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16559     new_path="$unix_path"
16560   fi
16561 
16562     # remove trailing .exe if any
16563     new_path="${new_path/%.exe/}"
16564 
16565     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16566     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16567   fi
16568 
16569   else
16570     # We're on a posix platform. Hooray! :)
16571     # First separate the path from the arguments. This will split at the first
16572     # space.
16573     complete="$FOUND_MAKE"
16574     path="${complete%% *}"
16575     tmp="$complete EOL"
16576     arguments="${tmp#* }"
16577 
16578     # Cannot rely on the command "which" here since it doesn't always work.
16579     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16580     if test -z "$is_absolute_path"; then
16581       # Path to executable is not absolute. Find it.
16582       IFS_save="$IFS"
16583       IFS=:
16584       for p in $PATH; do
16585         if test -f "$p/$path" && test -x "$p/$path"; then
16586           new_path="$p/$path"
16587           break
16588         fi
16589       done
16590       IFS="$IFS_save"
16591     else
16592       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16593 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16594       new_path="$path"
16595     fi
16596 
16597     if test "x$new_path" = x; then
16598       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16599 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16600       has_space=`$ECHO "$complete" | $GREP " "`
16601       if test "x$has_space" != x; then
16602         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16603 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16604       fi
16605       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16606     fi
16607   fi
16608 
16609   # Now join together the path and the arguments once again
16610   if test "x$arguments" != xEOL; then
16611     new_complete="$new_path ${arguments% *}"
16612   else
16613     new_complete="$new_path"
16614   fi
16615 
16616   if test "x$complete" != "x$new_complete"; then
16617     FOUND_MAKE="$new_complete"
16618     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16619 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16620   fi
16621 
16622         fi
16623       fi
16624     fi
16625   fi
16626 
16627         fi
16628         PATH=$OLD_PATH
16629       fi
16630     fi
16631 
16632     if test "x$FOUND_MAKE" = x; then
16633       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
16634     fi
16635   fi
16636 
16637   MAKE=$FOUND_MAKE
16638 
16639   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16640 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16641 
16642 
16643 
16644   # Test if find supports -delete
16645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16646 $as_echo_n "checking if find supports -delete... " >&6; }
16647   FIND_DELETE="-delete"
16648 
16649   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16650 
16651   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16652 
16653   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16654   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16655     # No, it does not.
16656     rm $DELETEDIR/TestIfFindSupportsDelete
16657     FIND_DELETE="-exec rm \{\} \+"
16658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16659 $as_echo "no" >&6; }
16660   else
16661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16662 $as_echo "yes" >&6; }
16663   fi
16664   rmdir $DELETEDIR
16665 
16666 
16667 
16668   # These tools might not be installed by default,
16669   # need hint on how to install them.
16670 
16671 
16672 
16673   # Publish this variable in the help.
16674 
16675 
16676   if test "x$UNZIP" = x; then
16677     # The variable is not set by user, try to locate tool using the code snippet
16678     for ac_prog in unzip
16679 do
16680   # Extract the first word of "$ac_prog", so it can be a program name with args.
16681 set dummy $ac_prog; ac_word=$2
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16683 $as_echo_n "checking for $ac_word... " >&6; }
16684 if ${ac_cv_path_UNZIP+:} false; then :
16685   $as_echo_n "(cached) " >&6
16686 else
16687   case $UNZIP in
16688   [\\/]* | ?:[\\/]*)
16689   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16690   ;;
16691   *)
16692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $PATH
16694 do
16695   IFS=$as_save_IFS
16696   test -z "$as_dir" && as_dir=.
16697     for ac_exec_ext in '' $ac_executable_extensions; do
16698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701     break 2
16702   fi
16703 done
16704   done
16705 IFS=$as_save_IFS
16706 
16707   ;;
16708 esac
16709 fi
16710 UNZIP=$ac_cv_path_UNZIP
16711 if test -n "$UNZIP"; then
16712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16713 $as_echo "$UNZIP" >&6; }
16714 else
16715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716 $as_echo "no" >&6; }
16717 fi
16718 
16719 
16720   test -n "$UNZIP" && break
16721 done
16722 
16723   else
16724     # The variable is set, but is it from the command line or the environment?
16725 
16726     # Try to remove the string !UNZIP! from our list.
16727     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16728     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16729       # If it failed, the variable was not from the command line. Ignore it,
16730       # but warn the user (except for BASH, which is always set by the calling BASH).
16731       if test "xUNZIP" != xBASH; then
16732         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16733 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16734       fi
16735       # Try to locate tool using the code snippet
16736       for ac_prog in unzip
16737 do
16738   # Extract the first word of "$ac_prog", so it can be a program name with args.
16739 set dummy $ac_prog; ac_word=$2
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16741 $as_echo_n "checking for $ac_word... " >&6; }
16742 if ${ac_cv_path_UNZIP+:} false; then :
16743   $as_echo_n "(cached) " >&6
16744 else
16745   case $UNZIP in
16746   [\\/]* | ?:[\\/]*)
16747   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16748   ;;
16749   *)
16750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16751 for as_dir in $PATH
16752 do
16753   IFS=$as_save_IFS
16754   test -z "$as_dir" && as_dir=.
16755     for ac_exec_ext in '' $ac_executable_extensions; do
16756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16757     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16759     break 2
16760   fi
16761 done
16762   done
16763 IFS=$as_save_IFS
16764 
16765   ;;
16766 esac
16767 fi
16768 UNZIP=$ac_cv_path_UNZIP
16769 if test -n "$UNZIP"; then
16770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16771 $as_echo "$UNZIP" >&6; }
16772 else
16773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16774 $as_echo "no" >&6; }
16775 fi
16776 
16777 
16778   test -n "$UNZIP" && break
16779 done
16780 
16781     else
16782       # If it succeeded, then it was overridden by the user. We will use it
16783       # for the tool.
16784 
16785       # First remove it from the list of overridden variables, so we can test
16786       # for unknown variables in the end.
16787       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16788 
16789       # Check if the provided tool contains a complete path.
16790       tool_specified="$UNZIP"
16791       tool_basename="${tool_specified##*/}"
16792       if test "x$tool_basename" = "x$tool_specified"; then
16793         # A command without a complete path is provided, search $PATH.
16794         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16795 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16796         # Extract the first word of "$tool_basename", so it can be a program name with args.
16797 set dummy $tool_basename; ac_word=$2
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16799 $as_echo_n "checking for $ac_word... " >&6; }
16800 if ${ac_cv_path_UNZIP+:} false; then :
16801   $as_echo_n "(cached) " >&6
16802 else
16803   case $UNZIP in
16804   [\\/]* | ?:[\\/]*)
16805   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16806   ;;
16807   *)
16808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16810 do
16811   IFS=$as_save_IFS
16812   test -z "$as_dir" && as_dir=.
16813     for ac_exec_ext in '' $ac_executable_extensions; do
16814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16817     break 2
16818   fi
16819 done
16820   done
16821 IFS=$as_save_IFS
16822 
16823   ;;
16824 esac
16825 fi
16826 UNZIP=$ac_cv_path_UNZIP
16827 if test -n "$UNZIP"; then
16828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16829 $as_echo "$UNZIP" >&6; }
16830 else
16831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833 fi
16834 
16835 
16836         if test "x$UNZIP" = x; then
16837           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16838         fi
16839       else
16840         # Otherwise we believe it is a complete path. Use it as it is.
16841         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16842 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16844 $as_echo_n "checking for UNZIP... " >&6; }
16845         if test ! -x "$tool_specified"; then
16846           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16847 $as_echo "not found" >&6; }
16848           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
16849         fi
16850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
16851 $as_echo "$tool_specified" >&6; }
16852       fi
16853     fi
16854   fi
16855 
16856 
16857 
16858   if test "x$UNZIP" = x; then
16859     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
16860   fi
16861 
16862 
16863 
16864 
16865 
16866   # Publish this variable in the help.
16867 
16868 
16869   if test "x$ZIP" = x; then
16870     # The variable is not set by user, try to locate tool using the code snippet
16871     for ac_prog in zip
16872 do
16873   # Extract the first word of "$ac_prog", so it can be a program name with args.
16874 set dummy $ac_prog; ac_word=$2
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16876 $as_echo_n "checking for $ac_word... " >&6; }
16877 if ${ac_cv_path_ZIP+:} false; then :
16878   $as_echo_n "(cached) " >&6
16879 else
16880   case $ZIP in
16881   [\\/]* | ?:[\\/]*)
16882   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16883   ;;
16884   *)
16885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16886 for as_dir in $PATH
16887 do
16888   IFS=$as_save_IFS
16889   test -z "$as_dir" && as_dir=.
16890     for ac_exec_ext in '' $ac_executable_extensions; do
16891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16892     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16894     break 2
16895   fi
16896 done
16897   done
16898 IFS=$as_save_IFS
16899 
16900   ;;
16901 esac
16902 fi
16903 ZIP=$ac_cv_path_ZIP
16904 if test -n "$ZIP"; then
16905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16906 $as_echo "$ZIP" >&6; }
16907 else
16908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16910 fi
16911 
16912 
16913   test -n "$ZIP" && break
16914 done
16915 
16916   else
16917     # The variable is set, but is it from the command line or the environment?
16918 
16919     # Try to remove the string !ZIP! from our list.
16920     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
16921     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16922       # If it failed, the variable was not from the command line. Ignore it,
16923       # but warn the user (except for BASH, which is always set by the calling BASH).
16924       if test "xZIP" != xBASH; then
16925         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
16926 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
16927       fi
16928       # Try to locate tool using the code snippet
16929       for ac_prog in zip
16930 do
16931   # Extract the first word of "$ac_prog", so it can be a program name with args.
16932 set dummy $ac_prog; ac_word=$2
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16934 $as_echo_n "checking for $ac_word... " >&6; }
16935 if ${ac_cv_path_ZIP+:} false; then :
16936   $as_echo_n "(cached) " >&6
16937 else
16938   case $ZIP in
16939   [\\/]* | ?:[\\/]*)
16940   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16941   ;;
16942   *)
16943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16944 for as_dir in $PATH
16945 do
16946   IFS=$as_save_IFS
16947   test -z "$as_dir" && as_dir=.
16948     for ac_exec_ext in '' $ac_executable_extensions; do
16949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16950     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16952     break 2
16953   fi
16954 done
16955   done
16956 IFS=$as_save_IFS
16957 
16958   ;;
16959 esac
16960 fi
16961 ZIP=$ac_cv_path_ZIP
16962 if test -n "$ZIP"; then
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16964 $as_echo "$ZIP" >&6; }
16965 else
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 $as_echo "no" >&6; }
16968 fi
16969 
16970 
16971   test -n "$ZIP" && break
16972 done
16973 
16974     else
16975       # If it succeeded, then it was overridden by the user. We will use it
16976       # for the tool.
16977 
16978       # First remove it from the list of overridden variables, so we can test
16979       # for unknown variables in the end.
16980       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16981 
16982       # Check if the provided tool contains a complete path.
16983       tool_specified="$ZIP"
16984       tool_basename="${tool_specified##*/}"
16985       if test "x$tool_basename" = "x$tool_specified"; then
16986         # A command without a complete path is provided, search $PATH.
16987         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
16988 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
16989         # Extract the first word of "$tool_basename", so it can be a program name with args.
16990 set dummy $tool_basename; ac_word=$2
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16992 $as_echo_n "checking for $ac_word... " >&6; }
16993 if ${ac_cv_path_ZIP+:} false; then :
16994   $as_echo_n "(cached) " >&6
16995 else
16996   case $ZIP in
16997   [\\/]* | ?:[\\/]*)
16998   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16999   ;;
17000   *)
17001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17002 for as_dir in $PATH
17003 do
17004   IFS=$as_save_IFS
17005   test -z "$as_dir" && as_dir=.
17006     for ac_exec_ext in '' $ac_executable_extensions; do
17007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17008     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17010     break 2
17011   fi
17012 done
17013   done
17014 IFS=$as_save_IFS
17015 
17016   ;;
17017 esac
17018 fi
17019 ZIP=$ac_cv_path_ZIP
17020 if test -n "$ZIP"; then
17021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17022 $as_echo "$ZIP" >&6; }
17023 else
17024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17026 fi
17027 
17028 
17029         if test "x$ZIP" = x; then
17030           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17031         fi
17032       else
17033         # Otherwise we believe it is a complete path. Use it as it is.
17034         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17035 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17037 $as_echo_n "checking for ZIP... " >&6; }
17038         if test ! -x "$tool_specified"; then
17039           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17040 $as_echo "not found" >&6; }
17041           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17042         fi
17043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17044 $as_echo "$tool_specified" >&6; }
17045       fi
17046     fi
17047   fi
17048 
17049 
17050 
17051   if test "x$ZIP" = x; then
17052     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17053   fi
17054 
17055 
17056 
17057   # Non-required basic tools
17058 
17059 
17060 
17061   # Publish this variable in the help.
17062 
17063 
17064   if test "x$LDD" = x; then
17065     # The variable is not set by user, try to locate tool using the code snippet
17066     for ac_prog in ldd
17067 do
17068   # Extract the first word of "$ac_prog", so it can be a program name with args.
17069 set dummy $ac_prog; ac_word=$2
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17071 $as_echo_n "checking for $ac_word... " >&6; }
17072 if ${ac_cv_path_LDD+:} false; then :
17073   $as_echo_n "(cached) " >&6
17074 else
17075   case $LDD in
17076   [\\/]* | ?:[\\/]*)
17077   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17078   ;;
17079   *)
17080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17081 for as_dir in $PATH
17082 do
17083   IFS=$as_save_IFS
17084   test -z "$as_dir" && as_dir=.
17085     for ac_exec_ext in '' $ac_executable_extensions; do
17086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17087     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17089     break 2
17090   fi
17091 done
17092   done
17093 IFS=$as_save_IFS
17094 
17095   ;;
17096 esac
17097 fi
17098 LDD=$ac_cv_path_LDD
17099 if test -n "$LDD"; then
17100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17101 $as_echo "$LDD" >&6; }
17102 else
17103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104 $as_echo "no" >&6; }
17105 fi
17106 
17107 
17108   test -n "$LDD" && break
17109 done
17110 
17111   else
17112     # The variable is set, but is it from the command line or the environment?
17113 
17114     # Try to remove the string !LDD! from our list.
17115     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17116     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17117       # If it failed, the variable was not from the command line. Ignore it,
17118       # but warn the user (except for BASH, which is always set by the calling BASH).
17119       if test "xLDD" != xBASH; then
17120         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17121 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17122       fi
17123       # Try to locate tool using the code snippet
17124       for ac_prog in ldd
17125 do
17126   # Extract the first word of "$ac_prog", so it can be a program name with args.
17127 set dummy $ac_prog; ac_word=$2
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17129 $as_echo_n "checking for $ac_word... " >&6; }
17130 if ${ac_cv_path_LDD+:} false; then :
17131   $as_echo_n "(cached) " >&6
17132 else
17133   case $LDD in
17134   [\\/]* | ?:[\\/]*)
17135   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17136   ;;
17137   *)
17138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17139 for as_dir in $PATH
17140 do
17141   IFS=$as_save_IFS
17142   test -z "$as_dir" && as_dir=.
17143     for ac_exec_ext in '' $ac_executable_extensions; do
17144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17145     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17147     break 2
17148   fi
17149 done
17150   done
17151 IFS=$as_save_IFS
17152 
17153   ;;
17154 esac
17155 fi
17156 LDD=$ac_cv_path_LDD
17157 if test -n "$LDD"; then
17158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17159 $as_echo "$LDD" >&6; }
17160 else
17161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17162 $as_echo "no" >&6; }
17163 fi
17164 
17165 
17166   test -n "$LDD" && break
17167 done
17168 
17169     else
17170       # If it succeeded, then it was overridden by the user. We will use it
17171       # for the tool.
17172 
17173       # First remove it from the list of overridden variables, so we can test
17174       # for unknown variables in the end.
17175       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17176 
17177       # Check if the provided tool contains a complete path.
17178       tool_specified="$LDD"
17179       tool_basename="${tool_specified##*/}"
17180       if test "x$tool_basename" = "x$tool_specified"; then
17181         # A command without a complete path is provided, search $PATH.
17182         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17183 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17184         # Extract the first word of "$tool_basename", so it can be a program name with args.
17185 set dummy $tool_basename; ac_word=$2
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17187 $as_echo_n "checking for $ac_word... " >&6; }
17188 if ${ac_cv_path_LDD+:} false; then :
17189   $as_echo_n "(cached) " >&6
17190 else
17191   case $LDD in
17192   [\\/]* | ?:[\\/]*)
17193   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17194   ;;
17195   *)
17196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197 for as_dir in $PATH
17198 do
17199   IFS=$as_save_IFS
17200   test -z "$as_dir" && as_dir=.
17201     for ac_exec_ext in '' $ac_executable_extensions; do
17202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17203     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17205     break 2
17206   fi
17207 done
17208   done
17209 IFS=$as_save_IFS
17210 
17211   ;;
17212 esac
17213 fi
17214 LDD=$ac_cv_path_LDD
17215 if test -n "$LDD"; then
17216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17217 $as_echo "$LDD" >&6; }
17218 else
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17220 $as_echo "no" >&6; }
17221 fi
17222 
17223 
17224         if test "x$LDD" = x; then
17225           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17226         fi
17227       else
17228         # Otherwise we believe it is a complete path. Use it as it is.
17229         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17230 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17232 $as_echo_n "checking for LDD... " >&6; }
17233         if test ! -x "$tool_specified"; then
17234           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17235 $as_echo "not found" >&6; }
17236           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17237         fi
17238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17239 $as_echo "$tool_specified" >&6; }
17240       fi
17241     fi
17242   fi
17243 
17244 
17245   if test "x$LDD" = "x"; then
17246     # List shared lib dependencies is used for
17247     # debug output and checking for forbidden dependencies.
17248     # We can build without it.
17249     LDD="true"
17250   fi
17251 
17252 
17253   # Publish this variable in the help.
17254 
17255 
17256   if test "x$OTOOL" = x; then
17257     # The variable is not set by user, try to locate tool using the code snippet
17258     for ac_prog in otool
17259 do
17260   # Extract the first word of "$ac_prog", so it can be a program name with args.
17261 set dummy $ac_prog; ac_word=$2
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17263 $as_echo_n "checking for $ac_word... " >&6; }
17264 if ${ac_cv_path_OTOOL+:} false; then :
17265   $as_echo_n "(cached) " >&6
17266 else
17267   case $OTOOL in
17268   [\\/]* | ?:[\\/]*)
17269   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17270   ;;
17271   *)
17272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273 for as_dir in $PATH
17274 do
17275   IFS=$as_save_IFS
17276   test -z "$as_dir" && as_dir=.
17277     for ac_exec_ext in '' $ac_executable_extensions; do
17278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17279     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17281     break 2
17282   fi
17283 done
17284   done
17285 IFS=$as_save_IFS
17286 
17287   ;;
17288 esac
17289 fi
17290 OTOOL=$ac_cv_path_OTOOL
17291 if test -n "$OTOOL"; then
17292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17293 $as_echo "$OTOOL" >&6; }
17294 else
17295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296 $as_echo "no" >&6; }
17297 fi
17298 
17299 
17300   test -n "$OTOOL" && break
17301 done
17302 
17303   else
17304     # The variable is set, but is it from the command line or the environment?
17305 
17306     # Try to remove the string !OTOOL! from our list.
17307     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17308     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17309       # If it failed, the variable was not from the command line. Ignore it,
17310       # but warn the user (except for BASH, which is always set by the calling BASH).
17311       if test "xOTOOL" != xBASH; then
17312         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17313 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17314       fi
17315       # Try to locate tool using the code snippet
17316       for ac_prog in otool
17317 do
17318   # Extract the first word of "$ac_prog", so it can be a program name with args.
17319 set dummy $ac_prog; ac_word=$2
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17321 $as_echo_n "checking for $ac_word... " >&6; }
17322 if ${ac_cv_path_OTOOL+:} false; then :
17323   $as_echo_n "(cached) " >&6
17324 else
17325   case $OTOOL in
17326   [\\/]* | ?:[\\/]*)
17327   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17328   ;;
17329   *)
17330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 for as_dir in $PATH
17332 do
17333   IFS=$as_save_IFS
17334   test -z "$as_dir" && as_dir=.
17335     for ac_exec_ext in '' $ac_executable_extensions; do
17336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17337     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17339     break 2
17340   fi
17341 done
17342   done
17343 IFS=$as_save_IFS
17344 
17345   ;;
17346 esac
17347 fi
17348 OTOOL=$ac_cv_path_OTOOL
17349 if test -n "$OTOOL"; then
17350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17351 $as_echo "$OTOOL" >&6; }
17352 else
17353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17354 $as_echo "no" >&6; }
17355 fi
17356 
17357 
17358   test -n "$OTOOL" && break
17359 done
17360 
17361     else
17362       # If it succeeded, then it was overridden by the user. We will use it
17363       # for the tool.
17364 
17365       # First remove it from the list of overridden variables, so we can test
17366       # for unknown variables in the end.
17367       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17368 
17369       # Check if the provided tool contains a complete path.
17370       tool_specified="$OTOOL"
17371       tool_basename="${tool_specified##*/}"
17372       if test "x$tool_basename" = "x$tool_specified"; then
17373         # A command without a complete path is provided, search $PATH.
17374         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17375 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17376         # Extract the first word of "$tool_basename", so it can be a program name with args.
17377 set dummy $tool_basename; ac_word=$2
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17379 $as_echo_n "checking for $ac_word... " >&6; }
17380 if ${ac_cv_path_OTOOL+:} false; then :
17381   $as_echo_n "(cached) " >&6
17382 else
17383   case $OTOOL in
17384   [\\/]* | ?:[\\/]*)
17385   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17386   ;;
17387   *)
17388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17390 do
17391   IFS=$as_save_IFS
17392   test -z "$as_dir" && as_dir=.
17393     for ac_exec_ext in '' $ac_executable_extensions; do
17394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17395     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17397     break 2
17398   fi
17399 done
17400   done
17401 IFS=$as_save_IFS
17402 
17403   ;;
17404 esac
17405 fi
17406 OTOOL=$ac_cv_path_OTOOL
17407 if test -n "$OTOOL"; then
17408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17409 $as_echo "$OTOOL" >&6; }
17410 else
17411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412 $as_echo "no" >&6; }
17413 fi
17414 
17415 
17416         if test "x$OTOOL" = x; then
17417           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17418         fi
17419       else
17420         # Otherwise we believe it is a complete path. Use it as it is.
17421         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17422 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17424 $as_echo_n "checking for OTOOL... " >&6; }
17425         if test ! -x "$tool_specified"; then
17426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17427 $as_echo "not found" >&6; }
17428           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17429         fi
17430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17431 $as_echo "$tool_specified" >&6; }
17432       fi
17433     fi
17434   fi
17435 
17436 
17437   if test "x$OTOOL" = "x"; then
17438     OTOOL="true"
17439   fi
17440 
17441 
17442   # Publish this variable in the help.
17443 
17444 
17445   if test "x$READELF" = x; then
17446     # The variable is not set by user, try to locate tool using the code snippet
17447     for ac_prog in greadelf readelf
17448 do
17449   # Extract the first word of "$ac_prog", so it can be a program name with args.
17450 set dummy $ac_prog; ac_word=$2
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17452 $as_echo_n "checking for $ac_word... " >&6; }
17453 if ${ac_cv_path_READELF+:} false; then :
17454   $as_echo_n "(cached) " >&6
17455 else
17456   case $READELF in
17457   [\\/]* | ?:[\\/]*)
17458   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17459   ;;
17460   *)
17461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17462 for as_dir in $PATH
17463 do
17464   IFS=$as_save_IFS
17465   test -z "$as_dir" && as_dir=.
17466     for ac_exec_ext in '' $ac_executable_extensions; do
17467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17468     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17470     break 2
17471   fi
17472 done
17473   done
17474 IFS=$as_save_IFS
17475 
17476   ;;
17477 esac
17478 fi
17479 READELF=$ac_cv_path_READELF
17480 if test -n "$READELF"; then
17481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17482 $as_echo "$READELF" >&6; }
17483 else
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17485 $as_echo "no" >&6; }
17486 fi
17487 
17488 
17489   test -n "$READELF" && break
17490 done
17491 
17492   else
17493     # The variable is set, but is it from the command line or the environment?
17494 
17495     # Try to remove the string !READELF! from our list.
17496     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17497     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17498       # If it failed, the variable was not from the command line. Ignore it,
17499       # but warn the user (except for BASH, which is always set by the calling BASH).
17500       if test "xREADELF" != xBASH; then
17501         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17502 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17503       fi
17504       # Try to locate tool using the code snippet
17505       for ac_prog in greadelf readelf
17506 do
17507   # Extract the first word of "$ac_prog", so it can be a program name with args.
17508 set dummy $ac_prog; ac_word=$2
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17510 $as_echo_n "checking for $ac_word... " >&6; }
17511 if ${ac_cv_path_READELF+:} false; then :
17512   $as_echo_n "(cached) " >&6
17513 else
17514   case $READELF in
17515   [\\/]* | ?:[\\/]*)
17516   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17517   ;;
17518   *)
17519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17520 for as_dir in $PATH
17521 do
17522   IFS=$as_save_IFS
17523   test -z "$as_dir" && as_dir=.
17524     for ac_exec_ext in '' $ac_executable_extensions; do
17525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17526     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17528     break 2
17529   fi
17530 done
17531   done
17532 IFS=$as_save_IFS
17533 
17534   ;;
17535 esac
17536 fi
17537 READELF=$ac_cv_path_READELF
17538 if test -n "$READELF"; then
17539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17540 $as_echo "$READELF" >&6; }
17541 else
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543 $as_echo "no" >&6; }
17544 fi
17545 
17546 
17547   test -n "$READELF" && break
17548 done
17549 
17550     else
17551       # If it succeeded, then it was overridden by the user. We will use it
17552       # for the tool.
17553 
17554       # First remove it from the list of overridden variables, so we can test
17555       # for unknown variables in the end.
17556       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17557 
17558       # Check if the provided tool contains a complete path.
17559       tool_specified="$READELF"
17560       tool_basename="${tool_specified##*/}"
17561       if test "x$tool_basename" = "x$tool_specified"; then
17562         # A command without a complete path is provided, search $PATH.
17563         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17564 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17565         # Extract the first word of "$tool_basename", so it can be a program name with args.
17566 set dummy $tool_basename; ac_word=$2
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 $as_echo_n "checking for $ac_word... " >&6; }
17569 if ${ac_cv_path_READELF+:} false; then :
17570   $as_echo_n "(cached) " >&6
17571 else
17572   case $READELF in
17573   [\\/]* | ?:[\\/]*)
17574   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17575   ;;
17576   *)
17577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578 for as_dir in $PATH
17579 do
17580   IFS=$as_save_IFS
17581   test -z "$as_dir" && as_dir=.
17582     for ac_exec_ext in '' $ac_executable_extensions; do
17583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17584     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17586     break 2
17587   fi
17588 done
17589   done
17590 IFS=$as_save_IFS
17591 
17592   ;;
17593 esac
17594 fi
17595 READELF=$ac_cv_path_READELF
17596 if test -n "$READELF"; then
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17598 $as_echo "$READELF" >&6; }
17599 else
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17602 fi
17603 
17604 
17605         if test "x$READELF" = x; then
17606           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17607         fi
17608       else
17609         # Otherwise we believe it is a complete path. Use it as it is.
17610         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17611 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17613 $as_echo_n "checking for READELF... " >&6; }
17614         if test ! -x "$tool_specified"; then
17615           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17616 $as_echo "not found" >&6; }
17617           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17618         fi
17619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17620 $as_echo "$tool_specified" >&6; }
17621       fi
17622     fi
17623   fi
17624 
17625 
17626 
17627 
17628   # Publish this variable in the help.
17629 
17630 
17631   if test "x$HG" = x; then
17632     # The variable is not set by user, try to locate tool using the code snippet
17633     for ac_prog in hg
17634 do
17635   # Extract the first word of "$ac_prog", so it can be a program name with args.
17636 set dummy $ac_prog; ac_word=$2
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17638 $as_echo_n "checking for $ac_word... " >&6; }
17639 if ${ac_cv_path_HG+:} false; then :
17640   $as_echo_n "(cached) " >&6
17641 else
17642   case $HG in
17643   [\\/]* | ?:[\\/]*)
17644   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17645   ;;
17646   *)
17647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17648 for as_dir in $PATH
17649 do
17650   IFS=$as_save_IFS
17651   test -z "$as_dir" && as_dir=.
17652     for ac_exec_ext in '' $ac_executable_extensions; do
17653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17654     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17656     break 2
17657   fi
17658 done
17659   done
17660 IFS=$as_save_IFS
17661 
17662   ;;
17663 esac
17664 fi
17665 HG=$ac_cv_path_HG
17666 if test -n "$HG"; then
17667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17668 $as_echo "$HG" >&6; }
17669 else
17670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671 $as_echo "no" >&6; }
17672 fi
17673 
17674 
17675   test -n "$HG" && break
17676 done
17677 
17678   else
17679     # The variable is set, but is it from the command line or the environment?
17680 
17681     # Try to remove the string !HG! from our list.
17682     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17683     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17684       # If it failed, the variable was not from the command line. Ignore it,
17685       # but warn the user (except for BASH, which is always set by the calling BASH).
17686       if test "xHG" != xBASH; then
17687         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17688 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17689       fi
17690       # Try to locate tool using the code snippet
17691       for ac_prog in hg
17692 do
17693   # Extract the first word of "$ac_prog", so it can be a program name with args.
17694 set dummy $ac_prog; ac_word=$2
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17696 $as_echo_n "checking for $ac_word... " >&6; }
17697 if ${ac_cv_path_HG+:} false; then :
17698   $as_echo_n "(cached) " >&6
17699 else
17700   case $HG in
17701   [\\/]* | ?:[\\/]*)
17702   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17703   ;;
17704   *)
17705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17706 for as_dir in $PATH
17707 do
17708   IFS=$as_save_IFS
17709   test -z "$as_dir" && as_dir=.
17710     for ac_exec_ext in '' $ac_executable_extensions; do
17711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17712     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17714     break 2
17715   fi
17716 done
17717   done
17718 IFS=$as_save_IFS
17719 
17720   ;;
17721 esac
17722 fi
17723 HG=$ac_cv_path_HG
17724 if test -n "$HG"; then
17725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17726 $as_echo "$HG" >&6; }
17727 else
17728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729 $as_echo "no" >&6; }
17730 fi
17731 
17732 
17733   test -n "$HG" && break
17734 done
17735 
17736     else
17737       # If it succeeded, then it was overridden by the user. We will use it
17738       # for the tool.
17739 
17740       # First remove it from the list of overridden variables, so we can test
17741       # for unknown variables in the end.
17742       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17743 
17744       # Check if the provided tool contains a complete path.
17745       tool_specified="$HG"
17746       tool_basename="${tool_specified##*/}"
17747       if test "x$tool_basename" = "x$tool_specified"; then
17748         # A command without a complete path is provided, search $PATH.
17749         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17750 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17751         # Extract the first word of "$tool_basename", so it can be a program name with args.
17752 set dummy $tool_basename; ac_word=$2
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17754 $as_echo_n "checking for $ac_word... " >&6; }
17755 if ${ac_cv_path_HG+:} false; then :
17756   $as_echo_n "(cached) " >&6
17757 else
17758   case $HG in
17759   [\\/]* | ?:[\\/]*)
17760   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17761   ;;
17762   *)
17763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764 for as_dir in $PATH
17765 do
17766   IFS=$as_save_IFS
17767   test -z "$as_dir" && as_dir=.
17768     for ac_exec_ext in '' $ac_executable_extensions; do
17769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17770     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17772     break 2
17773   fi
17774 done
17775   done
17776 IFS=$as_save_IFS
17777 
17778   ;;
17779 esac
17780 fi
17781 HG=$ac_cv_path_HG
17782 if test -n "$HG"; then
17783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17784 $as_echo "$HG" >&6; }
17785 else
17786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787 $as_echo "no" >&6; }
17788 fi
17789 
17790 
17791         if test "x$HG" = x; then
17792           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17793         fi
17794       else
17795         # Otherwise we believe it is a complete path. Use it as it is.
17796         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17797 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17798         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17799 $as_echo_n "checking for HG... " >&6; }
17800         if test ! -x "$tool_specified"; then
17801           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17802 $as_echo "not found" >&6; }
17803           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17804         fi
17805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17806 $as_echo "$tool_specified" >&6; }
17807       fi
17808     fi
17809   fi
17810 
17811 
17812 
17813 
17814   # Publish this variable in the help.
17815 
17816 
17817   if test "x$STAT" = x; then
17818     # The variable is not set by user, try to locate tool using the code snippet
17819     for ac_prog in stat
17820 do
17821   # Extract the first word of "$ac_prog", so it can be a program name with args.
17822 set dummy $ac_prog; ac_word=$2
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824 $as_echo_n "checking for $ac_word... " >&6; }
17825 if ${ac_cv_path_STAT+:} false; then :
17826   $as_echo_n "(cached) " >&6
17827 else
17828   case $STAT in
17829   [\\/]* | ?:[\\/]*)
17830   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17831   ;;
17832   *)
17833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17834 for as_dir in $PATH
17835 do
17836   IFS=$as_save_IFS
17837   test -z "$as_dir" && as_dir=.
17838     for ac_exec_ext in '' $ac_executable_extensions; do
17839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17840     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17842     break 2
17843   fi
17844 done
17845   done
17846 IFS=$as_save_IFS
17847 
17848   ;;
17849 esac
17850 fi
17851 STAT=$ac_cv_path_STAT
17852 if test -n "$STAT"; then
17853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17854 $as_echo "$STAT" >&6; }
17855 else
17856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17857 $as_echo "no" >&6; }
17858 fi
17859 
17860 
17861   test -n "$STAT" && break
17862 done
17863 
17864   else
17865     # The variable is set, but is it from the command line or the environment?
17866 
17867     # Try to remove the string !STAT! from our list.
17868     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
17869     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17870       # If it failed, the variable was not from the command line. Ignore it,
17871       # but warn the user (except for BASH, which is always set by the calling BASH).
17872       if test "xSTAT" != xBASH; then
17873         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
17874 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
17875       fi
17876       # Try to locate tool using the code snippet
17877       for ac_prog in stat
17878 do
17879   # Extract the first word of "$ac_prog", so it can be a program name with args.
17880 set dummy $ac_prog; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882 $as_echo_n "checking for $ac_word... " >&6; }
17883 if ${ac_cv_path_STAT+:} false; then :
17884   $as_echo_n "(cached) " >&6
17885 else
17886   case $STAT in
17887   [\\/]* | ?:[\\/]*)
17888   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17889   ;;
17890   *)
17891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17893 do
17894   IFS=$as_save_IFS
17895   test -z "$as_dir" && as_dir=.
17896     for ac_exec_ext in '' $ac_executable_extensions; do
17897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17898     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17900     break 2
17901   fi
17902 done
17903   done
17904 IFS=$as_save_IFS
17905 
17906   ;;
17907 esac
17908 fi
17909 STAT=$ac_cv_path_STAT
17910 if test -n "$STAT"; then
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17912 $as_echo "$STAT" >&6; }
17913 else
17914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17916 fi
17917 
17918 
17919   test -n "$STAT" && break
17920 done
17921 
17922     else
17923       # If it succeeded, then it was overridden by the user. We will use it
17924       # for the tool.
17925 
17926       # First remove it from the list of overridden variables, so we can test
17927       # for unknown variables in the end.
17928       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17929 
17930       # Check if the provided tool contains a complete path.
17931       tool_specified="$STAT"
17932       tool_basename="${tool_specified##*/}"
17933       if test "x$tool_basename" = "x$tool_specified"; then
17934         # A command without a complete path is provided, search $PATH.
17935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
17936 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
17937         # Extract the first word of "$tool_basename", so it can be a program name with args.
17938 set dummy $tool_basename; ac_word=$2
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17940 $as_echo_n "checking for $ac_word... " >&6; }
17941 if ${ac_cv_path_STAT+:} false; then :
17942   $as_echo_n "(cached) " >&6
17943 else
17944   case $STAT in
17945   [\\/]* | ?:[\\/]*)
17946   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17947   ;;
17948   *)
17949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17950 for as_dir in $PATH
17951 do
17952   IFS=$as_save_IFS
17953   test -z "$as_dir" && as_dir=.
17954     for ac_exec_ext in '' $ac_executable_extensions; do
17955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17956     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17958     break 2
17959   fi
17960 done
17961   done
17962 IFS=$as_save_IFS
17963 
17964   ;;
17965 esac
17966 fi
17967 STAT=$ac_cv_path_STAT
17968 if test -n "$STAT"; then
17969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17970 $as_echo "$STAT" >&6; }
17971 else
17972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17974 fi
17975 
17976 
17977         if test "x$STAT" = x; then
17978           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17979         fi
17980       else
17981         # Otherwise we believe it is a complete path. Use it as it is.
17982         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
17983 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
17984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
17985 $as_echo_n "checking for STAT... " >&6; }
17986         if test ! -x "$tool_specified"; then
17987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17988 $as_echo "not found" >&6; }
17989           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
17990         fi
17991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17992 $as_echo "$tool_specified" >&6; }
17993       fi
17994     fi
17995   fi
17996 
17997 
17998 
17999 
18000   # Publish this variable in the help.
18001 
18002 
18003   if test "x$TIME" = x; then
18004     # The variable is not set by user, try to locate tool using the code snippet
18005     for ac_prog in time
18006 do
18007   # Extract the first word of "$ac_prog", so it can be a program name with args.
18008 set dummy $ac_prog; ac_word=$2
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18010 $as_echo_n "checking for $ac_word... " >&6; }
18011 if ${ac_cv_path_TIME+:} false; then :
18012   $as_echo_n "(cached) " >&6
18013 else
18014   case $TIME in
18015   [\\/]* | ?:[\\/]*)
18016   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18017   ;;
18018   *)
18019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18020 for as_dir in $PATH
18021 do
18022   IFS=$as_save_IFS
18023   test -z "$as_dir" && as_dir=.
18024     for ac_exec_ext in '' $ac_executable_extensions; do
18025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18026     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18028     break 2
18029   fi
18030 done
18031   done
18032 IFS=$as_save_IFS
18033 
18034   ;;
18035 esac
18036 fi
18037 TIME=$ac_cv_path_TIME
18038 if test -n "$TIME"; then
18039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18040 $as_echo "$TIME" >&6; }
18041 else
18042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 $as_echo "no" >&6; }
18044 fi
18045 
18046 
18047   test -n "$TIME" && break
18048 done
18049 
18050   else
18051     # The variable is set, but is it from the command line or the environment?
18052 
18053     # Try to remove the string !TIME! from our list.
18054     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18055     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18056       # If it failed, the variable was not from the command line. Ignore it,
18057       # but warn the user (except for BASH, which is always set by the calling BASH).
18058       if test "xTIME" != xBASH; then
18059         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18060 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18061       fi
18062       # Try to locate tool using the code snippet
18063       for ac_prog in time
18064 do
18065   # Extract the first word of "$ac_prog", so it can be a program name with args.
18066 set dummy $ac_prog; ac_word=$2
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18068 $as_echo_n "checking for $ac_word... " >&6; }
18069 if ${ac_cv_path_TIME+:} false; then :
18070   $as_echo_n "(cached) " >&6
18071 else
18072   case $TIME in
18073   [\\/]* | ?:[\\/]*)
18074   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18075   ;;
18076   *)
18077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18078 for as_dir in $PATH
18079 do
18080   IFS=$as_save_IFS
18081   test -z "$as_dir" && as_dir=.
18082     for ac_exec_ext in '' $ac_executable_extensions; do
18083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18084     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18086     break 2
18087   fi
18088 done
18089   done
18090 IFS=$as_save_IFS
18091 
18092   ;;
18093 esac
18094 fi
18095 TIME=$ac_cv_path_TIME
18096 if test -n "$TIME"; then
18097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18098 $as_echo "$TIME" >&6; }
18099 else
18100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18101 $as_echo "no" >&6; }
18102 fi
18103 
18104 
18105   test -n "$TIME" && break
18106 done
18107 
18108     else
18109       # If it succeeded, then it was overridden by the user. We will use it
18110       # for the tool.
18111 
18112       # First remove it from the list of overridden variables, so we can test
18113       # for unknown variables in the end.
18114       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18115 
18116       # Check if the provided tool contains a complete path.
18117       tool_specified="$TIME"
18118       tool_basename="${tool_specified##*/}"
18119       if test "x$tool_basename" = "x$tool_specified"; then
18120         # A command without a complete path is provided, search $PATH.
18121         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18122 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18123         # Extract the first word of "$tool_basename", so it can be a program name with args.
18124 set dummy $tool_basename; ac_word=$2
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18126 $as_echo_n "checking for $ac_word... " >&6; }
18127 if ${ac_cv_path_TIME+:} false; then :
18128   $as_echo_n "(cached) " >&6
18129 else
18130   case $TIME in
18131   [\\/]* | ?:[\\/]*)
18132   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18133   ;;
18134   *)
18135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in $PATH
18137 do
18138   IFS=$as_save_IFS
18139   test -z "$as_dir" && as_dir=.
18140     for ac_exec_ext in '' $ac_executable_extensions; do
18141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18142     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18144     break 2
18145   fi
18146 done
18147   done
18148 IFS=$as_save_IFS
18149 
18150   ;;
18151 esac
18152 fi
18153 TIME=$ac_cv_path_TIME
18154 if test -n "$TIME"; then
18155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18156 $as_echo "$TIME" >&6; }
18157 else
18158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18159 $as_echo "no" >&6; }
18160 fi
18161 
18162 
18163         if test "x$TIME" = x; then
18164           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18165         fi
18166       else
18167         # Otherwise we believe it is a complete path. Use it as it is.
18168         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18169 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18170         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18171 $as_echo_n "checking for TIME... " >&6; }
18172         if test ! -x "$tool_specified"; then
18173           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18174 $as_echo "not found" >&6; }
18175           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18176         fi
18177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18178 $as_echo "$tool_specified" >&6; }
18179       fi
18180     fi
18181   fi
18182 
18183 
18184   # Check if it's GNU time
18185   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18186   if test "x$IS_GNU_TIME" != x; then
18187     IS_GNU_TIME=yes
18188   else
18189     IS_GNU_TIME=no
18190   fi
18191 
18192 
18193   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18194 
18195 
18196 
18197   # Publish this variable in the help.
18198 
18199 
18200   if test "x$COMM" = x; then
18201     # The variable is not set by user, try to locate tool using the code snippet
18202     for ac_prog in comm
18203 do
18204   # Extract the first word of "$ac_prog", so it can be a program name with args.
18205 set dummy $ac_prog; ac_word=$2
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18207 $as_echo_n "checking for $ac_word... " >&6; }
18208 if ${ac_cv_path_COMM+:} false; then :
18209   $as_echo_n "(cached) " >&6
18210 else
18211   case $COMM in
18212   [\\/]* | ?:[\\/]*)
18213   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18214   ;;
18215   *)
18216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18217 for as_dir in $PATH
18218 do
18219   IFS=$as_save_IFS
18220   test -z "$as_dir" && as_dir=.
18221     for ac_exec_ext in '' $ac_executable_extensions; do
18222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18223     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18225     break 2
18226   fi
18227 done
18228   done
18229 IFS=$as_save_IFS
18230 
18231   ;;
18232 esac
18233 fi
18234 COMM=$ac_cv_path_COMM
18235 if test -n "$COMM"; then
18236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18237 $as_echo "$COMM" >&6; }
18238 else
18239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18240 $as_echo "no" >&6; }
18241 fi
18242 
18243 
18244   test -n "$COMM" && break
18245 done
18246 
18247   else
18248     # The variable is set, but is it from the command line or the environment?
18249 
18250     # Try to remove the string !COMM! from our list.
18251     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18252     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18253       # If it failed, the variable was not from the command line. Ignore it,
18254       # but warn the user (except for BASH, which is always set by the calling BASH).
18255       if test "xCOMM" != xBASH; then
18256         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18257 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18258       fi
18259       # Try to locate tool using the code snippet
18260       for ac_prog in comm
18261 do
18262   # Extract the first word of "$ac_prog", so it can be a program name with args.
18263 set dummy $ac_prog; ac_word=$2
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18265 $as_echo_n "checking for $ac_word... " >&6; }
18266 if ${ac_cv_path_COMM+:} false; then :
18267   $as_echo_n "(cached) " >&6
18268 else
18269   case $COMM in
18270   [\\/]* | ?:[\\/]*)
18271   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18272   ;;
18273   *)
18274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18275 for as_dir in $PATH
18276 do
18277   IFS=$as_save_IFS
18278   test -z "$as_dir" && as_dir=.
18279     for ac_exec_ext in '' $ac_executable_extensions; do
18280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18281     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18283     break 2
18284   fi
18285 done
18286   done
18287 IFS=$as_save_IFS
18288 
18289   ;;
18290 esac
18291 fi
18292 COMM=$ac_cv_path_COMM
18293 if test -n "$COMM"; then
18294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18295 $as_echo "$COMM" >&6; }
18296 else
18297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298 $as_echo "no" >&6; }
18299 fi
18300 
18301 
18302   test -n "$COMM" && break
18303 done
18304 
18305     else
18306       # If it succeeded, then it was overridden by the user. We will use it
18307       # for the tool.
18308 
18309       # First remove it from the list of overridden variables, so we can test
18310       # for unknown variables in the end.
18311       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18312 
18313       # Check if the provided tool contains a complete path.
18314       tool_specified="$COMM"
18315       tool_basename="${tool_specified##*/}"
18316       if test "x$tool_basename" = "x$tool_specified"; then
18317         # A command without a complete path is provided, search $PATH.
18318         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18319 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18320         # Extract the first word of "$tool_basename", so it can be a program name with args.
18321 set dummy $tool_basename; ac_word=$2
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18323 $as_echo_n "checking for $ac_word... " >&6; }
18324 if ${ac_cv_path_COMM+:} false; then :
18325   $as_echo_n "(cached) " >&6
18326 else
18327   case $COMM in
18328   [\\/]* | ?:[\\/]*)
18329   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18330   ;;
18331   *)
18332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337     for ac_exec_ext in '' $ac_executable_extensions; do
18338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18339     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18341     break 2
18342   fi
18343 done
18344   done
18345 IFS=$as_save_IFS
18346 
18347   ;;
18348 esac
18349 fi
18350 COMM=$ac_cv_path_COMM
18351 if test -n "$COMM"; then
18352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18353 $as_echo "$COMM" >&6; }
18354 else
18355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356 $as_echo "no" >&6; }
18357 fi
18358 
18359 
18360         if test "x$COMM" = x; then
18361           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18362         fi
18363       else
18364         # Otherwise we believe it is a complete path. Use it as it is.
18365         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18366 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18367         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18368 $as_echo_n "checking for COMM... " >&6; }
18369         if test ! -x "$tool_specified"; then
18370           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18371 $as_echo "not found" >&6; }
18372           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18373         fi
18374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18375 $as_echo "$tool_specified" >&6; }
18376       fi
18377     fi
18378   fi
18379 
18380 
18381 
18382   if test "x$COMM" = x; then
18383     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18384   fi
18385 
18386 
18387   fi
18388 
18389   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18390 
18391 
18392 
18393   # Publish this variable in the help.
18394 
18395 
18396   if test "x$DSYMUTIL" = x; then
18397     # The variable is not set by user, try to locate tool using the code snippet
18398     for ac_prog in dsymutil
18399 do
18400   # Extract the first word of "$ac_prog", so it can be a program name with args.
18401 set dummy $ac_prog; ac_word=$2
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18403 $as_echo_n "checking for $ac_word... " >&6; }
18404 if ${ac_cv_path_DSYMUTIL+:} false; then :
18405   $as_echo_n "(cached) " >&6
18406 else
18407   case $DSYMUTIL in
18408   [\\/]* | ?:[\\/]*)
18409   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18410   ;;
18411   *)
18412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18414 do
18415   IFS=$as_save_IFS
18416   test -z "$as_dir" && as_dir=.
18417     for ac_exec_ext in '' $ac_executable_extensions; do
18418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18419     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18421     break 2
18422   fi
18423 done
18424   done
18425 IFS=$as_save_IFS
18426 
18427   ;;
18428 esac
18429 fi
18430 DSYMUTIL=$ac_cv_path_DSYMUTIL
18431 if test -n "$DSYMUTIL"; then
18432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18433 $as_echo "$DSYMUTIL" >&6; }
18434 else
18435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18436 $as_echo "no" >&6; }
18437 fi
18438 
18439 
18440   test -n "$DSYMUTIL" && break
18441 done
18442 
18443   else
18444     # The variable is set, but is it from the command line or the environment?
18445 
18446     # Try to remove the string !DSYMUTIL! from our list.
18447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18449       # If it failed, the variable was not from the command line. Ignore it,
18450       # but warn the user (except for BASH, which is always set by the calling BASH).
18451       if test "xDSYMUTIL" != xBASH; then
18452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18453 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18454       fi
18455       # Try to locate tool using the code snippet
18456       for ac_prog in dsymutil
18457 do
18458   # Extract the first word of "$ac_prog", so it can be a program name with args.
18459 set dummy $ac_prog; ac_word=$2
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18461 $as_echo_n "checking for $ac_word... " >&6; }
18462 if ${ac_cv_path_DSYMUTIL+:} false; then :
18463   $as_echo_n "(cached) " >&6
18464 else
18465   case $DSYMUTIL in
18466   [\\/]* | ?:[\\/]*)
18467   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18468   ;;
18469   *)
18470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18471 for as_dir in $PATH
18472 do
18473   IFS=$as_save_IFS
18474   test -z "$as_dir" && as_dir=.
18475     for ac_exec_ext in '' $ac_executable_extensions; do
18476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18477     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18479     break 2
18480   fi
18481 done
18482   done
18483 IFS=$as_save_IFS
18484 
18485   ;;
18486 esac
18487 fi
18488 DSYMUTIL=$ac_cv_path_DSYMUTIL
18489 if test -n "$DSYMUTIL"; then
18490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18491 $as_echo "$DSYMUTIL" >&6; }
18492 else
18493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18494 $as_echo "no" >&6; }
18495 fi
18496 
18497 
18498   test -n "$DSYMUTIL" && break
18499 done
18500 
18501     else
18502       # If it succeeded, then it was overridden by the user. We will use it
18503       # for the tool.
18504 
18505       # First remove it from the list of overridden variables, so we can test
18506       # for unknown variables in the end.
18507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18508 
18509       # Check if the provided tool contains a complete path.
18510       tool_specified="$DSYMUTIL"
18511       tool_basename="${tool_specified##*/}"
18512       if test "x$tool_basename" = "x$tool_specified"; then
18513         # A command without a complete path is provided, search $PATH.
18514         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18515 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18516         # Extract the first word of "$tool_basename", so it can be a program name with args.
18517 set dummy $tool_basename; ac_word=$2
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18519 $as_echo_n "checking for $ac_word... " >&6; }
18520 if ${ac_cv_path_DSYMUTIL+:} false; then :
18521   $as_echo_n "(cached) " >&6
18522 else
18523   case $DSYMUTIL in
18524   [\\/]* | ?:[\\/]*)
18525   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18526   ;;
18527   *)
18528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533     for ac_exec_ext in '' $ac_executable_extensions; do
18534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18537     break 2
18538   fi
18539 done
18540   done
18541 IFS=$as_save_IFS
18542 
18543   ;;
18544 esac
18545 fi
18546 DSYMUTIL=$ac_cv_path_DSYMUTIL
18547 if test -n "$DSYMUTIL"; then
18548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18549 $as_echo "$DSYMUTIL" >&6; }
18550 else
18551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18552 $as_echo "no" >&6; }
18553 fi
18554 
18555 
18556         if test "x$DSYMUTIL" = x; then
18557           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18558         fi
18559       else
18560         # Otherwise we believe it is a complete path. Use it as it is.
18561         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18562 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18564 $as_echo_n "checking for DSYMUTIL... " >&6; }
18565         if test ! -x "$tool_specified"; then
18566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18567 $as_echo "not found" >&6; }
18568           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18569         fi
18570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18571 $as_echo "$tool_specified" >&6; }
18572       fi
18573     fi
18574   fi
18575 
18576 
18577 
18578   if test "x$DSYMUTIL" = x; then
18579     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18580   fi
18581 
18582 
18583 
18584 
18585 
18586   # Publish this variable in the help.
18587 
18588 
18589   if test "x$XATTR" = x; then
18590     # The variable is not set by user, try to locate tool using the code snippet
18591     for ac_prog in xattr
18592 do
18593   # Extract the first word of "$ac_prog", so it can be a program name with args.
18594 set dummy $ac_prog; ac_word=$2
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18596 $as_echo_n "checking for $ac_word... " >&6; }
18597 if ${ac_cv_path_XATTR+:} false; then :
18598   $as_echo_n "(cached) " >&6
18599 else
18600   case $XATTR in
18601   [\\/]* | ?:[\\/]*)
18602   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18603   ;;
18604   *)
18605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18606 for as_dir in $PATH
18607 do
18608   IFS=$as_save_IFS
18609   test -z "$as_dir" && as_dir=.
18610     for ac_exec_ext in '' $ac_executable_extensions; do
18611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18612     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18614     break 2
18615   fi
18616 done
18617   done
18618 IFS=$as_save_IFS
18619 
18620   ;;
18621 esac
18622 fi
18623 XATTR=$ac_cv_path_XATTR
18624 if test -n "$XATTR"; then
18625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18626 $as_echo "$XATTR" >&6; }
18627 else
18628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18629 $as_echo "no" >&6; }
18630 fi
18631 
18632 
18633   test -n "$XATTR" && break
18634 done
18635 
18636   else
18637     # The variable is set, but is it from the command line or the environment?
18638 
18639     # Try to remove the string !XATTR! from our list.
18640     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18641     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18642       # If it failed, the variable was not from the command line. Ignore it,
18643       # but warn the user (except for BASH, which is always set by the calling BASH).
18644       if test "xXATTR" != xBASH; then
18645         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18646 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18647       fi
18648       # Try to locate tool using the code snippet
18649       for ac_prog in xattr
18650 do
18651   # Extract the first word of "$ac_prog", so it can be a program name with args.
18652 set dummy $ac_prog; ac_word=$2
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18654 $as_echo_n "checking for $ac_word... " >&6; }
18655 if ${ac_cv_path_XATTR+:} false; then :
18656   $as_echo_n "(cached) " >&6
18657 else
18658   case $XATTR in
18659   [\\/]* | ?:[\\/]*)
18660   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18661   ;;
18662   *)
18663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664 for as_dir in $PATH
18665 do
18666   IFS=$as_save_IFS
18667   test -z "$as_dir" && as_dir=.
18668     for ac_exec_ext in '' $ac_executable_extensions; do
18669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18672     break 2
18673   fi
18674 done
18675   done
18676 IFS=$as_save_IFS
18677 
18678   ;;
18679 esac
18680 fi
18681 XATTR=$ac_cv_path_XATTR
18682 if test -n "$XATTR"; then
18683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18684 $as_echo "$XATTR" >&6; }
18685 else
18686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18687 $as_echo "no" >&6; }
18688 fi
18689 
18690 
18691   test -n "$XATTR" && break
18692 done
18693 
18694     else
18695       # If it succeeded, then it was overridden by the user. We will use it
18696       # for the tool.
18697 
18698       # First remove it from the list of overridden variables, so we can test
18699       # for unknown variables in the end.
18700       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18701 
18702       # Check if the provided tool contains a complete path.
18703       tool_specified="$XATTR"
18704       tool_basename="${tool_specified##*/}"
18705       if test "x$tool_basename" = "x$tool_specified"; then
18706         # A command without a complete path is provided, search $PATH.
18707         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18708 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18709         # Extract the first word of "$tool_basename", so it can be a program name with args.
18710 set dummy $tool_basename; ac_word=$2
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18712 $as_echo_n "checking for $ac_word... " >&6; }
18713 if ${ac_cv_path_XATTR+:} false; then :
18714   $as_echo_n "(cached) " >&6
18715 else
18716   case $XATTR in
18717   [\\/]* | ?:[\\/]*)
18718   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18719   ;;
18720   *)
18721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18722 for as_dir in $PATH
18723 do
18724   IFS=$as_save_IFS
18725   test -z "$as_dir" && as_dir=.
18726     for ac_exec_ext in '' $ac_executable_extensions; do
18727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18728     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18730     break 2
18731   fi
18732 done
18733   done
18734 IFS=$as_save_IFS
18735 
18736   ;;
18737 esac
18738 fi
18739 XATTR=$ac_cv_path_XATTR
18740 if test -n "$XATTR"; then
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18742 $as_echo "$XATTR" >&6; }
18743 else
18744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745 $as_echo "no" >&6; }
18746 fi
18747 
18748 
18749         if test "x$XATTR" = x; then
18750           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18751         fi
18752       else
18753         # Otherwise we believe it is a complete path. Use it as it is.
18754         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18755 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18757 $as_echo_n "checking for XATTR... " >&6; }
18758         if test ! -x "$tool_specified"; then
18759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18760 $as_echo "not found" >&6; }
18761           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18762         fi
18763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18764 $as_echo "$tool_specified" >&6; }
18765       fi
18766     fi
18767   fi
18768 
18769 
18770 
18771   if test "x$XATTR" = x; then
18772     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18773   fi
18774 
18775 
18776 
18777 
18778   # Publish this variable in the help.
18779 
18780 
18781   if test "x$CODESIGN" = x; then
18782     # The variable is not set by user, try to locate tool using the code snippet
18783     for ac_prog in codesign
18784 do
18785   # Extract the first word of "$ac_prog", so it can be a program name with args.
18786 set dummy $ac_prog; ac_word=$2
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18788 $as_echo_n "checking for $ac_word... " >&6; }
18789 if ${ac_cv_path_CODESIGN+:} false; then :
18790   $as_echo_n "(cached) " >&6
18791 else
18792   case $CODESIGN in
18793   [\\/]* | ?:[\\/]*)
18794   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18795   ;;
18796   *)
18797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18798 for as_dir in $PATH
18799 do
18800   IFS=$as_save_IFS
18801   test -z "$as_dir" && as_dir=.
18802     for ac_exec_ext in '' $ac_executable_extensions; do
18803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18804     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18806     break 2
18807   fi
18808 done
18809   done
18810 IFS=$as_save_IFS
18811 
18812   ;;
18813 esac
18814 fi
18815 CODESIGN=$ac_cv_path_CODESIGN
18816 if test -n "$CODESIGN"; then
18817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18818 $as_echo "$CODESIGN" >&6; }
18819 else
18820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821 $as_echo "no" >&6; }
18822 fi
18823 
18824 
18825   test -n "$CODESIGN" && break
18826 done
18827 
18828   else
18829     # The variable is set, but is it from the command line or the environment?
18830 
18831     # Try to remove the string !CODESIGN! from our list.
18832     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18833     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18834       # If it failed, the variable was not from the command line. Ignore it,
18835       # but warn the user (except for BASH, which is always set by the calling BASH).
18836       if test "xCODESIGN" != xBASH; then
18837         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18838 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18839       fi
18840       # Try to locate tool using the code snippet
18841       for ac_prog in codesign
18842 do
18843   # Extract the first word of "$ac_prog", so it can be a program name with args.
18844 set dummy $ac_prog; ac_word=$2
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18846 $as_echo_n "checking for $ac_word... " >&6; }
18847 if ${ac_cv_path_CODESIGN+:} false; then :
18848   $as_echo_n "(cached) " >&6
18849 else
18850   case $CODESIGN in
18851   [\\/]* | ?:[\\/]*)
18852   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18853   ;;
18854   *)
18855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18856 for as_dir in $PATH
18857 do
18858   IFS=$as_save_IFS
18859   test -z "$as_dir" && as_dir=.
18860     for ac_exec_ext in '' $ac_executable_extensions; do
18861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18862     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18864     break 2
18865   fi
18866 done
18867   done
18868 IFS=$as_save_IFS
18869 
18870   ;;
18871 esac
18872 fi
18873 CODESIGN=$ac_cv_path_CODESIGN
18874 if test -n "$CODESIGN"; then
18875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18876 $as_echo "$CODESIGN" >&6; }
18877 else
18878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 $as_echo "no" >&6; }
18880 fi
18881 
18882 
18883   test -n "$CODESIGN" && break
18884 done
18885 
18886     else
18887       # If it succeeded, then it was overridden by the user. We will use it
18888       # for the tool.
18889 
18890       # First remove it from the list of overridden variables, so we can test
18891       # for unknown variables in the end.
18892       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18893 
18894       # Check if the provided tool contains a complete path.
18895       tool_specified="$CODESIGN"
18896       tool_basename="${tool_specified##*/}"
18897       if test "x$tool_basename" = "x$tool_specified"; then
18898         # A command without a complete path is provided, search $PATH.
18899         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
18900 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
18901         # Extract the first word of "$tool_basename", so it can be a program name with args.
18902 set dummy $tool_basename; ac_word=$2
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18904 $as_echo_n "checking for $ac_word... " >&6; }
18905 if ${ac_cv_path_CODESIGN+:} false; then :
18906   $as_echo_n "(cached) " >&6
18907 else
18908   case $CODESIGN in
18909   [\\/]* | ?:[\\/]*)
18910   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18911   ;;
18912   *)
18913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18914 for as_dir in $PATH
18915 do
18916   IFS=$as_save_IFS
18917   test -z "$as_dir" && as_dir=.
18918     for ac_exec_ext in '' $ac_executable_extensions; do
18919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18920     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18922     break 2
18923   fi
18924 done
18925   done
18926 IFS=$as_save_IFS
18927 
18928   ;;
18929 esac
18930 fi
18931 CODESIGN=$ac_cv_path_CODESIGN
18932 if test -n "$CODESIGN"; then
18933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18934 $as_echo "$CODESIGN" >&6; }
18935 else
18936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18937 $as_echo "no" >&6; }
18938 fi
18939 
18940 
18941         if test "x$CODESIGN" = x; then
18942           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18943         fi
18944       else
18945         # Otherwise we believe it is a complete path. Use it as it is.
18946         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
18947 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
18948         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
18949 $as_echo_n "checking for CODESIGN... " >&6; }
18950         if test ! -x "$tool_specified"; then
18951           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18952 $as_echo "not found" >&6; }
18953           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
18954         fi
18955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18956 $as_echo "$tool_specified" >&6; }
18957       fi
18958     fi
18959   fi
18960 
18961 
18962     if test "x$CODESIGN" != "x"; then
18963       # Verify that the openjdk_codesign certificate is present
18964       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
18965 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
18966       rm -f codesign-testfile
18967       touch codesign-testfile
18968       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
18969       rm -f codesign-testfile
18970       if test "x$CODESIGN" = x; then
18971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18973       else
18974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18975 $as_echo "yes" >&6; }
18976       fi
18977     fi
18978   fi
18979 
18980 
18981 # Check if pkg-config is available.
18982 
18983 
18984 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18985         if test -n "$ac_tool_prefix"; then
18986   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18989 $as_echo_n "checking for $ac_word... " >&6; }
18990 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18991   $as_echo_n "(cached) " >&6
18992 else
18993   case $PKG_CONFIG in
18994   [\\/]* | ?:[\\/]*)
18995   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18996   ;;
18997   *)
18998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18999 for as_dir in $PATH
19000 do
19001   IFS=$as_save_IFS
19002   test -z "$as_dir" && as_dir=.
19003     for ac_exec_ext in '' $ac_executable_extensions; do
19004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19005     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19007     break 2
19008   fi
19009 done
19010   done
19011 IFS=$as_save_IFS
19012 
19013   ;;
19014 esac
19015 fi
19016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19017 if test -n "$PKG_CONFIG"; then
19018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19019 $as_echo "$PKG_CONFIG" >&6; }
19020 else
19021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19022 $as_echo "no" >&6; }
19023 fi
19024 
19025 
19026 fi
19027 if test -z "$ac_cv_path_PKG_CONFIG"; then
19028   ac_pt_PKG_CONFIG=$PKG_CONFIG
19029   # Extract the first word of "pkg-config", so it can be a program name with args.
19030 set dummy pkg-config; ac_word=$2
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19032 $as_echo_n "checking for $ac_word... " >&6; }
19033 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19034   $as_echo_n "(cached) " >&6
19035 else
19036   case $ac_pt_PKG_CONFIG in
19037   [\\/]* | ?:[\\/]*)
19038   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19039   ;;
19040   *)
19041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19043 do
19044   IFS=$as_save_IFS
19045   test -z "$as_dir" && as_dir=.
19046     for ac_exec_ext in '' $ac_executable_extensions; do
19047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050     break 2
19051   fi
19052 done
19053   done
19054 IFS=$as_save_IFS
19055 
19056   ;;
19057 esac
19058 fi
19059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19060 if test -n "$ac_pt_PKG_CONFIG"; then
19061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19062 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19063 else
19064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19065 $as_echo "no" >&6; }
19066 fi
19067 
19068   if test "x$ac_pt_PKG_CONFIG" = x; then
19069     PKG_CONFIG=""
19070   else
19071     case $cross_compiling:$ac_tool_warned in
19072 yes:)
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19075 ac_tool_warned=yes ;;
19076 esac
19077     PKG_CONFIG=$ac_pt_PKG_CONFIG
19078   fi
19079 else
19080   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19081 fi
19082 
19083 fi
19084 if test -n "$PKG_CONFIG"; then
19085         _pkg_min_version=0.9.0
19086         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19087 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19088         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19089                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19090 $as_echo "yes" >&6; }
19091         else
19092                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19093 $as_echo "no" >&6; }
19094                 PKG_CONFIG=""
19095         fi
19096 
19097 fi
19098 
19099 # After basic tools have been setup, we can check build os specific details.
19100 
19101   ###############################################################################
19102 
19103   # Note that this is the build platform OS version!
19104 
19105   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19106   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19107   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19108   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19109 
19110 
19111 
19112 
19113 
19114 # Setup builddeps, for automatic downloading of tools we need.
19115 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19116 # boot-jdk setup, but we need to have basic tools setup first.
19117 
19118 
19119 # Check whether --with-builddeps-conf was given.
19120 if test "${with_builddeps_conf+set}" = set; then :
19121   withval=$with_builddeps_conf;
19122 fi
19123 
19124 
19125 
19126 # Check whether --with-builddeps-server was given.
19127 if test "${with_builddeps_server+set}" = set; then :
19128   withval=$with_builddeps_server;
19129 fi
19130 
19131 
19132 
19133 # Check whether --with-builddeps-dir was given.
19134 if test "${with_builddeps_dir+set}" = set; then :
19135   withval=$with_builddeps_dir;
19136 else
19137   with_builddeps_dir=/localhome/builddeps
19138 fi
19139 
19140 
19141 
19142 # Check whether --with-builddeps-group was given.
19143 if test "${with_builddeps_group+set}" = set; then :
19144   withval=$with_builddeps_group;
19145 fi
19146 
19147 
19148 
19149 
19150   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19151     if test "x$with_builddeps_conf" != x; then
19152       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19153 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19154       builddepsfile=$with_builddeps_conf
19155       if test -s $builddepsfile; then
19156         . $builddepsfile
19157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19158 $as_echo "loaded!" >&6; }
19159       else
19160         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19161       fi
19162     else
19163       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19164 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19165       builddepsfile=`mktemp`
19166       touch $builddepsfile
19167       # Put all found confs into a single file.
19168       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19169       # Source the file to acquire the variables
19170       if test -s $builddepsfile; then
19171         . $builddepsfile
19172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19173 $as_echo "found at least one!" >&6; }
19174       else
19175         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19176       fi
19177     fi
19178     # Create build and target names that use _ instead of "-" and ".".
19179     # This is necessary to use them in variable names.
19180     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19181     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19182     # Extract rewrite information for build and target
19183     eval rewritten_build=\${REWRITE_${build_var}}
19184     if test "x$rewritten_build" = x; then
19185       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19186       echo Build stays the same $rewritten_build
19187     else
19188       echo Rewriting build for builddeps into $rewritten_build
19189     fi
19190     eval rewritten_target=\${REWRITE_${target_var}}
19191     if test "x$rewritten_target" = x; then
19192       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19193       echo Target stays the same $rewritten_target
19194     else
19195       echo Rewriting target for builddeps into $rewritten_target
19196     fi
19197     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19198     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19199   fi
19200   for ac_prog in 7z unzip
19201 do
19202   # Extract the first word of "$ac_prog", so it can be a program name with args.
19203 set dummy $ac_prog; ac_word=$2
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19205 $as_echo_n "checking for $ac_word... " >&6; }
19206 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19207   $as_echo_n "(cached) " >&6
19208 else
19209   if test -n "$BDEPS_UNZIP"; then
19210   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19211 else
19212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19213 for as_dir in $PATH
19214 do
19215   IFS=$as_save_IFS
19216   test -z "$as_dir" && as_dir=.
19217     for ac_exec_ext in '' $ac_executable_extensions; do
19218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19219     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19221     break 2
19222   fi
19223 done
19224   done
19225 IFS=$as_save_IFS
19226 
19227 fi
19228 fi
19229 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19230 if test -n "$BDEPS_UNZIP"; then
19231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19232 $as_echo "$BDEPS_UNZIP" >&6; }
19233 else
19234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235 $as_echo "no" >&6; }
19236 fi
19237 
19238 
19239   test -n "$BDEPS_UNZIP" && break
19240 done
19241 
19242   if test "x$BDEPS_UNZIP" = x7z; then
19243     BDEPS_UNZIP="7z x"
19244   fi
19245 
19246   for ac_prog in wget lftp ftp
19247 do
19248   # Extract the first word of "$ac_prog", so it can be a program name with args.
19249 set dummy $ac_prog; ac_word=$2
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19251 $as_echo_n "checking for $ac_word... " >&6; }
19252 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19253   $as_echo_n "(cached) " >&6
19254 else
19255   if test -n "$BDEPS_FTP"; then
19256   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19257 else
19258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19259 for as_dir in $PATH
19260 do
19261   IFS=$as_save_IFS
19262   test -z "$as_dir" && as_dir=.
19263     for ac_exec_ext in '' $ac_executable_extensions; do
19264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19265     ac_cv_prog_BDEPS_FTP="$ac_prog"
19266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19267     break 2
19268   fi
19269 done
19270   done
19271 IFS=$as_save_IFS
19272 
19273 fi
19274 fi
19275 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19276 if test -n "$BDEPS_FTP"; then
19277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19278 $as_echo "$BDEPS_FTP" >&6; }
19279 else
19280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19282 fi
19283 
19284 
19285   test -n "$BDEPS_FTP" && break
19286 done
19287 
19288 
19289 
19290 ###############################################################################
19291 #
19292 # Determine OpenJDK variants, options and version numbers.
19293 #
19294 ###############################################################################
19295 
19296 # We need build & target for this.
19297 
19298 
19299   ###############################################################################
19300   #
19301   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19302   # We always build headless support.
19303   #
19304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19305 $as_echo_n "checking headful support... " >&6; }
19306   # Check whether --enable-headful was given.
19307 if test "${enable_headful+set}" = set; then :
19308   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19309 else
19310   SUPPORT_HEADFUL=yes
19311 fi
19312 
19313 
19314   SUPPORT_HEADLESS=yes
19315   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19316 
19317   if test "x$SUPPORT_HEADFUL" = xyes; then
19318     # We are building both headful and headless.
19319     headful_msg="include support for both headful and headless"
19320   fi
19321 
19322   if test "x$SUPPORT_HEADFUL" = xno; then
19323     # Thus we are building headless only.
19324     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19325     headful_msg="headless only"
19326   fi
19327 
19328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19329 $as_echo "$headful_msg" >&6; }
19330 
19331 
19332 
19333 
19334 
19335   # Control wether Hotspot runs Queens test after build.
19336   # Check whether --enable-hotspot-test-in-build was given.
19337 if test "${enable_hotspot_test_in_build+set}" = set; then :
19338   enableval=$enable_hotspot_test_in_build;
19339 else
19340   enable_hotspot_test_in_build=no
19341 fi
19342 
19343   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19344     TEST_IN_BUILD=true
19345   else
19346     TEST_IN_BUILD=false
19347   fi
19348 
19349 
19350   ###############################################################################
19351   #
19352   # Choose cacerts source file
19353   #
19354 
19355 # Check whether --with-cacerts-file was given.
19356 if test "${with_cacerts_file+set}" = set; then :
19357   withval=$with_cacerts_file;
19358 fi
19359 
19360   if test "x$with_cacerts_file" != x; then
19361     CACERTS_FILE=$with_cacerts_file
19362   else
19363     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19364   fi
19365 
19366 
19367   ###############################################################################
19368   #
19369   # Enable or disable unlimited crypto
19370   #
19371   # Check whether --enable-unlimited-crypto was given.
19372 if test "${enable_unlimited_crypto+set}" = set; then :
19373   enableval=$enable_unlimited_crypto;
19374 else
19375   enable_unlimited_crypto=no
19376 fi
19377 
19378   if test "x$enable_unlimited_crypto" = "xyes"; then
19379     UNLIMITED_CRYPTO=true
19380   else
19381     UNLIMITED_CRYPTO=false
19382   fi
19383 
19384 
19385   ###############################################################################
19386   #
19387   # Enable or disable the elliptic curve crypto implementation
19388   #
19389 
19390 
19391   ###############################################################################
19392   #
19393   # --enable-rmiconnector-iiop
19394   #
19395   # Check whether --enable-rmiconnector-iiop was given.
19396 if test "${enable_rmiconnector_iiop+set}" = set; then :
19397   enableval=$enable_rmiconnector_iiop;
19398 fi
19399 
19400   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19401     RMICONNECTOR_IIOP=true
19402   else
19403     RMICONNECTOR_IIOP=false
19404   fi
19405 
19406 
19407   ###############################################################################
19408   #
19409   # Compress jars
19410   #
19411   COMPRESS_JARS=false
19412 
19413 
19414 
19415 
19416   # Source the version numbers
19417   . $AUTOCONF_DIR/version-numbers
19418 
19419   # Get the settings from parameters
19420 
19421 # Check whether --with-milestone was given.
19422 if test "${with_milestone+set}" = set; then :
19423   withval=$with_milestone;
19424 fi
19425 
19426   if test "x$with_milestone" = xyes; then
19427     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19428   elif test "x$with_milestone" != x; then
19429     MILESTONE="$with_milestone"
19430   fi
19431   if test "x$MILESTONE" = x; then
19432     MILESTONE=internal
19433   fi
19434 
19435 
19436 # Check whether --with-update-version was given.
19437 if test "${with_update_version+set}" = set; then :
19438   withval=$with_update_version;
19439 fi
19440 
19441   if test "x$with_update_version" = xyes; then
19442     as_fn_error $? "Update version must have a value" "$LINENO" 5
19443   elif test "x$with_update_version" != x; then
19444     JDK_UPDATE_VERSION="$with_update_version"
19445     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19446     # to a bug in expr (which reduces it to just X). To work around this, we
19447     # always add a 0 to one digit update versions.
19448     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19449       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19450     fi
19451   fi
19452 
19453 
19454 # Check whether --with-user-release-suffix was given.
19455 if test "${with_user_release_suffix+set}" = set; then :
19456   withval=$with_user_release_suffix;
19457 fi
19458 
19459   if test "x$with_user_release_suffix" = xyes; then
19460     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19461   elif test "x$with_user_release_suffix" != x; then
19462     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19463   fi
19464 
19465 
19466 # Check whether --with-build-number was given.
19467 if test "${with_build_number+set}" = set; then :
19468   withval=$with_build_number;
19469 fi
19470 
19471   if test "x$with_build_number" = xyes; then
19472     as_fn_error $? "Build number must have a value" "$LINENO" 5
19473   elif test "x$with_build_number" != x; then
19474     JDK_BUILD_NUMBER="$with_build_number"
19475   fi
19476   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19477   if test "x$JDK_BUILD_NUMBER" = x; then
19478     JDK_BUILD_NUMBER=b00
19479     if test "x$USER_RELEASE_SUFFIX" = x; then
19480       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19481       # Avoid [:alnum:] since it depends on the locale.
19482       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19483       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19484     fi
19485   fi
19486 
19487   # Now set the JDK version, milestone, build number etc.
19488 
19489 
19490 
19491 
19492 
19493 
19494 
19495 
19496 
19497 
19498 
19499 
19500 
19501 
19502 
19503   COPYRIGHT_YEAR=`date +'%Y'`
19504 
19505 
19506   if test "x$JDK_UPDATE_VERSION" != x; then
19507     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19508   else
19509     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19510   fi
19511 
19512 
19513   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19514 
19515 
19516 
19517 ###############################################################################
19518 #
19519 # Setup BootJDK, used to bootstrap the build.
19520 #
19521 ###############################################################################
19522 
19523 
19524   BOOT_JDK_FOUND=no
19525 
19526 # Check whether --with-boot-jdk was given.
19527 if test "${with_boot_jdk+set}" = set; then :
19528   withval=$with_boot_jdk;
19529 fi
19530 
19531 
19532   # We look for the Boot JDK through various means, going from more certain to
19533   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19534   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19535   # must check if this is indeed valid; otherwise we'll continue looking.
19536 
19537   # Test: Is bootjdk explicitely set by command line arguments?
19538 
19539   if test "x$BOOT_JDK_FOUND" = xno; then
19540     # Now execute the test
19541 
19542   if test "x$with_boot_jdk" != x; then
19543     BOOT_JDK=$with_boot_jdk
19544     BOOT_JDK_FOUND=maybe
19545     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19546 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19547   fi
19548 
19549 
19550     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19551     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19552       # Do we have a bin/java?
19553       if test ! -x "$BOOT_JDK/bin/java"; then
19554         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19555 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19556         BOOT_JDK_FOUND=no
19557       else
19558         # Do we have a bin/javac?
19559         if test ! -x "$BOOT_JDK/bin/javac"; then
19560           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19562           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19563 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19564           BOOT_JDK_FOUND=no
19565         else
19566           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19567           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19568             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19569 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19570             BOOT_JDK_FOUND=no
19571           else
19572             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19573             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19574 
19575             # Extra M4 quote needed to protect [] in grep expression.
19576             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19577             if test "x$FOUND_CORRECT_VERSION" = x; then
19578               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19580               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19581 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19582               BOOT_JDK_FOUND=no
19583             else
19584               # We're done! :-)
19585               BOOT_JDK_FOUND=yes
19586 
19587   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19588 
19589   # Input might be given as Windows format, start by converting to
19590   # unix format.
19591   path="$BOOT_JDK"
19592   new_path=`$CYGPATH -u "$path"`
19593 
19594   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19595   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19596   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19597   # "foo.exe" is OK but "foo" is an error.
19598   #
19599   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19600   # It is also a way to make sure we got the proper file name for the real test later on.
19601   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19602   if test "x$test_shortpath" = x; then
19603     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19604 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19605     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19606   fi
19607 
19608   # Call helper function which possibly converts this using DOS-style short mode.
19609   # If so, the updated path is stored in $new_path.
19610 
19611   input_path="$new_path"
19612   # Check if we need to convert this using DOS-style short mode. If the path
19613   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19614   # take no chances and rewrite it.
19615   # Note: m4 eats our [], so we need to use [ and ] instead.
19616   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19617   if test "x$has_forbidden_chars" != x; then
19618     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19619     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19620     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19621     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19622       # Going to short mode and back again did indeed matter. Since short mode is
19623       # case insensitive, let's make it lowercase to improve readability.
19624       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19625       # Now convert it back to Unix-stile (cygpath)
19626       input_path=`$CYGPATH -u "$shortmode_path"`
19627       new_path="$input_path"
19628     fi
19629   fi
19630 
19631   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19632   if test "x$test_cygdrive_prefix" = x; then
19633     # As a simple fix, exclude /usr/bin since it's not a real path.
19634     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19635       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19636       # a path prefixed by /cygdrive for fixpath to work.
19637       new_path="$CYGWIN_ROOT_PATH$input_path"
19638     fi
19639   fi
19640 
19641 
19642   if test "x$path" != "x$new_path"; then
19643     BOOT_JDK="$new_path"
19644     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19645 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19646   fi
19647 
19648   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19649 
19650   path="$BOOT_JDK"
19651   has_colon=`$ECHO $path | $GREP ^.:`
19652   new_path="$path"
19653   if test "x$has_colon" = x; then
19654     # Not in mixed or Windows style, start by that.
19655     new_path=`cmd //c echo $path`
19656   fi
19657 
19658 
19659   input_path="$new_path"
19660   # Check if we need to convert this using DOS-style short mode. If the path
19661   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19662   # take no chances and rewrite it.
19663   # Note: m4 eats our [], so we need to use [ and ] instead.
19664   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19665   if test "x$has_forbidden_chars" != x; then
19666     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19667     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19668   fi
19669 
19670 
19671   windows_path="$new_path"
19672   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19673     unix_path=`$CYGPATH -u "$windows_path"`
19674     new_path="$unix_path"
19675   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19676     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19677     new_path="$unix_path"
19678   fi
19679 
19680   if test "x$path" != "x$new_path"; then
19681     BOOT_JDK="$new_path"
19682     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19683 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19684   fi
19685 
19686   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19687   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19688 
19689   else
19690     # We're on a posix platform. Hooray! :)
19691     path="$BOOT_JDK"
19692     has_space=`$ECHO "$path" | $GREP " "`
19693     if test "x$has_space" != x; then
19694       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19695 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19696       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19697     fi
19698 
19699     # Use eval to expand a potential ~
19700     eval path="$path"
19701     if test ! -f "$path" && test ! -d "$path"; then
19702       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19703     fi
19704 
19705     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19706   fi
19707 
19708               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19709 $as_echo_n "checking for Boot JDK... " >&6; }
19710               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19711 $as_echo "$BOOT_JDK" >&6; }
19712               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19713 $as_echo_n "checking Boot JDK version... " >&6; }
19714               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19715               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19716 $as_echo "$BOOT_JDK_VERSION" >&6; }
19717             fi # end check jdk version
19718           fi # end check rt.jar
19719         fi # end check javac
19720       fi # end check java
19721     fi # end check boot jdk found
19722   fi
19723 
19724   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19725     # Having specified an argument which is incorrect will produce an instant failure;
19726     # we should not go on looking
19727     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19728   fi
19729 
19730   # Test: Is bootjdk available from builddeps?
19731 
19732   if test "x$BOOT_JDK_FOUND" = xno; then
19733     # Now execute the test
19734 
19735 
19736 
19737   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19738     # Source the builddeps file again, to make sure it uses the latest variables!
19739     . $builddepsfile
19740     # Look for a target and build machine specific resource!
19741     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19742     if test "x$resource" = x; then
19743       # Ok, lets instead look for a target specific resource
19744       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19745     fi
19746     if test "x$resource" = x; then
19747       # Ok, lets instead look for a build specific resource
19748       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19749     fi
19750     if test "x$resource" = x; then
19751       # Ok, lets instead look for a generic resource
19752       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19753       resource=${builddep_bootjdk}
19754     fi
19755     if test "x$resource" != x; then
19756       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19757 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19758       # If the resource in the builddeps.conf file is an existing directory,
19759       # for example /java/linux/cups
19760       if test -d ${resource}; then
19761         depdir=${resource}
19762       else
19763 
19764   # bootjdk is for example mymodule
19765   # $resource is for example libs/general/libmymod_1_2_3.zip
19766   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19767   # $with_builddeps_dir is for example /localhome/builddeps
19768   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19769   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19770   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19771   filename=`basename $resource`
19772   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19773   filebase=${filename%%.*}
19774   extension=${filename#*.}
19775   installdir=$with_builddeps_dir/$filebase
19776   if test ! -f $installdir/$filename.unpacked; then
19777     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19778 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19779     if test ! -d $installdir; then
19780       mkdir -p $installdir
19781     fi
19782     if test ! -d $installdir; then
19783       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19784     fi
19785     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19786     touch $tmpfile
19787     if test ! -f $tmpfile; then
19788       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19789     fi
19790 
19791   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19792   # $tmpfile is the local file name for the downloaded file.
19793   VALID_TOOL=no
19794   if test "x$BDEPS_FTP" = xwget; then
19795     VALID_TOOL=yes
19796     wget -O $tmpfile $with_builddeps_server/$resource
19797   fi
19798   if test "x$BDEPS_FTP" = xlftp; then
19799     VALID_TOOL=yes
19800     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19801   fi
19802   if test "x$BDEPS_FTP" = xftp; then
19803     VALID_TOOL=yes
19804     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19805     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19806     FTPUSERPWD=${FTPSERVER%%@*}
19807     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19808       FTPUSER=${userpwd%%:*}
19809       FTPPWD=${userpwd#*@}
19810       FTPSERVER=${FTPSERVER#*@}
19811     else
19812       FTPUSER=ftp
19813       FTPPWD=ftp
19814     fi
19815     # the "pass" command does not work on some
19816     # ftp clients (read ftp.exe) but if it works,
19817     # passive mode is better!
19818     ( \
19819         echo "user $FTPUSER $FTPPWD"        ; \
19820         echo "pass"                         ; \
19821         echo "bin"                          ; \
19822         echo "get $FTPPATH $tmpfile"              ; \
19823     ) | ftp -in $FTPSERVER
19824   fi
19825   if test "x$VALID_TOOL" != xyes; then
19826     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19827   fi
19828 
19829     mv $tmpfile $installdir/$filename
19830     if test ! -s $installdir/$filename; then
19831       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19832     fi
19833     case "$extension" in
19834       zip)  echo "Unzipping $installdir/$filename..."
19835         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19836         ;;
19837       tar.gz) echo "Untaring $installdir/$filename..."
19838         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19839         ;;
19840       tgz) echo "Untaring $installdir/$filename..."
19841         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19842         ;;
19843       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19844         ;;
19845     esac
19846   fi
19847   if test -f $installdir/$filename.unpacked; then
19848     depdir=$installdir
19849   fi
19850 
19851       fi
19852       # Source the builddeps file again, because in the previous command, the depdir
19853       # was updated to point at the current build dependency install directory.
19854       . $builddepsfile
19855       # Now extract variables from the builddeps.conf files.
19856       theroot=${builddep_bootjdk_ROOT}
19857       thecflags=${builddep_bootjdk_CFLAGS}
19858       thelibs=${builddep_bootjdk_LIBS}
19859       if test "x$depdir" = x; then
19860         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
19861       fi
19862       BOOT_JDK=$depdir
19863       if test "x$theroot" != x; then
19864         BOOT_JDK="$theroot"
19865       fi
19866       if test "x$thecflags" != x; then
19867         BOOT_JDK_CFLAGS="$thecflags"
19868       fi
19869       if test "x$thelibs" != x; then
19870         BOOT_JDK_LIBS="$thelibs"
19871       fi
19872       BOOT_JDK_FOUND=maybe
19873       else BOOT_JDK_FOUND=no
19874 
19875     fi
19876     else BOOT_JDK_FOUND=no
19877 
19878   fi
19879 
19880 
19881 
19882     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19883     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19884       # Do we have a bin/java?
19885       if test ! -x "$BOOT_JDK/bin/java"; then
19886         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19888         BOOT_JDK_FOUND=no
19889       else
19890         # Do we have a bin/javac?
19891         if test ! -x "$BOOT_JDK/bin/javac"; then
19892           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19893 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19894           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19895 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19896           BOOT_JDK_FOUND=no
19897         else
19898           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19899           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19900             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19901 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19902             BOOT_JDK_FOUND=no
19903           else
19904             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19905             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19906 
19907             # Extra M4 quote needed to protect [] in grep expression.
19908             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19909             if test "x$FOUND_CORRECT_VERSION" = x; then
19910               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19912               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19913 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19914               BOOT_JDK_FOUND=no
19915             else
19916               # We're done! :-)
19917               BOOT_JDK_FOUND=yes
19918 
19919   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19920 
19921   # Input might be given as Windows format, start by converting to
19922   # unix format.
19923   path="$BOOT_JDK"
19924   new_path=`$CYGPATH -u "$path"`
19925 
19926   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19927   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19928   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19929   # "foo.exe" is OK but "foo" is an error.
19930   #
19931   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19932   # It is also a way to make sure we got the proper file name for the real test later on.
19933   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19934   if test "x$test_shortpath" = x; then
19935     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19937     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19938   fi
19939 
19940   # Call helper function which possibly converts this using DOS-style short mode.
19941   # If so, the updated path is stored in $new_path.
19942 
19943   input_path="$new_path"
19944   # Check if we need to convert this using DOS-style short mode. If the path
19945   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19946   # take no chances and rewrite it.
19947   # Note: m4 eats our [], so we need to use [ and ] instead.
19948   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19949   if test "x$has_forbidden_chars" != x; then
19950     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19951     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19952     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19953     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19954       # Going to short mode and back again did indeed matter. Since short mode is
19955       # case insensitive, let's make it lowercase to improve readability.
19956       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19957       # Now convert it back to Unix-stile (cygpath)
19958       input_path=`$CYGPATH -u "$shortmode_path"`
19959       new_path="$input_path"
19960     fi
19961   fi
19962 
19963   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19964   if test "x$test_cygdrive_prefix" = x; then
19965     # As a simple fix, exclude /usr/bin since it's not a real path.
19966     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19967       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19968       # a path prefixed by /cygdrive for fixpath to work.
19969       new_path="$CYGWIN_ROOT_PATH$input_path"
19970     fi
19971   fi
19972 
19973 
19974   if test "x$path" != "x$new_path"; then
19975     BOOT_JDK="$new_path"
19976     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19977 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19978   fi
19979 
19980   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19981 
19982   path="$BOOT_JDK"
19983   has_colon=`$ECHO $path | $GREP ^.:`
19984   new_path="$path"
19985   if test "x$has_colon" = x; then
19986     # Not in mixed or Windows style, start by that.
19987     new_path=`cmd //c echo $path`
19988   fi
19989 
19990 
19991   input_path="$new_path"
19992   # Check if we need to convert this using DOS-style short mode. If the path
19993   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19994   # take no chances and rewrite it.
19995   # Note: m4 eats our [], so we need to use [ and ] instead.
19996   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19997   if test "x$has_forbidden_chars" != x; then
19998     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19999     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20000   fi
20001 
20002 
20003   windows_path="$new_path"
20004   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20005     unix_path=`$CYGPATH -u "$windows_path"`
20006     new_path="$unix_path"
20007   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20008     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20009     new_path="$unix_path"
20010   fi
20011 
20012   if test "x$path" != "x$new_path"; then
20013     BOOT_JDK="$new_path"
20014     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20015 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20016   fi
20017 
20018   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20019   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20020 
20021   else
20022     # We're on a posix platform. Hooray! :)
20023     path="$BOOT_JDK"
20024     has_space=`$ECHO "$path" | $GREP " "`
20025     if test "x$has_space" != x; then
20026       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20027 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20028       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20029     fi
20030 
20031     # Use eval to expand a potential ~
20032     eval path="$path"
20033     if test ! -f "$path" && test ! -d "$path"; then
20034       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20035     fi
20036 
20037     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20038   fi
20039 
20040               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20041 $as_echo_n "checking for Boot JDK... " >&6; }
20042               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20043 $as_echo "$BOOT_JDK" >&6; }
20044               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20045 $as_echo_n "checking Boot JDK version... " >&6; }
20046               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20047               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20048 $as_echo "$BOOT_JDK_VERSION" >&6; }
20049             fi # end check jdk version
20050           fi # end check rt.jar
20051         fi # end check javac
20052       fi # end check java
20053     fi # end check boot jdk found
20054   fi
20055 
20056 
20057   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20058 
20059   if test "x$BOOT_JDK_FOUND" = xno; then
20060     # Now execute the test
20061 
20062   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20063     # First check at user selected default
20064 
20065   if test "x$BOOT_JDK_FOUND" = xno; then
20066     # Now execute the test
20067 
20068   if test -x /usr/libexec/java_home; then
20069     BOOT_JDK=`/usr/libexec/java_home `
20070     BOOT_JDK_FOUND=maybe
20071     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20072 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20073   fi
20074 
20075 
20076     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20077     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20078       # Do we have a bin/java?
20079       if test ! -x "$BOOT_JDK/bin/java"; then
20080         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20082         BOOT_JDK_FOUND=no
20083       else
20084         # Do we have a bin/javac?
20085         if test ! -x "$BOOT_JDK/bin/javac"; then
20086           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20087 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20088           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20089 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20090           BOOT_JDK_FOUND=no
20091         else
20092           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20093           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20094             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20096             BOOT_JDK_FOUND=no
20097           else
20098             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20099             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20100 
20101             # Extra M4 quote needed to protect [] in grep expression.
20102             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20103             if test "x$FOUND_CORRECT_VERSION" = x; then
20104               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20105 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20106               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20107 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20108               BOOT_JDK_FOUND=no
20109             else
20110               # We're done! :-)
20111               BOOT_JDK_FOUND=yes
20112 
20113   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20114 
20115   # Input might be given as Windows format, start by converting to
20116   # unix format.
20117   path="$BOOT_JDK"
20118   new_path=`$CYGPATH -u "$path"`
20119 
20120   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20121   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20122   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20123   # "foo.exe" is OK but "foo" is an error.
20124   #
20125   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20126   # It is also a way to make sure we got the proper file name for the real test later on.
20127   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20128   if test "x$test_shortpath" = x; then
20129     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20130 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20131     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20132   fi
20133 
20134   # Call helper function which possibly converts this using DOS-style short mode.
20135   # If so, the updated path is stored in $new_path.
20136 
20137   input_path="$new_path"
20138   # Check if we need to convert this using DOS-style short mode. If the path
20139   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20140   # take no chances and rewrite it.
20141   # Note: m4 eats our [], so we need to use [ and ] instead.
20142   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20143   if test "x$has_forbidden_chars" != x; then
20144     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20145     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20146     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20147     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20148       # Going to short mode and back again did indeed matter. Since short mode is
20149       # case insensitive, let's make it lowercase to improve readability.
20150       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20151       # Now convert it back to Unix-stile (cygpath)
20152       input_path=`$CYGPATH -u "$shortmode_path"`
20153       new_path="$input_path"
20154     fi
20155   fi
20156 
20157   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20158   if test "x$test_cygdrive_prefix" = x; then
20159     # As a simple fix, exclude /usr/bin since it's not a real path.
20160     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20161       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20162       # a path prefixed by /cygdrive for fixpath to work.
20163       new_path="$CYGWIN_ROOT_PATH$input_path"
20164     fi
20165   fi
20166 
20167 
20168   if test "x$path" != "x$new_path"; then
20169     BOOT_JDK="$new_path"
20170     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20171 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20172   fi
20173 
20174   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20175 
20176   path="$BOOT_JDK"
20177   has_colon=`$ECHO $path | $GREP ^.:`
20178   new_path="$path"
20179   if test "x$has_colon" = x; then
20180     # Not in mixed or Windows style, start by that.
20181     new_path=`cmd //c echo $path`
20182   fi
20183 
20184 
20185   input_path="$new_path"
20186   # Check if we need to convert this using DOS-style short mode. If the path
20187   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20188   # take no chances and rewrite it.
20189   # Note: m4 eats our [], so we need to use [ and ] instead.
20190   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20191   if test "x$has_forbidden_chars" != x; then
20192     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20193     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20194   fi
20195 
20196 
20197   windows_path="$new_path"
20198   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20199     unix_path=`$CYGPATH -u "$windows_path"`
20200     new_path="$unix_path"
20201   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20202     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20203     new_path="$unix_path"
20204   fi
20205 
20206   if test "x$path" != "x$new_path"; then
20207     BOOT_JDK="$new_path"
20208     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20209 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20210   fi
20211 
20212   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20213   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20214 
20215   else
20216     # We're on a posix platform. Hooray! :)
20217     path="$BOOT_JDK"
20218     has_space=`$ECHO "$path" | $GREP " "`
20219     if test "x$has_space" != x; then
20220       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20221 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20222       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20223     fi
20224 
20225     # Use eval to expand a potential ~
20226     eval path="$path"
20227     if test ! -f "$path" && test ! -d "$path"; then
20228       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20229     fi
20230 
20231     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20232   fi
20233 
20234               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20235 $as_echo_n "checking for Boot JDK... " >&6; }
20236               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20237 $as_echo "$BOOT_JDK" >&6; }
20238               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20239 $as_echo_n "checking Boot JDK version... " >&6; }
20240               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20241               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20242 $as_echo "$BOOT_JDK_VERSION" >&6; }
20243             fi # end check jdk version
20244           fi # end check rt.jar
20245         fi # end check javac
20246       fi # end check java
20247     fi # end check boot jdk found
20248   fi
20249 
20250     # If that did not work out (e.g. too old), try explicit versions instead
20251 
20252   if test "x$BOOT_JDK_FOUND" = xno; then
20253     # Now execute the test
20254 
20255   if test -x /usr/libexec/java_home; then
20256     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20257     BOOT_JDK_FOUND=maybe
20258     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20259 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20260   fi
20261 
20262 
20263     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20264     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20265       # Do we have a bin/java?
20266       if test ! -x "$BOOT_JDK/bin/java"; then
20267         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20269         BOOT_JDK_FOUND=no
20270       else
20271         # Do we have a bin/javac?
20272         if test ! -x "$BOOT_JDK/bin/javac"; then
20273           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20275           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20276 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20277           BOOT_JDK_FOUND=no
20278         else
20279           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20280           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20281             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20283             BOOT_JDK_FOUND=no
20284           else
20285             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20286             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20287 
20288             # Extra M4 quote needed to protect [] in grep expression.
20289             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20290             if test "x$FOUND_CORRECT_VERSION" = x; then
20291               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20293               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20294 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20295               BOOT_JDK_FOUND=no
20296             else
20297               # We're done! :-)
20298               BOOT_JDK_FOUND=yes
20299 
20300   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20301 
20302   # Input might be given as Windows format, start by converting to
20303   # unix format.
20304   path="$BOOT_JDK"
20305   new_path=`$CYGPATH -u "$path"`
20306 
20307   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20308   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20309   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20310   # "foo.exe" is OK but "foo" is an error.
20311   #
20312   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20313   # It is also a way to make sure we got the proper file name for the real test later on.
20314   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20315   if test "x$test_shortpath" = x; then
20316     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20317 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20318     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20319   fi
20320 
20321   # Call helper function which possibly converts this using DOS-style short mode.
20322   # If so, the updated path is stored in $new_path.
20323 
20324   input_path="$new_path"
20325   # Check if we need to convert this using DOS-style short mode. If the path
20326   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20327   # take no chances and rewrite it.
20328   # Note: m4 eats our [], so we need to use [ and ] instead.
20329   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20330   if test "x$has_forbidden_chars" != x; then
20331     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20332     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20333     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20334     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20335       # Going to short mode and back again did indeed matter. Since short mode is
20336       # case insensitive, let's make it lowercase to improve readability.
20337       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20338       # Now convert it back to Unix-stile (cygpath)
20339       input_path=`$CYGPATH -u "$shortmode_path"`
20340       new_path="$input_path"
20341     fi
20342   fi
20343 
20344   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20345   if test "x$test_cygdrive_prefix" = x; then
20346     # As a simple fix, exclude /usr/bin since it's not a real path.
20347     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20348       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20349       # a path prefixed by /cygdrive for fixpath to work.
20350       new_path="$CYGWIN_ROOT_PATH$input_path"
20351     fi
20352   fi
20353 
20354 
20355   if test "x$path" != "x$new_path"; then
20356     BOOT_JDK="$new_path"
20357     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20358 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20359   fi
20360 
20361   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20362 
20363   path="$BOOT_JDK"
20364   has_colon=`$ECHO $path | $GREP ^.:`
20365   new_path="$path"
20366   if test "x$has_colon" = x; then
20367     # Not in mixed or Windows style, start by that.
20368     new_path=`cmd //c echo $path`
20369   fi
20370 
20371 
20372   input_path="$new_path"
20373   # Check if we need to convert this using DOS-style short mode. If the path
20374   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20375   # take no chances and rewrite it.
20376   # Note: m4 eats our [], so we need to use [ and ] instead.
20377   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20378   if test "x$has_forbidden_chars" != x; then
20379     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20380     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20381   fi
20382 
20383 
20384   windows_path="$new_path"
20385   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20386     unix_path=`$CYGPATH -u "$windows_path"`
20387     new_path="$unix_path"
20388   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20389     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20390     new_path="$unix_path"
20391   fi
20392 
20393   if test "x$path" != "x$new_path"; then
20394     BOOT_JDK="$new_path"
20395     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20396 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20397   fi
20398 
20399   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20400   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20401 
20402   else
20403     # We're on a posix platform. Hooray! :)
20404     path="$BOOT_JDK"
20405     has_space=`$ECHO "$path" | $GREP " "`
20406     if test "x$has_space" != x; then
20407       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20408 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20409       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20410     fi
20411 
20412     # Use eval to expand a potential ~
20413     eval path="$path"
20414     if test ! -f "$path" && test ! -d "$path"; then
20415       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20416     fi
20417 
20418     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20419   fi
20420 
20421               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20422 $as_echo_n "checking for Boot JDK... " >&6; }
20423               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20424 $as_echo "$BOOT_JDK" >&6; }
20425               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20426 $as_echo_n "checking Boot JDK version... " >&6; }
20427               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20428               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20429 $as_echo "$BOOT_JDK_VERSION" >&6; }
20430             fi # end check jdk version
20431           fi # end check rt.jar
20432         fi # end check javac
20433       fi # end check java
20434     fi # end check boot jdk found
20435   fi
20436 
20437 
20438   if test "x$BOOT_JDK_FOUND" = xno; then
20439     # Now execute the test
20440 
20441   if test -x /usr/libexec/java_home; then
20442     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20443     BOOT_JDK_FOUND=maybe
20444     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20445 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20446   fi
20447 
20448 
20449     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20450     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20451       # Do we have a bin/java?
20452       if test ! -x "$BOOT_JDK/bin/java"; then
20453         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20455         BOOT_JDK_FOUND=no
20456       else
20457         # Do we have a bin/javac?
20458         if test ! -x "$BOOT_JDK/bin/javac"; then
20459           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20461           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20462 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20463           BOOT_JDK_FOUND=no
20464         else
20465           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20466           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20467             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20469             BOOT_JDK_FOUND=no
20470           else
20471             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20472             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20473 
20474             # Extra M4 quote needed to protect [] in grep expression.
20475             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20476             if test "x$FOUND_CORRECT_VERSION" = x; then
20477               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20479               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20480 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20481               BOOT_JDK_FOUND=no
20482             else
20483               # We're done! :-)
20484               BOOT_JDK_FOUND=yes
20485 
20486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20487 
20488   # Input might be given as Windows format, start by converting to
20489   # unix format.
20490   path="$BOOT_JDK"
20491   new_path=`$CYGPATH -u "$path"`
20492 
20493   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20494   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20495   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20496   # "foo.exe" is OK but "foo" is an error.
20497   #
20498   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20499   # It is also a way to make sure we got the proper file name for the real test later on.
20500   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20501   if test "x$test_shortpath" = x; then
20502     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20504     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20505   fi
20506 
20507   # Call helper function which possibly converts this using DOS-style short mode.
20508   # If so, the updated path is stored in $new_path.
20509 
20510   input_path="$new_path"
20511   # Check if we need to convert this using DOS-style short mode. If the path
20512   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20513   # take no chances and rewrite it.
20514   # Note: m4 eats our [], so we need to use [ and ] instead.
20515   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20516   if test "x$has_forbidden_chars" != x; then
20517     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20518     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20519     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20520     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20521       # Going to short mode and back again did indeed matter. Since short mode is
20522       # case insensitive, let's make it lowercase to improve readability.
20523       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20524       # Now convert it back to Unix-stile (cygpath)
20525       input_path=`$CYGPATH -u "$shortmode_path"`
20526       new_path="$input_path"
20527     fi
20528   fi
20529 
20530   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20531   if test "x$test_cygdrive_prefix" = x; then
20532     # As a simple fix, exclude /usr/bin since it's not a real path.
20533     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20534       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20535       # a path prefixed by /cygdrive for fixpath to work.
20536       new_path="$CYGWIN_ROOT_PATH$input_path"
20537     fi
20538   fi
20539 
20540 
20541   if test "x$path" != "x$new_path"; then
20542     BOOT_JDK="$new_path"
20543     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20545   fi
20546 
20547   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20548 
20549   path="$BOOT_JDK"
20550   has_colon=`$ECHO $path | $GREP ^.:`
20551   new_path="$path"
20552   if test "x$has_colon" = x; then
20553     # Not in mixed or Windows style, start by that.
20554     new_path=`cmd //c echo $path`
20555   fi
20556 
20557 
20558   input_path="$new_path"
20559   # Check if we need to convert this using DOS-style short mode. If the path
20560   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20561   # take no chances and rewrite it.
20562   # Note: m4 eats our [], so we need to use [ and ] instead.
20563   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20564   if test "x$has_forbidden_chars" != x; then
20565     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20566     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20567   fi
20568 
20569 
20570   windows_path="$new_path"
20571   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20572     unix_path=`$CYGPATH -u "$windows_path"`
20573     new_path="$unix_path"
20574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20575     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20576     new_path="$unix_path"
20577   fi
20578 
20579   if test "x$path" != "x$new_path"; then
20580     BOOT_JDK="$new_path"
20581     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20582 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20583   fi
20584 
20585   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20586   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20587 
20588   else
20589     # We're on a posix platform. Hooray! :)
20590     path="$BOOT_JDK"
20591     has_space=`$ECHO "$path" | $GREP " "`
20592     if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5
20596     fi
20597 
20598     # Use eval to expand a potential ~
20599     eval path="$path"
20600     if test ! -f "$path" && test ! -d "$path"; then
20601       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20602     fi
20603 
20604     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20605   fi
20606 
20607               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20608 $as_echo_n "checking for Boot JDK... " >&6; }
20609               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20610 $as_echo "$BOOT_JDK" >&6; }
20611               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20612 $as_echo_n "checking Boot JDK version... " >&6; }
20613               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20614               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20615 $as_echo "$BOOT_JDK_VERSION" >&6; }
20616             fi # end check jdk version
20617           fi # end check rt.jar
20618         fi # end check javac
20619       fi # end check java
20620     fi # end check boot jdk found
20621   fi
20622 
20623 
20624   if test "x$BOOT_JDK_FOUND" = xno; then
20625     # Now execute the test
20626 
20627   if test -x /usr/libexec/java_home; then
20628     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20629     BOOT_JDK_FOUND=maybe
20630     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20631 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20632   fi
20633 
20634 
20635     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20636     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20637       # Do we have a bin/java?
20638       if test ! -x "$BOOT_JDK/bin/java"; then
20639         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20641         BOOT_JDK_FOUND=no
20642       else
20643         # Do we have a bin/javac?
20644         if test ! -x "$BOOT_JDK/bin/javac"; then
20645           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20647           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20648 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20649           BOOT_JDK_FOUND=no
20650         else
20651           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20652           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20653             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20654 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20655             BOOT_JDK_FOUND=no
20656           else
20657             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20658             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20659 
20660             # Extra M4 quote needed to protect [] in grep expression.
20661             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20662             if test "x$FOUND_CORRECT_VERSION" = x; then
20663               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20664 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20665               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20666 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20667               BOOT_JDK_FOUND=no
20668             else
20669               # We're done! :-)
20670               BOOT_JDK_FOUND=yes
20671 
20672   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20673 
20674   # Input might be given as Windows format, start by converting to
20675   # unix format.
20676   path="$BOOT_JDK"
20677   new_path=`$CYGPATH -u "$path"`
20678 
20679   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20680   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20681   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20682   # "foo.exe" is OK but "foo" is an error.
20683   #
20684   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20685   # It is also a way to make sure we got the proper file name for the real test later on.
20686   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20687   if test "x$test_shortpath" = x; then
20688     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20689 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20690     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20691   fi
20692 
20693   # Call helper function which possibly converts this using DOS-style short mode.
20694   # If so, the updated path is stored in $new_path.
20695 
20696   input_path="$new_path"
20697   # Check if we need to convert this using DOS-style short mode. If the path
20698   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20699   # take no chances and rewrite it.
20700   # Note: m4 eats our [], so we need to use [ and ] instead.
20701   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20702   if test "x$has_forbidden_chars" != x; then
20703     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20704     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20705     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20706     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20707       # Going to short mode and back again did indeed matter. Since short mode is
20708       # case insensitive, let's make it lowercase to improve readability.
20709       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20710       # Now convert it back to Unix-stile (cygpath)
20711       input_path=`$CYGPATH -u "$shortmode_path"`
20712       new_path="$input_path"
20713     fi
20714   fi
20715 
20716   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20717   if test "x$test_cygdrive_prefix" = x; then
20718     # As a simple fix, exclude /usr/bin since it's not a real path.
20719     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20720       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20721       # a path prefixed by /cygdrive for fixpath to work.
20722       new_path="$CYGWIN_ROOT_PATH$input_path"
20723     fi
20724   fi
20725 
20726 
20727   if test "x$path" != "x$new_path"; then
20728     BOOT_JDK="$new_path"
20729     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20730 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20731   fi
20732 
20733   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20734 
20735   path="$BOOT_JDK"
20736   has_colon=`$ECHO $path | $GREP ^.:`
20737   new_path="$path"
20738   if test "x$has_colon" = x; then
20739     # Not in mixed or Windows style, start by that.
20740     new_path=`cmd //c echo $path`
20741   fi
20742 
20743 
20744   input_path="$new_path"
20745   # Check if we need to convert this using DOS-style short mode. If the path
20746   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20747   # take no chances and rewrite it.
20748   # Note: m4 eats our [], so we need to use [ and ] instead.
20749   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20750   if test "x$has_forbidden_chars" != x; then
20751     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20752     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20753   fi
20754 
20755 
20756   windows_path="$new_path"
20757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20758     unix_path=`$CYGPATH -u "$windows_path"`
20759     new_path="$unix_path"
20760   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20761     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20762     new_path="$unix_path"
20763   fi
20764 
20765   if test "x$path" != "x$new_path"; then
20766     BOOT_JDK="$new_path"
20767     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20769   fi
20770 
20771   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20772   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20773 
20774   else
20775     # We're on a posix platform. Hooray! :)
20776     path="$BOOT_JDK"
20777     has_space=`$ECHO "$path" | $GREP " "`
20778     if test "x$has_space" != x; then
20779       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20781       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20782     fi
20783 
20784     # Use eval to expand a potential ~
20785     eval path="$path"
20786     if test ! -f "$path" && test ! -d "$path"; then
20787       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20788     fi
20789 
20790     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20791   fi
20792 
20793               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20794 $as_echo_n "checking for Boot JDK... " >&6; }
20795               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20796 $as_echo "$BOOT_JDK" >&6; }
20797               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20798 $as_echo_n "checking Boot JDK version... " >&6; }
20799               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20800               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20801 $as_echo "$BOOT_JDK_VERSION" >&6; }
20802             fi # end check jdk version
20803           fi # end check rt.jar
20804         fi # end check javac
20805       fi # end check java
20806     fi # end check boot jdk found
20807   fi
20808 
20809   fi
20810 
20811 
20812     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20813     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20814       # Do we have a bin/java?
20815       if test ! -x "$BOOT_JDK/bin/java"; then
20816         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20818         BOOT_JDK_FOUND=no
20819       else
20820         # Do we have a bin/javac?
20821         if test ! -x "$BOOT_JDK/bin/javac"; then
20822           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20824           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20825 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20826           BOOT_JDK_FOUND=no
20827         else
20828           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20829           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20830             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20831 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20832             BOOT_JDK_FOUND=no
20833           else
20834             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20835             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20836 
20837             # Extra M4 quote needed to protect [] in grep expression.
20838             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20839             if test "x$FOUND_CORRECT_VERSION" = x; then
20840               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20841 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20842               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20843 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20844               BOOT_JDK_FOUND=no
20845             else
20846               # We're done! :-)
20847               BOOT_JDK_FOUND=yes
20848 
20849   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20850 
20851   # Input might be given as Windows format, start by converting to
20852   # unix format.
20853   path="$BOOT_JDK"
20854   new_path=`$CYGPATH -u "$path"`
20855 
20856   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20857   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20858   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20859   # "foo.exe" is OK but "foo" is an error.
20860   #
20861   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20862   # It is also a way to make sure we got the proper file name for the real test later on.
20863   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20864   if test "x$test_shortpath" = x; then
20865     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20866 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20867     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20868   fi
20869 
20870   # Call helper function which possibly converts this using DOS-style short mode.
20871   # If so, the updated path is stored in $new_path.
20872 
20873   input_path="$new_path"
20874   # Check if we need to convert this using DOS-style short mode. If the path
20875   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20876   # take no chances and rewrite it.
20877   # Note: m4 eats our [], so we need to use [ and ] instead.
20878   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20879   if test "x$has_forbidden_chars" != x; then
20880     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20881     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20882     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20883     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20884       # Going to short mode and back again did indeed matter. Since short mode is
20885       # case insensitive, let's make it lowercase to improve readability.
20886       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20887       # Now convert it back to Unix-stile (cygpath)
20888       input_path=`$CYGPATH -u "$shortmode_path"`
20889       new_path="$input_path"
20890     fi
20891   fi
20892 
20893   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20894   if test "x$test_cygdrive_prefix" = x; then
20895     # As a simple fix, exclude /usr/bin since it's not a real path.
20896     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20897       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20898       # a path prefixed by /cygdrive for fixpath to work.
20899       new_path="$CYGWIN_ROOT_PATH$input_path"
20900     fi
20901   fi
20902 
20903 
20904   if test "x$path" != "x$new_path"; then
20905     BOOT_JDK="$new_path"
20906     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20907 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20908   fi
20909 
20910   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20911 
20912   path="$BOOT_JDK"
20913   has_colon=`$ECHO $path | $GREP ^.:`
20914   new_path="$path"
20915   if test "x$has_colon" = x; then
20916     # Not in mixed or Windows style, start by that.
20917     new_path=`cmd //c echo $path`
20918   fi
20919 
20920 
20921   input_path="$new_path"
20922   # Check if we need to convert this using DOS-style short mode. If the path
20923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20924   # take no chances and rewrite it.
20925   # Note: m4 eats our [], so we need to use [ and ] instead.
20926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20927   if test "x$has_forbidden_chars" != x; then
20928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20929     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20930   fi
20931 
20932 
20933   windows_path="$new_path"
20934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20935     unix_path=`$CYGPATH -u "$windows_path"`
20936     new_path="$unix_path"
20937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20938     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20939     new_path="$unix_path"
20940   fi
20941 
20942   if test "x$path" != "x$new_path"; then
20943     BOOT_JDK="$new_path"
20944     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20946   fi
20947 
20948   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20949   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20950 
20951   else
20952     # We're on a posix platform. Hooray! :)
20953     path="$BOOT_JDK"
20954     has_space=`$ECHO "$path" | $GREP " "`
20955     if test "x$has_space" != x; then
20956       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20958       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20959     fi
20960 
20961     # Use eval to expand a potential ~
20962     eval path="$path"
20963     if test ! -f "$path" && test ! -d "$path"; then
20964       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20965     fi
20966 
20967     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20968   fi
20969 
20970               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20971 $as_echo_n "checking for Boot JDK... " >&6; }
20972               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20973 $as_echo "$BOOT_JDK" >&6; }
20974               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20975 $as_echo_n "checking Boot JDK version... " >&6; }
20976               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20977               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20978 $as_echo "$BOOT_JDK_VERSION" >&6; }
20979             fi # end check jdk version
20980           fi # end check rt.jar
20981         fi # end check javac
20982       fi # end check java
20983     fi # end check boot jdk found
20984   fi
20985 
20986 
20987   # Test: Is $JAVA_HOME set?
20988 
20989   if test "x$BOOT_JDK_FOUND" = xno; then
20990     # Now execute the test
20991 
20992   if test "x$JAVA_HOME" != x; then
20993     JAVA_HOME_PROCESSED="$JAVA_HOME"
20994 
20995   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20996 
20997   # Input might be given as Windows format, start by converting to
20998   # unix format.
20999   path="$JAVA_HOME_PROCESSED"
21000   new_path=`$CYGPATH -u "$path"`
21001 
21002   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21003   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21004   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21005   # "foo.exe" is OK but "foo" is an error.
21006   #
21007   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21008   # It is also a way to make sure we got the proper file name for the real test later on.
21009   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21010   if test "x$test_shortpath" = x; then
21011     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21012 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21013     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21014   fi
21015 
21016   # Call helper function which possibly converts this using DOS-style short mode.
21017   # If so, the updated path is stored in $new_path.
21018 
21019   input_path="$new_path"
21020   # Check if we need to convert this using DOS-style short mode. If the path
21021   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21022   # take no chances and rewrite it.
21023   # Note: m4 eats our [], so we need to use [ and ] instead.
21024   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21025   if test "x$has_forbidden_chars" != x; then
21026     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21027     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21028     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21029     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21030       # Going to short mode and back again did indeed matter. Since short mode is
21031       # case insensitive, let's make it lowercase to improve readability.
21032       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21033       # Now convert it back to Unix-stile (cygpath)
21034       input_path=`$CYGPATH -u "$shortmode_path"`
21035       new_path="$input_path"
21036     fi
21037   fi
21038 
21039   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21040   if test "x$test_cygdrive_prefix" = x; then
21041     # As a simple fix, exclude /usr/bin since it's not a real path.
21042     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21043       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21044       # a path prefixed by /cygdrive for fixpath to work.
21045       new_path="$CYGWIN_ROOT_PATH$input_path"
21046     fi
21047   fi
21048 
21049 
21050   if test "x$path" != "x$new_path"; then
21051     JAVA_HOME_PROCESSED="$new_path"
21052     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21053 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21054   fi
21055 
21056   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21057 
21058   path="$JAVA_HOME_PROCESSED"
21059   has_colon=`$ECHO $path | $GREP ^.:`
21060   new_path="$path"
21061   if test "x$has_colon" = x; then
21062     # Not in mixed or Windows style, start by that.
21063     new_path=`cmd //c echo $path`
21064   fi
21065 
21066 
21067   input_path="$new_path"
21068   # Check if we need to convert this using DOS-style short mode. If the path
21069   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21070   # take no chances and rewrite it.
21071   # Note: m4 eats our [], so we need to use [ and ] instead.
21072   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21073   if test "x$has_forbidden_chars" != x; then
21074     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21075     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21076   fi
21077 
21078 
21079   windows_path="$new_path"
21080   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21081     unix_path=`$CYGPATH -u "$windows_path"`
21082     new_path="$unix_path"
21083   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21084     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21085     new_path="$unix_path"
21086   fi
21087 
21088   if test "x$path" != "x$new_path"; then
21089     JAVA_HOME_PROCESSED="$new_path"
21090     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21091 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21092   fi
21093 
21094   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21095   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21096 
21097   else
21098     # We're on a posix platform. Hooray! :)
21099     path="$JAVA_HOME_PROCESSED"
21100     has_space=`$ECHO "$path" | $GREP " "`
21101     if test "x$has_space" != x; then
21102       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21103 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21104       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21105     fi
21106 
21107     # Use eval to expand a potential ~
21108     eval path="$path"
21109     if test ! -f "$path" && test ! -d "$path"; then
21110       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21111     fi
21112 
21113     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21114   fi
21115 
21116     if test ! -d "$JAVA_HOME_PROCESSED"; then
21117       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21118 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21119     else
21120       # Aha, the user has set a JAVA_HOME
21121       # let us use that as the Boot JDK.
21122       BOOT_JDK="$JAVA_HOME_PROCESSED"
21123       BOOT_JDK_FOUND=maybe
21124       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21125 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21126     fi
21127   fi
21128 
21129 
21130     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21131     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21132       # Do we have a bin/java?
21133       if test ! -x "$BOOT_JDK/bin/java"; then
21134         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21136         BOOT_JDK_FOUND=no
21137       else
21138         # Do we have a bin/javac?
21139         if test ! -x "$BOOT_JDK/bin/javac"; then
21140           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21141 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21142           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21143 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21144           BOOT_JDK_FOUND=no
21145         else
21146           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21147           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21148             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21149 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21150             BOOT_JDK_FOUND=no
21151           else
21152             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21153             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21154 
21155             # Extra M4 quote needed to protect [] in grep expression.
21156             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21157             if test "x$FOUND_CORRECT_VERSION" = x; then
21158               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21159 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21160               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21161 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21162               BOOT_JDK_FOUND=no
21163             else
21164               # We're done! :-)
21165               BOOT_JDK_FOUND=yes
21166 
21167   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21168 
21169   # Input might be given as Windows format, start by converting to
21170   # unix format.
21171   path="$BOOT_JDK"
21172   new_path=`$CYGPATH -u "$path"`
21173 
21174   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21175   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21176   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21177   # "foo.exe" is OK but "foo" is an error.
21178   #
21179   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21180   # It is also a way to make sure we got the proper file name for the real test later on.
21181   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21182   if test "x$test_shortpath" = x; then
21183     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21184 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21185     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21186   fi
21187 
21188   # Call helper function which possibly converts this using DOS-style short mode.
21189   # If so, the updated path is stored in $new_path.
21190 
21191   input_path="$new_path"
21192   # Check if we need to convert this using DOS-style short mode. If the path
21193   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21194   # take no chances and rewrite it.
21195   # Note: m4 eats our [], so we need to use [ and ] instead.
21196   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21197   if test "x$has_forbidden_chars" != x; then
21198     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21199     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21200     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21201     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21202       # Going to short mode and back again did indeed matter. Since short mode is
21203       # case insensitive, let's make it lowercase to improve readability.
21204       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21205       # Now convert it back to Unix-stile (cygpath)
21206       input_path=`$CYGPATH -u "$shortmode_path"`
21207       new_path="$input_path"
21208     fi
21209   fi
21210 
21211   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21212   if test "x$test_cygdrive_prefix" = x; then
21213     # As a simple fix, exclude /usr/bin since it's not a real path.
21214     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21215       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21216       # a path prefixed by /cygdrive for fixpath to work.
21217       new_path="$CYGWIN_ROOT_PATH$input_path"
21218     fi
21219   fi
21220 
21221 
21222   if test "x$path" != "x$new_path"; then
21223     BOOT_JDK="$new_path"
21224     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21226   fi
21227 
21228   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21229 
21230   path="$BOOT_JDK"
21231   has_colon=`$ECHO $path | $GREP ^.:`
21232   new_path="$path"
21233   if test "x$has_colon" = x; then
21234     # Not in mixed or Windows style, start by that.
21235     new_path=`cmd //c echo $path`
21236   fi
21237 
21238 
21239   input_path="$new_path"
21240   # Check if we need to convert this using DOS-style short mode. If the path
21241   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21242   # take no chances and rewrite it.
21243   # Note: m4 eats our [], so we need to use [ and ] instead.
21244   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21245   if test "x$has_forbidden_chars" != x; then
21246     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21247     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21248   fi
21249 
21250 
21251   windows_path="$new_path"
21252   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21253     unix_path=`$CYGPATH -u "$windows_path"`
21254     new_path="$unix_path"
21255   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21256     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21257     new_path="$unix_path"
21258   fi
21259 
21260   if test "x$path" != "x$new_path"; then
21261     BOOT_JDK="$new_path"
21262     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21263 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21264   fi
21265 
21266   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21267   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21268 
21269   else
21270     # We're on a posix platform. Hooray! :)
21271     path="$BOOT_JDK"
21272     has_space=`$ECHO "$path" | $GREP " "`
21273     if test "x$has_space" != x; then
21274       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21275 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21276       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21277     fi
21278 
21279     # Use eval to expand a potential ~
21280     eval path="$path"
21281     if test ! -f "$path" && test ! -d "$path"; then
21282       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21283     fi
21284 
21285     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21286   fi
21287 
21288               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21289 $as_echo_n "checking for Boot JDK... " >&6; }
21290               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21291 $as_echo "$BOOT_JDK" >&6; }
21292               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21293 $as_echo_n "checking Boot JDK version... " >&6; }
21294               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21295               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21296 $as_echo "$BOOT_JDK_VERSION" >&6; }
21297             fi # end check jdk version
21298           fi # end check rt.jar
21299         fi # end check javac
21300       fi # end check java
21301     fi # end check boot jdk found
21302   fi
21303 
21304 
21305   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21306 
21307   if test "x$BOOT_JDK_FOUND" = xno; then
21308     # Now execute the test
21309 
21310   # Extract the first word of "javac", so it can be a program name with args.
21311 set dummy javac; ac_word=$2
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21313 $as_echo_n "checking for $ac_word... " >&6; }
21314 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21315   $as_echo_n "(cached) " >&6
21316 else
21317   case $JAVAC_CHECK in
21318   [\\/]* | ?:[\\/]*)
21319   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21320   ;;
21321   *)
21322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21323 for as_dir in $PATH
21324 do
21325   IFS=$as_save_IFS
21326   test -z "$as_dir" && as_dir=.
21327     for ac_exec_ext in '' $ac_executable_extensions; do
21328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21329     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21331     break 2
21332   fi
21333 done
21334   done
21335 IFS=$as_save_IFS
21336 
21337   ;;
21338 esac
21339 fi
21340 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21341 if test -n "$JAVAC_CHECK"; then
21342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21343 $as_echo "$JAVAC_CHECK" >&6; }
21344 else
21345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 $as_echo "no" >&6; }
21347 fi
21348 
21349 
21350   # Extract the first word of "java", so it can be a program name with args.
21351 set dummy java; ac_word=$2
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21353 $as_echo_n "checking for $ac_word... " >&6; }
21354 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21355   $as_echo_n "(cached) " >&6
21356 else
21357   case $JAVA_CHECK in
21358   [\\/]* | ?:[\\/]*)
21359   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21360   ;;
21361   *)
21362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21363 for as_dir in $PATH
21364 do
21365   IFS=$as_save_IFS
21366   test -z "$as_dir" && as_dir=.
21367     for ac_exec_ext in '' $ac_executable_extensions; do
21368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21369     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21371     break 2
21372   fi
21373 done
21374   done
21375 IFS=$as_save_IFS
21376 
21377   ;;
21378 esac
21379 fi
21380 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21381 if test -n "$JAVA_CHECK"; then
21382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21383 $as_echo "$JAVA_CHECK" >&6; }
21384 else
21385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21386 $as_echo "no" >&6; }
21387 fi
21388 
21389 
21390   BINARY="$JAVAC_CHECK"
21391   if test "x$JAVAC_CHECK" = x; then
21392     BINARY="$JAVA_CHECK"
21393   fi
21394   if test "x$BINARY" != x; then
21395     # So there is a java(c) binary, it might be part of a JDK.
21396     # Lets find the JDK/JRE directory by following symbolic links.
21397     # Linux/GNU systems often have links from /usr/bin/java to
21398     # /etc/alternatives/java to the real JDK binary.
21399 
21400   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21401     # Follow a chain of symbolic links. Use readlink
21402     # where it exists, else fall back to horribly
21403     # complicated shell code.
21404     if test "x$READLINK_TESTED" != yes; then
21405       # On MacOSX there is a readlink tool with a different
21406       # purpose than the GNU readlink tool. Check the found readlink.
21407       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21408       if test "x$ISGNU" = x; then
21409         # A readlink that we do not know how to use.
21410         # Are there other non-GNU readlinks out there?
21411         READLINK_TESTED=yes
21412         READLINK=
21413       fi
21414     fi
21415 
21416     if test "x$READLINK" != x; then
21417       BINARY=`$READLINK -f $BINARY`
21418     else
21419       # Save the current directory for restoring afterwards
21420       STARTDIR=$PWD
21421       COUNTER=0
21422       sym_link_dir=`$DIRNAME $BINARY`
21423       sym_link_file=`$BASENAME $BINARY`
21424       cd $sym_link_dir
21425       # Use -P flag to resolve symlinks in directories.
21426       cd `$THEPWDCMD -P`
21427       sym_link_dir=`$THEPWDCMD -P`
21428       # Resolve file symlinks
21429       while test $COUNTER -lt 20; do
21430         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21431         if test "x$ISLINK" == x; then
21432           # This is not a symbolic link! We are done!
21433           break
21434         fi
21435         # Again resolve directory symlinks since the target of the just found
21436         # link could be in a different directory
21437         cd `$DIRNAME $ISLINK`
21438         sym_link_dir=`$THEPWDCMD -P`
21439         sym_link_file=`$BASENAME $ISLINK`
21440         let COUNTER=COUNTER+1
21441       done
21442       cd $STARTDIR
21443       BINARY=$sym_link_dir/$sym_link_file
21444     fi
21445   fi
21446 
21447     BOOT_JDK=`dirname "$BINARY"`
21448     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21449     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21450       # Looks like we found ourselves an JDK
21451       BOOT_JDK_FOUND=maybe
21452       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21453 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21454     fi
21455   fi
21456 
21457 
21458     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21459     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21460       # Do we have a bin/java?
21461       if test ! -x "$BOOT_JDK/bin/java"; then
21462         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21463 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21464         BOOT_JDK_FOUND=no
21465       else
21466         # Do we have a bin/javac?
21467         if test ! -x "$BOOT_JDK/bin/javac"; then
21468           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21469 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21470           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21471 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21472           BOOT_JDK_FOUND=no
21473         else
21474           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21475           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21476             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21478             BOOT_JDK_FOUND=no
21479           else
21480             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21481             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21482 
21483             # Extra M4 quote needed to protect [] in grep expression.
21484             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21485             if test "x$FOUND_CORRECT_VERSION" = x; then
21486               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21488               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21489 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21490               BOOT_JDK_FOUND=no
21491             else
21492               # We're done! :-)
21493               BOOT_JDK_FOUND=yes
21494 
21495   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21496 
21497   # Input might be given as Windows format, start by converting to
21498   # unix format.
21499   path="$BOOT_JDK"
21500   new_path=`$CYGPATH -u "$path"`
21501 
21502   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21503   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21504   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21505   # "foo.exe" is OK but "foo" is an error.
21506   #
21507   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21508   # It is also a way to make sure we got the proper file name for the real test later on.
21509   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21510   if test "x$test_shortpath" = x; then
21511     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21512 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21513     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21514   fi
21515 
21516   # Call helper function which possibly converts this using DOS-style short mode.
21517   # If so, the updated path is stored in $new_path.
21518 
21519   input_path="$new_path"
21520   # Check if we need to convert this using DOS-style short mode. If the path
21521   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21522   # take no chances and rewrite it.
21523   # Note: m4 eats our [], so we need to use [ and ] instead.
21524   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21525   if test "x$has_forbidden_chars" != x; then
21526     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21527     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21528     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21529     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21530       # Going to short mode and back again did indeed matter. Since short mode is
21531       # case insensitive, let's make it lowercase to improve readability.
21532       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21533       # Now convert it back to Unix-stile (cygpath)
21534       input_path=`$CYGPATH -u "$shortmode_path"`
21535       new_path="$input_path"
21536     fi
21537   fi
21538 
21539   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21540   if test "x$test_cygdrive_prefix" = x; then
21541     # As a simple fix, exclude /usr/bin since it's not a real path.
21542     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21543       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21544       # a path prefixed by /cygdrive for fixpath to work.
21545       new_path="$CYGWIN_ROOT_PATH$input_path"
21546     fi
21547   fi
21548 
21549 
21550   if test "x$path" != "x$new_path"; then
21551     BOOT_JDK="$new_path"
21552     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21553 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21554   fi
21555 
21556   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21557 
21558   path="$BOOT_JDK"
21559   has_colon=`$ECHO $path | $GREP ^.:`
21560   new_path="$path"
21561   if test "x$has_colon" = x; then
21562     # Not in mixed or Windows style, start by that.
21563     new_path=`cmd //c echo $path`
21564   fi
21565 
21566 
21567   input_path="$new_path"
21568   # Check if we need to convert this using DOS-style short mode. If the path
21569   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21570   # take no chances and rewrite it.
21571   # Note: m4 eats our [], so we need to use [ and ] instead.
21572   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21573   if test "x$has_forbidden_chars" != x; then
21574     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21575     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21576   fi
21577 
21578 
21579   windows_path="$new_path"
21580   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21581     unix_path=`$CYGPATH -u "$windows_path"`
21582     new_path="$unix_path"
21583   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21584     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21585     new_path="$unix_path"
21586   fi
21587 
21588   if test "x$path" != "x$new_path"; then
21589     BOOT_JDK="$new_path"
21590     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21591 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21592   fi
21593 
21594   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21595   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21596 
21597   else
21598     # We're on a posix platform. Hooray! :)
21599     path="$BOOT_JDK"
21600     has_space=`$ECHO "$path" | $GREP " "`
21601     if test "x$has_space" != x; then
21602       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21603 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21604       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21605     fi
21606 
21607     # Use eval to expand a potential ~
21608     eval path="$path"
21609     if test ! -f "$path" && test ! -d "$path"; then
21610       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21611     fi
21612 
21613     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21614   fi
21615 
21616               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21617 $as_echo_n "checking for Boot JDK... " >&6; }
21618               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21619 $as_echo "$BOOT_JDK" >&6; }
21620               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21621 $as_echo_n "checking Boot JDK version... " >&6; }
21622               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21623               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21624 $as_echo "$BOOT_JDK_VERSION" >&6; }
21625             fi # end check jdk version
21626           fi # end check rt.jar
21627         fi # end check javac
21628       fi # end check java
21629     fi # end check boot jdk found
21630   fi
21631 
21632 
21633   # Test: Is there a JDK installed in default, well-known locations?
21634 
21635   if test "x$BOOT_JDK_FOUND" = xno; then
21636     # Now execute the test
21637 
21638   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21639 
21640   if test "x$BOOT_JDK_FOUND" = xno; then
21641     # Now execute the test
21642 
21643   if test "x$ProgramW6432" != x; then
21644     VIRTUAL_DIR="$ProgramW6432/Java"
21645 
21646   windows_path="$VIRTUAL_DIR"
21647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21648     unix_path=`$CYGPATH -u "$windows_path"`
21649     VIRTUAL_DIR="$unix_path"
21650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21651     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21652     VIRTUAL_DIR="$unix_path"
21653   fi
21654 
21655 
21656   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21657   BOOT_JDK_SUFFIX=""
21658   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21659   if test "x$ALL_JDKS_FOUND" != x; then
21660     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21661 
21662   if test "x$BOOT_JDK_FOUND" = xno; then
21663     # Now execute the test
21664 
21665         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21666         if test -d "$BOOT_JDK"; then
21667           BOOT_JDK_FOUND=maybe
21668           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21669 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21670         fi
21671 
21672 
21673     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21674     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21675       # Do we have a bin/java?
21676       if test ! -x "$BOOT_JDK/bin/java"; then
21677         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21679         BOOT_JDK_FOUND=no
21680       else
21681         # Do we have a bin/javac?
21682         if test ! -x "$BOOT_JDK/bin/javac"; then
21683           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21684 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21685           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21686 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21687           BOOT_JDK_FOUND=no
21688         else
21689           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21690           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21691             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21692 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21693             BOOT_JDK_FOUND=no
21694           else
21695             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21696             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21697 
21698             # Extra M4 quote needed to protect [] in grep expression.
21699             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21700             if test "x$FOUND_CORRECT_VERSION" = x; then
21701               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21702 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21703               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21704 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21705               BOOT_JDK_FOUND=no
21706             else
21707               # We're done! :-)
21708               BOOT_JDK_FOUND=yes
21709 
21710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21711 
21712   # Input might be given as Windows format, start by converting to
21713   # unix format.
21714   path="$BOOT_JDK"
21715   new_path=`$CYGPATH -u "$path"`
21716 
21717   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21718   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21719   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21720   # "foo.exe" is OK but "foo" is an error.
21721   #
21722   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21723   # It is also a way to make sure we got the proper file name for the real test later on.
21724   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21725   if test "x$test_shortpath" = x; then
21726     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21728     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21729   fi
21730 
21731   # Call helper function which possibly converts this using DOS-style short mode.
21732   # If so, the updated path is stored in $new_path.
21733 
21734   input_path="$new_path"
21735   # Check if we need to convert this using DOS-style short mode. If the path
21736   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21737   # take no chances and rewrite it.
21738   # Note: m4 eats our [], so we need to use [ and ] instead.
21739   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21740   if test "x$has_forbidden_chars" != x; then
21741     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21742     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21743     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21744     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21745       # Going to short mode and back again did indeed matter. Since short mode is
21746       # case insensitive, let's make it lowercase to improve readability.
21747       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21748       # Now convert it back to Unix-stile (cygpath)
21749       input_path=`$CYGPATH -u "$shortmode_path"`
21750       new_path="$input_path"
21751     fi
21752   fi
21753 
21754   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21755   if test "x$test_cygdrive_prefix" = x; then
21756     # As a simple fix, exclude /usr/bin since it's not a real path.
21757     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21758       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21759       # a path prefixed by /cygdrive for fixpath to work.
21760       new_path="$CYGWIN_ROOT_PATH$input_path"
21761     fi
21762   fi
21763 
21764 
21765   if test "x$path" != "x$new_path"; then
21766     BOOT_JDK="$new_path"
21767     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21769   fi
21770 
21771   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21772 
21773   path="$BOOT_JDK"
21774   has_colon=`$ECHO $path | $GREP ^.:`
21775   new_path="$path"
21776   if test "x$has_colon" = x; then
21777     # Not in mixed or Windows style, start by that.
21778     new_path=`cmd //c echo $path`
21779   fi
21780 
21781 
21782   input_path="$new_path"
21783   # Check if we need to convert this using DOS-style short mode. If the path
21784   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21785   # take no chances and rewrite it.
21786   # Note: m4 eats our [], so we need to use [ and ] instead.
21787   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21788   if test "x$has_forbidden_chars" != x; then
21789     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21790     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21791   fi
21792 
21793 
21794   windows_path="$new_path"
21795   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21796     unix_path=`$CYGPATH -u "$windows_path"`
21797     new_path="$unix_path"
21798   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21799     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21800     new_path="$unix_path"
21801   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21810   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21811 
21812   else
21813     # We're on a posix platform. Hooray! :)
21814     path="$BOOT_JDK"
21815     has_space=`$ECHO "$path" | $GREP " "`
21816     if test "x$has_space" != x; then
21817       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21819       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21820     fi
21821 
21822     # Use eval to expand a potential ~
21823     eval path="$path"
21824     if test ! -f "$path" && test ! -d "$path"; then
21825       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21826     fi
21827 
21828     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21829   fi
21830 
21831               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21832 $as_echo_n "checking for Boot JDK... " >&6; }
21833               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21834 $as_echo "$BOOT_JDK" >&6; }
21835               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21836 $as_echo_n "checking Boot JDK version... " >&6; }
21837               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21838               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21839 $as_echo "$BOOT_JDK_VERSION" >&6; }
21840             fi # end check jdk version
21841           fi # end check rt.jar
21842         fi # end check javac
21843       fi # end check java
21844     fi # end check boot jdk found
21845   fi
21846 
21847     done
21848   fi
21849 
21850   fi
21851 
21852 
21853     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21854     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21855       # Do we have a bin/java?
21856       if test ! -x "$BOOT_JDK/bin/java"; then
21857         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21859         BOOT_JDK_FOUND=no
21860       else
21861         # Do we have a bin/javac?
21862         if test ! -x "$BOOT_JDK/bin/javac"; then
21863           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21865           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21866 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21867           BOOT_JDK_FOUND=no
21868         else
21869           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21870           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21871             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21873             BOOT_JDK_FOUND=no
21874           else
21875             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21876             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21877 
21878             # Extra M4 quote needed to protect [] in grep expression.
21879             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21880             if test "x$FOUND_CORRECT_VERSION" = x; then
21881               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21882 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21883               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21884 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21885               BOOT_JDK_FOUND=no
21886             else
21887               # We're done! :-)
21888               BOOT_JDK_FOUND=yes
21889 
21890   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21891 
21892   # Input might be given as Windows format, start by converting to
21893   # unix format.
21894   path="$BOOT_JDK"
21895   new_path=`$CYGPATH -u "$path"`
21896 
21897   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21898   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21899   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21900   # "foo.exe" is OK but "foo" is an error.
21901   #
21902   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21903   # It is also a way to make sure we got the proper file name for the real test later on.
21904   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21905   if test "x$test_shortpath" = x; then
21906     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21907 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21908     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21909   fi
21910 
21911   # Call helper function which possibly converts this using DOS-style short mode.
21912   # If so, the updated path is stored in $new_path.
21913 
21914   input_path="$new_path"
21915   # Check if we need to convert this using DOS-style short mode. If the path
21916   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21917   # take no chances and rewrite it.
21918   # Note: m4 eats our [], so we need to use [ and ] instead.
21919   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21920   if test "x$has_forbidden_chars" != x; then
21921     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21922     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21923     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21924     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21925       # Going to short mode and back again did indeed matter. Since short mode is
21926       # case insensitive, let's make it lowercase to improve readability.
21927       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21928       # Now convert it back to Unix-stile (cygpath)
21929       input_path=`$CYGPATH -u "$shortmode_path"`
21930       new_path="$input_path"
21931     fi
21932   fi
21933 
21934   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21935   if test "x$test_cygdrive_prefix" = x; then
21936     # As a simple fix, exclude /usr/bin since it's not a real path.
21937     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21938       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21939       # a path prefixed by /cygdrive for fixpath to work.
21940       new_path="$CYGWIN_ROOT_PATH$input_path"
21941     fi
21942   fi
21943 
21944 
21945   if test "x$path" != "x$new_path"; then
21946     BOOT_JDK="$new_path"
21947     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21948 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21949   fi
21950 
21951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21952 
21953   path="$BOOT_JDK"
21954   has_colon=`$ECHO $path | $GREP ^.:`
21955   new_path="$path"
21956   if test "x$has_colon" = x; then
21957     # Not in mixed or Windows style, start by that.
21958     new_path=`cmd //c echo $path`
21959   fi
21960 
21961 
21962   input_path="$new_path"
21963   # Check if we need to convert this using DOS-style short mode. If the path
21964   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21965   # take no chances and rewrite it.
21966   # Note: m4 eats our [], so we need to use [ and ] instead.
21967   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21968   if test "x$has_forbidden_chars" != x; then
21969     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21970     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21971   fi
21972 
21973 
21974   windows_path="$new_path"
21975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21976     unix_path=`$CYGPATH -u "$windows_path"`
21977     new_path="$unix_path"
21978   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21979     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21980     new_path="$unix_path"
21981   fi
21982 
21983   if test "x$path" != "x$new_path"; then
21984     BOOT_JDK="$new_path"
21985     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21986 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21987   fi
21988 
21989   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21990   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21991 
21992   else
21993     # We're on a posix platform. Hooray! :)
21994     path="$BOOT_JDK"
21995     has_space=`$ECHO "$path" | $GREP " "`
21996     if test "x$has_space" != x; then
21997       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21998 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21999       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22000     fi
22001 
22002     # Use eval to expand a potential ~
22003     eval path="$path"
22004     if test ! -f "$path" && test ! -d "$path"; then
22005       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22006     fi
22007 
22008     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22009   fi
22010 
22011               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22012 $as_echo_n "checking for Boot JDK... " >&6; }
22013               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22014 $as_echo "$BOOT_JDK" >&6; }
22015               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22016 $as_echo_n "checking Boot JDK version... " >&6; }
22017               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22018               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22019 $as_echo "$BOOT_JDK_VERSION" >&6; }
22020             fi # end check jdk version
22021           fi # end check rt.jar
22022         fi # end check javac
22023       fi # end check java
22024     fi # end check boot jdk found
22025   fi
22026 
22027 
22028   if test "x$BOOT_JDK_FOUND" = xno; then
22029     # Now execute the test
22030 
22031   if test "x$PROGRAMW6432" != x; then
22032     VIRTUAL_DIR="$PROGRAMW6432/Java"
22033 
22034   windows_path="$VIRTUAL_DIR"
22035   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22036     unix_path=`$CYGPATH -u "$windows_path"`
22037     VIRTUAL_DIR="$unix_path"
22038   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22039     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22040     VIRTUAL_DIR="$unix_path"
22041   fi
22042 
22043 
22044   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22045   BOOT_JDK_SUFFIX=""
22046   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22047   if test "x$ALL_JDKS_FOUND" != x; then
22048     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22049 
22050   if test "x$BOOT_JDK_FOUND" = xno; then
22051     # Now execute the test
22052 
22053         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22054         if test -d "$BOOT_JDK"; then
22055           BOOT_JDK_FOUND=maybe
22056           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22057 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22058         fi
22059 
22060 
22061     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22062     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22063       # Do we have a bin/java?
22064       if test ! -x "$BOOT_JDK/bin/java"; then
22065         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22067         BOOT_JDK_FOUND=no
22068       else
22069         # Do we have a bin/javac?
22070         if test ! -x "$BOOT_JDK/bin/javac"; then
22071           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22072 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22073           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22074 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22075           BOOT_JDK_FOUND=no
22076         else
22077           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22078           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22079             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22080 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22081             BOOT_JDK_FOUND=no
22082           else
22083             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22084             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22085 
22086             # Extra M4 quote needed to protect [] in grep expression.
22087             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22088             if test "x$FOUND_CORRECT_VERSION" = x; then
22089               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22090 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22091               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22092 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22093               BOOT_JDK_FOUND=no
22094             else
22095               # We're done! :-)
22096               BOOT_JDK_FOUND=yes
22097 
22098   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22099 
22100   # Input might be given as Windows format, start by converting to
22101   # unix format.
22102   path="$BOOT_JDK"
22103   new_path=`$CYGPATH -u "$path"`
22104 
22105   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22106   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22107   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22108   # "foo.exe" is OK but "foo" is an error.
22109   #
22110   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22111   # It is also a way to make sure we got the proper file name for the real test later on.
22112   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22113   if test "x$test_shortpath" = x; then
22114     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22115 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22116     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22117   fi
22118 
22119   # Call helper function which possibly converts this using DOS-style short mode.
22120   # If so, the updated path is stored in $new_path.
22121 
22122   input_path="$new_path"
22123   # Check if we need to convert this using DOS-style short mode. If the path
22124   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22125   # take no chances and rewrite it.
22126   # Note: m4 eats our [], so we need to use [ and ] instead.
22127   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22128   if test "x$has_forbidden_chars" != x; then
22129     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22130     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22131     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22132     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22133       # Going to short mode and back again did indeed matter. Since short mode is
22134       # case insensitive, let's make it lowercase to improve readability.
22135       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22136       # Now convert it back to Unix-stile (cygpath)
22137       input_path=`$CYGPATH -u "$shortmode_path"`
22138       new_path="$input_path"
22139     fi
22140   fi
22141 
22142   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22143   if test "x$test_cygdrive_prefix" = x; then
22144     # As a simple fix, exclude /usr/bin since it's not a real path.
22145     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22146       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22147       # a path prefixed by /cygdrive for fixpath to work.
22148       new_path="$CYGWIN_ROOT_PATH$input_path"
22149     fi
22150   fi
22151 
22152 
22153   if test "x$path" != "x$new_path"; then
22154     BOOT_JDK="$new_path"
22155     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22156 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22157   fi
22158 
22159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22160 
22161   path="$BOOT_JDK"
22162   has_colon=`$ECHO $path | $GREP ^.:`
22163   new_path="$path"
22164   if test "x$has_colon" = x; then
22165     # Not in mixed or Windows style, start by that.
22166     new_path=`cmd //c echo $path`
22167   fi
22168 
22169 
22170   input_path="$new_path"
22171   # Check if we need to convert this using DOS-style short mode. If the path
22172   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22173   # take no chances and rewrite it.
22174   # Note: m4 eats our [], so we need to use [ and ] instead.
22175   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22176   if test "x$has_forbidden_chars" != x; then
22177     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22178     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22179   fi
22180 
22181 
22182   windows_path="$new_path"
22183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22184     unix_path=`$CYGPATH -u "$windows_path"`
22185     new_path="$unix_path"
22186   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22187     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22188     new_path="$unix_path"
22189   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22198   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22199 
22200   else
22201     # We're on a posix platform. Hooray! :)
22202     path="$BOOT_JDK"
22203     has_space=`$ECHO "$path" | $GREP " "`
22204     if test "x$has_space" != x; then
22205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22206 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22207       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22208     fi
22209 
22210     # Use eval to expand a potential ~
22211     eval path="$path"
22212     if test ! -f "$path" && test ! -d "$path"; then
22213       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22214     fi
22215 
22216     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22217   fi
22218 
22219               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22220 $as_echo_n "checking for Boot JDK... " >&6; }
22221               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22222 $as_echo "$BOOT_JDK" >&6; }
22223               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22224 $as_echo_n "checking Boot JDK version... " >&6; }
22225               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22226               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22227 $as_echo "$BOOT_JDK_VERSION" >&6; }
22228             fi # end check jdk version
22229           fi # end check rt.jar
22230         fi # end check javac
22231       fi # end check java
22232     fi # end check boot jdk found
22233   fi
22234 
22235     done
22236   fi
22237 
22238   fi
22239 
22240 
22241     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22242     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22243       # Do we have a bin/java?
22244       if test ! -x "$BOOT_JDK/bin/java"; then
22245         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22247         BOOT_JDK_FOUND=no
22248       else
22249         # Do we have a bin/javac?
22250         if test ! -x "$BOOT_JDK/bin/javac"; then
22251           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22253           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22254 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22255           BOOT_JDK_FOUND=no
22256         else
22257           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22258           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22259             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22261             BOOT_JDK_FOUND=no
22262           else
22263             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22264             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22265 
22266             # Extra M4 quote needed to protect [] in grep expression.
22267             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22268             if test "x$FOUND_CORRECT_VERSION" = x; then
22269               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22271               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22272 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22273               BOOT_JDK_FOUND=no
22274             else
22275               # We're done! :-)
22276               BOOT_JDK_FOUND=yes
22277 
22278   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22279 
22280   # Input might be given as Windows format, start by converting to
22281   # unix format.
22282   path="$BOOT_JDK"
22283   new_path=`$CYGPATH -u "$path"`
22284 
22285   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22286   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22287   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22288   # "foo.exe" is OK but "foo" is an error.
22289   #
22290   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22291   # It is also a way to make sure we got the proper file name for the real test later on.
22292   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22293   if test "x$test_shortpath" = x; then
22294     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22296     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22297   fi
22298 
22299   # Call helper function which possibly converts this using DOS-style short mode.
22300   # If so, the updated path is stored in $new_path.
22301 
22302   input_path="$new_path"
22303   # Check if we need to convert this using DOS-style short mode. If the path
22304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22305   # take no chances and rewrite it.
22306   # Note: m4 eats our [], so we need to use [ and ] instead.
22307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22308   if test "x$has_forbidden_chars" != x; then
22309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22310     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22311     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22312     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22313       # Going to short mode and back again did indeed matter. Since short mode is
22314       # case insensitive, let's make it lowercase to improve readability.
22315       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22316       # Now convert it back to Unix-stile (cygpath)
22317       input_path=`$CYGPATH -u "$shortmode_path"`
22318       new_path="$input_path"
22319     fi
22320   fi
22321 
22322   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22323   if test "x$test_cygdrive_prefix" = x; then
22324     # As a simple fix, exclude /usr/bin since it's not a real path.
22325     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22326       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22327       # a path prefixed by /cygdrive for fixpath to work.
22328       new_path="$CYGWIN_ROOT_PATH$input_path"
22329     fi
22330   fi
22331 
22332 
22333   if test "x$path" != "x$new_path"; then
22334     BOOT_JDK="$new_path"
22335     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22337   fi
22338 
22339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22340 
22341   path="$BOOT_JDK"
22342   has_colon=`$ECHO $path | $GREP ^.:`
22343   new_path="$path"
22344   if test "x$has_colon" = x; then
22345     # Not in mixed or Windows style, start by that.
22346     new_path=`cmd //c echo $path`
22347   fi
22348 
22349 
22350   input_path="$new_path"
22351   # Check if we need to convert this using DOS-style short mode. If the path
22352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22353   # take no chances and rewrite it.
22354   # Note: m4 eats our [], so we need to use [ and ] instead.
22355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22356   if test "x$has_forbidden_chars" != x; then
22357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22358     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22359   fi
22360 
22361 
22362   windows_path="$new_path"
22363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22364     unix_path=`$CYGPATH -u "$windows_path"`
22365     new_path="$unix_path"
22366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22368     new_path="$unix_path"
22369   fi
22370 
22371   if test "x$path" != "x$new_path"; then
22372     BOOT_JDK="$new_path"
22373     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22375   fi
22376 
22377   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22378   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22379 
22380   else
22381     # We're on a posix platform. Hooray! :)
22382     path="$BOOT_JDK"
22383     has_space=`$ECHO "$path" | $GREP " "`
22384     if test "x$has_space" != x; then
22385       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22386 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22387       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22388     fi
22389 
22390     # Use eval to expand a potential ~
22391     eval path="$path"
22392     if test ! -f "$path" && test ! -d "$path"; then
22393       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22394     fi
22395 
22396     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22397   fi
22398 
22399               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22400 $as_echo_n "checking for Boot JDK... " >&6; }
22401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22402 $as_echo "$BOOT_JDK" >&6; }
22403               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22404 $as_echo_n "checking Boot JDK version... " >&6; }
22405               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22406               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22407 $as_echo "$BOOT_JDK_VERSION" >&6; }
22408             fi # end check jdk version
22409           fi # end check rt.jar
22410         fi # end check javac
22411       fi # end check java
22412     fi # end check boot jdk found
22413   fi
22414 
22415 
22416   if test "x$BOOT_JDK_FOUND" = xno; then
22417     # Now execute the test
22418 
22419   if test "x$PROGRAMFILES" != x; then
22420     VIRTUAL_DIR="$PROGRAMFILES/Java"
22421 
22422   windows_path="$VIRTUAL_DIR"
22423   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22424     unix_path=`$CYGPATH -u "$windows_path"`
22425     VIRTUAL_DIR="$unix_path"
22426   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22427     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22428     VIRTUAL_DIR="$unix_path"
22429   fi
22430 
22431 
22432   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22433   BOOT_JDK_SUFFIX=""
22434   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22435   if test "x$ALL_JDKS_FOUND" != x; then
22436     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22437 
22438   if test "x$BOOT_JDK_FOUND" = xno; then
22439     # Now execute the test
22440 
22441         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22442         if test -d "$BOOT_JDK"; then
22443           BOOT_JDK_FOUND=maybe
22444           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22445 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22446         fi
22447 
22448 
22449     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22450     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22451       # Do we have a bin/java?
22452       if test ! -x "$BOOT_JDK/bin/java"; then
22453         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22455         BOOT_JDK_FOUND=no
22456       else
22457         # Do we have a bin/javac?
22458         if test ! -x "$BOOT_JDK/bin/javac"; then
22459           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22461           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22462 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22463           BOOT_JDK_FOUND=no
22464         else
22465           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22466           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22467             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22469             BOOT_JDK_FOUND=no
22470           else
22471             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22472             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22473 
22474             # Extra M4 quote needed to protect [] in grep expression.
22475             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22476             if test "x$FOUND_CORRECT_VERSION" = x; then
22477               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22479               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22480 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22481               BOOT_JDK_FOUND=no
22482             else
22483               # We're done! :-)
22484               BOOT_JDK_FOUND=yes
22485 
22486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22487 
22488   # Input might be given as Windows format, start by converting to
22489   # unix format.
22490   path="$BOOT_JDK"
22491   new_path=`$CYGPATH -u "$path"`
22492 
22493   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22494   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22495   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22496   # "foo.exe" is OK but "foo" is an error.
22497   #
22498   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22499   # It is also a way to make sure we got the proper file name for the real test later on.
22500   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22501   if test "x$test_shortpath" = x; then
22502     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22504     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22505   fi
22506 
22507   # Call helper function which possibly converts this using DOS-style short mode.
22508   # If so, the updated path is stored in $new_path.
22509 
22510   input_path="$new_path"
22511   # Check if we need to convert this using DOS-style short mode. If the path
22512   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22513   # take no chances and rewrite it.
22514   # Note: m4 eats our [], so we need to use [ and ] instead.
22515   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22516   if test "x$has_forbidden_chars" != x; then
22517     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22518     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22519     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22520     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22521       # Going to short mode and back again did indeed matter. Since short mode is
22522       # case insensitive, let's make it lowercase to improve readability.
22523       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22524       # Now convert it back to Unix-stile (cygpath)
22525       input_path=`$CYGPATH -u "$shortmode_path"`
22526       new_path="$input_path"
22527     fi
22528   fi
22529 
22530   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22531   if test "x$test_cygdrive_prefix" = x; then
22532     # As a simple fix, exclude /usr/bin since it's not a real path.
22533     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22534       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22535       # a path prefixed by /cygdrive for fixpath to work.
22536       new_path="$CYGWIN_ROOT_PATH$input_path"
22537     fi
22538   fi
22539 
22540 
22541   if test "x$path" != "x$new_path"; then
22542     BOOT_JDK="$new_path"
22543     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22545   fi
22546 
22547   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22548 
22549   path="$BOOT_JDK"
22550   has_colon=`$ECHO $path | $GREP ^.:`
22551   new_path="$path"
22552   if test "x$has_colon" = x; then
22553     # Not in mixed or Windows style, start by that.
22554     new_path=`cmd //c echo $path`
22555   fi
22556 
22557 
22558   input_path="$new_path"
22559   # Check if we need to convert this using DOS-style short mode. If the path
22560   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22561   # take no chances and rewrite it.
22562   # Note: m4 eats our [], so we need to use [ and ] instead.
22563   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22564   if test "x$has_forbidden_chars" != x; then
22565     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22566     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22567   fi
22568 
22569 
22570   windows_path="$new_path"
22571   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22572     unix_path=`$CYGPATH -u "$windows_path"`
22573     new_path="$unix_path"
22574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22575     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22576     new_path="$unix_path"
22577   fi
22578 
22579   if test "x$path" != "x$new_path"; then
22580     BOOT_JDK="$new_path"
22581     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22582 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22583   fi
22584 
22585   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22586   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22587 
22588   else
22589     # We're on a posix platform. Hooray! :)
22590     path="$BOOT_JDK"
22591     has_space=`$ECHO "$path" | $GREP " "`
22592     if test "x$has_space" != x; then
22593       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22594 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22595       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22596     fi
22597 
22598     # Use eval to expand a potential ~
22599     eval path="$path"
22600     if test ! -f "$path" && test ! -d "$path"; then
22601       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22602     fi
22603 
22604     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22605   fi
22606 
22607               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22608 $as_echo_n "checking for Boot JDK... " >&6; }
22609               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22610 $as_echo "$BOOT_JDK" >&6; }
22611               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22612 $as_echo_n "checking Boot JDK version... " >&6; }
22613               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22614               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22615 $as_echo "$BOOT_JDK_VERSION" >&6; }
22616             fi # end check jdk version
22617           fi # end check rt.jar
22618         fi # end check javac
22619       fi # end check java
22620     fi # end check boot jdk found
22621   fi
22622 
22623     done
22624   fi
22625 
22626   fi
22627 
22628 
22629     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22630     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22631       # Do we have a bin/java?
22632       if test ! -x "$BOOT_JDK/bin/java"; then
22633         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22635         BOOT_JDK_FOUND=no
22636       else
22637         # Do we have a bin/javac?
22638         if test ! -x "$BOOT_JDK/bin/javac"; then
22639           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22641           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22642 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22643           BOOT_JDK_FOUND=no
22644         else
22645           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22646           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22647             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22648 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22649             BOOT_JDK_FOUND=no
22650           else
22651             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22652             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22653 
22654             # Extra M4 quote needed to protect [] in grep expression.
22655             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22656             if test "x$FOUND_CORRECT_VERSION" = x; then
22657               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22659               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22660 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22661               BOOT_JDK_FOUND=no
22662             else
22663               # We're done! :-)
22664               BOOT_JDK_FOUND=yes
22665 
22666   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22667 
22668   # Input might be given as Windows format, start by converting to
22669   # unix format.
22670   path="$BOOT_JDK"
22671   new_path=`$CYGPATH -u "$path"`
22672 
22673   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22674   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22675   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22676   # "foo.exe" is OK but "foo" is an error.
22677   #
22678   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22679   # It is also a way to make sure we got the proper file name for the real test later on.
22680   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22681   if test "x$test_shortpath" = x; then
22682     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22683 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22684     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22685   fi
22686 
22687   # Call helper function which possibly converts this using DOS-style short mode.
22688   # If so, the updated path is stored in $new_path.
22689 
22690   input_path="$new_path"
22691   # Check if we need to convert this using DOS-style short mode. If the path
22692   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22693   # take no chances and rewrite it.
22694   # Note: m4 eats our [], so we need to use [ and ] instead.
22695   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22696   if test "x$has_forbidden_chars" != x; then
22697     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22698     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22699     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22700     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22701       # Going to short mode and back again did indeed matter. Since short mode is
22702       # case insensitive, let's make it lowercase to improve readability.
22703       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22704       # Now convert it back to Unix-stile (cygpath)
22705       input_path=`$CYGPATH -u "$shortmode_path"`
22706       new_path="$input_path"
22707     fi
22708   fi
22709 
22710   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22711   if test "x$test_cygdrive_prefix" = x; then
22712     # As a simple fix, exclude /usr/bin since it's not a real path.
22713     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22714       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22715       # a path prefixed by /cygdrive for fixpath to work.
22716       new_path="$CYGWIN_ROOT_PATH$input_path"
22717     fi
22718   fi
22719 
22720 
22721   if test "x$path" != "x$new_path"; then
22722     BOOT_JDK="$new_path"
22723     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22724 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22725   fi
22726 
22727   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22728 
22729   path="$BOOT_JDK"
22730   has_colon=`$ECHO $path | $GREP ^.:`
22731   new_path="$path"
22732   if test "x$has_colon" = x; then
22733     # Not in mixed or Windows style, start by that.
22734     new_path=`cmd //c echo $path`
22735   fi
22736 
22737 
22738   input_path="$new_path"
22739   # Check if we need to convert this using DOS-style short mode. If the path
22740   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22741   # take no chances and rewrite it.
22742   # Note: m4 eats our [], so we need to use [ and ] instead.
22743   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22744   if test "x$has_forbidden_chars" != x; then
22745     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22746     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22747   fi
22748 
22749 
22750   windows_path="$new_path"
22751   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22752     unix_path=`$CYGPATH -u "$windows_path"`
22753     new_path="$unix_path"
22754   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22755     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22756     new_path="$unix_path"
22757   fi
22758 
22759   if test "x$path" != "x$new_path"; then
22760     BOOT_JDK="$new_path"
22761     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22762 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22763   fi
22764 
22765   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22766   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22767 
22768   else
22769     # We're on a posix platform. Hooray! :)
22770     path="$BOOT_JDK"
22771     has_space=`$ECHO "$path" | $GREP " "`
22772     if test "x$has_space" != x; then
22773       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22775       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22776     fi
22777 
22778     # Use eval to expand a potential ~
22779     eval path="$path"
22780     if test ! -f "$path" && test ! -d "$path"; then
22781       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22782     fi
22783 
22784     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22785   fi
22786 
22787               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22788 $as_echo_n "checking for Boot JDK... " >&6; }
22789               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22790 $as_echo "$BOOT_JDK" >&6; }
22791               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22792 $as_echo_n "checking Boot JDK version... " >&6; }
22793               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22794               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22795 $as_echo "$BOOT_JDK_VERSION" >&6; }
22796             fi # end check jdk version
22797           fi # end check rt.jar
22798         fi # end check javac
22799       fi # end check java
22800     fi # end check boot jdk found
22801   fi
22802 
22803 
22804   if test "x$BOOT_JDK_FOUND" = xno; then
22805     # Now execute the test
22806 
22807   if test "x$ProgramFiles" != x; then
22808     VIRTUAL_DIR="$ProgramFiles/Java"
22809 
22810   windows_path="$VIRTUAL_DIR"
22811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22812     unix_path=`$CYGPATH -u "$windows_path"`
22813     VIRTUAL_DIR="$unix_path"
22814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22815     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22816     VIRTUAL_DIR="$unix_path"
22817   fi
22818 
22819 
22820   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22821   BOOT_JDK_SUFFIX=""
22822   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22823   if test "x$ALL_JDKS_FOUND" != x; then
22824     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22825 
22826   if test "x$BOOT_JDK_FOUND" = xno; then
22827     # Now execute the test
22828 
22829         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22830         if test -d "$BOOT_JDK"; then
22831           BOOT_JDK_FOUND=maybe
22832           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22833 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22834         fi
22835 
22836 
22837     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22838     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22839       # Do we have a bin/java?
22840       if test ! -x "$BOOT_JDK/bin/java"; then
22841         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22843         BOOT_JDK_FOUND=no
22844       else
22845         # Do we have a bin/javac?
22846         if test ! -x "$BOOT_JDK/bin/javac"; then
22847           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22849           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22850 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22851           BOOT_JDK_FOUND=no
22852         else
22853           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22854           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22855             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22856 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22857             BOOT_JDK_FOUND=no
22858           else
22859             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22860             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22861 
22862             # Extra M4 quote needed to protect [] in grep expression.
22863             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22864             if test "x$FOUND_CORRECT_VERSION" = x; then
22865               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22867               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22868 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22869               BOOT_JDK_FOUND=no
22870             else
22871               # We're done! :-)
22872               BOOT_JDK_FOUND=yes
22873 
22874   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22875 
22876   # Input might be given as Windows format, start by converting to
22877   # unix format.
22878   path="$BOOT_JDK"
22879   new_path=`$CYGPATH -u "$path"`
22880 
22881   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22882   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22883   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22884   # "foo.exe" is OK but "foo" is an error.
22885   #
22886   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22887   # It is also a way to make sure we got the proper file name for the real test later on.
22888   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22889   if test "x$test_shortpath" = x; then
22890     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22892     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22893   fi
22894 
22895   # Call helper function which possibly converts this using DOS-style short mode.
22896   # If so, the updated path is stored in $new_path.
22897 
22898   input_path="$new_path"
22899   # Check if we need to convert this using DOS-style short mode. If the path
22900   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22901   # take no chances and rewrite it.
22902   # Note: m4 eats our [], so we need to use [ and ] instead.
22903   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22904   if test "x$has_forbidden_chars" != x; then
22905     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22906     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22907     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22908     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22909       # Going to short mode and back again did indeed matter. Since short mode is
22910       # case insensitive, let's make it lowercase to improve readability.
22911       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22912       # Now convert it back to Unix-stile (cygpath)
22913       input_path=`$CYGPATH -u "$shortmode_path"`
22914       new_path="$input_path"
22915     fi
22916   fi
22917 
22918   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22919   if test "x$test_cygdrive_prefix" = x; then
22920     # As a simple fix, exclude /usr/bin since it's not a real path.
22921     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22922       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22923       # a path prefixed by /cygdrive for fixpath to work.
22924       new_path="$CYGWIN_ROOT_PATH$input_path"
22925     fi
22926   fi
22927 
22928 
22929   if test "x$path" != "x$new_path"; then
22930     BOOT_JDK="$new_path"
22931     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22932 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22933   fi
22934 
22935   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22936 
22937   path="$BOOT_JDK"
22938   has_colon=`$ECHO $path | $GREP ^.:`
22939   new_path="$path"
22940   if test "x$has_colon" = x; then
22941     # Not in mixed or Windows style, start by that.
22942     new_path=`cmd //c echo $path`
22943   fi
22944 
22945 
22946   input_path="$new_path"
22947   # Check if we need to convert this using DOS-style short mode. If the path
22948   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22949   # take no chances and rewrite it.
22950   # Note: m4 eats our [], so we need to use [ and ] instead.
22951   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22952   if test "x$has_forbidden_chars" != x; then
22953     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22954     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22955   fi
22956 
22957 
22958   windows_path="$new_path"
22959   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22960     unix_path=`$CYGPATH -u "$windows_path"`
22961     new_path="$unix_path"
22962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22963     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22964     new_path="$unix_path"
22965   fi
22966 
22967   if test "x$path" != "x$new_path"; then
22968     BOOT_JDK="$new_path"
22969     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22971   fi
22972 
22973   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22974   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22975 
22976   else
22977     # We're on a posix platform. Hooray! :)
22978     path="$BOOT_JDK"
22979     has_space=`$ECHO "$path" | $GREP " "`
22980     if test "x$has_space" != x; then
22981       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22983       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22984     fi
22985 
22986     # Use eval to expand a potential ~
22987     eval path="$path"
22988     if test ! -f "$path" && test ! -d "$path"; then
22989       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22990     fi
22991 
22992     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22993   fi
22994 
22995               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22996 $as_echo_n "checking for Boot JDK... " >&6; }
22997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22998 $as_echo "$BOOT_JDK" >&6; }
22999               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23000 $as_echo_n "checking Boot JDK version... " >&6; }
23001               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23002               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23003 $as_echo "$BOOT_JDK_VERSION" >&6; }
23004             fi # end check jdk version
23005           fi # end check rt.jar
23006         fi # end check javac
23007       fi # end check java
23008     fi # end check boot jdk found
23009   fi
23010 
23011     done
23012   fi
23013 
23014   fi
23015 
23016 
23017     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23018     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23019       # Do we have a bin/java?
23020       if test ! -x "$BOOT_JDK/bin/java"; then
23021         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23022 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23023         BOOT_JDK_FOUND=no
23024       else
23025         # Do we have a bin/javac?
23026         if test ! -x "$BOOT_JDK/bin/javac"; then
23027           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23029           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23030 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23031           BOOT_JDK_FOUND=no
23032         else
23033           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23034           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23035             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23036 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23037             BOOT_JDK_FOUND=no
23038           else
23039             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23040             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23041 
23042             # Extra M4 quote needed to protect [] in grep expression.
23043             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23044             if test "x$FOUND_CORRECT_VERSION" = x; then
23045               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23047               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23048 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23049               BOOT_JDK_FOUND=no
23050             else
23051               # We're done! :-)
23052               BOOT_JDK_FOUND=yes
23053 
23054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23055 
23056   # Input might be given as Windows format, start by converting to
23057   # unix format.
23058   path="$BOOT_JDK"
23059   new_path=`$CYGPATH -u "$path"`
23060 
23061   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23062   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23063   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23064   # "foo.exe" is OK but "foo" is an error.
23065   #
23066   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23067   # It is also a way to make sure we got the proper file name for the real test later on.
23068   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23069   if test "x$test_shortpath" = x; then
23070     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23071 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23072     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23073   fi
23074 
23075   # Call helper function which possibly converts this using DOS-style short mode.
23076   # If so, the updated path is stored in $new_path.
23077 
23078   input_path="$new_path"
23079   # Check if we need to convert this using DOS-style short mode. If the path
23080   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23081   # take no chances and rewrite it.
23082   # Note: m4 eats our [], so we need to use [ and ] instead.
23083   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23084   if test "x$has_forbidden_chars" != x; then
23085     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23086     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23087     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23088     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23089       # Going to short mode and back again did indeed matter. Since short mode is
23090       # case insensitive, let's make it lowercase to improve readability.
23091       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23092       # Now convert it back to Unix-stile (cygpath)
23093       input_path=`$CYGPATH -u "$shortmode_path"`
23094       new_path="$input_path"
23095     fi
23096   fi
23097 
23098   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23099   if test "x$test_cygdrive_prefix" = x; then
23100     # As a simple fix, exclude /usr/bin since it's not a real path.
23101     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23102       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23103       # a path prefixed by /cygdrive for fixpath to work.
23104       new_path="$CYGWIN_ROOT_PATH$input_path"
23105     fi
23106   fi
23107 
23108 
23109   if test "x$path" != "x$new_path"; then
23110     BOOT_JDK="$new_path"
23111     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23113   fi
23114 
23115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23116 
23117   path="$BOOT_JDK"
23118   has_colon=`$ECHO $path | $GREP ^.:`
23119   new_path="$path"
23120   if test "x$has_colon" = x; then
23121     # Not in mixed or Windows style, start by that.
23122     new_path=`cmd //c echo $path`
23123   fi
23124 
23125 
23126   input_path="$new_path"
23127   # Check if we need to convert this using DOS-style short mode. If the path
23128   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23129   # take no chances and rewrite it.
23130   # Note: m4 eats our [], so we need to use [ and ] instead.
23131   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23132   if test "x$has_forbidden_chars" != x; then
23133     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23134     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23135   fi
23136 
23137 
23138   windows_path="$new_path"
23139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23140     unix_path=`$CYGPATH -u "$windows_path"`
23141     new_path="$unix_path"
23142   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23143     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23144     new_path="$unix_path"
23145   fi
23146 
23147   if test "x$path" != "x$new_path"; then
23148     BOOT_JDK="$new_path"
23149     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23150 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23151   fi
23152 
23153   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23154   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23155 
23156   else
23157     # We're on a posix platform. Hooray! :)
23158     path="$BOOT_JDK"
23159     has_space=`$ECHO "$path" | $GREP " "`
23160     if test "x$has_space" != x; then
23161       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23162 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23163       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23164     fi
23165 
23166     # Use eval to expand a potential ~
23167     eval path="$path"
23168     if test ! -f "$path" && test ! -d "$path"; then
23169       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23170     fi
23171 
23172     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23173   fi
23174 
23175               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23176 $as_echo_n "checking for Boot JDK... " >&6; }
23177               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23178 $as_echo "$BOOT_JDK" >&6; }
23179               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23180 $as_echo_n "checking Boot JDK version... " >&6; }
23181               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23182               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23183 $as_echo "$BOOT_JDK_VERSION" >&6; }
23184             fi # end check jdk version
23185           fi # end check rt.jar
23186         fi # end check javac
23187       fi # end check java
23188     fi # end check boot jdk found
23189   fi
23190 
23191 
23192   if test "x$BOOT_JDK_FOUND" = xno; then
23193     # Now execute the test
23194 
23195   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23196   BOOT_JDK_SUFFIX=""
23197   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23198   if test "x$ALL_JDKS_FOUND" != x; then
23199     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23200 
23201   if test "x$BOOT_JDK_FOUND" = xno; then
23202     # Now execute the test
23203 
23204         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23205         if test -d "$BOOT_JDK"; then
23206           BOOT_JDK_FOUND=maybe
23207           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23208 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23209         fi
23210 
23211 
23212     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23213     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23214       # Do we have a bin/java?
23215       if test ! -x "$BOOT_JDK/bin/java"; then
23216         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23218         BOOT_JDK_FOUND=no
23219       else
23220         # Do we have a bin/javac?
23221         if test ! -x "$BOOT_JDK/bin/javac"; then
23222           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23224           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23225 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23226           BOOT_JDK_FOUND=no
23227         else
23228           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23229           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23230             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23232             BOOT_JDK_FOUND=no
23233           else
23234             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23235             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23236 
23237             # Extra M4 quote needed to protect [] in grep expression.
23238             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23239             if test "x$FOUND_CORRECT_VERSION" = x; then
23240               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23242               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23243 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23244               BOOT_JDK_FOUND=no
23245             else
23246               # We're done! :-)
23247               BOOT_JDK_FOUND=yes
23248 
23249   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23250 
23251   # Input might be given as Windows format, start by converting to
23252   # unix format.
23253   path="$BOOT_JDK"
23254   new_path=`$CYGPATH -u "$path"`
23255 
23256   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23257   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23258   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23259   # "foo.exe" is OK but "foo" is an error.
23260   #
23261   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23262   # It is also a way to make sure we got the proper file name for the real test later on.
23263   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23264   if test "x$test_shortpath" = x; then
23265     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23267     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23268   fi
23269 
23270   # Call helper function which possibly converts this using DOS-style short mode.
23271   # If so, the updated path is stored in $new_path.
23272 
23273   input_path="$new_path"
23274   # Check if we need to convert this using DOS-style short mode. If the path
23275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23276   # take no chances and rewrite it.
23277   # Note: m4 eats our [], so we need to use [ and ] instead.
23278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23279   if test "x$has_forbidden_chars" != x; then
23280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23284       # Going to short mode and back again did indeed matter. Since short mode is
23285       # case insensitive, let's make it lowercase to improve readability.
23286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23287       # Now convert it back to Unix-stile (cygpath)
23288       input_path=`$CYGPATH -u "$shortmode_path"`
23289       new_path="$input_path"
23290     fi
23291   fi
23292 
23293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23294   if test "x$test_cygdrive_prefix" = x; then
23295     # As a simple fix, exclude /usr/bin since it's not a real path.
23296     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23298       # a path prefixed by /cygdrive for fixpath to work.
23299       new_path="$CYGWIN_ROOT_PATH$input_path"
23300     fi
23301   fi
23302 
23303 
23304   if test "x$path" != "x$new_path"; then
23305     BOOT_JDK="$new_path"
23306     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23308   fi
23309 
23310   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23311 
23312   path="$BOOT_JDK"
23313   has_colon=`$ECHO $path | $GREP ^.:`
23314   new_path="$path"
23315   if test "x$has_colon" = x; then
23316     # Not in mixed or Windows style, start by that.
23317     new_path=`cmd //c echo $path`
23318   fi
23319 
23320 
23321   input_path="$new_path"
23322   # Check if we need to convert this using DOS-style short mode. If the path
23323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23324   # take no chances and rewrite it.
23325   # Note: m4 eats our [], so we need to use [ and ] instead.
23326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23327   if test "x$has_forbidden_chars" != x; then
23328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23329     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23330   fi
23331 
23332 
23333   windows_path="$new_path"
23334   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23335     unix_path=`$CYGPATH -u "$windows_path"`
23336     new_path="$unix_path"
23337   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23338     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23339     new_path="$unix_path"
23340   fi
23341 
23342   if test "x$path" != "x$new_path"; then
23343     BOOT_JDK="$new_path"
23344     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23345 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23346   fi
23347 
23348   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23349   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23350 
23351   else
23352     # We're on a posix platform. Hooray! :)
23353     path="$BOOT_JDK"
23354     has_space=`$ECHO "$path" | $GREP " "`
23355     if test "x$has_space" != x; then
23356       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23358       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23359     fi
23360 
23361     # Use eval to expand a potential ~
23362     eval path="$path"
23363     if test ! -f "$path" && test ! -d "$path"; then
23364       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23365     fi
23366 
23367     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23368   fi
23369 
23370               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23371 $as_echo_n "checking for Boot JDK... " >&6; }
23372               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23373 $as_echo "$BOOT_JDK" >&6; }
23374               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23375 $as_echo_n "checking Boot JDK version... " >&6; }
23376               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23377               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23378 $as_echo "$BOOT_JDK_VERSION" >&6; }
23379             fi # end check jdk version
23380           fi # end check rt.jar
23381         fi # end check javac
23382       fi # end check java
23383     fi # end check boot jdk found
23384   fi
23385 
23386     done
23387   fi
23388 
23389 
23390     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23391     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23392       # Do we have a bin/java?
23393       if test ! -x "$BOOT_JDK/bin/java"; then
23394         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23395 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23396         BOOT_JDK_FOUND=no
23397       else
23398         # Do we have a bin/javac?
23399         if test ! -x "$BOOT_JDK/bin/javac"; then
23400           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23402           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23403 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23404           BOOT_JDK_FOUND=no
23405         else
23406           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23407           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23408             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23410             BOOT_JDK_FOUND=no
23411           else
23412             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23413             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23414 
23415             # Extra M4 quote needed to protect [] in grep expression.
23416             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23417             if test "x$FOUND_CORRECT_VERSION" = x; then
23418               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23419 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23420               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23421 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23422               BOOT_JDK_FOUND=no
23423             else
23424               # We're done! :-)
23425               BOOT_JDK_FOUND=yes
23426 
23427   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23428 
23429   # Input might be given as Windows format, start by converting to
23430   # unix format.
23431   path="$BOOT_JDK"
23432   new_path=`$CYGPATH -u "$path"`
23433 
23434   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23435   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23436   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23437   # "foo.exe" is OK but "foo" is an error.
23438   #
23439   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23440   # It is also a way to make sure we got the proper file name for the real test later on.
23441   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23442   if test "x$test_shortpath" = x; then
23443     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23444 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23445     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23446   fi
23447 
23448   # Call helper function which possibly converts this using DOS-style short mode.
23449   # If so, the updated path is stored in $new_path.
23450 
23451   input_path="$new_path"
23452   # Check if we need to convert this using DOS-style short mode. If the path
23453   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23454   # take no chances and rewrite it.
23455   # Note: m4 eats our [], so we need to use [ and ] instead.
23456   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23457   if test "x$has_forbidden_chars" != x; then
23458     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23459     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23460     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23461     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23462       # Going to short mode and back again did indeed matter. Since short mode is
23463       # case insensitive, let's make it lowercase to improve readability.
23464       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23465       # Now convert it back to Unix-stile (cygpath)
23466       input_path=`$CYGPATH -u "$shortmode_path"`
23467       new_path="$input_path"
23468     fi
23469   fi
23470 
23471   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23472   if test "x$test_cygdrive_prefix" = x; then
23473     # As a simple fix, exclude /usr/bin since it's not a real path.
23474     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23475       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23476       # a path prefixed by /cygdrive for fixpath to work.
23477       new_path="$CYGWIN_ROOT_PATH$input_path"
23478     fi
23479   fi
23480 
23481 
23482   if test "x$path" != "x$new_path"; then
23483     BOOT_JDK="$new_path"
23484     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23485 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23486   fi
23487 
23488   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23489 
23490   path="$BOOT_JDK"
23491   has_colon=`$ECHO $path | $GREP ^.:`
23492   new_path="$path"
23493   if test "x$has_colon" = x; then
23494     # Not in mixed or Windows style, start by that.
23495     new_path=`cmd //c echo $path`
23496   fi
23497 
23498 
23499   input_path="$new_path"
23500   # Check if we need to convert this using DOS-style short mode. If the path
23501   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23502   # take no chances and rewrite it.
23503   # Note: m4 eats our [], so we need to use [ and ] instead.
23504   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23505   if test "x$has_forbidden_chars" != x; then
23506     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23507     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23508   fi
23509 
23510 
23511   windows_path="$new_path"
23512   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23513     unix_path=`$CYGPATH -u "$windows_path"`
23514     new_path="$unix_path"
23515   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23516     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23517     new_path="$unix_path"
23518   fi
23519 
23520   if test "x$path" != "x$new_path"; then
23521     BOOT_JDK="$new_path"
23522     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23524   fi
23525 
23526   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23527   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23528 
23529   else
23530     # We're on a posix platform. Hooray! :)
23531     path="$BOOT_JDK"
23532     has_space=`$ECHO "$path" | $GREP " "`
23533     if test "x$has_space" != x; then
23534       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23535 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23536       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23537     fi
23538 
23539     # Use eval to expand a potential ~
23540     eval path="$path"
23541     if test ! -f "$path" && test ! -d "$path"; then
23542       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23543     fi
23544 
23545     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23546   fi
23547 
23548               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23549 $as_echo_n "checking for Boot JDK... " >&6; }
23550               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23551 $as_echo "$BOOT_JDK" >&6; }
23552               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23553 $as_echo_n "checking Boot JDK version... " >&6; }
23554               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23555               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23556 $as_echo "$BOOT_JDK_VERSION" >&6; }
23557             fi # end check jdk version
23558           fi # end check rt.jar
23559         fi # end check javac
23560       fi # end check java
23561     fi # end check boot jdk found
23562   fi
23563 
23564   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23565 
23566   if test "x$BOOT_JDK_FOUND" = xno; then
23567     # Now execute the test
23568 
23569   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23570   BOOT_JDK_SUFFIX="/Contents/Home"
23571   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23572   if test "x$ALL_JDKS_FOUND" != x; then
23573     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23574 
23575   if test "x$BOOT_JDK_FOUND" = xno; then
23576     # Now execute the test
23577 
23578         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23579         if test -d "$BOOT_JDK"; then
23580           BOOT_JDK_FOUND=maybe
23581           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23582 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23583         fi
23584 
23585 
23586     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23587     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23588       # Do we have a bin/java?
23589       if test ! -x "$BOOT_JDK/bin/java"; then
23590         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23591 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23592         BOOT_JDK_FOUND=no
23593       else
23594         # Do we have a bin/javac?
23595         if test ! -x "$BOOT_JDK/bin/javac"; then
23596           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23598           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23599 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23600           BOOT_JDK_FOUND=no
23601         else
23602           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23603           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23604             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23605 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23606             BOOT_JDK_FOUND=no
23607           else
23608             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23609             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23610 
23611             # Extra M4 quote needed to protect [] in grep expression.
23612             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23613             if test "x$FOUND_CORRECT_VERSION" = x; then
23614               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23616               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23617 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23618               BOOT_JDK_FOUND=no
23619             else
23620               # We're done! :-)
23621               BOOT_JDK_FOUND=yes
23622 
23623   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23624 
23625   # Input might be given as Windows format, start by converting to
23626   # unix format.
23627   path="$BOOT_JDK"
23628   new_path=`$CYGPATH -u "$path"`
23629 
23630   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23631   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23632   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23633   # "foo.exe" is OK but "foo" is an error.
23634   #
23635   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23636   # It is also a way to make sure we got the proper file name for the real test later on.
23637   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23638   if test "x$test_shortpath" = x; then
23639     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23640 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23641     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23642   fi
23643 
23644   # Call helper function which possibly converts this using DOS-style short mode.
23645   # If so, the updated path is stored in $new_path.
23646 
23647   input_path="$new_path"
23648   # Check if we need to convert this using DOS-style short mode. If the path
23649   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23650   # take no chances and rewrite it.
23651   # Note: m4 eats our [], so we need to use [ and ] instead.
23652   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23653   if test "x$has_forbidden_chars" != x; then
23654     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23655     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23656     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23657     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23658       # Going to short mode and back again did indeed matter. Since short mode is
23659       # case insensitive, let's make it lowercase to improve readability.
23660       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23661       # Now convert it back to Unix-stile (cygpath)
23662       input_path=`$CYGPATH -u "$shortmode_path"`
23663       new_path="$input_path"
23664     fi
23665   fi
23666 
23667   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23668   if test "x$test_cygdrive_prefix" = x; then
23669     # As a simple fix, exclude /usr/bin since it's not a real path.
23670     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23671       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23672       # a path prefixed by /cygdrive for fixpath to work.
23673       new_path="$CYGWIN_ROOT_PATH$input_path"
23674     fi
23675   fi
23676 
23677 
23678   if test "x$path" != "x$new_path"; then
23679     BOOT_JDK="$new_path"
23680     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23681 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23682   fi
23683 
23684   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23685 
23686   path="$BOOT_JDK"
23687   has_colon=`$ECHO $path | $GREP ^.:`
23688   new_path="$path"
23689   if test "x$has_colon" = x; then
23690     # Not in mixed or Windows style, start by that.
23691     new_path=`cmd //c echo $path`
23692   fi
23693 
23694 
23695   input_path="$new_path"
23696   # Check if we need to convert this using DOS-style short mode. If the path
23697   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23698   # take no chances and rewrite it.
23699   # Note: m4 eats our [], so we need to use [ and ] instead.
23700   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23701   if test "x$has_forbidden_chars" != x; then
23702     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23703     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23704   fi
23705 
23706 
23707   windows_path="$new_path"
23708   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23709     unix_path=`$CYGPATH -u "$windows_path"`
23710     new_path="$unix_path"
23711   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23712     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23713     new_path="$unix_path"
23714   fi
23715 
23716   if test "x$path" != "x$new_path"; then
23717     BOOT_JDK="$new_path"
23718     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23720   fi
23721 
23722   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23723   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23724 
23725   else
23726     # We're on a posix platform. Hooray! :)
23727     path="$BOOT_JDK"
23728     has_space=`$ECHO "$path" | $GREP " "`
23729     if test "x$has_space" != x; then
23730       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23731 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23732       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23733     fi
23734 
23735     # Use eval to expand a potential ~
23736     eval path="$path"
23737     if test ! -f "$path" && test ! -d "$path"; then
23738       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23739     fi
23740 
23741     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23742   fi
23743 
23744               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23745 $as_echo_n "checking for Boot JDK... " >&6; }
23746               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23747 $as_echo "$BOOT_JDK" >&6; }
23748               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23749 $as_echo_n "checking Boot JDK version... " >&6; }
23750               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23751               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23752 $as_echo "$BOOT_JDK_VERSION" >&6; }
23753             fi # end check jdk version
23754           fi # end check rt.jar
23755         fi # end check javac
23756       fi # end check java
23757     fi # end check boot jdk found
23758   fi
23759 
23760     done
23761   fi
23762 
23763 
23764     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23765     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23766       # Do we have a bin/java?
23767       if test ! -x "$BOOT_JDK/bin/java"; then
23768         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23770         BOOT_JDK_FOUND=no
23771       else
23772         # Do we have a bin/javac?
23773         if test ! -x "$BOOT_JDK/bin/javac"; then
23774           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23776           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23777 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23778           BOOT_JDK_FOUND=no
23779         else
23780           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23781           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23782             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23784             BOOT_JDK_FOUND=no
23785           else
23786             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23787             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23788 
23789             # Extra M4 quote needed to protect [] in grep expression.
23790             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23791             if test "x$FOUND_CORRECT_VERSION" = x; then
23792               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23794               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23795 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23796               BOOT_JDK_FOUND=no
23797             else
23798               # We're done! :-)
23799               BOOT_JDK_FOUND=yes
23800 
23801   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23802 
23803   # Input might be given as Windows format, start by converting to
23804   # unix format.
23805   path="$BOOT_JDK"
23806   new_path=`$CYGPATH -u "$path"`
23807 
23808   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23809   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23810   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23811   # "foo.exe" is OK but "foo" is an error.
23812   #
23813   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23814   # It is also a way to make sure we got the proper file name for the real test later on.
23815   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23816   if test "x$test_shortpath" = x; then
23817     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23819     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23820   fi
23821 
23822   # Call helper function which possibly converts this using DOS-style short mode.
23823   # If so, the updated path is stored in $new_path.
23824 
23825   input_path="$new_path"
23826   # Check if we need to convert this using DOS-style short mode. If the path
23827   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23828   # take no chances and rewrite it.
23829   # Note: m4 eats our [], so we need to use [ and ] instead.
23830   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23831   if test "x$has_forbidden_chars" != x; then
23832     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23833     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23834     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23835     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23836       # Going to short mode and back again did indeed matter. Since short mode is
23837       # case insensitive, let's make it lowercase to improve readability.
23838       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23839       # Now convert it back to Unix-stile (cygpath)
23840       input_path=`$CYGPATH -u "$shortmode_path"`
23841       new_path="$input_path"
23842     fi
23843   fi
23844 
23845   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23846   if test "x$test_cygdrive_prefix" = x; then
23847     # As a simple fix, exclude /usr/bin since it's not a real path.
23848     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23849       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23850       # a path prefixed by /cygdrive for fixpath to work.
23851       new_path="$CYGWIN_ROOT_PATH$input_path"
23852     fi
23853   fi
23854 
23855 
23856   if test "x$path" != "x$new_path"; then
23857     BOOT_JDK="$new_path"
23858     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23860   fi
23861 
23862   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23863 
23864   path="$BOOT_JDK"
23865   has_colon=`$ECHO $path | $GREP ^.:`
23866   new_path="$path"
23867   if test "x$has_colon" = x; then
23868     # Not in mixed or Windows style, start by that.
23869     new_path=`cmd //c echo $path`
23870   fi
23871 
23872 
23873   input_path="$new_path"
23874   # Check if we need to convert this using DOS-style short mode. If the path
23875   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23876   # take no chances and rewrite it.
23877   # Note: m4 eats our [], so we need to use [ and ] instead.
23878   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23879   if test "x$has_forbidden_chars" != x; then
23880     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23881     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23882   fi
23883 
23884 
23885   windows_path="$new_path"
23886   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23887     unix_path=`$CYGPATH -u "$windows_path"`
23888     new_path="$unix_path"
23889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23890     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23891     new_path="$unix_path"
23892   fi
23893 
23894   if test "x$path" != "x$new_path"; then
23895     BOOT_JDK="$new_path"
23896     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23898   fi
23899 
23900   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23901   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23902 
23903   else
23904     # We're on a posix platform. Hooray! :)
23905     path="$BOOT_JDK"
23906     has_space=`$ECHO "$path" | $GREP " "`
23907     if test "x$has_space" != x; then
23908       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23909 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23910       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23911     fi
23912 
23913     # Use eval to expand a potential ~
23914     eval path="$path"
23915     if test ! -f "$path" && test ! -d "$path"; then
23916       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23917     fi
23918 
23919     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23920   fi
23921 
23922               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23923 $as_echo_n "checking for Boot JDK... " >&6; }
23924               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23925 $as_echo "$BOOT_JDK" >&6; }
23926               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23927 $as_echo_n "checking Boot JDK version... " >&6; }
23928               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23929               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23930 $as_echo "$BOOT_JDK_VERSION" >&6; }
23931             fi # end check jdk version
23932           fi # end check rt.jar
23933         fi # end check javac
23934       fi # end check java
23935     fi # end check boot jdk found
23936   fi
23937 
23938 
23939   if test "x$BOOT_JDK_FOUND" = xno; then
23940     # Now execute the test
23941 
23942   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23943   BOOT_JDK_SUFFIX="/Contents/Home"
23944   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23945   if test "x$ALL_JDKS_FOUND" != x; then
23946     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23947 
23948   if test "x$BOOT_JDK_FOUND" = xno; then
23949     # Now execute the test
23950 
23951         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23952         if test -d "$BOOT_JDK"; then
23953           BOOT_JDK_FOUND=maybe
23954           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23955 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23956         fi
23957 
23958 
23959     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23960     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23961       # Do we have a bin/java?
23962       if test ! -x "$BOOT_JDK/bin/java"; then
23963         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23965         BOOT_JDK_FOUND=no
23966       else
23967         # Do we have a bin/javac?
23968         if test ! -x "$BOOT_JDK/bin/javac"; then
23969           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23971           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23972 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23973           BOOT_JDK_FOUND=no
23974         else
23975           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23976           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23977             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23978 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23979             BOOT_JDK_FOUND=no
23980           else
23981             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23982             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23983 
23984             # Extra M4 quote needed to protect [] in grep expression.
23985             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23986             if test "x$FOUND_CORRECT_VERSION" = x; then
23987               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23989               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23990 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23991               BOOT_JDK_FOUND=no
23992             else
23993               # We're done! :-)
23994               BOOT_JDK_FOUND=yes
23995 
23996   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23997 
23998   # Input might be given as Windows format, start by converting to
23999   # unix format.
24000   path="$BOOT_JDK"
24001   new_path=`$CYGPATH -u "$path"`
24002 
24003   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24004   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24005   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24006   # "foo.exe" is OK but "foo" is an error.
24007   #
24008   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24009   # It is also a way to make sure we got the proper file name for the real test later on.
24010   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24011   if test "x$test_shortpath" = x; then
24012     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24013 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24014     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24015   fi
24016 
24017   # Call helper function which possibly converts this using DOS-style short mode.
24018   # If so, the updated path is stored in $new_path.
24019 
24020   input_path="$new_path"
24021   # Check if we need to convert this using DOS-style short mode. If the path
24022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24023   # take no chances and rewrite it.
24024   # Note: m4 eats our [], so we need to use [ and ] instead.
24025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24026   if test "x$has_forbidden_chars" != x; then
24027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24028     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24029     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24030     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24031       # Going to short mode and back again did indeed matter. Since short mode is
24032       # case insensitive, let's make it lowercase to improve readability.
24033       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24034       # Now convert it back to Unix-stile (cygpath)
24035       input_path=`$CYGPATH -u "$shortmode_path"`
24036       new_path="$input_path"
24037     fi
24038   fi
24039 
24040   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24041   if test "x$test_cygdrive_prefix" = x; then
24042     # As a simple fix, exclude /usr/bin since it's not a real path.
24043     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24044       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24045       # a path prefixed by /cygdrive for fixpath to work.
24046       new_path="$CYGWIN_ROOT_PATH$input_path"
24047     fi
24048   fi
24049 
24050 
24051   if test "x$path" != "x$new_path"; then
24052     BOOT_JDK="$new_path"
24053     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24054 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24055   fi
24056 
24057   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24058 
24059   path="$BOOT_JDK"
24060   has_colon=`$ECHO $path | $GREP ^.:`
24061   new_path="$path"
24062   if test "x$has_colon" = x; then
24063     # Not in mixed or Windows style, start by that.
24064     new_path=`cmd //c echo $path`
24065   fi
24066 
24067 
24068   input_path="$new_path"
24069   # Check if we need to convert this using DOS-style short mode. If the path
24070   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24071   # take no chances and rewrite it.
24072   # Note: m4 eats our [], so we need to use [ and ] instead.
24073   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24074   if test "x$has_forbidden_chars" != x; then
24075     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24076     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24077   fi
24078 
24079 
24080   windows_path="$new_path"
24081   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24082     unix_path=`$CYGPATH -u "$windows_path"`
24083     new_path="$unix_path"
24084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24085     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24086     new_path="$unix_path"
24087   fi
24088 
24089   if test "x$path" != "x$new_path"; then
24090     BOOT_JDK="$new_path"
24091     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24093   fi
24094 
24095   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24096   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24097 
24098   else
24099     # We're on a posix platform. Hooray! :)
24100     path="$BOOT_JDK"
24101     has_space=`$ECHO "$path" | $GREP " "`
24102     if test "x$has_space" != x; then
24103       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24105       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24106     fi
24107 
24108     # Use eval to expand a potential ~
24109     eval path="$path"
24110     if test ! -f "$path" && test ! -d "$path"; then
24111       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24112     fi
24113 
24114     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24115   fi
24116 
24117               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24118 $as_echo_n "checking for Boot JDK... " >&6; }
24119               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24120 $as_echo "$BOOT_JDK" >&6; }
24121               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24122 $as_echo_n "checking Boot JDK version... " >&6; }
24123               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24124               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24125 $as_echo "$BOOT_JDK_VERSION" >&6; }
24126             fi # end check jdk version
24127           fi # end check rt.jar
24128         fi # end check javac
24129       fi # end check java
24130     fi # end check boot jdk found
24131   fi
24132 
24133     done
24134   fi
24135 
24136 
24137     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24138     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24139       # Do we have a bin/java?
24140       if test ! -x "$BOOT_JDK/bin/java"; then
24141         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24143         BOOT_JDK_FOUND=no
24144       else
24145         # Do we have a bin/javac?
24146         if test ! -x "$BOOT_JDK/bin/javac"; then
24147           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24149           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24150 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24151           BOOT_JDK_FOUND=no
24152         else
24153           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24154           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24155             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24157             BOOT_JDK_FOUND=no
24158           else
24159             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24160             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24161 
24162             # Extra M4 quote needed to protect [] in grep expression.
24163             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24164             if test "x$FOUND_CORRECT_VERSION" = x; then
24165               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24167               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24168 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24169               BOOT_JDK_FOUND=no
24170             else
24171               # We're done! :-)
24172               BOOT_JDK_FOUND=yes
24173 
24174   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24175 
24176   # Input might be given as Windows format, start by converting to
24177   # unix format.
24178   path="$BOOT_JDK"
24179   new_path=`$CYGPATH -u "$path"`
24180 
24181   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24182   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24183   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24184   # "foo.exe" is OK but "foo" is an error.
24185   #
24186   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24187   # It is also a way to make sure we got the proper file name for the real test later on.
24188   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24189   if test "x$test_shortpath" = x; then
24190     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24191 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24192     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24193   fi
24194 
24195   # Call helper function which possibly converts this using DOS-style short mode.
24196   # If so, the updated path is stored in $new_path.
24197 
24198   input_path="$new_path"
24199   # Check if we need to convert this using DOS-style short mode. If the path
24200   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24201   # take no chances and rewrite it.
24202   # Note: m4 eats our [], so we need to use [ and ] instead.
24203   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24204   if test "x$has_forbidden_chars" != x; then
24205     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24206     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24207     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24208     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24209       # Going to short mode and back again did indeed matter. Since short mode is
24210       # case insensitive, let's make it lowercase to improve readability.
24211       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24212       # Now convert it back to Unix-stile (cygpath)
24213       input_path=`$CYGPATH -u "$shortmode_path"`
24214       new_path="$input_path"
24215     fi
24216   fi
24217 
24218   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24219   if test "x$test_cygdrive_prefix" = x; then
24220     # As a simple fix, exclude /usr/bin since it's not a real path.
24221     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24222       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24223       # a path prefixed by /cygdrive for fixpath to work.
24224       new_path="$CYGWIN_ROOT_PATH$input_path"
24225     fi
24226   fi
24227 
24228 
24229   if test "x$path" != "x$new_path"; then
24230     BOOT_JDK="$new_path"
24231     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24232 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24233   fi
24234 
24235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24236 
24237   path="$BOOT_JDK"
24238   has_colon=`$ECHO $path | $GREP ^.:`
24239   new_path="$path"
24240   if test "x$has_colon" = x; then
24241     # Not in mixed or Windows style, start by that.
24242     new_path=`cmd //c echo $path`
24243   fi
24244 
24245 
24246   input_path="$new_path"
24247   # Check if we need to convert this using DOS-style short mode. If the path
24248   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24249   # take no chances and rewrite it.
24250   # Note: m4 eats our [], so we need to use [ and ] instead.
24251   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24252   if test "x$has_forbidden_chars" != x; then
24253     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24254     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24255   fi
24256 
24257 
24258   windows_path="$new_path"
24259   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24260     unix_path=`$CYGPATH -u "$windows_path"`
24261     new_path="$unix_path"
24262   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24263     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24264     new_path="$unix_path"
24265   fi
24266 
24267   if test "x$path" != "x$new_path"; then
24268     BOOT_JDK="$new_path"
24269     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24270 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24271   fi
24272 
24273   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24274   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24275 
24276   else
24277     # We're on a posix platform. Hooray! :)
24278     path="$BOOT_JDK"
24279     has_space=`$ECHO "$path" | $GREP " "`
24280     if test "x$has_space" != x; then
24281       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24282 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24283       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24284     fi
24285 
24286     # Use eval to expand a potential ~
24287     eval path="$path"
24288     if test ! -f "$path" && test ! -d "$path"; then
24289       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24290     fi
24291 
24292     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24293   fi
24294 
24295               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24296 $as_echo_n "checking for Boot JDK... " >&6; }
24297               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24298 $as_echo "$BOOT_JDK" >&6; }
24299               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24300 $as_echo_n "checking Boot JDK version... " >&6; }
24301               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24302               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24303 $as_echo "$BOOT_JDK_VERSION" >&6; }
24304             fi # end check jdk version
24305           fi # end check rt.jar
24306         fi # end check javac
24307       fi # end check java
24308     fi # end check boot jdk found
24309   fi
24310 
24311   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24312 
24313   if test "x$BOOT_JDK_FOUND" = xno; then
24314     # Now execute the test
24315 
24316   BOOT_JDK_PREFIX="/usr/lib/jvm"
24317   BOOT_JDK_SUFFIX=""
24318   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24319   if test "x$ALL_JDKS_FOUND" != x; then
24320     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24321 
24322   if test "x$BOOT_JDK_FOUND" = xno; then
24323     # Now execute the test
24324 
24325         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24326         if test -d "$BOOT_JDK"; then
24327           BOOT_JDK_FOUND=maybe
24328           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24329 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24330         fi
24331 
24332 
24333     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24334     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24335       # Do we have a bin/java?
24336       if test ! -x "$BOOT_JDK/bin/java"; then
24337         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24338 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24339         BOOT_JDK_FOUND=no
24340       else
24341         # Do we have a bin/javac?
24342         if test ! -x "$BOOT_JDK/bin/javac"; then
24343           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24344 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24345           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24346 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24347           BOOT_JDK_FOUND=no
24348         else
24349           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24350           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24351             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24352 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24353             BOOT_JDK_FOUND=no
24354           else
24355             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24356             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24357 
24358             # Extra M4 quote needed to protect [] in grep expression.
24359             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24360             if test "x$FOUND_CORRECT_VERSION" = x; then
24361               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24362 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24363               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24364 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24365               BOOT_JDK_FOUND=no
24366             else
24367               # We're done! :-)
24368               BOOT_JDK_FOUND=yes
24369 
24370   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24371 
24372   # Input might be given as Windows format, start by converting to
24373   # unix format.
24374   path="$BOOT_JDK"
24375   new_path=`$CYGPATH -u "$path"`
24376 
24377   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24378   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24379   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24380   # "foo.exe" is OK but "foo" is an error.
24381   #
24382   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24383   # It is also a way to make sure we got the proper file name for the real test later on.
24384   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24385   if test "x$test_shortpath" = x; then
24386     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24388     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24389   fi
24390 
24391   # Call helper function which possibly converts this using DOS-style short mode.
24392   # If so, the updated path is stored in $new_path.
24393 
24394   input_path="$new_path"
24395   # Check if we need to convert this using DOS-style short mode. If the path
24396   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24397   # take no chances and rewrite it.
24398   # Note: m4 eats our [], so we need to use [ and ] instead.
24399   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24400   if test "x$has_forbidden_chars" != x; then
24401     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24402     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24403     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24404     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24405       # Going to short mode and back again did indeed matter. Since short mode is
24406       # case insensitive, let's make it lowercase to improve readability.
24407       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24408       # Now convert it back to Unix-stile (cygpath)
24409       input_path=`$CYGPATH -u "$shortmode_path"`
24410       new_path="$input_path"
24411     fi
24412   fi
24413 
24414   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24415   if test "x$test_cygdrive_prefix" = x; then
24416     # As a simple fix, exclude /usr/bin since it's not a real path.
24417     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24418       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24419       # a path prefixed by /cygdrive for fixpath to work.
24420       new_path="$CYGWIN_ROOT_PATH$input_path"
24421     fi
24422   fi
24423 
24424 
24425   if test "x$path" != "x$new_path"; then
24426     BOOT_JDK="$new_path"
24427     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24428 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24429   fi
24430 
24431   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24432 
24433   path="$BOOT_JDK"
24434   has_colon=`$ECHO $path | $GREP ^.:`
24435   new_path="$path"
24436   if test "x$has_colon" = x; then
24437     # Not in mixed or Windows style, start by that.
24438     new_path=`cmd //c echo $path`
24439   fi
24440 
24441 
24442   input_path="$new_path"
24443   # Check if we need to convert this using DOS-style short mode. If the path
24444   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24445   # take no chances and rewrite it.
24446   # Note: m4 eats our [], so we need to use [ and ] instead.
24447   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24448   if test "x$has_forbidden_chars" != x; then
24449     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24450     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24451   fi
24452 
24453 
24454   windows_path="$new_path"
24455   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24456     unix_path=`$CYGPATH -u "$windows_path"`
24457     new_path="$unix_path"
24458   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24459     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24460     new_path="$unix_path"
24461   fi
24462 
24463   if test "x$path" != "x$new_path"; then
24464     BOOT_JDK="$new_path"
24465     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24466 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24467   fi
24468 
24469   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24470   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24471 
24472   else
24473     # We're on a posix platform. Hooray! :)
24474     path="$BOOT_JDK"
24475     has_space=`$ECHO "$path" | $GREP " "`
24476     if test "x$has_space" != x; then
24477       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24478 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24479       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24480     fi
24481 
24482     # Use eval to expand a potential ~
24483     eval path="$path"
24484     if test ! -f "$path" && test ! -d "$path"; then
24485       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24486     fi
24487 
24488     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24489   fi
24490 
24491               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24492 $as_echo_n "checking for Boot JDK... " >&6; }
24493               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24494 $as_echo "$BOOT_JDK" >&6; }
24495               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24496 $as_echo_n "checking Boot JDK version... " >&6; }
24497               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24498               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24499 $as_echo "$BOOT_JDK_VERSION" >&6; }
24500             fi # end check jdk version
24501           fi # end check rt.jar
24502         fi # end check javac
24503       fi # end check java
24504     fi # end check boot jdk found
24505   fi
24506 
24507     done
24508   fi
24509 
24510 
24511     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24512     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24513       # Do we have a bin/java?
24514       if test ! -x "$BOOT_JDK/bin/java"; then
24515         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24517         BOOT_JDK_FOUND=no
24518       else
24519         # Do we have a bin/javac?
24520         if test ! -x "$BOOT_JDK/bin/javac"; then
24521           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24522 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24523           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24524 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24525           BOOT_JDK_FOUND=no
24526         else
24527           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24528           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24529             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24530 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24531             BOOT_JDK_FOUND=no
24532           else
24533             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24534             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24535 
24536             # Extra M4 quote needed to protect [] in grep expression.
24537             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24538             if test "x$FOUND_CORRECT_VERSION" = x; then
24539               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24541               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24542 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24543               BOOT_JDK_FOUND=no
24544             else
24545               # We're done! :-)
24546               BOOT_JDK_FOUND=yes
24547 
24548   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24549 
24550   # Input might be given as Windows format, start by converting to
24551   # unix format.
24552   path="$BOOT_JDK"
24553   new_path=`$CYGPATH -u "$path"`
24554 
24555   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24556   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24557   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24558   # "foo.exe" is OK but "foo" is an error.
24559   #
24560   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24561   # It is also a way to make sure we got the proper file name for the real test later on.
24562   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24563   if test "x$test_shortpath" = x; then
24564     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24565 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24566     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24567   fi
24568 
24569   # Call helper function which possibly converts this using DOS-style short mode.
24570   # If so, the updated path is stored in $new_path.
24571 
24572   input_path="$new_path"
24573   # Check if we need to convert this using DOS-style short mode. If the path
24574   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24575   # take no chances and rewrite it.
24576   # Note: m4 eats our [], so we need to use [ and ] instead.
24577   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24578   if test "x$has_forbidden_chars" != x; then
24579     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24580     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24581     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24582     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24583       # Going to short mode and back again did indeed matter. Since short mode is
24584       # case insensitive, let's make it lowercase to improve readability.
24585       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24586       # Now convert it back to Unix-stile (cygpath)
24587       input_path=`$CYGPATH -u "$shortmode_path"`
24588       new_path="$input_path"
24589     fi
24590   fi
24591 
24592   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24593   if test "x$test_cygdrive_prefix" = x; then
24594     # As a simple fix, exclude /usr/bin since it's not a real path.
24595     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24596       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24597       # a path prefixed by /cygdrive for fixpath to work.
24598       new_path="$CYGWIN_ROOT_PATH$input_path"
24599     fi
24600   fi
24601 
24602 
24603   if test "x$path" != "x$new_path"; then
24604     BOOT_JDK="$new_path"
24605     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24606 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24607   fi
24608 
24609   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24610 
24611   path="$BOOT_JDK"
24612   has_colon=`$ECHO $path | $GREP ^.:`
24613   new_path="$path"
24614   if test "x$has_colon" = x; then
24615     # Not in mixed or Windows style, start by that.
24616     new_path=`cmd //c echo $path`
24617   fi
24618 
24619 
24620   input_path="$new_path"
24621   # Check if we need to convert this using DOS-style short mode. If the path
24622   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24623   # take no chances and rewrite it.
24624   # Note: m4 eats our [], so we need to use [ and ] instead.
24625   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24626   if test "x$has_forbidden_chars" != x; then
24627     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24628     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24629   fi
24630 
24631 
24632   windows_path="$new_path"
24633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24634     unix_path=`$CYGPATH -u "$windows_path"`
24635     new_path="$unix_path"
24636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24637     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24638     new_path="$unix_path"
24639   fi
24640 
24641   if test "x$path" != "x$new_path"; then
24642     BOOT_JDK="$new_path"
24643     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24644 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24645   fi
24646 
24647   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24648   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24649 
24650   else
24651     # We're on a posix platform. Hooray! :)
24652     path="$BOOT_JDK"
24653     has_space=`$ECHO "$path" | $GREP " "`
24654     if test "x$has_space" != x; then
24655       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24657       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24658     fi
24659 
24660     # Use eval to expand a potential ~
24661     eval path="$path"
24662     if test ! -f "$path" && test ! -d "$path"; then
24663       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24664     fi
24665 
24666     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24667   fi
24668 
24669               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24670 $as_echo_n "checking for Boot JDK... " >&6; }
24671               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24672 $as_echo "$BOOT_JDK" >&6; }
24673               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24674 $as_echo_n "checking Boot JDK version... " >&6; }
24675               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24676               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24677 $as_echo "$BOOT_JDK_VERSION" >&6; }
24678             fi # end check jdk version
24679           fi # end check rt.jar
24680         fi # end check javac
24681       fi # end check java
24682     fi # end check boot jdk found
24683   fi
24684 
24685   fi
24686 
24687 
24688     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24689     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24690       # Do we have a bin/java?
24691       if test ! -x "$BOOT_JDK/bin/java"; then
24692         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24693 $as_echo "$as_me: Pote